Bug 7241 - pata_atiixp takes a very long time to load on Asus Pundit-R machines
Summary: pata_atiixp takes a very long time to load on Asus Pundit-R machines
Status: RESOLVED CODE_FIX
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Alan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-01 03:18 UTC by Bernhard Rosenkraenzer
Modified: 2009-03-17 09:00 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.27 (ubuntu)
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
lspci -nnvvvxx (13.27 KB, text/plain)
2009-01-07 03:32 UTC, bugsbuggy
Details
dmidecode (12.40 KB, text/plain)
2009-01-07 03:32 UTC, bugsbuggy
Details
lspci -nnvvvxxx (13.27 KB, text/plain)
2009-01-07 05:00 UTC, bugsbuggy
Details
kernel.log (49.16 KB, text/x-log)
2009-01-07 05:05 UTC, bugsbuggy
Details
pata_atiixp-punditr (2.88 KB, patch)
2009-01-07 18:38 UTC, Tejun Heo
Details | Diff
lspci -nnvvvxxx good one ;-) (23.87 KB, text/plain)
2009-01-08 09:23 UTC, bugsbuggy
Details
kern.log patched (47.49 KB, text/x-log)
2009-01-08 09:26 UTC, bugsbuggy
Details
pata_atiixp-punditr-1 (3.06 KB, patch)
2009-01-13 21:33 UTC, Tejun Heo
Details | Diff
kern.log with new patch (46.17 KB, text/x-log)
2009-01-14 09:04 UTC, bugsbuggy
Details
pata_atiixp-punditr-2 (3.06 KB, patch)
2009-01-14 18:17 UTC, Tejun Heo
Details | Diff
kern.log working patch (45.48 KB, text/x-log)
2009-01-15 10:48 UTC, bugsbuggy
Details
pundit-r-debug.patch (1.25 KB, patch)
2009-01-15 22:46 UTC, Tejun Heo
Details | Diff
kern.log with pundit-r-debug.patch (47.76 KB, text/x-log)
2009-01-16 07:06 UTC, bugsbuggy
Details
nodev-hint.patch (839 bytes, patch)
2009-01-22 21:17 UTC, Tejun Heo
Details | Diff
nodev-hint.patch (844 bytes, patch)
2009-01-22 21:20 UTC, Tejun Heo
Details | Diff
kern.log with nodev-hint.patch (46.05 KB, text/x-log)
2009-01-23 10:26 UTC, bugsbuggy
Details

Description Bernhard Rosenkraenzer 2006-10-01 03:18:53 UTC
Most recent kernel where this bug did not occur: Always occurred
Distribution: Ark Linux 2006.1
Hardware Environment: Asus Pundit-R 350, PATA harddisk
Software Environment: Kernel 2.6.18-mm2 at boot time
Problem Description:

pata_atiixp takes a very long time to load because the Asus Pundit-R has only 
1 ide controller, and pata_atiixp keeps probing for a second controller until 
it finally times out.

Output while scanning:
scsi1 : pata_atiixp
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ata2.00: qc timeout (cmd 0xec)
ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ata2.00: qc timeout (cmd 0xec)
ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ATA: abnormal status 0x7F on port 0x1777
ata2.00: qc timeout (cmd 0xec)
ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)

It should probably just stop scanning if it gets abnormal status 0x7F a couple 
of times.

Steps to reproduce:
Load pata_atiixp on an Asus Pundit-R
Comment 1 Alan 2006-10-01 13:05:54 UTC
Thanks for the report. Tejun has been redoing some of the error handling to fix
similar problems on other controller so I hope once in I can use it for other
PATA controllers iwthout enable bits.

Comment 2 Alan 2007-06-18 07:37:50 UTC
Does this bug still occur on a current kernel ? (I'd expect the unexpected status but not delay now)
Comment 3 Tejun Heo 2007-08-08 20:31:43 UTC
This should be fixed now.  Please close.  Thanks.
Comment 4 bugsbuggy 2009-01-05 06:57:41 UTC
Distribution: Ubuntu Intrepid Ibex
Hardware Environment: Asus Pundit-R , PATA harddisk
Software Environment: Kernel 2.6.27-7
Problem Description:

exact same problem is still present

see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/293218 

please reopen
Comment 5 Tejun Heo 2009-01-06 19:45:04 UTC
Hmmm... Maybe I got confused with different problem.  Can you please attach the output of "lspci -nnvvvxxx" and the output of "dmidecode"?
Comment 6 bugsbuggy 2009-01-07 03:32:20 UTC
Created attachment 19687 [details]
lspci -nnvvvxx
Comment 7 bugsbuggy 2009-01-07 03:32:55 UTC
Created attachment 19688 [details]
dmidecode
Comment 8 Tejun Heo 2009-01-07 04:02:24 UTC
Please report the output of "lspci -nnvvvxxx" with one more 'x' so that it prints the rest of the configuration area.  Also, can you please attach kernel boot log?
Comment 9 Tejun Heo 2009-01-07 04:04:15 UTC
Another thing.  I can't find a good photo of the motherboard online.  Can you please make sure that the board has only single exposed PATA port?  Thanks.
Comment 10 bugsbuggy 2009-01-07 05:00:35 UTC
Created attachment 19693 [details]
lspci -nnvvvxxx
Comment 11 bugsbuggy 2009-01-07 05:05:37 UTC
Created attachment 19694 [details]
kernel.log
Comment 12 bugsbuggy 2009-01-07 05:12:20 UTC
I'm absolutely positive, the board has only single exposed PATA port.
Thanks
Comment 13 Tejun Heo 2009-01-07 18:11:54 UTC
Heh... you should run lspci as root to see the rest of the configuration area.  :-)
Comment 14 Tejun Heo 2009-01-07 18:38:42 UTC
Created attachment 19716 [details]
pata_atiixp-punditr

Can you please apply this patch and post the resulting boot log?
Comment 15 bugsbuggy 2009-01-08 09:23:53 UTC
Created attachment 19718 [details]
lspci -nnvvvxxx   good one ;-)
Comment 16 bugsbuggy 2009-01-08 09:26:50 UTC
Created attachment 19719 [details]
kern.log  patched
Comment 17 bugsbuggy 2009-01-08 09:34:52 UTC
No change after applying the patch.

Just see that you mention Pundit R 350 (ati rs350) in your patch instead of Pundit R (ati rs300). Name seems to be the same for the motherboard (P4R8L)

Thanks
Comment 18 Tejun Heo 2009-01-13 21:32:45 UTC
Hmm.. do you know the difference between the two models?  I don't wanna disable the secondary port on an unaffected machine.  P4R8L is the identifier in DMI but it doesn't really guarantee anything.  If you know that both models share the same layout (the second ide port missing), it would be great.
Comment 19 Tejun Heo 2009-01-13 21:33:17 UTC
Created attachment 19781 [details]
pata_atiixp-punditr-1

And let's find out why the first patch didn't work.  Can you please apply this one and report the log?

Thanks.
Comment 20 bugsbuggy 2009-01-14 09:04:44 UTC
Created attachment 19788 [details]
kern.log with new patch
Comment 21 bugsbuggy 2009-01-14 09:10:00 UTC
After verification, both models are missing the second ide port. 

Thanks.
Comment 22 Tejun Heo 2009-01-14 18:17:48 UTC
Created attachment 19812 [details]
pata_atiixp-punditr-2

Okay, I missed "0x".  Can you please verify the attached patch works?
Comment 23 bugsbuggy 2009-01-15 10:48:32 UTC
Created attachment 19817 [details]
kern.log working patch

This patch works great!

Thanks a lot.
Comment 24 Tejun Heo 2009-01-15 22:46:02 UTC
Created attachment 19823 [details]
pundit-r-debug.patch

Hmm... let's find out why the default logic isn't working before proceeding with the patch.  Can you please apply the attached patch and report the boot log?
Comment 25 bugsbuggy 2009-01-16 07:06:59 UTC
Created attachment 19833 [details]
kern.log with pundit-r-debug.patch
Comment 26 Tejun Heo 2009-01-22 21:17:57 UTC
Created attachment 19946 [details]
nodev-hint.patch

Does this patch fix the problem?
Comment 27 Tejun Heo 2009-01-22 21:20:18 UTC
Created attachment 19947 [details]
nodev-hint.patch

Please test this one instead.  Thanks.
Comment 28 bugsbuggy 2009-01-23 10:26:07 UTC
Created attachment 19956 [details]
kern.log with nodev-hint.patch

Problem fixed. No more delay.
Thanks.

Note You need to log in before you can comment on or make changes to this bug.