Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1678011
| From | "Ghannam, Yazen" <Yazen.Ghannam@amd.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 |
| Date | 2017-06-29 20:00 +0200 |
| Message-ID | <tXLTs-2de-19@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <tXppW-t5-41@gated-at.bofh.it> <tXpzC-NY-57@gated-at.bofh.it> <tXqlZ-15I-39@gated-at.bofh.it> <tXqm0-15I-63@gated-at.bofh.it> <tXKun-1qg-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> -----Original Message----- > From: themoken@gmail.com [mailto:themoken@gmail.com] On Behalf Of > Jack Miller > Sent: Thursday, June 29, 2017 12:23 PM > To: Ghannam, Yazen <Yazen.Ghannam@amd.com> > Cc: Jack Miller <jack@codezen.org>; Borislav Petkov <bp@suse.de>; linux- > kernel@vger.kernel.org; tglx@linutronix.de; x86@kernel.org > Subject: Re: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != > thread 0 > > On Wed, Jun 28, 2017 at 1:58 PM, Ghannam, Yazen > <Yazen.Ghannam@amd.com> wrote: > >> With my patch applied, I see entries like l3_cache under hardware > >> thread 0's directory (it's shifted to CPU 1, so machinecheck1). > >> Without my patch, only machinecheck0 has anything interesting in it > >> (insn_fetch, l2_cache etc.) because the init failed on CPU 1. > >> > > > > What happens with SMT off? > > I haven't been able to test with SMT off (since it's apparent that 'nosmt' > doesn't really do anything and I don't locally have a firmware option to turn it > off). > > First things first though, like Boris I'd like to know if there's a better way to > detect this master thread, other than by APIC ID. Right now I'm working on a > v2 that will remove the CPU check, let each one perform the rdmsr and only > update empty bank info. I believe this call is being serialized elsewhere (need > to check), but if I could keep this patch to a one-liner by detecting the right > thread, I'd like to. > There is a master thread per Die, so a multi-Die system will have multiple master threads. In which case, we still need to decide which master thread will populate the array. I have a solution that doesn't rely on using a specific thread. I'll send it up shortly. Thanks, Yazen
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 Jack Miller <jack@codezen.org> - 2017-06-28 02:10 +0200
Re: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 Borislav Petkov <bp@suse.de> - 2017-06-28 11:30 +0200
Re: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 Jack Miller <jack@codezen.org> - 2017-06-28 20:00 +0200
RE: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 "Ghannam, Yazen" <Yazen.Ghannam@amd.com> - 2017-06-28 20:10 +0200
Re: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 Jack Miller <jack@codezen.org> - 2017-06-28 21:00 +0200
RE: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 "Ghannam, Yazen" <Yazen.Ghannam@amd.com> - 2017-06-28 21:00 +0200
Re: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 Jack Miller <jack@codezen.org> - 2017-06-29 18:30 +0200
RE: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 "Ghannam, Yazen" <Yazen.Ghannam@amd.com> - 2017-06-29 20:00 +0200
Re: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 Borislav Petkov <bp@suse.de> - 2017-06-28 20:20 +0200
RE: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 "Ghannam, Yazen" <Yazen.Ghannam@amd.com> - 2017-06-28 21:00 +0200
Re: [PATCH] x86/mce/AMD: Fix partial SMCA bank init when CPU 0 != thread 0 Borislav Petkov <bp@suse.de> - 2017-06-28 21:10 +0200
Re: [PATCH] x86/mce/AMD: Allow any CPU to initialize smca_banks array Jack Miller <jack@codezen.org> - 2017-06-30 18:00 +0200
csiph-web