2002-06-17 21:42:21

by Arnd Bergmann

[permalink] [raw]
Subject: 2.5.22 ide disk hang on boot

Hi,

In 2.5.22, I get during the partition detection (2.5.21 was ok):

...
/dev/ide/host0/bus0/target0/lun0: [PTBC] (6201/240/63) p1 p2 p3 <hda: status
error: status = 0x58 [drive ready seek complete data request]
hda: recalibrating

After that, I have to reboot. The machine is an IBM thinkpad A30p, the
ide controller is an ICH3 ("Intel Corp. 82801CAM IDE U100 (rev 1)") and
the drive says it is "IC25T048ATDA05-0".
I tried reverting the last IDE patches but got too many rejects.

After replacing the ata_error that came last with BUG(), I got the
backtrace below (assuming I copied every address correctly from the
screen).

Arnd <><

Trace; c01f9242 <ata_status_poll+92/c8>
Trace; c01fb2d1 <start_request+c5/17c>
Trace; c01eb38a <__elv_next_request+a/10>
Trace; c01fb64e <queue_commands+126/160>
Trace; c01fb6c8 <do_request+40/68>
Trace; c01fb700 <do_ide_request+10/14>
Trace; c01ec2d7 <generic_unplug_device+3b/48>
Trace; c01ec3c0 <blk_run_queues+6c/7c>
Trace; c0137ea9 <block_sync_page+5/8>
Trace; c01273fa <__lock_page+96/c4>
Trace; c012743c <lock_page+14/18>
Trace; c01289e0 <read_cache_page+a8/100>
Trace; c01526fa <read_dev_sector+32/a4>
Trace; c01397d0 <blkdev_readpage+0/14>
Trace; c0152953 <extended_partition+a7/1ec>
Trace; c01175d7 <printk+ff/114>
Trace; c0152dd5 <msdos_partition+179/2c4>
Trace; c01fd0e0 <ata_get_queue+0/2c>
Trace; c01521d4 <check_partition+1b4/230>
Trace; c0139b35 <bdput+8d/94>
Trace; c0152698 <grok_partitions+e4/114>
Trace; c0150300 <statm_pgd_range+15c/1a8>
Trace; c01f9c31 <ata_revalidate+c9/f0>
Trace; c0200c1c <idedisk_attach+d0/e4>
Trace; c01fa358 <subdriver_match+58/68>
Trace; c01fa67f <register_ata_driver+2f/48>
Trace; c0105023 <init+7/124>
Trace; c010701c <kernel_thread+28/38>


2002-06-18 06:30:53

by Martin Dalecki

[permalink] [raw]
Subject: Re: 2.5.22 ide disk hang on boot

U?ytkownik Arnd Bergmann napisa?:
> Hi,
>
> In 2.5.22, I get during the partition detection (2.5.21 was ok):
>
> ...
> /dev/ide/host0/bus0/target0/lun0: [PTBC] (6201/240/63) p1 p2 p3 <hda: status
> error: status = 0x58 [drive ready seek complete data request]
> hda: recalibrating
>
> After that, I have to reboot. The machine is an IBM thinkpad A30p, the
> ide controller is an ICH3 ("Intel Corp. 82801CAM IDE U100 (rev 1)") and
> the drive says it is "IC25T048ATDA05-0".
> I tried reverting the last IDE patches but got too many rejects.
>
> After replacing the ata_error that came last with BUG(), I got the
> backtrace below (assuming I copied every address correctly from the
> screen).
>
> Arnd <><
>
> Trace; c01f9242 <ata_status_poll+92/c8>
> Trace; c01fb2d1 <start_request+c5/17c>
> Trace; c01eb38a <__elv_next_request+a/10>

I assume that the system in question isn't:

1. Isn't setting up the drive in BIOS for DMA operation?

2. Isn't showring the hda: hda1.... partition layout?

As one can see from the above the problem is caused by PIO
read getting worser. I know the problem and am working on it.
As a band plase apply patch -p1 -R < ide-clean-92.diff.
I hope I can provide the proper solution soon.

2002-06-18 23:34:58

by Arnd Bergmann

[permalink] [raw]
Subject: Re: 2.5.22 ide disk hang on boot

On Tuesday 18 June 2002 08:31, you wrote:

> I assume that the system in question isn't:
>
> 1. Isn't setting up the drive in BIOS for DMA operation?
Don't know. The BIOS setup does not have a config option for
this. 'hdparm -d /dev/hda' says it's not using DMA usually.
Compiling the kernel with or without 'Generic PCI bus-master
DMA support' did not change the problem.

> 2. Isn't showring the hda: hda1.... partition layout?
The strange thing is that the primary partition table
appears to be read proberly, but not the extended one at
the beginning of hda3, i.e. it is showing

p1 p2 p3 <hda: status error:

at the place where I usually get

p1 p2 p3 < p5 p6 p7 p8 p9 p10 >

If the drive could not be read at all, it would not show the
first three entries either.

> As one can see from the above the problem is caused by PIO
> read getting worser. I know the problem and am working on it.
ok.

> As a band plase apply patch -p1 -R < ide-clean-92.diff.
As I wanted to say in the original mail: I tried that but
was too lazy to clean up the rejects. Fortunately, it's not
urgent for me, so I can just wait for the next release.
Just tell me if you want me to try your fix.

Arnd <><

2002-06-19 06:12:44

by leif

[permalink] [raw]
Subject: Re: 2.5.22 ide disk hang on boot

I'm having exactly the same issue, with both 2.5.22 and 2.5.23.

I've downloaded the ide-clean-92.diff and applied it against 2.5.23. There were some fuzzy offsets, but no rejects.

My system is: FIC SD-11, Athlon 850, 256Mb ram, 20G Maxtor 52049U4 drive (80-pin cable)

IDE controler is VT82c686a UDMA66 (onboard)

The kernel is built SMP, but running UP for testing.

After rebuilding the kernel and rebooting, I'm able to get past the point where it was previously hanging.

Without this patch it hangs, just as Arnd reported.

Thanks.



___________________________________
NOCC, http://nocc.sourceforge.net




2002-06-19 07:45:32

by Martin Dalecki

[permalink] [raw]
Subject: Re: 2.5.22 ide disk hang on boot

U?ytkownik [email protected] napisa?:
> I'm having exactly the same issue, with both 2.5.22 and 2.5.23.
>
> I've downloaded the ide-clean-92.diff and applied it against 2.5.23. There were some fuzzy offsets, but no rejects.
>
You mean you have reverse applied it with the patch -R command of course.
Yes 92 is the culprit. I have put it in the change log that
the unification of the PIO read handlers is dangerous and well indeed it is...

2002-06-19 17:01:25

by Leif Sawyer

[permalink] [raw]
Subject: RE: 2.5.22 ide disk hang on boot

Martin Dalecki scribed:
> U?ytkownik [email protected] napisa?:
> > I'm having exactly the same issue, with both 2.5.22 and 2.5.23.
> >
> > I've downloaded the ide-clean-92.diff and applied it
> > against 2.5.23. There were some fuzzy offsets, but no rejects.
> >
> You mean you have reverse applied it with the patch -R
> command of course.

Yes of course. :-)

> Yes 92 is the culprit. I have put it in the change log that
> the unification of the PIO read handlers is dangerous and
> well indeed it is...

I did have one issue, not sure what it's related to:

My first test was against an SMP compiled kernel running on UP,
as I stated previously. When re-compiling the kernel, my machine
locked up solid during IDE access. Unfortunately no magic-keys
were available and I needed to hard-reset and downgrade.

I recompiled for UP, rebooted, and was able to perform multiple
kernel compilations with no hanging.

I didn't perform a stress-test last night, but tonight if i'm able i'll
run some bonnie against it to see if it's stable, if you like.

Leif

2002-06-21 14:16:51

by Martin Devera

[permalink] [raw]
Subject: Re: 2.5.22 ide disk hang on boot

I just read about IDE PIO related hangup in 2.5.22/3.
I'm having the same problem. Also I can't compile as
UP because compile crashes then :(
Please can you tell me where to find the ide-clean-92.diff ?

I'd like to test it. I debug USB bug and it was recommended
to me to test 2.5.23 but it is hard when I can't boot it :-\
Thanks, devik

2002-06-21 14:19:01

by Martin Dalecki

[permalink] [raw]
Subject: Re: 2.5.22 ide disk hang on boot

U?ytkownik Martin Devera napisa?:
> I just read about IDE PIO related hangup in 2.5.22/3.
> I'm having the same problem. Also I can't compile as
> UP because compile crashes then :(
> Please can you tell me where to find the ide-clean-92.diff ?
>
> I'd like to test it. I debug USB bug and it was recommended
> to me to test 2.5.23 but it is hard when I can't boot it :-\
> Thanks, devik
>
>

Please go ahead to 2.5.24, it could help it.

2002-06-21 16:04:02

by Martin Devera

[permalink] [raw]
Subject: Re: 2.5.22 ide disk hang on boot

Huh, how fast .. I even didn't notice there is 2.5.24 :)
Now it seems to work. Thanks. Only in case it is interesting
to you the "Use old disk-only driver on primary interface"
seeting is not working. When I user it the kernel hung up
just after Freeing unused kernel memory: 192k freed
message.

regards,
devik

On Fri, 21 Jun 2002, Martin Dalecki wrote:

> > Please can you tell me where to find the ide-clean-92.diff ?
> >
> Please go ahead to 2.5.24, it could help it.