Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-21 Thread Mike Mason
Here's a repost of the patch with the suggested changes. This patch changes the EEH_MAX_FAILS action from panic to printing an error message. Panicking under under this condition is too harsh. Although performance will be affected and the device may not recover, the system is still running,

Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-21 Thread Sean MacLennan
On Mon, 21 Jul 2008 14:09:46 +1000 "Stephen Rothwell" <[EMAIL PROTECTED]> wrote: > I think you must be thinking of mdelay(). Correct you are! I didn't even know there was an msleep() so I just mapped it to mdelay() ;) I'll have to look at msleep() though, there are places we could use it. Cheer

Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-20 Thread Stephen Rothwell
Hi Sean, On Sun, 20 Jul 2008 23:47:56 -0400 Sean MacLennan <[EMAIL PROTECTED]> wrote: > > I guess I am too x86 centric. On the x86 an msleep does not give up the > CPU. It does a busy wait. I think you must be thinking of mdelay(). -- Cheers, Stephen Rothwell[EMAIL PROTECTED

Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-20 Thread Sean MacLennan
On Sun, 20 Jul 2008 15:17:08 -0500 "Nathan Lynch" <[EMAIL PROTECTED]> wrote: > Sean MacLennan wrote: > > > Why can you not msleep within a spinlock? And when was this change > > brought in? > > Giving up the cpu while holding a spinlock risks locking up the system > in the worst case -- if anothe

Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-20 Thread Linas Vepstas
2008/7/20 Nathan Lynch <[EMAIL PROTECTED]>: > Mike Mason wrote: >> >> This patch changes the EEH_MAX_FAILS action from panic to printing >> an error message. Panicking under under this condition is too >> harsh. >> /* re-read the slot reset state */ >>

Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-20 Thread Nathan Lynch
Mike Mason wrote: > > This patch changes the EEH_MAX_FAILS action from panic to printing > an error message. Panicking under under this condition is too > harsh. Although performance will be affected and the device may not > recover, the system is still running, which at the very least, > should

Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-20 Thread Nathan Lynch
Sean MacLennan wrote: > On Sun, 20 Jul 2008 11:28:36 -0700 > "Mike Mason" <[EMAIL PROTECTED]> wrote: > > > This patch changes the EEH_MAX_FAILS action from panic to printing an > > error message. Panicking under under this condition is too harsh. > > Although performance will be affected and the

Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-20 Thread Sean MacLennan
On Sun, 20 Jul 2008 11:28:36 -0700 "Mike Mason" <[EMAIL PROTECTED]> wrote: > This patch changes the EEH_MAX_FAILS action from panic to printing an > error message. Panicking under under this condition is too harsh. > Although performance will be affected and the device may not recover, > the syst

[PATCH] Don't panic when EEH_MAX_FAILS is exceeded

2008-07-20 Thread Mike Mason
This patch changes the EEH_MAX_FAILS action from panic to printing an error message. Panicking under under this condition is too harsh. Although performance will be affected and the device may not recover, the system is still running, which at the very least, should allow for a more graceful