]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86: ISST: Remove 8 socket limit
authorSteve Wahl <steve.wahl@hpe.com>
Fri, 19 May 2023 16:04:20 +0000 (11:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:17:26 +0000 (14:17 +0100)
commit6ed6f5c6865e2dc45b7d9914dae2d40bd2126824
tree9edbb4e03c92abbedd50d9c32418d3f6eb926b7d
parenta8a1c9a127c843d6583e884c06d5c68bfba30c1f
platform/x86: ISST: Remove 8 socket limit

commit bbb320bfe2c3e9740fe89cfa0a7089b4e8bfc4ff upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/intel/speed_select_if/isst_if_common.c