Re: Book-E watchdog driver questions

3 messages, 2 authors, 2008-01-03 · open the first message on its own page

Re: Book-E watchdog driver questions

From: Kumar Gala <hidden>
Date: 2007-09-25 17:42:10

On Sep 25, 2007, at 11:59 AM, Mike Nuss wrote:
Hi,

I have a PPC440EPx and I am testing out the builtin watchdog. I have a
couple of questions:

Is there a reason that booke_wdt.c does not specify a MODULE_LICENSE?
quoted
From the copyright notice at the top it appears to be GPL. As  
written,
it taints the kernel.
Odd, no reason.  I'll submit a patch for that.
Also, if I test out the driver by killing my process that's doing the
pinging, I get a kernel panic:
Its been a while since i've tried this.  I'll try it out and see what  
happens.

- k

Re: Book-E watchdog driver questions

From: Mike Nuss <hidden>
Date: 2007-09-25 18:18:24

quoted
Is there a reason that booke_wdt.c does not specify a MODULE_LICENSE?
quoted
From the copyright notice at the top it appears to be GPL. As
written,
it taints the kernel.
Odd, no reason.  I'll submit a patch for that.
quoted
Also, if I test out the driver by killing my process that's doing the
pinging, I get a kernel panic:
Its been a while since i've tried this.  I'll try it out and see what
happens.
I also found that GETBOOTSTATUS returns 0 after the reboot. Looking at
the source code I found the comment "XXX: something is clearing TSR" -
I take that to mean that the register is being cleared by something
before the module tries to read it? In my case U-Boot may be clearing
that - I can take a look.

Mike

Re: Book-E watchdog driver questions

From: Mike Nuss <hidden>
Date: 2008-01-03 14:46:57

On Sep 25, 2007 1:18 PM, Mike Nuss [off-list ref] wrote:
quoted
quoted
Is there a reason that booke_wdt.c does not specify a MODULE_LICENSE?
quoted
From the copyright notice at the top it appears to be GPL. As
written,
it taints the kernel.
Odd, no reason.  I'll submit a patch for that.
quoted
Also, if I test out the driver by killing my process that's doing the
pinging, I get a kernel panic:
Its been a while since i've tried this.  I'll try it out and see what
happens.
The kernel panic was caused because TCR: WIE was set. This bit should
not be set, because it causes the timer to generate an interrupt that
the kernel does not handle.
I also found that GETBOOTSTATUS returns 0 after the reboot. Looking at
the source code I found the comment "XXX: something is clearing TSR" -
I take that to mean that the register is being cleared by something
before the module tries to read it? In my case U-Boot may be clearing
that - I can take a look.
It turns out that the status bits in TSR are undefined at poweron
reset. Boards require external logic to detect POR - this is described
in AMCC's app note for the WDT. Because of this, U-Boot clears TSR
early on in the standard 4xx firmware (in start.S). To use TSR to
detect a watchdog reset, U-Boot must be modified to check that logic
and only clear the bits at POR. Those bits will be preserved until the
kernel driver looks at them, or until the system is powered off. So
the driver is correct here, but the comment should be updated to
explain why the GETBOOTSTATUS value may not be meaningful - it
requires additional hardware and firmware support.

I can submit a patch for these issues if you like.

Mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help