linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with IDE driver not claiming the disk
@ 2005-12-05 23:56 Scott James Remnant
  2005-12-06  0:34 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 5+ messages in thread
From: Scott James Remnant @ 2005-12-05 23:56 UTC (permalink / raw)
  To: linux-ide; +Cc: linux-hotplug-devel

[-- Attachment #1: Type: text/plain, Size: 2318 bytes --]

Hi there,

We've been having some IDE problems at Ubuntu Towers and can't seem to
figure out what's up, and I was hoping you guys might instantly spot
what we're doing wrong ...

In order to get the root filesystem mounted (we're in initramfs at this
point), we do the following steps:

1) Run udevd.

   This has rules configured to load the ide-cd, ide-disk, ide-floppy or
   ide-tape modules when a device matching SUBSYSYTEM=="ide" is added.
   We decide which module to load by looking at /proc/ide/ide*/*/media
   (after waiting for that to turn up)

   This also has the standard rules to modprobe $MODALIAS, should that
   be set.

2) Look in /sys/bus/pci/devices for those with a class of 0x01* (storage
   devices), and write to the uevent file of each.


This results in ide-core being loaded, along with the appropriate driver
for the IDE controller and the "generic" module.  On my laptop (an HP
nc4010) I get the alim15x3 driver, on a colleague's (Acer 1520 AMD64) he
gets the via82cxxx driver.

At this point, there is nothing in /proc/ide other than an empty
"drivers" file, and nothing in /sys/bus/ide/devices -- though this
directory does now exist.

In particular there are also no events for any devices on the bus...


In order to get those events, and find out what's on the bus, we
explicitly load the "ide-generic" driver.  This spawns a whole number of
events, creating a whole array of devices -- /dev/hda* and friends.

The ide-disk module is loaded as a result of these events.


On my laptop with the alim15x3 driver, the disks appear to be bound to
this driver; in particular the following is true:

	# readlink /sys/bus/ide/devices/0.0
	../../../devices/pci0000:00/0000:00:10.0/ide0/0.0

	# readlink /sys/devices/pci0000:00/0000:00:10.0/driver
	../../../bus/pci/drivers/ALI15x3_IDE

However on the via82cxx laptop we see:

	# readlink /sys/bus/ide/devices/0.0
	../../../devices/pci0000:00/0000:00:11.1/ide0/0.0

	# readlink /sys/devices/pci0000:00/0000:00:11.1/driver
	../../../bus/pci/drivers/PCI_IDE

It looks like the device is being claimed by the ide-generic driver, and
not the VIA one.

Do you concur?  What are we doing wrong, or what is the driver doing
wrong?

Scott
-- 
Scott James Remnant
scott@ubuntu.com

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with IDE driver not claiming the disk
  2005-12-05 23:56 Problem with IDE driver not claiming the disk Scott James Remnant
@ 2005-12-06  0:34 ` Bartlomiej Zolnierkiewicz
  2005-12-06  1:36   ` Scott James Remnant
  0 siblings, 1 reply; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2005-12-06  0:34 UTC (permalink / raw)
  To: Scott James Remnant; +Cc: linux-ide, linux-hotplug-devel

On 12/6/05, Scott James Remnant <scott@ubuntu.com> wrote:
> Hi there,
>
> We've been having some IDE problems at Ubuntu Towers and can't seem to
> figure out what's up, and I was hoping you guys might instantly spot
> what we're doing wrong ...
>
> In order to get the root filesystem mounted (we're in initramfs at this
> point), we do the following steps:
>
> 1) Run udevd.
>
>    This has rules configured to load the ide-cd, ide-disk, ide-floppy or
>    ide-tape modules when a device matching SUBSYSYTEM="ide" is added.
>    We decide which module to load by looking at /proc/ide/ide*/*/media
>    (after waiting for that to turn up)
>
>    This also has the standard rules to modprobe $MODALIAS, should that
>    be set.
>
> 2) Look in /sys/bus/pci/devices for those with a class of 0x01* (storage
>    devices), and write to the uevent file of each.
>
>
> This results in ide-core being loaded, along with the appropriate driver
> for the IDE controller and the "generic" module.  On my laptop (an HP
> nc4010) I get the alim15x3 driver, on a colleague's (Acer 1520 AMD64) he
> gets the via82cxxx driver.
>
> At this point, there is nothing in /proc/ide other than an empty
> "drivers" file, and nothing in /sys/bus/ide/devices -- though this
> directory does now exist.
>
> In particular there are also no events for any devices on the bus...
>
>
> In order to get those events, and find out what's on the bus, we
> explicitly load the "ide-generic" driver.  This spawns a whole number of
> events, creating a whole array of devices -- /dev/hda* and friends.

This sounds very, very wrong.  Devices should be probed and
registered by alim15x3/via82cxxx and not ide-generic driver.

> The ide-disk module is loaded as a result of these events.
>
>
> On my laptop with the alim15x3 driver, the disks appear to be bound to
> this driver; in particular the following is true:
>
>         # readlink /sys/bus/ide/devices/0.0
>         ../../../devices/pci0000:00/0000:00:10.0/ide0/0.0
>
>         # readlink /sys/devices/pci0000:00/0000:00:10.0/driver
>         ../../../bus/pci/drivers/ALI15x3_IDE
>
> However on the via82cxx laptop we see:
>
>         # readlink /sys/bus/ide/devices/0.0
>         ../../../devices/pci0000:00/0000:00:11.1/ide0/0.0
>
>         # readlink /sys/devices/pci0000:00/0000:00:11.1/driver
>         ../../../bus/pci/drivers/PCI_IDE
>
> It looks like the device is being claimed by the ide-generic driver, and
> not the VIA one.
>
> Do you concur?  What are we doing wrong, or what is the driver doing
> wrong?

We can only guess without dmesg and lspci -vvv.

You didn't even tell your kernel version and whether this
is vanilla kernel or Ubuntu one (do you have any extra
IDE patches?).

Bartlomiej


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with IDE driver not claiming the disk
  2005-12-06  0:34 ` Bartlomiej Zolnierkiewicz
@ 2005-12-06  1:36   ` Scott James Remnant
  2005-12-06  8:23     ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 5+ messages in thread
From: Scott James Remnant @ 2005-12-06  1:36 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, linux-hotplug-devel, Ben Collins


[-- Attachment #1.1: Type: text/plain, Size: 3733 bytes --]

Thanks for replying so quickly,

On Tue, 2005-12-06 at 01:34 +0100, Bartlomiej Zolnierkiewicz wrote:

> On 12/6/05, Scott James Remnant <scott@ubuntu.com> wrote:
> > We've been having some IDE problems at Ubuntu Towers and can't seem to
> > figure out what's up, and I was hoping you guys might instantly spot
> > what we're doing wrong ...
> >
> > In order to get those events, and find out what's on the bus, we
> > explicitly load the "ide-generic" driver.  This spawns a whole number of
> > events, creating a whole array of devices -- /dev/hda* and friends.
> 
> This sounds very, very wrong.  Devices should be probed and
> registered by alim15x3/via82cxxx and not ide-generic driver.
> 
Right, that's not happening for any of the drivers -- so far I haven't
found an IDE driver that, when loaded, probes for devices and registers
them.  They all need ide-generic to be loaded to "kick" them.

> > Do you concur?  What are we doing wrong, or what is the driver doing
> > wrong?
> 
> We can only guess without dmesg and lspci -vvv.
> 
Certainly...

On the alim15x3 machine:

modprobe pci:.... as a result of touching the uevent file for that
device; loads the ide-core, alim15x3 and "generic" modules.  dmesg
output:

	Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
	ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
	ACPI: bus type ide registered

modprobe ide-generic - currently hard-coded into our initramfs script.
dmesg output:

	ALI15X3: IDE controller at PCI slot 0000:00:10.0
	ACPI: PCI Interrupt Link [C0C5] enabled at IRQ 10
	PCI: setting IRQ 10 as level-triggered
	ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [C0C5] -> GSI 10 (level, low) -> IRQ 10
	ALI15X3: chipset revision 196
	ALI15X3: not 100% native mode: will probe irqs later
	    ide0: BM-DMA at 0x3800-0x3807, BIOS settings: hda:DMA, hdb:pio
	ALI15X3: simplex device: DMA forced
	    ide1: BM-DMA at 0x3808-0x380f, BIOS settings: hdc:DMA, hdd:DMA
	Probing IDE interface ide0...
	hda: HTS548040M9AT00, ATA DISK drive
	ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
	Probing IDE interface ide1...
	Probing IDE interface ide1...
	hda: max request size: 128KiB
	hda: 78140160 sectors (40007 MB) w/7877KiB Cache, CHS=16383/255/63, UDMA(100)
	hda: cache flushes supported
	hda: hda1 hda2 < hda5 > hda3

(Full dmesg attached as alim-dmesg)

As you can see, the probing doesn't take place until after ide-generic
is loaded -- I left long gaps between doing each bit so it's reasonably
obvious in the dmesg output.

lspci of that device:

0000:00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4) (prog-if ea)
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (500ns min, 1000ns max)
	Interrupt: pin A routed to IRQ 10
	Region 4: I/O ports at 3800 [size=16]
	Capabilities: <available only to root>

(Full lspci attached as alim-lspci)

> You didn't even tell your kernel version and whether this
> is vanilla kernel or Ubuntu one (do you have any extra
> IDE patches?).
> 
I was first hoping it was a glaringly obvious thing we were doing wrong,
and wouldn't come to comparing kernel code;  the kernel is the current
Ubuntu one, it's based off 2.6.15 -- our patches are all in git:

http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-2.6.git

I'm not best placed to answer the patches that are in the exact version
I used ("our" 2.6.15-6.8), Ben Collins is (Cc'd).

Scott
-- 
Scott James Remnant
scott@ubuntu.com

[-- Attachment #1.2: alim-dmesg --]
[-- Type: text/plain, Size: 15899 bytes --]

 ACPI: Using PIC for interrupt routing
[17179572.720000] ACPI: PCI Root Bridge [C045] (0000:00)
[17179572.720000] PCI: Probing PCI hardware (bus 00)
[17179572.720000] ACPI: Assume root bridge [\_SB_.C045] bus is 0
[17179572.728000] PCI quirk: region 1000-103f claimed by ali7101 ACPI
[17179572.728000] PCI quirk: region 1100-111f claimed by ali7101 SMB
[17179572.728000] Boot video device is 0000:01:05.0
[17179572.728000] ACPI: PCI Interrupt Routing Table [\_SB_.C045._PRT]
[17179572.760000] ACPI: PCI Interrupt Routing Table [\_SB_.C045.C046._PRT]
[17179572.760000] ACPI: Embedded Controller [C0E6] (gpe 24)
[17179572.768000] ACPI: Power Resource [C15B] (on)
[17179572.772000] ACPI: Power Resource [C160] (on)
[17179572.772000] ACPI: Power Resource [C16A] (on)
[17179572.772000] ACPI: Power Resource [C17B] (on)
[17179572.772000] ACPI: PCI Interrupt Link [C0C5] (IRQs 5 *10 11)
[17179572.776000] ACPI: PCI Interrupt Link [C0C6] (IRQs 5 *10 11)
[17179572.776000] ACPI: PCI Interrupt Link [C0C7] (IRQs 5 10 *11)
[17179572.776000] ACPI: PCI Interrupt Link [C0C8] (IRQs 5 10 11) *0, disabled.
[17179572.776000] ACPI: PCI Interrupt Link [C0C9] (IRQs 5 *10 11)
[17179572.776000] ACPI: PCI Interrupt Link [C0CA] (IRQs *5 10 11)
[17179572.776000] ACPI: PCI Interrupt Link [C0CB] (IRQs 5 10 *11)
[17179572.776000] ACPI: PCI Interrupt Link [C0CC] (IRQs 5 10 *11)
[17179572.780000] ACPI: Power Resource [C1E9] (off)
[17179572.780000] ACPI: Power Resource [C1EA] (off)
[17179572.780000] ACPI: Power Resource [C1EB] (off)
[17179572.780000] ACPI: Power Resource [C1EC] (off)
[17179572.780000] Linux Plug and Play Support v0.97 (c) Adam Belay
[17179572.780000] pnp: PnP ACPI init
[17179572.792000] pnp: PnP ACPI: found 15 devices
[17179572.792000] PnPBIOS: Disabled by ACPI PNP
[17179572.792000] PCI: Using ACPI for IRQ routing
[17179572.792000] PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
[17179572.848000] pnp: 00:0c: ioport range 0x1000-0x107f could not be reserved
[17179572.848000] pnp: 00:0c: ioport range 0x1100-0x111f has been reserved
[17179572.848000] PCI: Bridge: 0000:00:01.0
[17179572.848000]   IO window: 2000-2fff
[17179572.848000]   MEM window: 90000000-900fffff
[17179572.848000]   PREFETCH window: 94000000-97ffffff
[17179572.848000] PCI: Bus 2, cardbus bridge: 0000:00:0b.0
[17179572.848000]   IO window: 00001800-000018ff
[17179572.848000]   IO window: 00001c00-00001cff
[17179572.848000]   PREFETCH window: 40000000-41ffffff
[17179572.848000]   MEM window: 42000000-43ffffff
[17179572.848000] PCI: Bus 6, cardbus bridge: 0000:00:0b.1
[17179572.848000]   IO window: 00003c00-00003cff
[17179572.848000]   IO window: 00004000-000040ff
[17179572.848000]   PREFETCH window: 44000000-45ffffff
[17179572.848000]   MEM window: 46000000-47ffffff
[17179572.848000] ACPI: PCI Interrupt Link [C0C7] enabled at IRQ 11
[17179572.848000] PCI: setting IRQ 11 as level-triggered
[17179572.848000] ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [C0C7] -> GSI 11 (level, low) -> IRQ 11
[17179572.848000] ACPI: PCI Interrupt 0000:00:0b.1[A] -> Link [C0C7] -> GSI 11 (level, low) -> IRQ 11
[17179572.848000] audit: initializing netlink socket (disabled)
[17179572.848000] audit(1133831803.844:1): initialized
[17179572.848000] highmem bounce pool size: 64 pages
[17179572.848000] VFS: Disk quotas dquot_6.5.1
[17179572.848000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[17179572.848000] Initializing Cryptographic API
[17179572.848000] io scheduler noop registered
[17179572.848000] io scheduler anticipatory registered
[17179572.848000] io scheduler deadline registered
[17179572.848000] io scheduler cfq registered
[17179572.848000] Activating ISA DMA hang workarounds.
[17179572.848000] isapnp: Scanning for PnP cards...
[17179573.204000] isapnp: No Plug & Play device found
[17179573.220000] PNP: PS/2 Controller [PNP0303:C178,PNP0f13:C179] at 0x60,0x64 irq 1,12
[17179573.220000] i8042.c: Detected active multiplexing controller, rev 1.1.
[17179573.220000] serio: i8042 AUX0 port at 0x60,0x64 irq 12
[17179573.220000] serio: i8042 AUX1 port at 0x60,0x64 irq 12
[17179573.220000] serio: i8042 AUX2 port at 0x60,0x64 irq 12
[17179573.220000] serio: i8042 AUX3 port at 0x60,0x64 irq 12
[17179573.220000] serio: i8042 KBD port at 0x60,0x64 irq 1
[17179573.220000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[17179573.220000] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[17179573.220000] serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A
[17179573.224000] 00:02: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[17179573.224000] ACPI: PCI Interrupt Link [C0CB] enabled at IRQ 11
[17179573.224000] ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [C0CB] -> GSI 11 (level, low) -> IRQ 11
[17179573.224000] 0000:00:08.0: ttyS1 at I/O 0x3428 (irq = 11) is a 8250
[17179573.224000] 0000:00:08.0: ttyS3 at I/O 0x3440 (irq = 11) is a 8250
[17179573.224000] Couldn't register serial port 0000:00:08.0: -28
[17179573.224000] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[17179573.224000] EISA: Probing bus 0 at eisa.0
[17179573.224000] Cannot allocate resource for EISA slot 1
[17179573.224000] Cannot allocate resource for EISA slot 2
[17179573.224000] Cannot allocate resource for EISA slot 3
[17179573.224000] Cannot allocate resource for EISA slot 4
[17179573.224000] EISA: Detected 0 cards.
[17179573.224000] NET: Registered protocol family 2
[17179573.260000] input: AT Translated Set 2 keyboard as /class/input/input0
[17179573.264000] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[17179573.264000] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[17179573.264000] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[17179573.268000] TCP: Hash tables configured (established 131072 bind 65536)
[17179573.268000] TCP reno registered
[17179573.268000] TCP bic registered
[17179573.268000] NET: Registered protocol family 8
[17179573.268000] NET: Registered protocol family 20
[17179573.268000] Using IPI No-Shortcut mode
[17179573.268000] ACPI wakeup devices: 
[17179573.268000] C045 C0BA C184 C189 C18A 
[17179573.268000] ACPI: (supports S0 S3 S4 S5)
[17179573.268000] Freeing unused kernel memory: 308k freed
[17179573.332000] Capability LSM initialized
[17179573.348000] NET: Registered protocol family 1
[17179578.164000] ACPI: Fan [C1ED] (off)
[17179578.164000] ACPI: Fan [C1EE] (off)
[17179578.164000] ACPI: Fan [C1EF] (off)
[17179578.164000] ACPI: Fan [C1F0] (off)
[17179578.168000] ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3] C4[C3])
[17179578.176000] ACPI: Thermal Zone [TZ1] (73 C)
[17179578.180000] ACPI: Thermal Zone [TZ2] (59 C)
[17179578.188000] ACPI: Thermal Zone [TZ3] (33 C)
[17179628.784000] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
[17179628.784000] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[17179628.784000] ACPI: bus type ide registered
[17179666.712000] ALI15X3: IDE controller at PCI slot 0000:00:10.0
[17179666.712000] ACPI: PCI Interrupt Link [C0C5] enabled at IRQ 10
[17179666.712000] PCI: setting IRQ 10 as level-triggered
[17179666.712000] ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [C0C5] -> GSI 10 (level, low) -> IRQ 10
[17179666.712000] ALI15X3: chipset revision 196
[17179666.712000] ALI15X3: not 100% native mode: will probe irqs later
[17179666.712000]     ide0: BM-DMA at 0x3800-0x3807, BIOS settings: hda:DMA, hdb:pio
[17179666.712000] ALI15X3: simplex device: DMA forced
[17179666.712000]     ide1: BM-DMA at 0x3808-0x380f, BIOS settings: hdc:DMA, hdd:DMA
[17179666.712000] Probing IDE interface ide0...
[17179667.004000] hda: HTS548040M9AT00, ATA DISK drive
[17179667.676000] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[17179667.676000] Probing IDE interface ide1...
[17179668.240000] Probing IDE interface ide1...
[17179668.260000] hda: max request size: 128KiB
[17179668.584000] hda: 78140160 sectors (40007 MB) w/7877KiB Cache, CHS=16383/255/63, UDMA(100)
[17179668.584000] hda: cache flushes supported
[17179668.584000]  hda: hda1 hda2 < hda5 > hda3
[17179696.584000] Attempting manual resume
[17179696.644000] SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug enabled
[17179696.644000] SGI XFS Quota Management subsystem
[17179696.696000] XFS mounting filesystem hda3
[17179696.848000] Ending clean XFS mount for filesystem: hda3
[17179698.744000] md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
[17179698.744000] md: bitmap version 4.39
[17179702.956000] Adding 1622524k swap on /dev/hda5.  Priority:-1 extents:1 across:1622524k
[17179705.724000] Linux agpgart interface v0.101 (c) Dave Jones
[17179705.736000] agpgart: Detected Ati IGP345M chipset
[17179705.748000] agpgart: AGP aperture is 64M @ 0x9c000000
[17179705.920000] ali15x3_smbus 0000:00:11.0: ALI15X3_smb region uninitialized - upgrade BIOS or use force_addr=0xaddr
[17179705.924000] ali15x3_smbus 0000:00:11.0: ALI15X3 not detected, module not inserted.
[17179706.108000] usbcore: registered new driver usbfs
[17179706.108000] usbcore: registered new driver hub
[17179706.224000] ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [C0C7] -> GSI 11 (level, low) -> IRQ 11
[17179706.224000] Yenta: CardBus bridge found at 0000:00:0b.0 [0e11:005a]
[17179706.224000] Yenta O2: res at 0x94/0xD4: 00/ea
[17179706.224000] Yenta O2: enabling read prefetch/write burst
[17179706.240000] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[17179706.308000] ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
[17179706.308000] ath_hal: module license 'Proprietary' taints kernel.
[17179706.308000] ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
[17179706.352000] Yenta: ISA IRQ mask 0x04b8, PCI irq 11
[17179706.352000] Socket status: 30000006
[17179706.376000] ACPI: PCI Interrupt 0000:00:0b.1[A] -> Link [C0C7] -> GSI 11 (level, low) -> IRQ 11
[17179706.376000] Yenta: CardBus bridge found at 0000:00:0b.1 [0e11:005a]
[17179706.384000] wlan: 0.8.6.0 (EXPERIMENTAL)
[17179706.404000] ath_rate_sample: 1.2
[17179706.504000] Yenta: ISA IRQ mask 0x04b8, PCI irq 11
[17179706.504000] Socket status: 30000006
[17179706.544000] ath_pci: 0.9.6.0 (EXPERIMENTAL)
[17179706.544000] ACPI: PCI Interrupt Link [C0CA] enabled at IRQ 5
[17179706.544000] PCI: setting IRQ 5 as level-triggered
[17179706.544000] ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [C0CA] -> GSI 5 (level, low) -> IRQ 5
[17179706.844000] Build date: Dec  5 2005
[17179706.844000] Debugging version (IEEE80211)
[17179706.844000] ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
[17179706.844000] ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[17179706.844000] ath0: H/W encryption support: WEP AES AES_CCM TKIP
[17179706.844000] ath0: mac 5.6 phy 4.1 radio 1.7
[17179706.844000] ath0: Use hw queue 1 for WME_AC_BE traffic
[17179706.844000] ath0: Use hw queue 0 for WME_AC_BK traffic
[17179706.844000] ath0: Use hw queue 2 for WME_AC_VI traffic
[17179706.844000] ath0: Use hw queue 3 for WME_AC_VO traffic
[17179706.844000] ath0: Use hw queue 8 for CAB traffic
[17179706.844000] ath0: Use hw queue 9 for beacons
[17179706.844000] Debugging version (ATH)
[17179706.844000] ath0: Atheros 5212: mem=0x98080000, irq=5
[17179706.844000] ACPI: PCI Interrupt Link [C0C6] enabled at IRQ 10
[17179706.844000] ACPI: PCI Interrupt 0000:00:12.2[C] -> Link [C0C6] -> GSI 10 (level, low) -> IRQ 10
[17179706.844000] ehci_hcd 0000:00:12.2: EHCI Host Controller
[17179706.844000] ACPI: PCI Interrupt 0000:00:12.0[A] -> Link [C0C6] -> GSI 10 (level, low) -> IRQ 10
[17179706.844000] ohci_hcd 0000:00:12.0: OHCI Host Controller
[17179706.844000] ohci_hcd 0000:00:12.0: new USB bus registered, assigned bus number 1
[17179706.844000] ohci_hcd 0000:00:12.0: irq 10, io mem 0x98380000
[17179706.864000] input: PC Speaker as /class/input/input1
[17179706.876000] ehci_hcd 0000:00:12.2: new USB bus registered, assigned bus number 2
[17179706.876000] ehci_hcd 0000:00:12.2: irq 10, io mem 0x98480000
[17179706.876000] ehci_hcd 0000:00:12.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[17179706.876000] hub 2-0:1.0: USB hub found
[17179706.876000] hub 2-0:1.0: 5 ports detected
[17179706.980000] hub 1-0:1.0: USB hub found
[17179706.980000] hub 1-0:1.0: 3 ports detected
[17179706.980000] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[17179707.012000] parport: PnPBIOS parport detected.
[17179707.012000] parport0: PC-style at 0x378 (0x778), irq 7, dma 1 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
[17179707.084000] ACPI: PCI Interrupt 0000:00:12.1[B] -> Link [C0C6] -> GSI 10 (level, low) -> IRQ 10
[17179707.084000] ohci_hcd 0000:00:12.1: OHCI Host Controller
[17179707.084000] ohci_hcd 0000:00:12.1: new USB bus registered, assigned bus number 3
[17179707.084000] ohci_hcd 0000:00:12.1: irq 10, io mem 0x98400000
[17179707.172000] hub 3-0:1.0: USB hub found
[17179707.172000] hub 3-0:1.0: 2 ports detected
[17179707.216000] ACPI: PCI Interrupt Link [C0CC] enabled at IRQ 11
[17179707.216000] ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [C0CC] -> GSI 11 (level, low) -> IRQ 11
[17179707.592000] tg3.c:v3.43 (Oct 24, 2005)
[17179707.592000] ACPI: PCI Interrupt Link [C0C9] enabled at IRQ 10
[17179707.592000] ACPI: PCI Interrupt 0000:00:13.0[A] -> Link [C0C9] -> GSI 10 (level, low) -> IRQ 10
[17179707.652000] eth0: Tigon3 [partno(BCM5705mA1) rev 3003 PHY(5705)] (PCI:33MHz:32-bit) 10/100/1000BaseT Ethernet 00:12:79:59:8d:38
[17179707.652000] eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] Split[0] WireSpeed[0] TSOcap[1] 
[17179707.652000] eth0: dma_rwctrl[763f0000]
[17179707.812000] usb 1-3: new full speed USB device using ohci_hcd and address 2
[17179710.436000] Real Time Clock Driver v1.12
[17179713.064000] Synaptics Touchpad, model: 1, fw: 5.9, id: 0x1b6eb1, caps: 0xa84793/0x100000
[17179713.064000] serio: Synaptics pass-through port at isa0060/serio4/input0
[17179713.112000] input: SynPS/2 Synaptics TouchPad as /class/input/input2
[17179718.332000] ts: Compaq touchscreen protocol output
[17179718.364000] Bluetooth: Core ver 2.8
[17179718.364000] NET: Registered protocol family 31
[17179718.364000] Bluetooth: HCI device and connection manager initialized
[17179718.364000] Bluetooth: HCI socket layer initialized
[17179718.412000] mice: PS/2 mouse device common for all mice
[17179718.456000] Bluetooth: HCI USB driver ver 2.9
[17179718.456000] usbcore: registered new driver hci_usb
[17179718.504000] cs: IO port probe 0x100-0x4ff: excluding 0x200-0x207 0x220-0x22f 0x330-0x337 0x388-0x38f 0x408-0x40f 0x480-0x48f 0x4d0-0x4d7
[17179718.508000] cs: IO port probe 0xc00-0xcf7: clean.
[17179718.508000] cs: IO port probe 0xa00-0xaff: clean.
[17179718.512000] cs: IO port probe 0x100-0x4ff: excluding 0x200-0x207 0x220-0x22f 0x330-0x337 0x388-0x38f 0x408-0x40f 0x480-0x48f 0x4d0-0x4d7
[17179718.516000] cs: IO port probe 0xc00-0xcf7: clean.
[17179718.516000] cs: IO port probe 0xa00-0xaff: clean.
[17179719.352000] AC'97 1 does not respond - RESET
[17179719.352000] AC'97 1 access is not valid [0xffffffff], removing mixer.
[17179719.352000] ali mixer 1 creating error.
[17179719.828000] Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro 5050 PCI Audio, version 0.14.10j-2.6, 04:17:30 Dec  1 2005
[17179722.088000] lp0: using parport0 (interrupt-driven).
[17179723.300000] input: PS/2 Generic Mouse as /class/input/input3
[17179725.000000] device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com
[17179726.824000] kjournald starting.  Commit interval 5 seconds
[17179726.824000] EXT3 FS on hda1, internal journal
[17179726.824000] EXT3-fs: mounted filesystem with ordered data mode.

[-- Attachment #1.3: alim-lspci --]
[-- Type: text/plain, Size: 9091 bytes --]

0000:00:00.0 Host bridge: ATI Technologies Inc RS200/RS200M AGP Bridge [IGP 340M] (rev 02)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64
	Region 0: Memory at 9c000000 (32-bit, prefetchable) [size=64M]
	Region 1: Memory at 98500000 (32-bit, prefetchable) [size=4K]
	Capabilities: <available only to root>

0000:00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 340M] (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 99
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=66
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: 90000000-900fffff
	Prefetchable memory behind bridge: 94000000-97ffffff
	BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-

0000:00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR+ <PERR+
	Latency: 64 (500ns min, 6000ns max)
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at 3000 [size=256]
	Region 1: Memory at 98100000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <available only to root>

0000:00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Capabilities: <available only to root>

0000:00:08.0 Modem: ALi Corporation M5457 AC'97 Modem Controller (prog-if 00 [Generic])
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 98180000 (32-bit, non-prefetchable) [size=4K]
	Region 1: I/O ports at 3400 [size=256]
	Capabilities: <available only to root>

0000:00:09.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
	Subsystem: Compaq Computer Corporation: Unknown device 00e6
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 0x10 (64 bytes)
	Interrupt: pin A routed to IRQ 5
	Region 0: Memory at 98080000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: <available only to root>

0000:00:0b.0 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 168
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 98200000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
	Memory window 0: 40000000-41fff000 (prefetchable)
	Memory window 1: 42000000-43fff000
	I/O window 0: 00001800-000018ff
	I/O window 1: 00001c00-00001cff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
	16-bit legacy interface ports at 0001

0000:00:0b.1 CardBus bridge: O2 Micro, Inc. OZ711M1/MC1 4-in-1 MemoryCardBus Controller (rev 20)
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 168
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 98280000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=06, subordinate=09, sec-latency=176
	Memory window 0: 44000000-45fff000 (prefetchable)
	Memory window 1: 46000000-47fff000
	I/O window 0: 00003c00-00003cff
	I/O window 1: 00004000-000040ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
	16-bit legacy interface ports at 0001

0000:00:0b.2 System peripheral: O2 Micro, Inc. OZ711Mx 4-in-1 MemoryCardBus Accelerator
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 98300000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <available only to root>

0000:00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4) (prog-if ea)
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (500ns min, 1000ns max)
	Interrupt: pin A routed to IRQ 10
	Region 4: I/O ports at 3800 [size=16]
	Capabilities: <available only to root>

0000:00:11.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-

0000:00:12.0 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 [OHCI])
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (250ns min, 10500ns max), Cache Line Size: 0x10 (64 bytes)
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at 98380000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <available only to root>

0000:00:12.1 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 [OHCI])
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (250ns min, 10500ns max), Cache Line Size: 0x10 (64 bytes)
	Interrupt: pin B routed to IRQ 10
	Region 0: Memory at 98400000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <available only to root>

0000:00:12.2 USB Controller: NEC Corporation USB 2.0 (rev 04) (prog-if 20 [EHCI])
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (4000ns min, 8500ns max), Cache Line Size: 0x10 (64 bytes)
	Interrupt: pin C routed to IRQ 10
	Region 0: Memory at 98480000 (32-bit, non-prefetchable) [size=256]
	Capabilities: <available only to root>

0000:00:13.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705M Gigabit Ethernet (rev 03)
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (16000ns min), Cache Line Size: 0x10 (64 bytes)
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at 98000000 (64-bit, non-prefetchable) [size=64K]
	Expansion ROM at 48000000 [disabled] [size=64K]
	Capabilities: <available only to root>

0000:01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 330M/340M/350M (prog-if 00 [VGA])
	Subsystem: Compaq Computer Corporation: Unknown device 005a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 64 (2000ns min), Cache Line Size: 0x10 (64 bytes)
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at 94000000 (32-bit, prefetchable) [size=64M]
	Region 1: I/O ports at 2000 [size=256]
	Region 2: Memory at 90000000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at 90020000 [disabled] [size=128K]
	Capabilities: <available only to root>


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with IDE driver not claiming the disk
  2005-12-06  1:36   ` Scott James Remnant
@ 2005-12-06  8:23     ` Bartlomiej Zolnierkiewicz
  2005-12-06 12:39       ` Scott James Remnant
  0 siblings, 1 reply; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2005-12-06  8:23 UTC (permalink / raw)
  To: Scott James Remnant; +Cc: linux-ide, linux-hotplug-devel, Ben Collins

On 12/6/05, Scott James Remnant <scott@ubuntu.com> wrote:
> Thanks for replying so quickly,
>
> On Tue, 2005-12-06 at 01:34 +0100, Bartlomiej Zolnierkiewicz wrote:
>
> > On 12/6/05, Scott James Remnant <scott@ubuntu.com> wrote:
> > > We've been having some IDE problems at Ubuntu Towers and can't seem to
> > > figure out what's up, and I was hoping you guys might instantly spot
> > > what we're doing wrong ...
> > >
> > > In order to get those events, and find out what's on the bus, we
> > > explicitly load the "ide-generic" driver.  This spawns a whole number of
> > > events, creating a whole array of devices -- /dev/hda* and friends.
> >
> > This sounds very, very wrong.  Devices should be probed and
> > registered by alim15x3/via82cxxx and not ide-generic driver.
> >
> Right, that's not happening for any of the drivers -- so far I haven't
> found an IDE driver that, when loaded, probes for devices and registers
> them.  They all need ide-generic to be loaded to "kick" them.
>
> > > Do you concur?  What are we doing wrong, or what is the driver doing
> > > wrong?
> >
> > We can only guess without dmesg and lspci -vvv.
> >
> Certainly...
>
> On the alim15x3 machine:
>
> modprobe pci:.... as a result of touching the uevent file for that
> device; loads the ide-core, alim15x3 and "generic" modules.  dmesg
> output:
>
>         Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
>         ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
>         ACPI: bus type ide registered
>
> modprobe ide-generic - currently hard-coded into our initramfs script.
> dmesg output:
>
>         ALI15X3: IDE controller at PCI slot 0000:00:10.0
>         ACPI: PCI Interrupt Link [C0C5] enabled at IRQ 10
>         PCI: setting IRQ 10 as level-triggered
>         ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [C0C5] -> GSI 10 (level, low) -> IRQ 10
>         ALI15X3: chipset revision 196
>         ALI15X3: not 100% native mode: will probe irqs later
>             ide0: BM-DMA at 0x3800-0x3807, BIOS settings: hda:DMA, hdb:pio
>         ALI15X3: simplex device: DMA forced
>             ide1: BM-DMA at 0x3808-0x380f, BIOS settings: hdc:DMA, hdd:DMA
>         Probing IDE interface ide0...
>         hda: HTS548040M9AT00, ATA DISK drive
>         ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
>         Probing IDE interface ide1...
>         Probing IDE interface ide1...
>         hda: max request size: 128KiB
>         hda: 78140160 sectors (40007 MB) w/7877KiB Cache, CHS\x16383/255/63, UDMA(100)
>         hda: cache flushes supported
>         hda: hda1 hda2 < hda5 > hda3
>
> (Full dmesg attached as alim-dmesg)
>
> As you can see, the probing doesn't take place until after ide-generic
> is loaded -- I left long gaps between doing each bit so it's reasonably
> obvious in the dmesg output.
>
> lspci of that device:
>
> 0000:00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4) (prog-if ea)
>         Subsystem: Compaq Computer Corporation: Unknown device 005a
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 64 (500ns min, 1000ns max)
>         Interrupt: pin A routed to IRQ 10
>         Region 4: I/O ports at 3800 [size\x16]
>         Capabilities: <available only to root>
>
> (Full lspci attached as alim-lspci)
>
> > You didn't even tell your kernel version and whether this
> > is vanilla kernel or Ubuntu one (do you have any extra
> > IDE patches?).
> >
> I was first hoping it was a glaringly obvious thing we were doing wrong,
> and wouldn't come to comparing kernel code;  the kernel is the current
> Ubuntu one, it's based off 2.6.15 -- our patches are all in git:
>
> http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-2.6.git
>
> I'm not best placed to answer the patches that are in the exact version
> I used ("our" 2.6.15-6.8), Ben Collins is (Cc'd).

You have IDE patches in your tree, please try vanilla 2.6.15.

Changes to setup-pci.c and ide-generic.c in the following patch are wrong:
http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-2.6.git;a=commitdiff;h\x149744c1475cdaf2c6babfd92f163cca8f10c540;hpZ373d68631531fff09047364be4565d67335f08

It seems that with this patch 'pre_init' in setup-pci.c. will
become '0' (it equals '1' initially) only after ide-generic is loaded...
and ide_pci_register_driver() checks 'pre_init' value.

Sigh, this patch was NACK-ed upstream for some (important) reasons...

Bartlomiej


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&opÌk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with IDE driver not claiming the disk
  2005-12-06  8:23     ` Bartlomiej Zolnierkiewicz
@ 2005-12-06 12:39       ` Scott James Remnant
  0 siblings, 0 replies; 5+ messages in thread
From: Scott James Remnant @ 2005-12-06 12:39 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, linux-hotplug-devel, Ben Collins

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]

On Tue, 2005-12-06 at 09:23 +0100, Bartlomiej Zolnierkiewicz wrote:

> On 12/6/05, Scott James Remnant <scott@ubuntu.com> wrote:
> > I was first hoping it was a glaringly obvious thing we were doing wrong,
> > and wouldn't come to comparing kernel code;  the kernel is the current
> > Ubuntu one, it's based off 2.6.15 -- our patches are all in git:
> >
> > http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-2.6.git
> >
> > I'm not best placed to answer the patches that are in the exact version
> > I used ("our" 2.6.15-6.8), Ben Collins is (Cc'd).
> 
> You have IDE patches in your tree, please try vanilla 2.6.15.
> 
Yeah, one was compiling over night (still waiting for my AMD64 beast to
arrive) and I tried it out this morning ... I see your point, it works
exactly as advertised in vanilla 2.6.15-rc5 -- loading the real IDE
driver finds the devices itself, and there's no need to load
ide-generic.

> Changes to setup-pci.c and ide-generic.c in the following patch are wrong:
> http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-2.6.git;a=commitdiff;h=149744c1475cdaf2c6babfd92f163cca8f10c540;hp=5a373d68631531fff09047364be4565d67335f08
> 
> It seems that with this patch 'pre_init' in setup-pci.c. will
> become '0' (it equals '1' initially) only after ide-generic is loaded...
> and ide_pci_register_driver() checks 'pre_init' value.
> 
> Sigh, this patch was NACK-ed upstream for some (important) reasons...
> 
I'll go bludgeon our kernel guy for a bit then!

Thanks for your time,

Scott
-- 
Scott James Remnant
scott@ubuntu.com

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-06 12:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05 23:56 Problem with IDE driver not claiming the disk Scott James Remnant
2005-12-06  0:34 ` Bartlomiej Zolnierkiewicz
2005-12-06  1:36   ` Scott James Remnant
2005-12-06  8:23     ` Bartlomiej Zolnierkiewicz
2005-12-06 12:39       ` Scott James Remnant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).