bus/pci: ignore missing NUMA node on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Sun, 13 Dec 2020 14:16:04 +0000 (16:16 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 5 Jan 2021 22:01:36 +0000 (23:01 +0100)
commitac7c98d04f2c5c8d57c4f87799a669dca9ca9605
tree85b121f1061eb0995d24747a120537a7322223bd
parentaacc29dacde8ca8a7a5768890f51ddfdf0f3bda1
bus/pci: ignore missing NUMA node on Windows

On older processors, NUMA isn't bound to PCIe locality.
those cases return ERROR_NOT_FOUND in response to the
SetupDiGetDevicePropertyW call with DEVPKEY_Device_Numa_Node
attribute.

This error fails the probe process for the PCIe device.
this commit will ignore such failure and will set the
numa_node to 0.

Fixes: b762221ac24f ("bus/pci: support Windows with bifurcated drivers")
Cc: stable@dpdk.org
Reported-by: Odi Assli <odia@nvidia.com>
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Tested-by: Odi Assli <odia@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
drivers/bus/pci/windows/pci.c