hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/x86/pci/amd_bus.c
....@@ -93,7 +93,8 @@
9393 vendor = id & 0xffff;
9494 device = (id>>16) & 0xffff;
9595
96
- if (vendor != PCI_VENDOR_ID_AMD)
96
+ if (vendor != PCI_VENDOR_ID_AMD &&
97
+ vendor != PCI_VENDOR_ID_HYGON)
9798 continue;
9899
99100 if (hb_probes[i].device == device) {
....@@ -390,7 +391,8 @@
390391
391392 static int __init amd_postcore_init(void)
392393 {
393
- if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD)
394
+ if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD &&
395
+ boot_cpu_data.x86_vendor != X86_VENDOR_HYGON)
394396 return 0;
395397
396398 early_root_info_init();