mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bartlomiej Zolnierkiewicz" <bzolnier@gmail.com>
To: "Andrew Morton" <akpm@osdl.org>
Cc: ce@ruault.com, linux-kernel@vger.kernel.org,
	"Ingo Molnar" <mingo@elte.hu>
Subject: Re: [BUG] kernel 2.6.15.4: soft lockup detected on CPU#0!
Date: Fri, 17 Feb 2006 12:47:02 +0100	[thread overview]
Message-ID: <58cb370e0602170347qeddb390u680895fd2f0aab7d@mail.gmail.com> (raw)
In-Reply-To: <20060216122045.7a664bc6.akpm@osdl.org>

On 2/16/06, Andrew Morton <akpm@osdl.org> wrote:
> Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote:
> >
> > On 2/16/06, Andrew Morton <akpm@osdl.org> wrote:
> > > Charles-Edouard Ruault <ce@ruault.com> wrote:
> > > >
> > > > i was trying to rip a CD when the whole machine started to freeze
> > > >  periodicaly, i then looked at the logs and found the following :
> > > >
> > > >  Feb 12 19:23:39 ruault kernel: hdc: irq timeout: status=0x80 { Busy }
> > > >  Feb 12 19:23:39 ruault kernel: ide: failed opcode was: unknown
> > > >  Feb 12 19:23:39 ruault kernel: hdd: status timeout: status=0x80 { Busy }
> > > >  Feb 12 19:23:39 ruault kernel: ide: failed opcode was: unknown
> > > >  Feb 12 19:23:39 ruault kernel: hdd: drive not ready for command
> > >
> > > No idea what caused that.
> > >
> > > >  Feb 12 19:23:39 ruault kernel: BUG: soft lockup detected on CPU#0!
> > >
> > > The following was merged today.  Hopefully it suppresses this false
> > > positive.
> >
> > Unfortunately it won't.  Charles' problem is different (and the BUG
> > output is different!) - soft lockup got triggered for PIO handling in
> > ide-cd driver.  This patch fixes the problem only for generic ATA PIO
> > routines (disks and [P]IDENTIFY), ATAPI PIO still needs fixing
> > (ide-cd/floppy/tape/scsi drivers).
>
> argh.  We do need to bop that warning on the head - it's consuming people's
> time and causing unneeded concern.

Yes, it is definitely consuming time...
this is 3-rd time we hit false-positive in IDE subsystem.

"soft lockup during probe" problem was fixed by touching
watchdog.  I believe proper fix would require using msleep() instead
of mdelay() and we knew this before soft lockup issue.

So from my IDE work POV it was just wasted time...

"ATA PIO" problem was handled in the same way.
I'm still not 100% sure if it was false positive - it looked like
from the trace but I find it hard to believe that users wouldn't
complain about 10sec stalls [ Soft lockup detector claims to
trigger if after 10sec it hasn't been touched - is it really working
as advertised?  How can we verify this? ].

Again it only wasted time from IDE POV.

And now ATAPI PIO issues requires me to audit all ATAPI
device drivers to quiet soft lockup detector...

> > Andrew, there is no "high level" function for ATAPI PIO as
> > ide_pio_datablock() for ATA PIO so fixing soft lockup false positives
> > would require going through all drivers and adding bunch of
> > touch_softlockup_watchdog() or using sledge-hammer approach
> > and touching watchdog in ide-iops.c:atapi_[input,output]_bytes().
>
> Send fixup patch, please?

Other things have much bigger priority than quieting soft lockup
detector because somebody decided upon driver maintainers that
soft lockup during hardware access is a _major_ problem (-> system
stays locked) and needs to be fixed ASAP (-> it is enabled by default).

This feature could be useful but why driver maintainers are _forced_ to
pay maintenance cost for it?

I can send you another sledge-hammer fix which is quite disgusting as
it touches watchdog on every ATAPI related PIO access (i.e. many times
in ATAPI PIO IRQ handlers, during packet command transfer).

Alternatively I can send you patch making soft lockup detector depend on
"CONFIG_IDE=n".

Bartlomiej

  reply	other threads:[~2006-02-17 11:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-12 18:50 Charles-Edouard Ruault
2006-02-14 11:41 ` Folkert van Heusden
2006-02-14 16:32   ` Lee Revell
2006-02-15 15:07     ` Folkert van Heusden
2006-02-15 18:19       ` Lee Revell
2006-02-16  1:38         ` Alan Cox
2006-02-17 22:56           ` Lee Revell
2006-02-16  2:51 ` Andrew Morton
2006-02-16  9:44   ` Charles-Edouard Ruault
2006-02-16 10:36     ` Folkert van Heusden
2006-02-16 10:46       ` Andrew Morton
2006-02-16 11:18         ` Charles-Edouard Ruault
2006-02-16 12:57     ` Alan Cox
2006-02-16 13:33   ` Bartlomiej Zolnierkiewicz
2006-02-16 20:20     ` Andrew Morton
2006-02-17 11:47       ` Bartlomiej Zolnierkiewicz [this message]
2006-02-17 13:08         ` [patch] timer-irq-driven soft-watchdog, cleanups Ingo Molnar
2006-02-17 14:46           ` Bartlomiej Zolnierkiewicz
2006-02-17 19:52             ` Ingo Molnar
2006-02-17 20:11             ` Ingo Molnar
2006-02-17 22:15               ` Bartlomiej Zolnierkiewicz
2006-03-13 14:48                 ` Charles-Edouard Ruault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58cb370e0602170347qeddb390u680895fd2f0aab7d@mail.gmail.com \
    --to=bzolnier@gmail.com \
    --cc=akpm@osdl.org \
    --cc=ce@ruault.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®