Skip to content

Commit

Permalink
x86/RAS: Add TSC timestamp to the injected MCE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Thomas Gleixner committed Nov 8, 2016
1 parent f5e886e commit 8c203db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/ras/mce_amd_inj.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8c203db

Please sign in to comment.