]> git.itanic.dy.fi Git - linux-stable/commit
x86/amd_nb: Add PCI ID for family 19h model 78h
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 27 Apr 2023 05:33:36 +0000 (00:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 12:02:07 +0000 (14:02 +0200)
commit7e29e780b167a3c7a6378ad44ea53f03018bff45
tree3bdcfc417ef6eac4e19bbf3913cdae0df22ee620
parentb2fab1807d26acd1c6115b95b5eddd697d84751b
x86/amd_nb: Add PCI ID for family 19h model 78h

commit 23a5b8bb022c1e071ca91b1a9c10f0ad6a0966e9 upstream.

Commit

  310e782a99c7 ("platform/x86/amd: pmc: Utilize SMN index 0 for driver probe")

switched to using amd_smn_read() which relies upon the misc PCI ID used
by DF function 3 being included in a table.  The ID for model 78h is
missing in that table, so amd_smn_read() doesn't work.

Add the missing ID into amd_nb, restoring s2idle on this system.

  [ bp: Simplify commit message. ]

Fixes: 310e782a99c7 ("platform/x86/amd: pmc: Utilize SMN index 0 for driver probe")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com> # pci_ids.h
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230427053338.16653-2-mario.limonciello@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/amd_nb.c
include/linux/pci_ids.h