]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/amd_nb: Simplify function 4 search
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 6 Dec 2024 16:11:58 +0000 (16:11 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 8 Jan 2025 09:47:50 +0000 (10:47 +0100)
commit962f1970a32430ce6c75ea23cbc59d68346481fd
tree8cea8fba22c196637da7806d29f8eb6987cfee26
parente6e6e5e85116b8587ab2dff7cd6ab3e082859ce7
x86/amd_nb: Simplify function 4 search

Use the newly added helper function to look up a CPU/Node function to
find "function 4" devices.

Thus, avoid the need to regularly add new PCI IDs for basic discovery.
The unique PCI IDs are still useful in case of quirks or functional
changes. And they should be used only in such a manner.

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-6-yazen.ghannam@amd.com
arch/x86/include/asm/amd_nb.h
arch/x86/kernel/amd_nb.c