[BUG] pata_ali not working on a 64 bit system

From: Luca Tettamanti
Date: Fri Jul 06 2007 - 13:36:24 EST


Hello,
I found out that pata_ali is not working with a 64 bit kernel, while a
32 bit kernel on the same machine works fine. I'm running a very recent
kernel (872aad45, somewhere after 2.6.22-rc7).

The problem is that as soon as the module is loaded I get a screaming
interrupt:

(initramfs) modprobe pata_ali
ACPI: PCI Interrupt 0000:05:02.1[A] -> GSI 23 (level, low) -> IRQ 23
scsi10 : pata_ali
scsi11 : pata_ali
ata11: PATA max UDMA/133 cmd 0x000000000001c880 ctl 0x000000000001c802 bmdma 0x000000000001c080 irq 23
ata12: PATA max UDMA/133 cmd 0x000000000001c480 ctl 0x000000000001c402 bmdma 0x000000000001c088 irq 23
irq 23: nobody cared (try booting with the "irqpoll" option)

Call Trace:
<IRQ> [<ffffffff80258407>] __report_bad_irq+0x30/0x72
[<ffffffff80258620>] note_interrupt+0x1d7/0x21b
[<ffffffff80258ccf>] handle_fasteoi_irq+0xaf/0xd8
[<ffffffff8020c50c>] do_IRQ+0xf4/0x164
[<ffffffff80208631>] mwait_idle+0x0/0x51
[<ffffffff80209bc6>] ret_from_intr+0x0/0xf
<EOI> [<ffffffff80208631>] mwait_idle+0x0/0x51
[<ffffffff80208677>] mwait_idle+0x46/0x51
[<ffffffff802085b5>] cpu_idle+0x95/0xcc
[<ffffffff805bca4e>] start_kernel+0x2d3/0x2df
[<ffffffff805bc138>] _sinittext+0x138/0x13c

(with irqpoll it works, but probably the driver is expecting the
interrupt on another line).

The most interesting difference between 32 and 64 bit is probably this
one:

-ACPI: PCI Interrupt 0000:05:02.1[A] -> GSI 23 (level, low) -> IRQ 19
+ACPI: PCI Interrupt 0000:05:02.1[A] -> GSI 23 (level, low) -> IRQ 23

pata_ali is driving a PCI card with a PATA port and a SATA port
(sata_uli, I also tried loading this one: it doesn't scream but the SATA
port is currently not used).

I also tried pci=nocpi but the card still gets IRQ 23 when using a 64
bit kernel.

The card is this one (lspci on the 32 bit kernel).

05:02.0 Mass storage controller: ALi Corporation ALi M5281 Serial ATA / RAID Host Controller (rev a4) (prog-if 85)
Subsystem: ALi Corporation ALi M5281 Serial ATA / RAID Host Controller
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: 128, cache line size 80
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at c000 [size=8]
Region 1: I/O ports at bc00 [size=4]
Region 2: I/O ports at b880 [size=8]
Region 3: I/O ports at b800 [size=4]
Region 4: I/O ports at b480 [size=16]
Expansion ROM at dfe00000 [disabled] [size=64K]
00: b9 10 81 52 05 00 a0 02 a4 85 80 01 80 80 80 00
10: 01 c0 00 00 01 bc 00 00 81 b8 00 00 01 b8 00 00
20: 81 b4 00 00 00 00 00 00 00 00 00 00 b9 10 81 52
30: 00 00 7f ff 00 00 00 00 00 00 00 00 0e 01 00 00
40: 80 88 08 0f 00 00 55 b1 0a 00 b1 0e 68 00 68 00
50: 01 00 02 00 00 00 00 00 00 00 00 00 09 bc 44 00
60: 00 00 00 00 00 00 00 00 10 03 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 09 00 44 00
c0: 00 00 00 00 00 00 00 00 10 03 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

05:02.1 Mass storage controller: ALi Corporation M5228 ALi ATA/RAID Controller (rev c6) (prog-if 85)
Subsystem: ALi Corporation: Unknown device 5281
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: 128
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at c880 [size=8]
Region 1: I/O ports at c800 [size=4]
Region 2: I/O ports at c480 [size=8]
Region 3: I/O ports at c400 [size=4]
Region 4: I/O ports at c080 [size=16]
00: b9 10 28 52 05 00 a0 02 c6 85 80 01 00 80 80 00
10: 81 c8 00 00 01 c8 00 00 81 c4 00 00 01 c4 00 00
20: 81 c0 00 00 00 00 00 00 a0 00 00 00 b9 10 81 52
30: 00 00 00 00 00 00 00 00 00 00 00 00 0e 01 00 00
40: 00 00 00 7f 00 00 00 00 00 10 64 c9 00 00 ba 1a
50: 00 00 00 81 00 88 44 ad 00 00 00 00 01 31 31 31
60: 01 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

(the SATA part - M5281 - is not used). The only difference with a 64 bit
kernel is:

- Interrupt: pin A routed to IRQ 19
+ Interrupt: pin A routed to IRQ 23


I'm attaching:

the full lspci on 64 bit (lspci-64)
the full lspci on 32 bit (lspci-32)

full dmesg with 64 bit and irqpoll (dmesg-64)
full dmesg with 32 bit (dmesg-32)

Tell me if you need further information.

TIA,
Luca
--
This message will self destruct in 5 seconds.

Attachment: logs.tar.gz
Description: Binary data