platform/x86: ISST: Remove 8 socket limit
authorSteve Wahl <steve.wahl@hpe.com>
Fri, 19 May 2023 16:04:20 +0000 (11:04 -0500)
committerHans de Goede <hdegoede@redhat.com>
Tue, 23 May 2023 10:52:05 +0000 (12:52 +0200)
commitbbb320bfe2c3e9740fe89cfa0a7089b4e8bfc4ff
tree309d0502ac58ca82d15ad297fdc1515cfcaeb9e5
parent95e4b25192e9238fd2dbe85d96dd2f8fd1ce9d14
platform/x86: ISST: Remove 8 socket limit

Stop restricting the PCI search to a range of PCI domains fed to
pci_get_domain_bus_and_slot().  Instead, use for_each_pci_dev() and
look at all PCI domains in one pass.

On systems with more than 8 sockets, this avoids error messages like
"Information: Invalid level, Can't get TDP control information at
specified levels on cpu 480" from the intel speed select utility.

Fixes: aa2ddd242572 ("platform/x86: ISST: Use numa node id for cpu pci dev mapping")
Signed-off-by: Steve Wahl <steve.wahl@hpe.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230519160420.2588475-1-steve.wahl@hpe.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/speed_select_if/isst_if_common.c