[Nottingham] Missing CF drive with libata...

Martin martin at ml1.co.uk
Wed Apr 30 17:17:10 BST 2008


OK, a curious one...

Loading up Mandriva 2.6.24.4 onto a new machine and a SanDisk
CompactFlash plugged into ide0 (master) (via an ide -> CF adapter) is
not discovered.

The CF is seen and identified by the BIOS and I've updated to the latest
BIOS for the motherboard (SB600 chip for the single ide channel) just in
case...

I'm also using LVM on top of software RAID.

The only significantly visible difference is for the selection of
modules. Also on Mandriva, the SB600_PATA module logs that it runs out
of table space...

Help?



The dirty details:

Mandriva is using (lsmod selected results):

fuse                   51504  1
loop                   20100  0
usb_storage           108100  0
sg                     39064  0
ide_disk               18816  0
atiixp                  8848  0 [permanent]
jmicron                 6912  0 [permanent]
ide_core              123928  3 ide_disk,atiixp,jmicron
shpchp                 36764  0
pci_hotplug            32816  1 shpchp
ata_piix               22788  0
ahci                   31620  8
libata                155696  2 ata_piix,ahci
sd_mod                 31872  12
scsi_mod              157880  5 sbp2,usb_storage,sg,libata,sd_mod
raid456               129568  0
async_xor               8448  1 raid456
async_memcpy            6912  1 raid456
async_tx               11252  3 raid456,async_xor,async_memcpy
xor                     9744  2 raid456,async_xor
raid1                  25728  2
reiserfs              246536  4
uhci_hcd               29088  0
ohci_hcd               27268  0
ehci_hcd               40076  0
usbcore               145712  5 usb_storage,uhci_hcd,ohci_hcd,ehci_hcd


For comparison, an Ubuntu LiveDVD works fine and shows and accesses the
SanDisk no problem:

Ubuntu 2.6.22-14

pci_hotplug            32704  1 shpchp
squashfs               48132  1
ide_disk               18560  0
loop                   19076  2
unionfs                77096  1
nls_cp437               6784  1
isofs                  36412  1
sd_mod                 30336  4
sg                     36764  0
sr_mod                 17828  1
cdrom                  37536  1 sr_mod
ata_generic             8452  0
atiixp                  7056  0 [permanent]
ide_core              116804  2 ide_disk,atiixp
r8169                  32260  0
pata_jmicron            7552  0
ahci                   23300  3
ehci_hcd               36492  0
libata                125168  3 ata_generic,pata_jmicron,ahci
scsi_mod              147084  4 sd_mod,sg,sr_mod,libata
ohci_hcd               22916  0
usbcore               138632  3 ehci_hcd,ohci_hcd
fuse                   47124  1


Further info:

On Mandriva there is no mention of the SanDisk anywhere in the logs. The
only complaint is:

Jan  1 03:45:51 Server01a kernel: shpchp: Standard Hot Plug PCI
Controller Driver version: 0.4
Jan  1 03:45:51 Server01a kernel: Uniform Multi-Platform E-IDE driver
Revision: 7.00alpha2
Jan  1 03:45:51 Server01a kernel: ide: Assuming 33MHz system bus speed
for PIO modes; override with idebus=xx
Jan  1 03:45:51 Server01a kernel: JMB: IDE controller (0x197b:0x2363 rev
0x02) at  PCI slot 0000:05:00.1
Jan  1 03:45:51 Server01a kernel: PCI: Enabling device 0000:05:00.1
(0000 -> 0001)
Jan  1 03:45:51 Server01a kernel: ACPI: PCI Interrupt 0000:05:00.1[B] ->
GSI 18 (level, low) -> IRQ 18
Jan  1 03:45:51 Server01a kernel: JMB: 100% native mode on irq 18
Jan  1 03:45:51 Server01a kernel:     ide0: BM-DMA at 0xbb00-0xbb07,
BIOS settings: hda:pio, hdb:pio
Jan  1 03:45:51 Server01a kernel:     ide1: BM-DMA at 0xbb08-0xbb0f,
BIOS settings: hdc:pio, hdd:pio
Jan  1 03:45:51 Server01a kernel: JMB: IDE controller (0x197b:0x2363 rev
0x02) at  PCI slot 0000:06:00.1
Jan  1 03:45:51 Server01a kernel: PCI: Enabling device 0000:06:00.1
(0000 -> 0001)
Jan  1 03:45:51 Server01a kernel: ACPI: PCI Interrupt 0000:06:00.1[B] ->
GSI 19 (level, low) -> IRQ 19
Jan  1 03:45:51 Server01a kernel: JMB: 100% native mode on irq 19
Jan  1 03:45:51 Server01a kernel:     ide2: BM-DMA at 0xab00-0xab07,
BIOS settings: hde:pio, hdf:pio
Jan  1 03:45:51 Server01a kernel:     ide3: BM-DMA at 0xab08-0xab0f,
BIOS settings: hdg:DMA, hdh:DMA
Jan  1 03:45:51 Server01a kernel: SB600_PATA: IDE controller
(0x1002:0x438c rev 0x00) at  PCI slot 0000:00:14.1
Jan  1 03:45:51 Server01a kernel: ACPI: PCI Interrupt 0000:00:14.1[A] ->
GSI 16 (level, low) -> IRQ 16
Jan  1 03:45:51 Server01a kernel: SB600_PATA: not 100% native mode: will
probe irqs later
Jan  1 03:45:51 Server01a kernel: SB600_PATA: too many IDE interfaces,
no room in table

Don't believe the date!


Ubuntu shows:

Apr 30 15:17:40 ubuntu kernel: [   10.704000] SB600_PATA: IDE controller
at PCI slot 0000:00:14.1
Apr 30 15:17:40 ubuntu kernel: [   10.704000] ACPI: PCI Interrupt
0000:00:14.1[A] -> GSI 16 (level, low) -> IRQ 16
Apr 30 15:17:40 ubuntu kernel: [   10.704000] SB600_PATA: chipset revision 0
Apr 30 15:17:40 ubuntu kernel: [   10.704000] SB600_PATA: not 100%%
native mode: will probe irqs later
Apr 30 15:17:40 ubuntu kernel: [   10.704000]     ide0: BM-DMA at
0xf900-0xf907, BIOS settings: hda:DMA, hdb:pio
[...]
Apr 30 15:17:40 ubuntu kernel: [   10.992000] hda: SanDisk SDCFX3-16384,
CFA DISK drive
Apr 30 15:17:40 ubuntu kernel: [   11.396000] Registering unionfs 1.4
Apr 30 15:17:40 ubuntu kernel: [   11.396000] unionfs: debugging is not
enabled
Apr 30 15:17:40 ubuntu kernel: [   11.400000] loop: module loaded
Apr 30 15:17:40 ubuntu kernel: [   11.664000] ide0 at 0x1f0-0x1f7,0x3f6
on irq 14
Apr 30 15:17:40 ubuntu kernel: [   11.668000] hda: max request size: 128KiB
Apr 30 15:17:40 ubuntu kernel: [   11.668000] hda: 32014080 sectors
(16391 MB) w/1KiB Cache, CHS=31760/16/63, DMA
Apr 30 15:17:40 ubuntu kernel: [   11.668000]  hda: hda1

Which is exactly right.


So how to kick the Mandriva SB600_PATA into seeing only the one ide channel?

Or, what needs kicking (or modprobe-ing) to bring the CF to life on
Mandriva? Is this a 2.6.24 kernel problem?


Help!
Martin


-- 
----------------
Martin Lomas
martin at ml1.co.uk
----------------



More information about the Nottingham mailing list