]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Add optional NUMA affinity
authorRamkrishna Vepa <ramkrishna.vepa@intel.com>
Tue, 28 May 2013 16:57:33 +0000 (12:57 -0400)
committerRoland Dreier <roland@purestorage.com>
Sat, 22 Jun 2013 00:19:48 +0000 (17:19 -0700)
commitd8eb73a8730255862c08d2cc2b505da917b5585c
tree5b5b8858c292da3138f1ab8535872005f06f3e50
parentf4d61489f9553642b2c533b5a576e4da17f014cf
IB/qib: Add optional NUMA affinity

This patch adds context relative numa affinity conditioned on the
module parameter numa_aware. The qib_ctxtdata has an additional
node_id member and qib_create_ctxtdata() has an addition node_id
parameter.

The allocations within the hdr queue and eager queue setup routines
now take this additional member and adjust allocations as necesary.
PSM will pass the either current numa node or the node closest to the
HCA depending on numa_aware. Verbs will always use the node closest to
the HCA.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Ramkrishna Vepa <ramkrishna.vepa@intel.com>
Signed-off-by: Vinit Agnihotri <vinit.abhay.agnihotri@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_file_ops.c
drivers/infiniband/hw/qib/qib_init.c