Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1517329
| From | tip-bot for Borislav Petkov <tipbot@zytor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [tip:ras/core] x86/RAS: Add TSC timestamp to the injected MCE |
| Date | 2016-11-08 17:20 +0100 |
| Message-ID | <sBhhT-3dr-1@gated-at.bofh.it> (permalink) |
| References | <syGcN-9Z-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Commit-ID: 8c203dbb78ca7a9aed4e2570c866b0f43c752e41 Gitweb: http://git.kernel.org/tip/8c203dbb78ca7a9aed4e2570c866b0f43c752e41 Author: Borislav Petkov <bp@suse.de> AuthorDate: Tue, 1 Nov 2016 13:04:41 +0100 Committer: Thomas Gleixner <tglx@linutronix.de> CommitDate: Tue, 8 Nov 2016 17:10:13 +0100 x86/RAS: Add TSC timestamp to the injected MCE The MCE injection code does not provide the time stamp information for the injected MCE. Add it. Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/20161101120911.13163-3-bp@alien8.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- arch/x86/ras/mce_amd_inj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/ras/mce_amd_inj.c b/arch/x86/ras/mce_amd_inj.c index 1ac7647..8730c28 100644 --- a/arch/x86/ras/mce_amd_inj.c +++ b/arch/x86/ras/mce_amd_inj.c @@ -275,6 +275,8 @@ static void do_inject(void) unsigned int cpu = i_mce.extcpu; u8 b = i_mce.bank; + rdtscll(i_mce.tsc); + if (i_mce.misc) i_mce.status |= MCI_STATUS_MISCV;
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC PATCH 2/3] x86/RAS: Add TSC to the injected MCE Borislav Petkov <bp@alien8.de> - 2016-11-01 13:20 +0100 [tip:ras/core] x86/RAS: Add TSC timestamp to the injected MCE tip-bot for Borislav Petkov <tipbot@zytor.com> - 2016-11-08 17:20 +0100
csiph-web