MCA support on Centaur CPU
PATCH 1/2 x86/mce: new centaur CPUs support MCE broadcasting
In reply to David WangThis patch is used to tell the kernel that newer Centaur CPU support MCE broadcasting.
--- arch/x86/kernel/cpu/mcheck/mce.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/x86/kernel/cpu/mcheck/mce.c +11 -0
@@ -1688,6 +1688,17 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)if (c->x86 ==6 && c->x86_model ==45 ) quirk_no_way_out = quirk_sandybridge_ifu; } + +if (c->x86_vendor ==X86_VENDOR_CENTAUR ) { +/* +* All newer centaur CPUs support MCE broadcasting. Enable +* synchronization with a one second timeout. +*/ +if ((c->x86 >6 || (c->x86 ==6 && c->x86_model ==0xf && c->x86_mask >=0xe )) && + cfg->monarch_timeout <0 ) + cfg->monarch_timeout =USEC_PER_SEC ; + } +if (cfg->monarch_timeout <0 ) cfg->monarch_timeout =0 ;if (cfg->bootlog !=0 )
PATCH 2/2 x86/mce: add CMCI support for centaur CPUs
In reply to David WangThis patch is used to tell the kernel that centaur CPUs support CMCI mechanism which is compatible with INTEL CMCI.
--- arch/x86/kernel/cpu/mcheck/mce.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/mcheck/mce.c +1 -0
@@ -1751,6 +1751,7 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c) {switch (c->x86_vendor) {case X86_VENDOR_INTEL : +case X86_VENDOR_CENTAUR :mce_intel_feature_init (c); mce_adjust_timer = cmci_intel_adjust_timer;break ;
cover MCA support on Centaur CPU
This patch set is to provide MCA support on new Centaur CPU.
The first patch is used to tell the kernel that newer Centaur CPU support MCE broadcasting.
The second patch is used to tell the kernel that newer Centaur CPU support CMCI.
David Wang (2):
x86/mce: new centaur CPUs support MCE broadcasting x86/mce: add CMCI support for centaur CPUs
arch/x86/kernel/cpu/mcheck/mce.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Signature · 1 line
1.9.1
Borislav Petkov
maintainerRe: [PATCH 1/2] x86/mce: new centaur CPUs support MCE broadcasting
In reply to David WangQuoted 13 lines · David Wang
This patch is used to tell the kernel that newer Centaur CPU support MCE broadcasting.
Signed-off-by David Wang <[email protected]>--- arch/x86/kernel/cpu/mcheck/mce.c | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/x86/kernel/cpu/mcheck/mce.c +0
-0
arch/x86/kernel/cpu/mcheck/mce.c static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c) · line 1697
Quoted 10 lines
arch/x86/kernel/cpu/mcheck/mce.c +7
-0@@ -1688,6 +1688,17 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)if (c->x86 ==6 && c->x86_model ==45 ) quirk_no_way_out = quirk_sandybridge_ifu; } + +if (c->x86_vendor ==X86_VENDOR_CENTAUR ) { +/* +* All newer centaur CPUs support MCE broadcasting. Enable +* synchronization with a one second timeout. +*/ + if ((c->x86 > 6 || (c->x86 == 6 && c->x86_model == 0xf && c->x86_mask >=0xe)) &&
Are some specs or manuals available somewhere on the web for those?
Thx.
Quoted 8 lines · David Wang
This patch set is to provide MCA support on new Centaur CPU.
The first patch is used to tell the kernel that newer Centaur CPU support MCE broadcasting.
The second patch is used to tell the kernel that newer Centaur CPU support CMCI.
Quoted 6 lines
David Wang (2):
x86/mce: new centaur CPUs support MCE broadcasting x86/mce: add CMCI support for centaur CPUsarch/x86/kernel/cpu/mcheck/mce.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Please capitalize 'Centaur' properly in the changelogs and in comments.
Thanks,
Ingo
Borislav Petkov
maintainerRe: 答复: [PATCH 1/2] x86/mce: new centaur CPUs support MCE broadcasting
In reply to a message not in the archiveQuoted 5 lines · David Wang
Those are new processors and main usage of CentaurHauls CPUs in recent years is for limited and/or embedded instead of distribution markets. So there is no plan or resource to create such document for public access. Is public spec mandatory for code check-in? We can provide platforms for verification instead.
Nah, not needed. As long as the code paths don't break anything else and as long as we can CC you to fix bugs people report, we're good. :-)
Btw, please do not top-post on a public ML.
Thx.
答复: 答复: [PATCH 1/2] x86/mce: new centaur CPUs support MCE broadcasting
Quoted 21 lines
-----邮件原件-----
发件人: Borislav Petkov [mailto:[email protected]]
发送时间: 2018年4月4日 19:18
收件人: David Wang <[email protected]>
抄送: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Bruce Chang (VAS) <[email protected]>; Cooper Yan(BJ-RD) <[email protected]>; Qiyuan Wang(BJ-RD) <[email protected]>; Benjamin Pan <[email protected]>; Luke Lin <[email protected]>; Tim Guo(BJ-RD) <[email protected]> 主题: Re: 答复: [PATCH 1/2] x86/mce: new centaur CPUs support MCE broadcastingQuoted 5 lines · David Wang
Those are new processors and main usage of CentaurHauls CPUs in recent years is for limited and/or embedded instead of distribution markets. So there is no plan or resource to create such document for public access. Is public spec mandatory for code check-in? We can provide platforms for verification instead.
Quoted 4 lines
Nah, not needed. As long as the code paths don't break anything else and as long as we can CC you to fix bugs people report, we're good. :-)
Btw, please do not top-post on a public ML.
I got it.
Thanks.
---
David
Quoted 8 lines
Thx.
--
Regards/Gruss,
Boris.Good mailing practices for 400: avoid top-posting and trim the reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-edac" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html