]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4: Subscribe to PXM notifier v4.1.12-117.0_27200813_3
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 30 Nov 2017 16:31:25 +0000 (11:31 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 4 Dec 2017 18:57:22 +0000 (13:57 -0500)
commit18699a5f4e3c0f5601769211afb6cdb6b1d57312
tree6350c55a789f519e302a1445390e0520af3b5a62
parent64c80e8cd32f8543eefcb66750f6bed531b6c2aa
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