]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/amd_nb: Restrict init function to AMD-based systems
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 6 Dec 2024 16:11:55 +0000 (16:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:17 +0000 (12:50 +0100)
commit99795e62e7a57d8dd82b82f226359c8a38fae030
treef56d38c4167bc933291089955c21c0a79c973e92
parent23434fcf90b999ae5c7c17ce9123f580eaa5063c
x86/amd_nb: Restrict init function to AMD-based systems

[ Upstream commit bee9e840609cc67d0a7d82f22a2130fb7a0a766d ]

The code implicitly operates on AMD-based systems by matching on PCI
IDs. However, the use of these IDs is going away.

Add an explicit CPU vendor check instead of relying on PCI IDs.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241206161210.163701-3-yazen.ghannam@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kernel/amd_nb.c