* [PATCH 0/3] Machine Check exception improvements @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras Hi, This patchset adds some additional information to the machine check exception handler. It prints the wired and pagegrain registers as well as the HTW registers if the core supports it. It also replaces all the printk statements with pr_info(). Markos Chandras (3): MIPS: kernel: traps: Replace printk with pr_info for MC exceptions MIPS: kernel: traps: Dump the HTW registers on a MC exception MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC arch/mips/kernel/traps.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) -- 2.1.3 ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 0/3] Machine Check exception improvements @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras Hi, This patchset adds some additional information to the machine check exception handler. It prints the wired and pagegrain registers as well as the HTW registers if the core supports it. It also replaces all the printk statements with pr_info(). Markos Chandras (3): MIPS: kernel: traps: Replace printk with pr_info for MC exceptions MIPS: kernel: traps: Dump the HTW registers on a MC exception MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC arch/mips/kernel/traps.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) -- 2.1.3 ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras printk should not be used without a KERN_ facility level Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- arch/mips/kernel/traps.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 22b19c275044..51fa5c3aa4fe 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs) show_regs(regs); if (multi_match) { - printk("Index : %0x\n", read_c0_index()); - printk("Pagemask: %0x\n", read_c0_pagemask()); - printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); - printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); - printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); - printk("\n"); + pr_info("Index : %0x\n", read_c0_index()); + pr_info("Pagemask: %0x\n", read_c0_pagemask()); + pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); + pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); + pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_info("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras printk should not be used without a KERN_ facility level Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- arch/mips/kernel/traps.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 22b19c275044..51fa5c3aa4fe 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs) show_regs(regs); if (multi_match) { - printk("Index : %0x\n", read_c0_index()); - printk("Pagemask: %0x\n", read_c0_pagemask()); - printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); - printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); - printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); - printk("\n"); + pr_info("Index : %0x\n", read_c0_index()); + pr_info("Pagemask: %0x\n", read_c0_pagemask()); + pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); + pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); + pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_info("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions 2014-11-10 16:20 ` Markos Chandras (?) @ 2014-11-10 16:42 ` David Daney 2014-11-11 9:42 ` Markos Chandras -1 siblings, 1 reply; 17+ messages in thread From: David Daney @ 2014-11-10 16:42 UTC (permalink / raw) To: Markos Chandras; +Cc: linux-mips On 11/10/2014 08:20 AM, Markos Chandras wrote: > printk should not be used without a KERN_ facility level > > Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> > --- > arch/mips/kernel/traps.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c > index 22b19c275044..51fa5c3aa4fe 100644 > --- a/arch/mips/kernel/traps.c > +++ b/arch/mips/kernel/traps.c > @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs) > show_regs(regs); > > if (multi_match) { > - printk("Index : %0x\n", read_c0_index()); > - printk("Pagemask: %0x\n", read_c0_pagemask()); > - printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); > - printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); > - printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); > - printk("\n"); > + pr_info("Index : %0x\n", read_c0_index()); > + pr_info("Pagemask: %0x\n", read_c0_pagemask()); > + pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); > + pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); > + pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); > + pr_info("\n"); MachineCheck is a serious problem, If we change this at all, I would suggest pr_err() instead. David Daney > dump_tlb_all(); > } > > ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions @ 2014-11-11 9:42 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-11 9:42 UTC (permalink / raw) To: David Daney; +Cc: linux-mips On 11/10/2014 04:42 PM, David Daney wrote: > On 11/10/2014 08:20 AM, Markos Chandras wrote: >> printk should not be used without a KERN_ facility level >> >> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> >> --- >> arch/mips/kernel/traps.c | 12 ++++++------ >> 1 file changed, 6 insertions(+), 6 deletions(-) >> >> diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c >> index 22b19c275044..51fa5c3aa4fe 100644 >> --- a/arch/mips/kernel/traps.c >> +++ b/arch/mips/kernel/traps.c >> @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs) >> show_regs(regs); >> >> if (multi_match) { >> - printk("Index : %0x\n", read_c0_index()); >> - printk("Pagemask: %0x\n", read_c0_pagemask()); >> - printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); >> - printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); >> - printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); >> - printk("\n"); >> + pr_info("Index : %0x\n", read_c0_index()); >> + pr_info("Pagemask: %0x\n", read_c0_pagemask()); >> + pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); >> + pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); >> + pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); >> + pr_info("\n"); > > MachineCheck is a serious problem, If we change this at all, I would > suggest pr_err() instead. > > David Daney Hi, Ok I will change all of them to pr_err(). -- markos ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions @ 2014-11-11 9:42 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-11 9:42 UTC (permalink / raw) To: David Daney; +Cc: linux-mips On 11/10/2014 04:42 PM, David Daney wrote: > On 11/10/2014 08:20 AM, Markos Chandras wrote: >> printk should not be used without a KERN_ facility level >> >> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> >> --- >> arch/mips/kernel/traps.c | 12 ++++++------ >> 1 file changed, 6 insertions(+), 6 deletions(-) >> >> diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c >> index 22b19c275044..51fa5c3aa4fe 100644 >> --- a/arch/mips/kernel/traps.c >> +++ b/arch/mips/kernel/traps.c >> @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs) >> show_regs(regs); >> >> if (multi_match) { >> - printk("Index : %0x\n", read_c0_index()); >> - printk("Pagemask: %0x\n", read_c0_pagemask()); >> - printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); >> - printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); >> - printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); >> - printk("\n"); >> + pr_info("Index : %0x\n", read_c0_index()); >> + pr_info("Pagemask: %0x\n", read_c0_pagemask()); >> + pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); >> + pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); >> + pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); >> + pr_info("\n"); > > MachineCheck is a serious problem, If we change this at all, I would > suggest pr_err() instead. > > David Daney Hi, Ok I will change all of them to pr_err(). -- markos ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v2 1/3] MIPS: kernel: traps: Replace printk with pr_err for MC exceptions @ 2014-11-12 9:22 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-12 9:22 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras printk should not be used without a KERN_ facility level Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- Changes since v1: - Replace pr_info() with pr_err() --- arch/mips/kernel/traps.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 22b19c275044..88075fecf306 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs) show_regs(regs); if (multi_match) { - printk("Index : %0x\n", read_c0_index()); - printk("Pagemask: %0x\n", read_c0_pagemask()); - printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); - printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); - printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); - printk("\n"); + pr_err("Index : %0x\n", read_c0_index()); + pr_err("Pagemask: %0x\n", read_c0_pagemask()); + pr_err("EntryHi : %0*lx\n", field, read_c0_entryhi()); + pr_err("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); + pr_err("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_err("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 1/3] MIPS: kernel: traps: Replace printk with pr_err for MC exceptions @ 2014-11-12 9:22 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-12 9:22 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras printk should not be used without a KERN_ facility level Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- Changes since v1: - Replace pr_info() with pr_err() --- arch/mips/kernel/traps.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 22b19c275044..88075fecf306 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1380,12 +1380,12 @@ asmlinkage void do_mcheck(struct pt_regs *regs) show_regs(regs); if (multi_match) { - printk("Index : %0x\n", read_c0_index()); - printk("Pagemask: %0x\n", read_c0_pagemask()); - printk("EntryHi : %0*lx\n", field, read_c0_entryhi()); - printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); - printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); - printk("\n"); + pr_err("Index : %0x\n", read_c0_index()); + pr_err("Pagemask: %0x\n", read_c0_pagemask()); + pr_err("EntryHi : %0*lx\n", field, read_c0_entryhi()); + pr_err("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); + pr_err("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_err("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/3] MIPS: kernel: traps: Dump the HTW registers on a MC exception @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras The HTW registers can be useful to debug a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- arch/mips/kernel/traps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 51fa5c3aa4fe..32feb481a67a 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,11 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + if (cpu_has_htw) { + pr_info("PWField : %0*lx\n", field, read_c0_pwfield()); + pr_info("PWSize : %0*lx\n", field, read_c0_pwsize()); + pr_info("PWCtl : %0x\n", read_c0_pwctl()); + } pr_info("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/3] MIPS: kernel: traps: Dump the HTW registers on a MC exception @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras The HTW registers can be useful to debug a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- arch/mips/kernel/traps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 51fa5c3aa4fe..32feb481a67a 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,11 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + if (cpu_has_htw) { + pr_info("PWField : %0*lx\n", field, read_c0_pwfield()); + pr_info("PWSize : %0*lx\n", field, read_c0_pwsize()); + pr_info("PWCtl : %0x\n", read_c0_pwctl()); + } pr_info("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 2/3] MIPS: kernel: traps: Dump the HTW registers on a MC exception @ 2014-11-12 9:22 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-12 9:22 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras The HTW registers can be useful to debug a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- Changes since v1: - Replace pr_info() with pr_err() --- arch/mips/kernel/traps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 88075fecf306..bced37c0a188 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,11 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_err("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_err("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_err("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + if (cpu_has_htw) { + pr_err("PWField : %0*lx\n", field, read_c0_pwfield()); + pr_err("PWSize : %0*lx\n", field, read_c0_pwsize()); + pr_err("PWCtl : %0x\n", read_c0_pwctl()); + } pr_err("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 2/3] MIPS: kernel: traps: Dump the HTW registers on a MC exception @ 2014-11-12 9:22 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-12 9:22 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras The HTW registers can be useful to debug a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- Changes since v1: - Replace pr_info() with pr_err() --- arch/mips/kernel/traps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 88075fecf306..bced37c0a188 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,11 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_err("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_err("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_err("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + if (cpu_has_htw) { + pr_err("PWField : %0*lx\n", field, read_c0_pwfield()); + pr_err("PWSize : %0*lx\n", field, read_c0_pwsize()); + pr_err("PWCtl : %0x\n", read_c0_pwctl()); + } pr_err("\n"); dump_tlb_all(); } -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 3/3] MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras They can be useful to determine how the MMU is configured on a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- arch/mips/kernel/traps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 32feb481a67a..a8f7cee53aae 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,8 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_info("Wired : %0x\n", read_c0_wired()); + pr_info("Pagegrain: %0x\n", read_c0_pagegrain()); if (cpu_has_htw) { pr_info("PWField : %0*lx\n", field, read_c0_pwfield()); pr_info("PWSize : %0*lx\n", field, read_c0_pwsize()); -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 3/3] MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC @ 2014-11-10 16:20 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-10 16:20 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras They can be useful to determine how the MMU is configured on a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- arch/mips/kernel/traps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 32feb481a67a..a8f7cee53aae 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,8 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_info("Wired : %0x\n", read_c0_wired()); + pr_info("Pagegrain: %0x\n", read_c0_pagegrain()); if (cpu_has_htw) { pr_info("PWField : %0*lx\n", field, read_c0_pwfield()); pr_info("PWSize : %0*lx\n", field, read_c0_pwsize()); -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 3/3] MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC @ 2014-11-12 9:23 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-12 9:23 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras They can be useful to determine how the MMU is configured on a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- Changes since v1: - Replace pr_info() with pr_err() --- arch/mips/kernel/traps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index bced37c0a188..5b1601819592 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,8 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_err("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_err("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_err("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_err("Wired : %0x\n", read_c0_wired()); + pr_err("Pagegrain: %0x\n", read_c0_pagegrain()); if (cpu_has_htw) { pr_err("PWField : %0*lx\n", field, read_c0_pwfield()); pr_err("PWSize : %0*lx\n", field, read_c0_pwsize()); -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 3/3] MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC @ 2014-11-12 9:23 ` Markos Chandras 0 siblings, 0 replies; 17+ messages in thread From: Markos Chandras @ 2014-11-12 9:23 UTC (permalink / raw) To: linux-mips; +Cc: Markos Chandras They can be useful to determine how the MMU is configured on a MC exception. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> --- Changes since v1: - Replace pr_info() with pr_err() --- arch/mips/kernel/traps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index bced37c0a188..5b1601819592 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,8 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_err("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_err("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_err("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + pr_err("Wired : %0x\n", read_c0_wired()); + pr_err("Pagegrain: %0x\n", read_c0_pagegrain()); if (cpu_has_htw) { pr_err("PWField : %0*lx\n", field, read_c0_pwfield()); pr_err("PWSize : %0*lx\n", field, read_c0_pwsize()); -- 2.1.3 ^ permalink raw reply related [flat|nested] 17+ messages in thread
end of thread, other threads:[~2014-11-12 9:23 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-11-10 16:20 [PATCH 0/3] Machine Check exception improvements Markos Chandras 2014-11-10 16:20 ` Markos Chandras 2014-11-10 16:20 ` [PATCH 1/3] MIPS: kernel: traps: Replace printk with pr_info for MC exceptions Markos Chandras 2014-11-10 16:20 ` Markos Chandras 2014-11-10 16:42 ` David Daney 2014-11-11 9:42 ` Markos Chandras 2014-11-11 9:42 ` Markos Chandras 2014-11-12 9:22 ` [PATCH v2 1/3] MIPS: kernel: traps: Replace printk with pr_err " Markos Chandras 2014-11-12 9:22 ` Markos Chandras 2014-11-10 16:20 ` [PATCH 2/3] MIPS: kernel: traps: Dump the HTW registers on a MC exception Markos Chandras 2014-11-10 16:20 ` Markos Chandras 2014-11-12 9:22 ` [PATCH v2 " Markos Chandras 2014-11-12 9:22 ` Markos Chandras 2014-11-10 16:20 ` [PATCH 3/3] MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC Markos Chandras 2014-11-10 16:20 ` Markos Chandras 2014-11-12 9:23 ` [PATCH v2 " Markos Chandras 2014-11-12 9:23 ` Markos Chandras
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.