Commit 9a0eaacc authored by Wenhui Fan's avatar Wenhui Fan
Browse files

x86/amd_nb: Fix northbridge init warning in guest for Hygon family 18h model 4h

hygon inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBM2BF


CVE: NA

---------------------------

When booting in guest on Hygon family 18h model 4h platform, there
is warning as follows:
"Hygon Fam18h Model4h northbridge init failed(-19)!"

Avoid the northbridge init failure warning in guest since there is
no northbridge.

Fixes: fc02cdbf ("x86/amd_nb: Add northbridge support for Hygon family 18h model 4h")
Signed-off-by: default avatarWenhui Fan <fanwh@hygon.cn>
parent 7c834950
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -467,6 +467,7 @@ static int northbridge_init_f18h_m4h(const struct pci_device_id *root_ids,
	amd_northbridges.nb = NULL;

ret:
	if (!boot_cpu_has(X86_FEATURE_HYPERVISOR))
		pr_err("Hygon Fam%xh Model%xh northbridge init failed(%d)!\n",
			boot_cpu_data.x86, boot_cpu_data.x86_model, err);
	return err;