]> 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)
commit88c3216560edfaf751ae635854219d8227aecd9f
tree5b5b8858c292da3138f1ab8535872005f06f3e50
parent3d51c29e8c9f07bbb9e5e21cc1cd0e410644e657
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