Bug 11943 - Boot fails at scsi0:MESH with hde: lost interrupt, AEC6260
Summary: Boot fails at scsi0:MESH with hde: lost interrupt, AEC6260
Status: CLOSED OBSOLETE
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: PPC-32 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: platform_ppc-32
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-02 23:58 UTC by Eric Shaffer
Modified: 2012-05-22 15:11 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.25.2.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
aec62xx: fix AEC6260[R] support on Macintosh (2.66 KB, patch)
2008-11-09 08:08 UTC, Bartlomiej Zolnierkiewicz
Details | Diff

Description Eric Shaffer 2008-11-02 23:58:34 UTC
Latest working kernel version: none
Earliest failing kernel version: 2.6.24-19
Distribution: Ubuntu
Hardware Environment: PowerMac B&W G3(rev.1) upgraded to G4 600 mHz cpu, AEC6260 (ide-pci card)
Software Environment: Ubuntu Intrepid
Problem Description: Install successful from Live CD (Hardy) and Alternate CD (Hardy / Intrepid). Boot proceeds normally until:
scsi0:MESH 
hde: max request size: 128KiB
boot hangs with repeated lost interrupt, DMA recovery messages. Boot cannot proceed beyond this point. 
 

Steps to reproduce:
Comment 1 Andrew Morton 2008-11-03 00:27:57 UTC
Thanks - I'll reassign this to io-ide (although it sounds like an
acpi or x86 problem).
Comment 2 Bartlomiej Zolnierkiewicz 2008-11-03 04:52:54 UTC
Could you try some newer kernel like 2.6.27 or 2.6.28-rc3?

Also did it work OK with some earlier kernel?

[ From the bugreport it seems that kernel from Live CD works OK? ]

Thanks.
Comment 3 Eric Shaffer 2008-11-03 10:03:26 UTC
I am happy to  attempt a newer kernel if I can. While technically minded, I am fairly new to Linux and can only load from Live CD or alt CD. Research to date hasn't shown updating kernel from CD as possible...?

Hardy (2.6.24-19) failed at the same point in the boot process as Intrepid. No other kernel attempted to date. 

The Hardy Live CD worked flawlessly, even wireless connection, which is why I installed. I presumed if the Live CD worked it meant an install would also. 
Comment 4 Eric Shaffer 2008-11-03 10:16:19 UTC
I have also tried startx from terminal at root (hde3) on rescue cd, Ibex loads but keyboard and mouse are unresponsive.
Comment 5 Eric Shaffer 2008-11-06 15:50:46 UTC
(In reply to comment #2)
> Could you try some newer kernel like 2.6.27 or 2.6.28-rc3?
> 
> Also did it work OK with some earlier kernel?
> 
> [ From the bugreport it seems that kernel from Live CD works OK? ]
> 
> Thanks.
> 

I am happy to  attempt a newer kernel if I can. While technically minded, I am
fairly new to Linux and can only load from Live CD or alt CD. Research to date
hasn't shown updating kernel from CD as possible...?

Hardy (2.6.24-19) failed at the same point in the boot process as Intrepid. No
other kernel attempted to date. 

The Hardy Live CD worked flawlessly, even wireless connection, which is why I
installed. I presumed if the Live CD worked it meant an install would also.

I have also tried startx from terminal at root (hde3) on rescue cd, Ibex loads
but keyboard and mouse are unresponsive.
Comment 6 Eric Shaffer 2008-11-07 19:13:05 UTC
(In reply to comment #5)
> (In reply to comment #2)
> > Could you try some newer kernel like 2.6.27 or 2.6.28-rc3?
> > 
> > Also did it work OK with some earlier kernel?
> > 
> > [ From the bugreport it seems that kernel from Live CD works OK? ]
> > 
> > Thanks.
> > 
> 
> I am happy to  attempt a newer kernel if I can. While technically minded, I
> am
> fairly new to Linux and can only load from Live CD or alt CD. Research to
> date
> hasn't shown updating kernel from CD as possible...?
> 
> Hardy (2.6.24-19) failed at the same point in the boot process as Intrepid.
> No
> other kernel attempted to date. 
> 
> The Hardy Live CD worked flawlessly, even wireless connection, which is why I
> installed. I presumed if the Live CD worked it meant an install would also.
> 
> I have also tried startx from terminal at root (hde3) on rescue cd, Ibex
> loads
> but keyboard and mouse are unresponsive.
> 

I have applied a firmware update to the AEC 6260M and the system will now recognize the partitions, cylinder, block data etc. Unfortunately the boot process still hangs at SCSI 0: with lost interrupts / DMA recovery messages. 
Comment 7 Eric Shaffer 2008-11-07 19:13:48 UTC
I must use the irqpoll option for the partition check to be successful. 
Comment 8 Bartlomiej Zolnierkiewicz 2008-11-09 08:07:46 UTC
It could be that AEC6260[R] controllers may need the same quirks (i.e. explicitly enabling IRQ line output) as AEC6280[R] ones on Macintosh (draft patch for 2.6.28-rc3 attached to the next comment).

When it comes to questions related to upating kernel in Ubuntu I think that it would be the best to try to get some help from Ubuntu Kernel Team  (added Ben to cc:) as I can't help much here.
Comment 9 Bartlomiej Zolnierkiewicz 2008-11-09 08:08:55 UTC
Created attachment 18749 [details]
aec62xx: fix AEC6260[R] support on Macintosh
Comment 10 Alan 2008-11-09 08:58:09 UTC
If the BIOS isn't getting run then that patch seems plausible IFF the registers are the same between the chips. I don't have enough Artop docs here to tell.

Probably worth getting an lspci -vvxxx from it (off a live cd or similar) to see what it look slike.
Comment 11 Eric Shaffer 2008-11-09 11:47:41 UTC
ubuntu@ubuntu:~$ lspci -vvxxx
00:00.0 Host bridge: Motorola MPC106 [Grackle] (rev 40)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort+ <MAbort+ >SERR- <PERR+
	Latency: 0, Cache Line Size: 32 bytes
00: 57 10 02 00 06 00 80 b0 40 00 00 06 08 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:0d.0 PCI bridge: Digital Equipment Corporation DECchip 21154 (rev 02) (prog-if 00 [Normal decode])
	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: 64
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 00001000-00001fff
	Memory behind bridge: 80800000-808fffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR+
	BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-
	Capabilities: <access denied>
00: 11 10 26 00 07 01 b0 02 02 00 04 06 00 40 01 00
10: 00 00 00 00 00 00 00 00 00 01 01 20 11 11 a0 a2
20: 80 80 80 80 81 80 71 80 00 00 00 00 00 00 00 00
30: 00 00 00 00 dc 00 00 00 00 00 00 00 00 00 06 03

00:10.0 VGA compatible controller: ATI Technologies Inc Radeon R100 QD [Radeon 7200] (prog-if 00 [VGA controller])
	Subsystem: ATI Technologies Inc Unknown device 0908
	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: 16 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 22
	Region 0: Memory at 88000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at 2000 [size=256]
	Region 2: Memory at 80980000 (32-bit, non-prefetchable) [size=512K]
	Expansion ROM at 80000000 [disabled] [size=128K]
	Capabilities: <access denied>
00: 02 10 44 51 87 00 b0 02 00 00 00 03 08 10 00 00
10: 08 00 00 88 01 04 00 00 00 00 98 80 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 02 10 08 09
30: 00 00 00 80 50 00 00 00 00 00 00 00 ff 01 08 00

01:00.0 FireWire (IEEE 1394): Texas Instruments PCILynx/PCILynx2 IEEE 1394 Link Layer Controller (rev 02) (prog-if 00 [Generic])
	Subsystem: Apple Computer Inc. Unknown device 001c
	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: 16 (750ns min, 1000ns max), Cache Line Size: 128 bytes
	Interrupt: pin A routed to IRQ 21
	Region 0: Memory at 80881000 (32-bit, non-prefetchable) [size=4K]
	Region 1: Memory at 808c0000 (32-bit, non-prefetchable) [size=64K]
	Region 2: Memory at 808b0000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at 808a0000 [disabled] [size=64K]
00: 4c 10 00 80 16 00 00 02 02 00 00 0c 20 10 00 00
10: 00 10 88 80 00 00 8c 80 00 00 8b 80 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 6b 10 1c 00
30: 00 00 8a 80 00 00 00 00 00 00 00 00 00 01 03 04

01:01.0 IDE interface: Silicon Image, Inc. PCI0646 (rev 05) (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: Silicon Image, Inc. PCI0646
	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: 64 (500ns min, 1000ns max)
	Interrupt: pin A routed to IRQ 26
	Region 0: I/O ports at 10e0 [size=8]
	Region 1: I/O ports at 10d0 [size=4]
	Region 2: I/O ports at 10c0 [size=8]
	Region 3: I/O ports at 10b0 [size=4]
	Region 4: I/O ports at 10a0 [size=16]
	Capabilities: <access denied>
00: 95 10 46 06 05 00 90 02 05 8f 01 01 00 40 00 00
10: e1 10 00 00 d1 10 00 00 c1 10 00 00 b1 10 00 00
20: a1 10 00 00 00 00 00 00 00 00 00 00 95 10 46 06
30: 00 00 00 00 60 00 00 00 00 00 00 00 0e 01 02 04

01:04.0 SCSI storage controller: Artop Electronic Corp ATP860 (rev 01)
	Subsystem: Artop Electronic Corp ATP860
	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: 16 (1500ns min, 1500ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 25
	Region 0: I/O ports at 1090 [size=8]
	Region 1: I/O ports at 1080 [size=4]
	Region 2: I/O ports at 1070 [size=8]
	Region 3: I/O ports at 1060 [size=4]
	Region 4: I/O ports at 1050 [size=16]
	Expansion ROM at 80890000 [disabled] [size=64K]
	Capabilities: <access denied>
00: 91 11 07 00 15 00 90 02 01 00 00 01 08 10 00 00
10: 91 10 00 00 81 10 00 00 71 10 00 00 61 10 00 00
20: 51 10 00 00 00 00 00 00 00 00 00 00 91 11 07 00
30: 00 00 89 80 58 00 00 00 00 00 00 00 00 01 06 06

01:05.0 Class ff00: Apple Computer Inc. Paddington Mac I/O
	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: 16, Cache Line Size: 32 bytes
	Region 0: Memory at 80800000 (32-bit, non-prefetchable) [size=512K]
00: 6b 10 17 00 16 00 00 82 00 00 00 ff 08 10 00 00
10: 00 00 80 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

01:06.0 USB Controller: OPTi Inc. 82C861 (rev 10) (prog-if 10 [OHCI])
	Subsystem: OPTi Inc. 82C861
	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: 16, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 28
	Region 0: Memory at 80880000 (32-bit, non-prefetchable) [size=4K]
00: 45 10 61 c8 16 00 80 82 10 10 03 0c 08 10 00 00
10: 00 00 88 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 45 10 61 c8
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00
Comment 12 Alan 2008-11-09 11:59:08 UTC
Can you redo that as the root user - only root can access registers > 0x3F which is what we need to see in this case.

Alan
Comment 13 Eric Shaffer 2008-11-09 13:15:09 UTC
ubuntu@ubuntu:~$ sudo lspci -vvxxx
00:00.0 Host bridge: Motorola MPC106 [Grackle] (rev 40)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort+ <MAbort+ >SERR- <PERR+
	Latency: 0, Cache Line Size: 32 bytes
00: 57 10 02 00 06 00 80 b0 40 00 00 06 08 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 00 01 00 00 00 00 00 00 00 00 00 00 20 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 80 00 80 00 80 00 80 00 00 01 01 02 02 03 03
90: 7f ff 7f ff 7f ff 7f ff 00 00 01 01 02 02 03 03
a0: ff 00 00 96 00 00 00 00 1c 06 14 ff 00 02 00 22
b0: 00 00 00 00 00 00 00 00 00 00 06 00 00 00 00 00
c0: 01 00 00 72 00 00 00 00 80 80 00 2c 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 42 00 ff 0f 00 00 00 00 20 00 00 00 00 00 00 00
f0: 00 00 6c f9 00 12 01 00 93 22 30 14 24 22 30 25

00:0d.0 PCI bridge: Digital Equipment Corporation DECchip 21154 (rev 02) (prog-if 00 [Normal decode])
	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: 64
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 00001000-00001fff
	Memory behind bridge: 80800000-808fffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR+
	BridgeCtl: Parity- SERR+ NoISA+ VGA- MAbort- >Reset- FastB2B-
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=220mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
		Bridge: PM- B3+
00: 11 10 26 00 07 01 b0 02 02 00 04 06 00 40 01 00
10: 00 00 00 00 00 00 00 00 00 01 01 20 11 11 a0 a2
20: 80 80 80 80 81 80 71 80 00 00 00 00 00 00 00 00
30: 00 00 00 00 dc 00 00 00 00 00 00 00 00 00 06 03
40: 00 00 ff 02 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 02 00 0f 00 00 18 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 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 01 00 01 01
e0: 00 00 40 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

00:10.0 VGA compatible controller: ATI Technologies Inc Radeon R100 QD [Radeon 7200] (prog-if 00 [VGA controller])
	Subsystem: ATI Technologies Inc Unknown device 0908
	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: 16 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 22
	Region 0: Memory at 88000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at 2000 [size=256]
	Region 2: Memory at 80980000 (32-bit, non-prefetchable) [size=512K]
	Expansion ROM at 80000000 [disabled] [size=128K]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: 02 10 44 51 87 00 b0 02 00 00 00 03 08 10 00 00
10: 08 00 00 88 01 04 00 00 00 00 98 80 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 02 10 08 09
30: 00 00 00 80 50 00 00 00 00 00 00 00 ff 01 08 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 02 10 08 09
50: 01 00 02 06 00 00 00 00 02 50 20 00 00 02 00 2f
60: 00 02 00 00 00 00 00 00 00 00 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 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

01:00.0 FireWire (IEEE 1394): Texas Instruments PCILynx/PCILynx2 IEEE 1394 Link Layer Controller (rev 02) (prog-if 00 [Generic])
	Subsystem: Apple Computer Inc. Unknown device 001c
	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: 16 (750ns min, 1000ns max), Cache Line Size: 128 bytes
	Interrupt: pin A routed to IRQ 21
	Region 0: Memory at 80881000 (32-bit, non-prefetchable) [size=4K]
	Region 1: Memory at 808c0000 (32-bit, non-prefetchable) [size=64K]
	Region 2: Memory at 808b0000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at 808a0000 [disabled] [size=64K]
00: 4c 10 00 80 16 00 00 02 02 00 00 0c 20 10 00 00
10: 00 10 88 80 00 00 8c 80 00 00 8b 80 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 6b 10 1c 00
30: 00 00 8a 80 00 00 00 00 00 00 00 00 00 01 03 04
40: 00 00 00 00 71 00 00 00 00 00 00 00 ff 03 01 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 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: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 0d 00 00 00 0d 00 00 00 0d 00 00 00 0d 00 00 00
d0: 0d 00 00 00 0d 00 00 00 0d 00 00 00 0d 00 00 00
e0: 0d 00 00 00 0d 00 00 00 0d 00 00 00 0d 00 00 00
f0: 0d 00 00 00 0d 00 00 00 0d 00 00 00 0d 00 00 00

01:01.0 IDE interface: Silicon Image, Inc. PCI0646 (rev 05) (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: Silicon Image, Inc. PCI0646
	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: 64 (500ns min, 1000ns max)
	Interrupt: pin A routed to IRQ 26
	Region 0: I/O ports at 10e0 [size=8]
	Region 1: I/O ports at 10d0 [size=4]
	Region 2: I/O ports at 10c0 [size=8]
	Region 3: I/O ports at 10b0 [size=4]
	Region 4: I/O ports at 10a0 [size=16]
	Capabilities: [60] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=3 PME-
00: 95 10 46 06 05 00 90 02 05 8f 01 01 00 40 00 00
10: e1 10 00 00 d1 10 00 00 c1 10 00 00 b1 10 00 00
20: a1 10 00 00 00 00 00 00 00 00 00 00 95 10 46 06
30: 00 00 00 00 60 00 00 00 00 00 00 00 0e 01 02 04
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02
50: 40 e4 00 c0 00 c0 00 cc 00 40 00 00 00 00 00 00
60: 01 00 01 06 00 60 00 80 00 00 00 00 00 00 00 00
70: 08 00 00 f0 e8 12 e7 0f 08 00 00 f0 c8 1f ff 6f
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

01:04.0 SCSI storage controller: Artop Electronic Corp ATP860 (rev 01)
	Subsystem: Artop Electronic Corp ATP860
	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: 16 (1500ns min, 1500ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 25
	Region 0: I/O ports at 1090 [size=8]
	Region 1: I/O ports at 1080 [size=4]
	Region 2: I/O ports at 1070 [size=8]
	Region 3: I/O ports at 1060 [size=4]
	Region 4: I/O ports at 1050 [size=16]
	Expansion ROM at 80890000 [disabled] [size=64K]
	Capabilities: [58] Power Management version 1
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: 91 11 07 00 15 00 90 02 01 00 00 01 08 10 00 00
10: 91 10 00 00 81 10 00 00 71 10 00 00 61 10 00 00
20: 51 10 00 00 00 00 00 00 00 00 00 00 91 11 07 00
30: 00 00 89 80 58 00 00 00 00 00 00 00 00 01 06 06
40: 31 31 00 31 55 50 00 00 70 00 06 00 00 02 00 00
50: ff ff ff ff 00 02 00 00 01 00 01 00 00 00 00 00
60: 31 31 00 31 55 50 00 00 70 00 06 00 00 02 00 00
70: 00 00 00 00 00 02 00 00 01 00 01 00 00 00 00 00
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: 31 31 00 31 55 50 00 00 70 00 06 00 00 02 00 00
d0: 00 00 00 00 00 02 00 00 01 00 01 00 00 00 00 00
e0: 31 31 00 31 55 50 00 00 70 00 06 00 00 02 00 00
f0: 00 00 00 00 00 02 00 00 01 00 01 00 00 00 00 00

01:05.0 Class ff00: Apple Computer Inc. Paddington Mac I/O
	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: 16, Cache Line Size: 32 bytes
	Region 0: Memory at 80800000 (32-bit, non-prefetchable) [size=512K]
00: 6b 10 17 00 16 00 00 82 00 00 00 ff 08 10 00 00
10: 00 00 80 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 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 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

01:06.0 USB Controller: OPTi Inc. 82C861 (rev 10) (prog-if 10 [OHCI])
	Subsystem: OPTi Inc. 82C861
	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: 16, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 28
	Region 0: Memory at 80880000 (32-bit, non-prefetchable) [size=4K]
00: 45 10 61 c8 16 00 80 82 10 10 03 0c 08 10 00 00
10: 00 00 88 80 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 45 10 61 c8
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00
40: 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 01 27 00 30 33 33 33 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 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 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
Comment 14 Bartlomiej Zolnierkiewicz 2008-11-09 13:50:38 UTC
Thanks.  Could you try booting your installed system with "hde=nodma" kernel option, and if that works do (as root):

setpci -s 01:04.0 4a.b=86
hdparm -d1 /dev/hde

and see if hde continues to work fine (now with DMA mode enabled)?
Comment 15 Bartlomiej Zolnierkiewicz 2008-11-09 14:05:13 UTC
Update: hdparm -d1 /dev/hda won't work since we removed CONFIG_IDEDMA_PCI_AUTO config option before 2.6.24 but it still would be to useful to boot with "hde=nodma" and no "irqpoll".
Comment 16 Eric Shaffer 2008-11-09 14:26:12 UTC
hde=nodma - unsuccessful
hde=nodma hdf=nodma hdh=nodma - unsuccessful

Still experiencing boot stall at scsi0 : MESH
Comment 17 Eric Shaffer 2008-11-09 14:40:00 UTC
(In reply to comment #9)
> Created an attachment (id=18749) [details]
> aec62xx: fix AEC6260[R] support on Macintosh
> 

Sorry but have to ask, is there something I am meant to do with this patch or is this internal communication? 
Comment 18 Bartlomiej Zolnierkiewicz 2008-11-09 15:00:01 UTC
Do SCSI and IDE devices share IRQs?  Could you post the output of 'cat /proc/interrupts' from the "irqpoll" kernel?

PS I don't think that there is a need to do anything with the patch currently.
Comment 19 Eric Shaffer 2008-11-09 15:20:05 UTC
Unfortunately I am uncertain how to get that output from the "irqpoll" kernel. I tried $cat /proc/interrupts and got this output (from Live CD no?) :

ubuntu@ubuntu:~$ cat /proc/interrupts
           CPU0       
 16:         14   PMAC-PIC  Edge      MESH
 18:          1   PMAC-PIC  Edge      PMac
 19:        105   PMAC-PIC  Edge      PMac Output
 20:         95   PMAC-PIC  Edge      PMac Input
 21:          5   PMAC-PIC  Level     pcilynx
 22:          0   PMAC-PIC  Level     radeon@pci:0000:00:10.0
 25:      19152   PMAC-PIC  Level     ide2, ide3
 27:       6992   PMAC-PIC  Edge      ADB
 28:    1183341   PMAC-PIC  Level     ohci_hcd:usb1
 29:       7866   PMAC-PIC  Edge      ide0
 32:         71   PMAC-PIC  Edge      BMAC-txdma
 33:          2   PMAC-PIC  Edge      BMAC-rxdma
 42:         71   PMAC-PIC  Edge      BMAC-misc
BAD:          0

I also tried (beyond hope! :)) $cat /media/disk/proc/interrupts but receive an error message of cat: /media/disk/proc/interrupts: no such file or directory. Is it possible that since the "irqpoll" kernel has never completed booting this file has not yet been written? 

Someday I will know more than just enough to be a danger to my system...until then, I need a little more guidance on this one please. 
Comment 20 Bartlomiej Zolnierkiewicz 2008-11-09 15:45:07 UTC
Ah, now I understand -- "irqpoll" only helps in getting past IDE messages but boot still hangs on mesh driver initialization, right? [ I thought that you can now boot successfully the installed system using "irqpoll". ]

If so this really looks more like a generic platform problem affecting both IDE and SCSI (mesh driver has an "interesting" IRQ handling routine that will loop forever if IRQ is not cleared).
Comment 21 Bartlomiej Zolnierkiewicz 2008-11-09 15:52:33 UTC
If the mesh driver is compiled as module in Ubuntu (I don't know that) you may try blacklisting mesh driver (so it won't be run) by:

- booting from LiveCD

and

- editing /media/disk/etc/modprobe.d/blacklist file
  (just add "blacklist mesh" line at the end of it)
Comment 22 Eric Shaffer 2008-11-09 16:10:47 UTC
(In reply to comment #20)
> Ah, now I understand -- "irqpoll" only helps in getting past IDE messages but
> boot still hangs on mesh driver initialization, right? [ I thought that you
> can
> now boot successfully the installed system using "irqpoll". ]
> 
> If so this really looks more like a generic platform problem affecting both
> IDE
> and SCSI (mesh driver has an "interesting" IRQ handling routine that will
> loop
> forever if IRQ is not cleared).
> 

Correct, "irqpoll /irqfixup" only allow the system to read the partition and
disk info prior to scsi0 : MESH init. Still results in hang at scsi0 : MESH
with subsequent hde/f/h: lost interrupt messages. Installed system has never
successfully completed boot with or without "irqpoll / irqfixup". 

It is curious though that Live CD and alternate CD both load and operate
without error (no hang or stall)...this is dmesg snip from Live CD:

[   14.024619] /build/buildd/linux-2.6.24/drivers/hid/usbhid/hid-core.c:
v2.6:USB HID core driver
[   14.812490] scsi0 : MESH
[   18.354244] hde: max request size: 128KiB
[   18.376470] hde: 195813072 sectors (100256 MB) w/8192KiB Cache,
CHS=65535/16/63
[   18.378049] hde: cache flushes supported
[   18.378165]  hde: [mac] hde1 hde2 hde3 hde4
[   18.387956] hdf: max request size: 128KiB
[   18.401188] hdf: 240121728 sectors (122942 MB) w/7936KiB Cache,
CHS=65535/16/63
[   18.401337] hdf: cache flushes supported
[   18.401413]  hdf: [mac] hdf1 hdf2 hdf3 hdf4 hdf5 hdf6 hdf7 hdf8 hdf9 hdf10
hdf11
[   18.410500] hdh: max request size: 128KiB
[   18.430172] hdh: 195813072 sectors (100256 MB) w/8192KiB Cache,
CHS=65535/16/63
[   18.432317] hdh: cache flushes supported
[   18.432417]  hdh: [mac] hdh1 hdh2 hdh3 hdh4
Comment 23 Eric Shaffer 2008-11-09 16:42:04 UTC
"blacklist mesh" has no apparent effect with or without "irqpoll/irqfixup" when added to /media/disk/etc/modprobe.d/blacklist.  
Comment 24 Bartlomiej Zolnierkiewicz 2008-11-13 13:17:18 UTC
Thanks for testing it anyway.  It really seems like a platform specific issue so I'll re-assing this bug to Platform/PPC for now.
Comment 25 Eric Shaffer 2009-02-26 10:49:44 UTC
Any update on this issue? 
Comment 26 Alan 2012-05-22 15:11:29 UTC
Closing as drivers/ide is now obsolete

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