* print CPU number when warning of hazards
@ 2004-07-14 21:50 Joshua Aas
2004-07-14 23:29 ` David Mosberger
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Joshua Aas @ 2004-07-14 21:50 UTC (permalink / raw)
To: linux-ia64
Hello,
The following patch would be useful for diagnostics. Please apply.
Signed-off-by: Josh Aas <josha@sgi.com>
-----------------------------------
--- a/arch/ia64/kernel/traps.c 2004-06-16 00:20:04.000000000 -0500
+++ b/arch/ia64/kernel/traps.c 2004-07-14 15:39:58.000000000 -0500
@@ -427,9 +427,9 @@ ia64_fault (unsigned long vector, unsign
? " (RSE access)" : " (data access)") : "");
if (code = 8) {
# ifdef CONFIG_IA64_PRINT_HAZARDS
- printk("%s[%d]: possible hazard @ ip=%016lx (pr = %016lx)\n",
+ printk("%s[%d]: possible hazard @ ip=%016lx (pr = %016lx) on CPU %d\n",
current->comm, current->pid, regs->cr_iip + ia64_psr(regs)->ri,
- regs->pr);
+ regs->pr, smp_processor_id());
# endif
return;
}
-----------------------------------
--
Josh Aas
Silicon Graphics, Inc. (SGI)
Linux System Software
651-683-3068
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: print CPU number when warning of hazards
2004-07-14 21:50 print CPU number when warning of hazards Joshua Aas
@ 2004-07-14 23:29 ` David Mosberger
2004-07-15 14:57 ` Joshua Aas
2004-07-15 17:46 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2004-07-14 23:29 UTC (permalink / raw)
To: linux-ia64
>>>>> On Wed, 14 Jul 2004 16:50:32 -0500, Joshua Aas <josha@sgi.com> said:
Joshua> Hello, The following patch would be useful for diagnostics.
Why does the CPU help there? Depenency-violations are specific to
code, so why would the CPU matter? Apart from that, have you actually
ever seen that message show up?
--david
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: print CPU number when warning of hazards
2004-07-14 21:50 print CPU number when warning of hazards Joshua Aas
2004-07-14 23:29 ` David Mosberger
@ 2004-07-15 14:57 ` Joshua Aas
2004-07-15 17:46 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: Joshua Aas @ 2004-07-15 14:57 UTC (permalink / raw)
To: linux-ia64
David Mosberger wrote:
>>>>>>On Wed, 14 Jul 2004 16:50:32 -0500, Joshua Aas <josha@sgi.com> said:
>
>
> Joshua> Hello, The following patch would be useful for diagnostics.
>
> Why does the CPU help there? Depenency-violations are specific to
> code, so why would the CPU matter?
The idea was that it would be useful for hardware debugging - if bad hardware tripped that code then one could see what CPU it was on. Adding the CPU number there would be trivial because a printk already exists. However, after further discussions I've decided to pursue another solution which I will probably post about later. Adding the CPU number where my patch did raises the argument of "then why not do that everywhere error conditions that could be hardward related come up?", which I don't want to do.
So, it wouldn't hurt to add the CPU number there but on my end I'm not all that interested in it any more.
> Apart from that, have you actually
> ever seen that message show up?
No - I was was operating on the assumption that our hardware diagnostics people do see it.
--
Josh Aas
Silicon Graphics, Inc. (SGI)
Linux System Software
651-683-3068
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: print CPU number when warning of hazards
2004-07-14 21:50 print CPU number when warning of hazards Joshua Aas
2004-07-14 23:29 ` David Mosberger
2004-07-15 14:57 ` Joshua Aas
@ 2004-07-15 17:46 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2004-07-15 17:46 UTC (permalink / raw)
To: linux-ia64
>>>>> On Thu, 15 Jul 2004 09:57:27 -0500, Joshua Aas <josha@sgi.com> said:
Joshua> The idea was that it would be useful for hardware debugging
Joshua> - if bad hardware tripped that code then one could see what
Joshua> CPU it was on. Adding the CPU number there would be trivial
Joshua> because a printk already exists. However, after further
Joshua> discussions I've decided to pursue another solution which I
Joshua> will probably post about later. Adding the CPU number where
Joshua> my patch did raises the argument of "then why not do that
Joshua> everywhere error conditions that could be hardward related
Joshua> come up?"
Exactly.
I'll leave the code as it is, then.
Thanks,
--david
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-07-15 17:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14 21:50 print CPU number when warning of hazards Joshua Aas
2004-07-14 23:29 ` David Mosberger
2004-07-15 14:57 ` Joshua Aas
2004-07-15 17:46 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox