Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1309731
| From | Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/5] x86/mcheck/AMD: Do not perform shared bank check for future processors |
| Date | 2016-01-14 23:40 +0100 |
| Message-ID | <qQYIH-5f6-27@gated-at.bofh.it> (permalink) |
| References | <qQY61-4Io-53@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Fam17h and above should not require a check to see if a bank
is shared or not. For shared banks, there will always be only
one core that has visibility over the MSRs and only that
particular core will be allowed to write to the MSRs
Fixing the code to return early if we detect Fam17h or above.
No change in functionality for earlier processors
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
---
arch/x86/kernel/cpu/mcheck/mce_amd.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd.c b/arch/x86/kernel/cpu/mcheck/mce_amd.c
index e99b150..da570a8 100644
--- a/arch/x86/kernel/cpu/mcheck/mce_amd.c
+++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c
@@ -84,6 +84,14 @@ struct thresh_restart {
static inline bool is_shared_bank(int bank)
{
+ /*
+ * For Fam17h and above, we shouldn't require this check.
+ * Only the core that can see valid values on the MSRs has
+ * control over the respective MCA bank
+ */
+ if (mce_flags.smca)
+ return 0;
+
/* Bank 4 is for northbridge reporting and is thus shared */
return (bank == 4);
}
--
2.7.0
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/5] Updates to AMD MCE driver per Scalable MCA spec Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> - 2016-01-14 23:40 +0100
Re: [PATCH 3/5] x86/mcheck/AMD: Reduce number of blocks scanned per bank Borislav Petkov <bp@alien8.de> - 2016-01-14 23:40 +0100
Re: [PATCH 3/5] x86/mcheck/AMD: Reduce number of blocks scanned per bank Borislav Petkov <bp@alien8.de> - 2016-01-15 00:00 +0100
Re: [PATCH 3/5] x86/mcheck/AMD: Reduce number of blocks scanned per bank Borislav Petkov <bp@alien8.de> - 2016-01-15 12:20 +0100
[PATCH 1/5] x86, mce: Fix order of AMD MCE init function call Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> - 2016-01-14 23:40 +0100
[PATCH 3/5] x86/mcheck/AMD: Reduce number of blocks scanned per bank Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> - 2016-01-14 23:40 +0100
[PATCH 2/5] x86/mcheck/AMD: Do not perform shared bank check for future processors Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> - 2016-01-14 23:40 +0100
csiph-web