lkml.org 
[lkml]   [2006]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [BUG] 2.6.18-rc6: hda is allready "IN USE" when booting / pi futex
    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)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-09-13 03:27    [W:2.403 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site