Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152779 - gentoo-sources-2.6.18-r1 it821x: long wait time due to dma_timer_expiry
Summary: gentoo-sources-2.6.18-r1 it821x: long wait time due to dma_timer_expiry
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard: watch-linux-bugzilla
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 06:11 UTC by Martin von Gagern
Modified: 2011-06-28 09:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg of normal boot with noraid=1 (dmesg1,2.99 KB, text/plain)
2006-10-25 06:14 UTC, Martin von Gagern
Details
dmesg of it821x from 2.6.19-r3 (2.6.19-rc3_it821x.dmesg,19.72 KB, text/plain)
2006-10-31 08:50 UTC, Martin von Gagern
Details
messages of pata_it821x from 2.6.19-rc3 (2.6.19-rc3_pata_it821x.log,1.03 KB, text/plain)
2006-10-31 09:03 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2006-10-25 06:11:49 UTC
Short summary: insmod it821x noraid=1 causes system to hang for ~30s:

hdc: dma_timer_expiry: dma status == 0x61
hdc: DMA timeout error
hdc: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown

OK, let's have some more detail and background.
I have an ASUS P5GDC-V Deluxe mainboard and recently reactivated the onboard IDE RAID controller in simple IDE mode. Simply rebooting it hung a really long time in udev event processing, longer than my patience would allow. So I rebooted with init=/bin/bash and experimented a bit. Passing noraid=1 to the module seemed a bit better. But still it hangs about half a minute in processing udev events, and gives the above error message afterwards. Funny thing is, there are two identical IDE drives connected two the two IDE buses of that controller, and the second one seems to work correctly.

I assume that this issue will probably need further investigation, and might well turn out to be an upstream problem. But it still is my understanding that any bug occurring on Gentoo systems should be reported here first, and currently I'm using gentoo kernel sources. So please let me know exactly what kind of information I can provide, and understand that I probably have to restart my machine for every bit of it, because the it821x module cannor be removed once it's loaded.
Comment 1 Martin von Gagern 2006-10-25 06:14:07 UTC
Created attachment 100455 [details]
dmesg of normal boot with noraid=1

This is the relevant part of a dmesg output after booting my system. Looks like udev is inserting modules in parallel, because there are some other messages mixed in with the ide ones. You can see the timing information as well, so you get a feeling of the time I have to wait on this.
Comment 2 Martin von Gagern 2006-10-25 06:16:23 UTC
# hdparm /dev/hd{c,d}

/dev/hdc:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  1 (on)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 80063424, start = 0

/dev/hdd:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 80063424, start = 0

You can see that DMA has automatically been disabled for hdc, despite my kernekl config saying CONFIG_IDEDMA_AUTO=y and CONFIG_IDEDMA_PCI_AUTO=y
Comment 3 Martin von Gagern 2006-10-25 06:18:42 UTC
# lspci -vvs 1f.1
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP])
        Subsystem: ASUSTeK Computer Inc. P5GD1-VW Mainboard
        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
        Interrupt: pin A routed to IRQ 18
        Region 0: I/O ports at <unassigned>
        Region 1: I/O ports at <unassigned>
        Region 2: I/O ports at <unassigned>
        Region 3: I/O ports at <unassigned>
        Region 4: I/O ports at ffa0 [size=16]
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-10-25 19:34:55 UTC
Please attempt to reproduce this with the latest development kernel, currently 2.6.19-rc3. There are actually 2 drivers available in this kernel: the one you are currently trying, and a new libata-based one. If your data is not overly important and you are feeling adventurous you might want to try the new one, see http://kernelnewbies.org/Linux_2_6_19
Comment 5 Martin von Gagern 2006-10-31 08:50:34 UTC
Created attachment 100905 [details]
dmesg of it821x from 2.6.19-r3

(In reply to comment #4)

OK, I tried 2.6.19-rc3, booted with init=/bin/bash and attached the dmesg output from "modprobe it821x noraid=1". It took almost exactly 30 seconds. So it's reproducible.
Comment 6 Martin von Gagern 2006-10-31 09:03:43 UTC
Created attachment 100906 [details]
messages of pata_it821x from 2.6.19-rc3

(In reply to comment #4)
The new driver is even worse; it completely freezes my system. I wrote down the messages on a sheet of paper and just typed them into a file. There might be minor errors, but basically this should be an (almost) exact screen dump.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2006-11-10 17:29:24 UTC
Please file this as an upstream bug at http://bugzilla.kernel.org and post the new URL here.
Comment 8 Martin von Gagern 2006-11-12 23:54:05 UTC
(In reply to comment #7)
> Please file this as an upstream bug at http://bugzilla.kernel.org and post the
> new URL here.

it821x problem posted as http://bugzilla.kernel.org/show_bug.cgi?id=7506
pata_it821x crash posted as http://bugzilla.kernel.org/show_bug.cgi?id=7507
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2006-11-14 08:15:10 UTC
Thanks, will keep an eye on those