[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <03835d0f-225a-f7b9-dedb-5d474193181a@hygon.cn>
Date: Wed, 5 Sep 2018 21:03:12 +0800
From: Pu Wen <puwen@...on.cn>
To: Borislav Petkov <bp@...en8.de>
Cc: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, thomas.lendacky@....com, pbonzini@...hat.com,
mchehab@...nel.org, mikhail.jin@...il.com,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
linux-edac@...r.kernel.org
Subject: Re: [PATCH v5 15/16] driver/edac: enable Hygon support to AMD64 EDAC
driver
On 2018/9/5 18:44, Borislav Petkov wrote:
> Subject should be:
>
> EDAC, amd64: Add Hygon Dhyana support
Thanks for the correction.
>> + case 0x18:
>> + fam_type = &family_types[HYGON_F18_CPUS];
>> + pvt->ops = &family_types[HYGON_F18_CPUS].ops;
>> + break;
>> +
>
> You can use the F17_CPUS array element here and overwrite the ->ctl_name
> string only. No need to define [HYGON_F18_CPUS] above... yet.
All right, the way reusing F17_CPUS will also minimize the code
modification.
>> +#define PCI_DEVICE_ID_HYGON_18H_DF_F0 0x1460
>> +#define PCI_DEVICE_ID_HYGON_18H_DF_F6 0x1466
>
> As in the previous patch - use the AMD defines.
Will remove them in next version of patches.
--
Regards,
Pu Wen
Powered by blists - more mailing lists