Skip to contentSkip to conversation

New: dma_timer_expiry: DMA status (0x21)

Bug 13286 [email protected] 2 participants 12 messages May 12, 2009 – May 13, 2009 libata

lore
Share & tools
lore
#0 lore raw

http://bugzilla.kernel.org/show_bug.cgi?id=13286

           Summary: dma_timer_expiry: DMA status (0x21)
           Product: IO/Storage
           Version: 2.5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IDE
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: No

Hello,

I have Dell Optiplex with ide->CF-Flash card interface. This configuration works well with 2.6.27.21 but it generates the following messages on 2.6.29.3:
...
hda: dma_timer_expiry: DMA status (0x21)
hda: DMA timeout error
...

Here you have more data, if you need something more please let me know.

PS

This issue takes place with 2.6.28 too.

# dmesg
...
Scanning for low memory corruption every 60 seconds
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 498
io scheduler noop registered (default)
pci 0000:00:01.0: Boot video device
brd: module loaded
Uniform Multi-Platform E-IDE driver
piix 0000:00:1f.1: IDE controller (0x8086:0x2411 rev 0x02)
piix 0000:00:1f.1: IDE port disabled
piix 0000:00:1f.1: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7
Probing IDE interface ide0...
hda: SanDisk SDCFJ-32, CFA DISK drive
hda: host max PIO4 wanted PIO255(auto-tune) selected PIO2
hda: MWDMA2 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide_generic: please use "probe_mask=0x3f" module parameter for probing all
legacy ISA IDE ports
ide-gd driver 1.18
hda: max request size: 128KiB
hda: 62720 sectors (32 MB) w/1KiB Cache, CHS=490/4/32
 hda:<4>hda: dma_timer_expiry: DMA status (0x21)
hda: DMA timeout error
hda: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
hda: DMA disabled
ide0: reset: success
 hda1 hda2
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IO APIC resources could be not be allocated.
Using IPI Shortcut mode
input: AT Translated Set 2 keyboard as /class/input/input0
Clocksource tsc unstable (delta = 1024062479 ns)
hda: dma_timer_expiry: DMA status (0x21)
hda: DMA timeout error
hda: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
hda: DMA disabled
ide0: reset: success
hda: dma_timer_expiry: DMA status (0x21)
hda: DMA timeout error
hda: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
hda: DMA disabled
ide0: reset: success
hda: dma_timer_expiry: DMA status (0x21)
hda: DMA timeout error
hda: DMA timeout error
hda: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
hda: DMA disabled
ide0: reset: success
VFS: Mounted root (ext2 filesystem) readonly on device 3:1.
Freeing unused kernel memory: 168k freed
...
# lspci
00:00.0 Host bridge: Intel Corporation 82810 DC-100 (GMCH) Graphics Memory
Controller Hub (rev 03)
00:01.0 VGA compatible controller: Intel Corporation 82810 DC-100 (CGC) Chipset
Graphics Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801AA PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corporation 82801AA ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801AA IDE Controller (rev 02)
00:1f.2 USB Controller: Intel Corporation 82801AA USB Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801AA SMBus Controller (rev 02)
01:07.0 PCI bridge: Digital Equipment Corporation DECchip 21153 (rev 04)
01:08.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC
(rev 01)
02:00.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01)
02:00.1 Ethernet controller: Sun Microsystems Computer Corp. Happy Meal 10/100
Ethernet [hme] (rev 01)
02:01.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01)
02:01.1 Ethernet controller: Sun Microsystems Computer Corp. Happy Meal 10/100
Ethernet [hme] (rev 01)
02:02.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01)
02:02.1 Ethernet controller: Sun Microsystems Computer Corp. Happy Meal 10/100
Ethernet [hme] (rev 01)
02:03.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01)
02:03.1 Ethernet controller: Sun Microsystems Computer Corp. Happy Meal 10/100
Ethernet [hme] (rev 01)
# lspci -n
00:00.0 0600: 8086:7122 (rev 03)
00:01.0 0300: 8086:7123 (rev 03)
00:1e.0 0604: 8086:2418 (rev 02)
00:1f.0 0601: 8086:2410 (rev 02)
00:1f.1 0101: 8086:2411 (rev 02)
00:1f.2 0c03: 8086:2412 (rev 02)
00:1f.3 0c05: 8086:2413 (rev 02)
01:07.0 0604: 1011:0025 (rev 04)
01:08.0 0200: 168c:001a (rev 01)
02:00.0 0680: 108e:1000 (rev 01)
02:00.1 0200: 108e:1001 (rev 01)
02:01.0 0680: 108e:1000 (rev 01)
02:01.1 0200: 108e:1001 (rev 01)
02:02.0 0680: 108e:1000 (rev 01)
02:02.1 0200: 108e:1001 (rev 01)
02:03.0 0680: 108e:1000 (rev 01)
02:03.1 0200: 108e:1001 (rev 01)
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#1 lore raw
Quoted 26 lines · On Tuesday 12 May 2009 08:35:53 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13286

           Summary: dma_timer_expiry: DMA status (0x21)
           Product: IO/Storage
           Version: 2.5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IDE
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: No

Hello,

I have Dell Optiplex with ide->CF-Flash card interface. This configuration works well with 2.6.27.21 but it generates the following messages on 2.6.29.3:
...
hda: dma_timer_expiry: DMA status (0x21)
hda: DMA timeout error
...

Quoted 5 lines

Here you have more data, if you need something more please let me know.

PS

This issue takes place with 2.6.28 too.

Does 2.6.27.21 use DMA?

Is this system equipped with on-board IDE->CF adapter, or is it an add-on one?

Does this adapter support DMA at the hardware level (some adapters don't have DMA lines)?

Thanks.

#2 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #1 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-12 18:42:56 ---

Quoted 26 lines · On Tuesday 12 May 2009 08:35:53 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13286

           Summary: dma_timer_expiry: DMA status (0x21)
           Product: IO/Storage
           Version: 2.5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IDE
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: No

Hello,

I have Dell Optiplex with ide->CF-Flash card interface. This configuration works well with 2.6.27.21 but it generates the following messages on 2.6.29.3:
...
hda: dma_timer_expiry: DMA status (0x21)
hda: DMA timeout error
...

Quoted 5 lines

Here you have more data, if you need something more please let me know.

PS

This issue takes place with 2.6.28 too.

Does 2.6.27.21 use DMA?

Is this system equipped with on-board IDE->CF adapter, or is it an add-on one?

Does this adapter support DMA at the hardware level (some adapters don't have DMA lines)?

Thanks.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #2 from [email protected] 2009-05-13 07:58:48 --- "Does 2.6.27.21 use DMA?"

I will check it today evening.

"Is this system equipped with on-board IDE->CF adapter, or is it an add-on one?"

It is an additional hardware. The hardwer is connected to mother board (IDE ifc) and CF-CARD is inserted in a slot on the hardware.

"Does this adapter support DMA at the hardware level (some adapters don't have DMA lines)?"

Take a look belllow, is it what you need?

# hdparm  -i /dev/hda

/dev/hda:

Model=SanDisk SDCFJ-32, FwRev=HDX 2.15, SerialNo=003213L1804H3206 Config={ HardSect NotMFM Removeable DTR>10Mbs nonMagnetic } RawCHS=490/4/32, TrkSize=0, SectSize=576, ECCbytes=4 BuffType=(2) DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=off CurCHS=490/4/32, CurSects=62720, LBA=yes, LBAsects=62720 IORDY=no, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0mdma1*mdma2
AdvancedPM=no
Drive conforms to: Unspecified: ATA/ATAPI-10

* current active mode

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw

Re: [Bug 13286] dma_timer_expiry: DMA status (0x21)

Quoted 9 lines · On Wednesday 13 May 2009 09:58:49 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #2 from [email protected] 2009-05-13 07:58:48 --- "Does 2.6.27.21 use DMA?"

Quoted 7 lines

I will check it today evening.

"Is this system equipped with on-board IDE->CF adapter, or is it an add-on one?"

It is an additional hardware. The hardwer is connected to mother board (IDE ifc) and CF-CARD is inserted in a slot on the hardware.

Ok.

Quoted 6 lines

"Does this adapter support DMA at the hardware level (some adapters don't have DMA lines)?"

Take a look belllow, is it what you need?

# hdparm  -i /dev/hda

We know that the device supports DMA but we don't know about the adapter.

Unfortunately there is no software method to check it so you need to look at PCB and verify if there are any routes connected to pins 21 and 29 (DMARQ and -DMACK lines).

#5 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #3 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-13 13:28:55 ---

Quoted 9 lines · On Wednesday 13 May 2009 09:58:49 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #2 from [email protected] 2009-05-13 07:58:48 --- "Does 2.6.27.21 use DMA?"

Quoted 7 lines

I will check it today evening.

"Is this system equipped with on-board IDE->CF adapter, or is it an add-on one?"

It is an additional hardware. The hardwer is connected to mother board (IDE ifc) and CF-CARD is inserted in a slot on the hardware.

Ok.

Quoted 6 lines

"Does this adapter support DMA at the hardware level (some adapters don't have DMA lines)?"

Take a look belllow, is it what you need?

# hdparm  -i /dev/hda

We know that the device supports DMA but we don't know about the adapter.

Unfortunately there is no software method to check it so you need to look at PCB and verify if there are any routes connected to pins 21 and 29 (DMARQ and -DMACK lines).

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#6 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #4 from [email protected] 2009-05-13 18:01:31 --- "Does 2.6.27.21 use DMA?"

Here is part of dmesg output from 2.6.27.21:
...
platform rtc_cmos: registered platform RTC device (no PNP device found)
squashfs: version 3.4 (2008/08/26) Phillip Lougher
msgmni has been set to 498
io scheduler noop registered (default)
pci 0000:00:01.0: Boot video device
brd: module loaded
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
Probing IDE interface ide0...
hda: SanDisk SDCFJ-32, CFA DISK drive
Probing IDE interface ide1...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 62720 sectors (32 MB) w/1KiB Cache, CHS=490/4/32
hda: hda1 hda2
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Using IPI Shortcut mode
Clocksource tsc unstable (delta = 1023003894 ns)
input: AT Translated Set 2 keyboard as /class/input/input0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 140k freed
NET: Registered protocol family 1
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
...

"Unfortunately there is no software method to check it so you need to look at PCB and verify if there are any routes connected to pins 21 and 29 (DMARQ and -DMACK lines)."

Take a look at attached pictures. Do they help to figure this out?

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#7 lore raw

Re: [Bug 13286] dma_timer_expiry: DMA status (0x21)

Quoted 9 lines · On Wednesday 13 May 2009 20:01:31 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #4 from [email protected] 2009-05-13 18:01:31 --- "Does 2.6.27.21 use DMA?"

Quoted 13 lines

Here is part of dmesg output from 2.6.27.21:
...
platform rtc_cmos: registered platform RTC device (no PNP device found)
squashfs: version 3.4 (2008/08/26) Phillip Lougher
msgmni has been set to 498
io scheduler noop registered (default)
pci 0000:00:01.0: Boot video device
brd: module loaded
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
Probing IDE interface ide0...
hda: SanDisk SDCFJ-32, CFA DISK drive

This kernel is using ide_generic host driver which doesn't support DMA instead of piix one (it explains why 2.6.27.21 works and 2.6.29.3 doesn't).

Quoted 5 lines

"Unfortunately there is no software method to check it so you need to look at PCB and verify if there are any routes connected to pins 21 and 29 (DMARQ and -DMACK lines)."

Take a look at attached pictures. Do they help to figure this out?

No DMA lines... this is hardware problem -- you can workaround it with "ide_core.nodma=0.0" boot parameter (see Documentation/ide/ide.txt for more details on ide parameters).

I'm closing the bug.

#8 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #5 from [email protected] 2009-05-13 18:03:52 --- Created an attachment (id=21332)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21332)
CF-FLASH -> IDE pic1

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#9 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #6 from [email protected] 2009-05-13 18:04:21 --- Created an attachment (id=21333)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21333)
CF-FLASH -> IDE pic2

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#10 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #7 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-13 18:31:12 ---

Quoted 9 lines · On Wednesday 13 May 2009 20:01:31 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13286

--- Comment #4 from [email protected] 2009-05-13 18:01:31 --- "Does 2.6.27.21 use DMA?"

Quoted 13 lines

Here is part of dmesg output from 2.6.27.21:
...
platform rtc_cmos: registered platform RTC device (no PNP device found)
squashfs: version 3.4 (2008/08/26) Phillip Lougher
msgmni has been set to 498
io scheduler noop registered (default)
pci 0000:00:01.0: Boot video device
brd: module loaded
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
Probing IDE interface ide0...
hda: SanDisk SDCFJ-32, CFA DISK drive

This kernel is using ide_generic host driver which doesn't support DMA instead of piix one (it explains why 2.6.27.21 works and 2.6.29.3 doesn't).

Quoted 5 lines

"Unfortunately there is no software method to check it so you need to look at PCB and verify if there are any routes connected to pins 21 and 29 (DMARQ and -DMACK lines)."

Take a look at attached pictures. Do they help to figure this out?

No DMA lines... this is hardware problem -- you can workaround it with "ide_core.nodma=0.0" boot parameter (see Documentation/ide/ide.txt for more details on ide parameters).

I'm closing the bug.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#11 lore raw

[Bug 13286] dma_timer_expiry: DMA status (0x21)

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13286

Bartlomiej Zolnierkiewicz <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
         AssignedTo|[email protected] |[email protected]
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.