All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Leber <christian@leber.de>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: Re: [BUG] 2.6.18-rc6: hda is allready "IN USE" when booting / pi futex
Date: Wed, 13 Sep 2006 03:24:47 +0200	[thread overview]
Message-ID: <20060913012447.GA29749@core> (raw)
In-Reply-To: <20060912215510.GA14878@elte.hu>

On Tue, Sep 12, 2006 at 11:55:10PM +0200, Ingo Molnar wrote:

> ok, great. Could you try the patch below ontop of 2.6.18-rc6, does it 
> 'fix' your bootup too?

Yes, it does.

> so i'm afraid you managed to trigger a race in the IDE driver that used 
> to be dormant until now... To debug such races the best method is to 
> create a 'trace' by printk-ing key points of the port/disk detection 
> mechanism. [another option would be to use the latency tracer to do a 
> _really_ finegrained trace of the incident - assuming that the bug does 
> not go away due to tracing overhead.]

I'm looking into it, but i doubt i can find the "race"

The output, when it works it looks like this:

[   11.275757] ICH2M: IDE controller at PCI slot 0000:00:1f.1
[   11.275854] ICH2M: chipset revision 3
[   11.275917] ICH2M: not 100% native mode: will probe irqs later
[   11.275999]     ide0: BM-DMA at 0xbfa0-0xbfa7, BIOS settings: hda:DMA, hdb:DMA
[   11.276170]     ide1: BM-DMA at 0xbfa8-0xbfaf, BIOS settings: hdc:pio, hdd:pio
[   11.276337] Probing IDE interface ide0...
[    2.804000] Time: acpi_pm clocksource has been installed.
[    3.056000] hda: IC25N020ATMR04-0, ATA DISK drive
[    3.504000] hdb: HL-DT-STDVD-ROM GDR8081N, ATAPI CD/DVD-ROM drive
[    3.560000] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[    3.560000] Probing IDE interface ide1...
[    4.136000] hda: max request size: 512KiB
[    4.156000] hda: 39070080 sectors (20003 MB) w/1740KiB Cache, CHS=16383/255/63, UDMA(100)
[    4.156000] hda: cache flushes supported
[    4.156000]  hda: hda1 hda2 hda3
[    4.216000] hdb: ATAPI 24X DVD-ROM drive, 512kB Cache, DMA
[    4.216000] Uniform CD-ROM driver Revision: 3.20
[    4.816000] usbcore: registered new driver usbfs
[    4.820000] usbcore: registered new driver hub
[    4.820000] USB Universal Host Controller Interface driver v3.0


When it fails the order is different:
(but not allways the same, of course)

hda: IC25N020ATMR04-0, ATA DISK drive              <- the disk is found before the controller?!?
ICH2M: IDE controller at PCI slot 0000:00:1f.1
ICH2M: chipset revision 3
ICH2M: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xbfa0-0xbfa7, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xbfa8-0xbfaf, BIOS settings: hdc:pio, hdd:pio
ide0: I/O resource 0x3F6-0x3F6 not free
hda: ERROR, PORTS ALREADY IN USE
ide0 ad 0x1f0-0x1f7,0x3f6 on irq 14
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v3.0
hdb: HL-DT-STDVD-ROM GDR8081N, ATAPI CD/DVD-ROM drive
ide1: I/O resource 0x376-0x376 not free
ide1: ports already in use, skipping probe
register_blkdev: cannot get major 3 for ide0


Christian Leber

-- 
  "Omnis enim res, quae dando non deficit, dum habetur et non datur,
   nondum habetur, quomodo habenda est."       (Aurelius Augustinus)

      reply	other threads:[~2006-09-13  1:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-07 13:33 [BUG] 2.6.18-rc6: hda is allready "IN USE" when booting (non-deterministic) Christian Leber
2006-09-12 15:39 ` [BUG] 2.6.18-rc6: hda is allready "IN USE" when booting / pi futex Christian Leber
2006-09-12 17:34   ` Ingo Molnar
2006-09-12 21:48     ` Christian Leber
2006-09-12 21:55       ` Ingo Molnar
2006-09-13  1:24         ` Christian Leber [this message]

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=20060913012447.GA29749@core \
    --to=christian@leber.de \
    --cc=akpm@osdl.org \
    --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 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.