Unverified Commit 5ea1a178 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15149 Fix northbridge init warning in guest for Hygon family 18h model 4h

Merge Pull Request from: @hygon_fanwh 
 
Avoid the northbridge init failure warning in guest since there is no northbridge. 
 
Link:https://gitee.com/openeuler/kernel/pulls/15149

 

Reviewed-by: default avatarZhang Peng <zhangpeng362@huawei.com>
Signed-off-by: default avatarZhang Peng <zhangpeng362@huawei.com>
parents a269a3fd 9a0eaacc
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;