Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144479
b: refs/heads/master
c: 5679af4
h: refs/heads/master
i:
  144477: 54f319c
  144475: 57034ea
  144471: cc1f7a4
  144463: 51d6644
  144447: 86a010c
v: v3
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed Apr 22, 2009
1 parent 392a1b7 commit 0d76fdf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6298c512bc1007c3ff5c9ce20e6996781651cc45
refs/heads/master: 5679af4c1625a1534a4321e1ecc3c48a1cf65eb8
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/mce.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ DECLARE_PER_CPU(mce_banks_t, mce_poll_banks);
enum mcp_flags {
MCP_TIMESTAMP = (1 << 0), /* log time stamp */
MCP_UC = (1 << 1), /* log uncorrected errors */
MCP_DONTLOG = (1 << 2), /* only clear, don't log */
};
extern void machine_check_poll(enum mcp_flags flags, mce_banks_t *b);

Expand Down
9 changes: 5 additions & 4 deletions trunk/arch/x86/kernel/cpu/mcheck/mce_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,10 @@ void machine_check_poll(enum mcp_flags flags, mce_banks_t *b)
* Don't get the IP here because it's unlikely to
* have anything to do with the actual error location.
*/

mce_log(&m);
add_taint(TAINT_MACHINE_CHECK);
if (!(flags & MCP_DONTLOG)) {
mce_log(&m);
add_taint(TAINT_MACHINE_CHECK);
}

/*
* Clear state for this bank.
Expand Down Expand Up @@ -585,7 +586,7 @@ static void mce_init(void *dummy)
* Log the machine checks left over from the previous reset.
*/
bitmap_fill(all_banks, MAX_NR_BANKS);
machine_check_poll(MCP_UC, &all_banks);
machine_check_poll(MCP_UC|(!mce_bootlog ? MCP_DONTLOG : 0), &all_banks);

set_in_cr4(X86_CR4_MCE);

Expand Down

0 comments on commit 0d76fdf

Please sign in to comment.