05 Jul, 2006
1 commit
-
* git://git.infradead.org/hdrinstall-2.6:
Remove export of include/linux/isdn/tpam.h
Remove and from userspace export
Restrict headers exported to userspace for SPARC and SPARC64
Add empty Kbuild files for 'make headers_install' in remaining arches.
Add Kbuild file for Alpha 'make headers_install'
Add Kbuild file for SPARC 'make headers_install'
Add Kbuild file for IA64 'make headers_install'
Add Kbuild file for S390 'make headers_install'
Add Kbuild file for i386 'make headers_install'
Add Kbuild file for x86_64 'make headers_install'
Add Kbuild file for PowerPC 'make headers_install'
Add generic Kbuild files for 'make headers_install'
Basic implementation of 'make headers_check'
Basic implementation of 'make headers_install'
18 Jun, 2006
12 commits
-
This adds the Kbuild files listing the files which are to be installed by
the 'headers_install' make target, in generic directories.Signed-off-by: David Woodhouse
-
Currently, all userspace verbs operations that call into the kernel
are serialized by ib_uverbs_idr_mutex. This can be a scalability
issue for some workloads, especially for devices driven by the ipath
driver, which needs to call into the kernel even for datapath
operations.Fix this by adding reference counts to the userspace objects, and then
converting ib_uverbs_idr_mutex into a spinlock that only protects the
idrs long enough to take a reference on the object being looked up.
Because remove operations may fail, we have to do a slightly funky
two-step deletion, which is described in the comments at the top of
uverbs_cmd.c.This also still leaves ib_uverbs_idr_lock as a single lock that is
possibly subject to contention. However, the lock hold time will only
be a single idr operation, so multiple threads should still be able to
make progress, even if ib_uverbs_idr_lock is being ping-ponged.Surprisingly, these changes even shrink the object code:
add/remove: 23/5 grow/shrink: 4/21 up/down: 633/-693 (-60)
Signed-off-by: Roland Dreier
-
Add a call to initialize address handle attributes given a path record.
This is used by the CM, and would be useful for users of UD QPs.Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
Add a function to initialize address handle attributes from a work
completion. This functionality is duplicated by both verbs and the CM.Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
The P_Key is provided into a SIDR REQ in two places, once as a
parameter, and again in the path record. Remove the P_Key as a
parameter and always use the one given in the path record.This change has no practical effect on ABI functionality.
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
Move ipath's struct port_info into , so that it can be
used by mthca to implement client reregister support.Remove the __attribute__((packed)) because all the members of the struct
are naturally aligned anyway.Signed-off-by: Leonid Arsh
Signed-off-by: Roland Dreier -
Add IB_EVENT_CLIENT_REREGISTER to enum so low-level drivers can
generate "client reregister" events.Signed-off-by: Leonid Arsh
Signed-off-by: Roland Dreier -
Add an LMC cache to struct ib_device, and add a function
ib_get_cached_lmc() to query the cache.Signed-off-by: Jack Morgenstein
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
Kernel connection management agent over InfiniBand that connects based
on IP addresses. The agent defines a generic RDMA connection
abstraction to support clients wanting to connect over different RDMA
devices.The agent also handles RDMA device hotplug events on behalf of clients.
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
Add an address translation service that maps IP addresses to
InfiniBand GID addresses using IPoIB.Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
Extend matching connection requests to listens in the InfiniBand CM to
include private data checks.This allows applications to listen on the same service identifier,
with private data directing the request to the appropriate application.Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
Provide common handling for marshalling data between userspace clients
and kernel InfiniBand drivers.Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier
11 Apr, 2006
1 commit
-
Push translation of static rate to HCA format into low-level drivers,
where it belongs. For static rate encoding, use encoding of rate
field from IB standard PathRecord, with addition of value 0, for
backwards compatibility with current usage. The changes are:- Add enum ib_rate to midlayer includes.
- Get rid of static rate translation in IPoIB; just use static rate
directly from Path and MulticastGroup records.
- Update mthca driver to translate absolute static rate into the
format used by hardware. This also fixes mthca's static rate
handling for HCAs that are capable of 4X DDR.Signed-off-by: Jack Morgenstein
Signed-off-by: Roland Dreier
30 Mar, 2006
1 commit
-
Add RMPP support for additional management classes that support it.
Also, validate RMPP is consistent with management class specified.Signed-off-by: Hal Rosenstock
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier
21 Mar, 2006
11 commits
-
Add support for sending and receiving large RMPP transfers. The old
code supports transfers only as large as a single contiguous kernel
memory allocation. This patch uses linked list of memory buffers when
sending and receiving data to avoid needing contiguous pages for
larger transfers.Receive side: copy the arriving MADs in chunks instead of coalescing
to one large buffer in kernel space.Send side: split a multipacket MAD buffer to a list of segments,
(multipacket_list) and send these using a gather list of size 2.
Also, save pointer to last sent segment, and retrieve requested
segments by walking list starting at last sent segment. Finally,
save pointer to last-acked segment. When retrying, retrieve
segments for resending relative to this pointer. When updating last
ack, start at this pointer.Signed-off-by: Jack Morgenstein
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier -
Pass actual capacity of created SRQ back to userspace, so that
userspace can report accurate capacities. This requires an ABI bump,
to change struct ib_uverbs_create_srq_resp.Signed-off-by: Dotan Barak
Signed-off-by: Roland Dreier -
Have mthca's create_srq method return the actual capacity of the SRQ
that gets created. Also update comments in to
clarify that this is what is expected from ib_create_srq().Signed-off-by: Dotan Barak
Signed-off-by: Roland Dreier -
The size of struct ib_uverbs_create_qp_resp is not even multiple of 8
bytes. This causes problems for low-level drivers that add private
data after the structure: 32-bit userspace will look in the wrong
place for a response from a 64-bit kernel. Fix this by adding a
reserved field. Also, bump the ABI version because this changes the
size of a structure.Pointed out by Hoang-Nam Nguyen .
Signed-off-by: Roland Dreier
-
Add support to uverbs to handle querying userspace SRQs (shared
receive queues), including adding an ABI for marshalling requests and
responses. The kernel midlayer already has the underlying
ib_query_srq() function.Signed-off-by: Dotan Barak
Signed-off-by: Roland Dreier -
Add support to uverbs to handle querying userspace QPs (queue pairs),
including adding an ABI for marshalling requests and responses. The
kernel midlayer already has the underlying ib_query_qp() function.Signed-off-by: Dotan Barak
Signed-off-by: Roland Dreier -
Remove trailing whitespace and fix indentation that with spaces
instead of tabs.Signed-off-by: Roland Dreier
-
The in-kernel mthca driver contains a table of which attributes are
valid for each queue pair state transition. It turns out that both
other IB drivers -- ipath and ehca -- which are being prepared for
merging have copied this table, errors and all.To forestall this code duplication, move this table and the code to
check parameters against it into a midlayer library function,
ib_modify_qp_is_ok().Signed-off-by: Roland Dreier
-
This patch allows the consumer to set the page size of "pages" mapped
by the pool FMRs, which is a feature already existing in the base
verbs API. On the cosmetic side it changes ib_fmr_attr.page_size field
to be named page_shift.Signed-off-by: Or Gerlitz
Signed-off-by: Roland Dreier -
Expose a writable "node_desc" sysfs attribute for InfiniBand devices.
This allows userspace to update the node description with information
such as the node's hostname, so that IB network management software
can tie its view to the real world.Signed-off-by: Michael S. Tsirkin
Signed-off-by: Roland Dreier -
Add support to uverbs to handle resizing userspace CQs (completion
queues), including adding an ABI for marshalling requests and
responses. The kernel midlayer already has ib_resize_cq().Signed-off-by: Roland Dreier
10 Jan, 2006
1 commit
-
Add a node_guid field to struct ib_device. It is the responsibility
of the low-level driver to initialize this field before registering a
device with the midlayer. Convert everyone to looking at this field
instead of calling ib_query_device() when all they want is the node
GUID, and remove the node_guid field from struct ib_device_attr.Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier
11 Nov, 2005
2 commits
-
Move the computation of QP capabilities (max scatter/gather entries,
max inline data, etc) into the kernel, and have the uverbs module
return the values as part of the create QP response. This keeps
precise knowledge of device limits in the low-level kernel driver.This requires an ABI bump, so while we're making changes, get rid of
the max_sge parameter for the modify SRQ command -- it's not used and
shouldn't be there.Signed-off-by: Jack Morgenstein
Signed-off-by: Michael S. Tsirkin
Signed-off-by: Roland Dreier -
Change the struct ib_device.resize_cq() method to take a plain integer
that holds the new CQ size, rather than a pointer to an integer that
it uses to return the new size. This makes the interface match the
exported ib_resize_cq() signature, and allows the low-level driver to
update the CQ size with proper locking if necessary.No in-tree drivers are exporting this method yet.
Signed-off-by: Roland Dreier
02 Nov, 2005
1 commit
-
Fix structure layouts to ensure same size on 32-bit and 64-bit architectures.
This permits 32-bit userspace apps on a 64-bit kernel.Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier
26 Oct, 2005
1 commit
-
The MAD layer was violating the DMA API by touching data buffers used
for sends after the DMA mapping was done. This causes problems on
non-cache-coherent architectures, because the device doing DMA won't
see updates to the payload buffers that exist only in the CPU cache.Fix this by having all MAD consumers use ib_create_send_mad() to
allocate their send buffers, and moving the DMA mapping into the MAD
layer so it can be done just before calling send (and after any
modifications of the send buffer by the MAD layer).Tested on a non-cache-coherent PowerPC 440SPe system.
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier
18 Oct, 2005
5 commits
-
Bind communication identifiers to a device to support device removal.
Export per HCA CM devices to userspace.Signed-off-by: Sean Hefty
-
Add kernel/user ABI structures for marshalling poll CQ, request CQ
notification, post send, post receive, post SRQ receive, create AH and
destroy AH commands. These commands allow us to support userspace
verbs for devices that can't perform these operations directly from
userspace (eg the PathScale HCA).Signed-off-by: Roland Dreier
-
Give each device a uverbs_cmd_mask, so that a low-level driver can
control which methods may be called on behalf of userspace.Signed-off-by: Roland Dreier
-
Add abi_version attribute to uverbs class devices to allow for
ABI versioning of device-specific interfaces.Signed-off-by: Roland Dreier
-
Introduce new userspace verbs ABI version 3. This eliminates some
unneeded commands, and adds support for user-created completion
channels. This cleans up problems with file leaks on error paths, and
also makes sure that file descriptors are always installed into the
correct process.Signed-off-by: Roland Dreier
09 Oct, 2005
1 commit
-
- added typedef unsigned int __nocast gfp_t;
- replaced __nocast uses for gfp flags with gfp_t - it gives exactly
the same warnings as far as sparse is concerned, doesn't change
generated code (from gcc point of view we replaced unsigned int with
typedef) and documents what's going on far better.Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds
27 Sep, 2005
1 commit
-
Al Viro pointed out that the current IB userspace verbs interface
allows userspace to cause mischief by closing file descriptors before
we're ready, or issuing the same command twice at the same time. This
patch closes those races, and fixes other obvious problems such as a
module reference leak.Some other interface bogosities will require an ABI change to fix
properly, so I'm deferring those fixes until 2.6.15.Signed-off-by: Roland Dreier
22 Sep, 2005
1 commit
-
Clean up code by using enums instead of hard-coded magic numbers.
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier
10 Sep, 2005
1 commit
-
Changes to CM to support CM and port redirection (REJ reason 24).
Signed-off-by: John Kingman storagegear.com>
Signed-off-by: Sean Hefty
Signed-off-by: Roland Dreier