Commit ba6fd3b3 authored by Wenhui Fan's avatar Wenhui Fan
Browse files

EDAC/amd64: Add support family types for hygon family 4h~5h and 7h.

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


CVE: NA

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

In commit f53aa5cf, it revert the support for hygon family 4h~5h
and 7h committed by Hygon, this will cause the print info incorrectly
after edac driver loaded.

Fixes: f53aa5cf ("EDAC/amd64: Merge struct amd64_family_type into struct amd64_pvt")
Signed-off-by: default avatarWenhui Fan <fanwh@hygon.cn>
parent c72878be
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -3574,9 +3574,20 @@ static int per_family_init(struct amd64_pvt *pvt)

	case 0x18:
		switch (pvt->model) {
		case 0x04:
			pvt->ctl_name			= "F18h_M04h";
			pvt->max_mcs			= 3;
			break;
		case 0x05:
			pvt->ctl_name			= "F18h_M05h";
			pvt->max_mcs			= 1;
			break;
		case 0x06:
			pvt->ctl_name			= "F18h_M06h";
			break;
		case 0x07:
			pvt->ctl_name			= "F18h_M07h";
			break;
		case 0x10:
			pvt->ctl_name			= "F18h_M10h";
			break;