]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4: Subscribe to PXM notifier
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 30 Nov 2017 16:31:25 +0000 (11:31 -0500)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 4 Dec 2017 23:07:43 +0000 (18:07 -0500)
commitdf20056cc0d4dadd3a8a71bd67f927b6e2482ee7
tree6350c55a789f519e302a1445390e0520af3b5a62
parent7948c915f4a57d8d13551b0e8759c179e6151a3b
mlx4: Subscribe to PXM notifier

With patch titled: "xen/pci: Add PXM node notifier for PXM (NUMA) changes."
there is a notifier which can be used to obtain information
about which NUMA node the device is on.

Usually this kind of information is available prior to the driver
loading, but thanks to the braindead way piix4 emulation works
in QEMU there is no good way of making this work.

Upstream is working on ditching this, but it is a year off or so.

Note that this should not be needed if QEMU q35 platform
is exposed with PCIe bridges in them. The PCIe bridges would contain
the proper PXM information and the hotplugged PCIe device would
snuggly be attached there.

But in the meantime this hack is in place to expose the PXM data.

OraBug: 27200813
Acked-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/net/ethernet/mellanox/mlx4/main.c