linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM: ide-cs kernel panic on ThinkPad X30
@ 2003-09-11 15:19 Chuan-kai Lin
  2004-04-07 18:10 ` Chuan-kai Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Chuan-kai Lin @ 2003-09-11 15:19 UTC (permalink / raw)
  To: Linux Kernel

Greetings kernel developers,

I have a 30X Transcend 512MB CompactFlash card that I use with my
digital camera, and I have been trying to get it working under Linux
with the built-in CompactFlash reader on my ThinkPad X30 laptop.
According to the information on the web, the built-in reader is
implemented as a PCMCIA device, and it should work with the ide-cs
driver.  The driver does work well when I inserted a 8X Lexar 16MB card
into the reader; however, when I inserted the Transcend card, I got:

Aug 31 19:14:17 rho kernel: hde: Transcend, CFA DISK drive
Aug 31 19:14:17 rho kernel: PM: Adding info for No Bus:ide2
Aug 31 19:14:17 rho kernel: hdf: probing with STATUS(0x50)
  instead of ALTSTATUS(0x0a)
Aug 31 19:14:17 rho kernel: hdf: H, ATA DISK drive
Aug 31 19:14:17 rho kernel: ide2 at 0x100-0x107,0x10e on irq 3
Aug 31 19:14:17 rho kernel: PM: Adding info for ide:2.0
Aug 31 19:14:17 rho kernel: PM: Adding info for ide:2.1
Aug 31 19:14:17 rho kernel: hde: max request size: 128KiB
Aug 31 19:14:17 rho kernel: hde: 1006992 sectors (515 MB) w/0KiB Cache,
  CHS=999/16/63
Aug 31 19:14:17 rho kernel:  /dev/ide/host2/bus0/target0/lun0: p1
Aug 31 19:14:17 rho kernel: hdf: max request size: 128KiB
Aug 31 19:14:17 rho kernel: hdf: 0 sectors (0 MB) w/9216KiB Cache,
  CHS=18432/0/0
Aug 31 19:14:17 rho kernel: hdf: INVALID GEOMETRY: 0 PHYSICAL HEADS?
Aug 31 19:14:17 rho kernel: ide-default: hdf: Failed to register the
  driver with ide.c
Aug 31 19:14:17 rho kernel: Kernel panic: ide: default attach failed

And the machine promptly froze.  The problem, obviously, is that hdf
does not exist at all, so naturally the IDE driver had problem
extracting any reasonable information concerned about it.  I have tried
using both hdf=noprobe or hdf=none at the LILO prompt, but neither seems
to have any effect on this problem.

I am using linux-2.6.0-test5 kernel with ide-cs compiled in (i.e. not as
a loadable module), and I use APM instead of ACPI for power management.

I am sure this information would not be sufficient for proper problem
diagnostic, however I do not really know what else do you need... so
whatever information you need for further investigation, please let me
know and I will try to get them for you.

Thanks in advance for your help.

-- 
Chuan-kai Lin
http://www.csie.ntu.edu.tw/~b6506063/

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

* Re: PROBLEM: ide-cs kernel panic on ThinkPad X30
  2003-09-11 15:19 PROBLEM: ide-cs kernel panic on ThinkPad X30 Chuan-kai Lin
@ 2004-04-07 18:10 ` Chuan-kai Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Chuan-kai Lin @ 2004-04-07 18:10 UTC (permalink / raw)
  To: linux-kernel

Chuan-kai Lin <b86506063@ntu.edu.tw> wrote:
> Aug 31 19:14:17 rho kernel: hde: Transcend, CFA DISK drive
> Aug 31 19:14:17 rho kernel: PM: Adding info for No Bus:ide2
> Aug 31 19:14:17 rho kernel: hdf: probing with STATUS(0x50)
>  instead of ALTSTATUS(0x0a)
> Aug 31 19:14:17 rho kernel: hdf: H, ATA DISK drive
> Aug 31 19:14:17 rho kernel: ide2 at 0x100-0x107,0x10e on irq 3
> Aug 31 19:14:17 rho kernel: PM: Adding info for ide:2.0
> Aug 31 19:14:17 rho kernel: PM: Adding info for ide:2.1
> Aug 31 19:14:17 rho kernel: hde: max request size: 128KiB
> Aug 31 19:14:17 rho kernel: hde: 1006992 sectors (515 MB) w/0KiB Cache,
>  CHS=999/16/63
> Aug 31 19:14:17 rho kernel:  /dev/ide/host2/bus0/target0/lun0: p1
> Aug 31 19:14:17 rho kernel: hdf: max request size: 128KiB
> Aug 31 19:14:17 rho kernel: hdf: 0 sectors (0 MB) w/9216KiB Cache,
>  CHS=18432/0/0
> Aug 31 19:14:17 rho kernel: hdf: INVALID GEOMETRY: 0 PHYSICAL HEADS?
> Aug 31 19:14:17 rho kernel: ide-default: hdf: Failed to register the
>  driver with ide.c
> Aug 31 19:14:17 rho kernel: Kernel panic: ide: default attach failed
> 
> And the machine promptly froze.  The problem, obviously, is that hdf
> does not exist at all, so naturally the IDE driver had problem
> extracting any reasonable information concerned about it.  I have tried
> using both hdf=noprobe or hdf=none at the LILO prompt, but neither seems
> to have any effect on this problem.

I finally managed to track down the problem.  In 2.6.5, ide-probe.c
line 291 there is this piece of code:

    if ((a ^ s) & ~INDEX_STAT) {
        printk(KERN_INFO "%s: probing with STATUS(0x%02x) instead of "
                "ALTSTATUS(0x%02x)\n", drive->name, s, a);
        /* ancient Seagate drives, broken interfaces */
       hd_status = IDE_STATUS_REG;

This alternative probing mechanism caused the kernel to conclude that
the device hdf does exist, and disabling this ancient Seagate drive
probing functionality fixed my problem (but obviously breaks the
probing of the said ancient drives).

What would be a good way to resolve this problem?

-- 
Chuan-kai Lin
http://www.cse.ogi.edu/~linchuan/


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

end of thread, other threads:[~2004-04-07 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11 15:19 PROBLEM: ide-cs kernel panic on ThinkPad X30 Chuan-kai Lin
2004-04-07 18:10 ` Chuan-kai Lin

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).