2002-03-27 23:36:50

by James Mayer

[permalink] [raw]
Subject: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

Hi,

I'm seeing a kernel hang at boot with the ALI15x3 driver on a Sony
PCG-C1MV/M with 2.4.19-pre4-ac2.

The kernel hangs right after printing
ALI15X3: chipset revision 196
ALI15X3: not 100% native mode: will probe irqs later

After adding printk calls to alim15x3.c, it seems to hang during the
pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02) call on line 588.

The kernel successfully loads if I build without ALI15x3 support,
printing these messages:

ALI15X3: chipset revision 196
ALI15X3: not 100% native mode: will probe irqs later
ALI15X3: simplex device: DMA disabled
ide0: ALI15X3 Bus-Master DMA disabled (BIOS)
ALI15X3: simplex device: DMA disabled
ide1: ALI15X3 Bus-Master DMA disabled (BIOS)
hda: IC25N020ATDA04-0, ATA DISK drive

Is the ALI15x3 driver falsely enabling udma on my system?

ide0=nodma doesn't help, either...

I'm appending the output from lspci -vv in case that helps.

Thanks for any help...
- James

00:00.0 Host bridge: Transmeta Corporation LongRun Northbridge (rev 01)
Subsystem: Sony Corporation: Unknown device 80ec
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
Region 0: Memory at e8000000 (32-bit, non-prefetchable) [size=1M]

00:00.1 RAM memory: Transmeta Corporation SDRAM controller
Subsystem: Sony Corporation: Unknown device 80ec
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-

00:00.2 RAM memory: Transmeta Corporation BIOS scratchpad
Subsystem: Sony Corporation: Unknown device 80ec
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-

00:06.0 Multimedia audio controller: Acer Laboratories Inc. [ALi] M5451 PCI South Bridge Audio (rev 02)
Subsystem: Sony Corporation: Unknown device 80ec
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, 6000ns max)
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at 1800 [size=256]
Region 1: Memory at e8100000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>

00:07.0 ISA bridge: Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV]
Subsystem: Sony Corporation: Unknown device 80ec
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
Capabilities: <available only to root>

00:08.0 Modem: Acer Laboratories Inc. [ALi]: Unknown device 5457 (prog-if 00 [Generic])
Subsystem: Sony Corporation: Unknown device 80ec
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-
Interrupt: pin A routed to IRQ 9
Region 0: Memory at e8101000 (32-bit, non-prefetchable) [disabled] [size=4K]
Region 1: I/O ports at 1c00 [disabled] [size=256]
Capabilities: <available only to root>

00:09.0 FireWire (IEEE 1394): Texas Instruments: Unknown device 8021 (rev 02) (prog-if 10 [OHCI])
Subsystem: Sony Corporation: Unknown device 80ec
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 (750ns min, 1000ns max), cache line size 08
Interrupt: pin A routed to IRQ 9
Region 0: Memory at e8102000 (32-bit, non-prefetchable) [size=2K]
Region 1: Memory at e8104000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <available only to root>

00:0a.0 Multimedia controller: Citicorp TTI: Unknown device 2011
Subsystem: Sony Corporation: Unknown device 80ec
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-
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at 2000 [disabled] [size=256]
Region 1: Memory at e8200000 (32-bit, non-prefetchable) [disabled] [size=1M]
Capabilities: <available only to root>

00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Sony Corporation: Unknown device 80ec
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 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at 2400 [size=256]
Region 1: Memory at e8102800 (32-bit, non-prefetchable) [size=256]
Capabilities: <available only to root>

00:0c.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY (prog-if 00 [VGA])
Subsystem: Sony Corporation: Unknown device 80ec
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-
Interrupt: pin A routed to IRQ 9
Region 0: Memory at f0000000 (32-bit, prefetchable) [size=128M]
Region 1: I/O ports at 2800 [size=256]
Region 2: Memory at e8110000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: <available only to root>

00:0f.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
Subsystem: Sony Corporation: Unknown device 80ec
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-
Interrupt: pin A routed to IRQ 9
Region 0: Memory at e8103000 (32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: <available only to root>

00:10.0 IDE interface: Acer Laboratories Inc. [ALi] M5229 IDE (rev c4) (prog-if a0)
Subsystem: Sony Corporation: Unknown device 80ec
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 0
Region 0: [virtual] I/O ports at 01f0 [size=16]
Region 1: [virtual] I/O ports at 03f4
Region 2: [virtual] I/O ports at 0170 [size=16]
Region 3: [virtual] I/O ports at 0374
Region 4: I/O ports at 1400 [size=16]
Capabilities: <available only to root>

00:11.0 Non-VGA unclassified device: Acer Laboratories Inc. [ALi] M7101 PMU
Subsystem: Sony Corporation: Unknown device 80ec
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-

00:12.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
Subsystem: Sony Corporation: Unknown device 80ec
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: 168
Interrupt: pin A routed to IRQ 9
Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=01, subordinate=01, sec-latency=176
Memory window 0: 10400000-107ff000 (prefetchable)
Memory window 1: 10800000-10bff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

00:14.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
Subsystem: Sony Corporation: Unknown device 80ec
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 (20000ns max), cache line size 08
Interrupt: pin A routed to IRQ 9
Region 0: Memory at 000e0000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <available only to root>


2002-03-27 23:48:53

by Alan

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

> After adding printk calls to alim15x3.c, it seems to hang during the
> pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02) call on line 588.

Does it work if you comemtn that line out ?

2002-03-27 23:58:34

by Brian D Heaton

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

I had the same issue with my Lifebook P-2040. I found a patch on-line
to work around the issue. I'll look for it and send you a link.

THX/BDH


On Wed, 2002-03-27 at 18:38, James Mayer wrote:
> Hi,
>
> I'm seeing a kernel hang at boot with the ALI15x3 driver on a Sony
> PCG-C1MV/M with 2.4.19-pre4-ac2.
>
> The kernel hangs right after printing
> ALI15X3: chipset revision 196
> ALI15X3: not 100% native mode: will probe irqs later
>
> After adding printk calls to alim15x3.c, it seems to hang during the
> pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02) call on line 588.
>
> The kernel successfully loads if I build without ALI15x3 support,
> printing these messages:
>
> ALI15X3: chipset revision 196
> ALI15X3: not 100% native mode: will probe irqs later
> ALI15X3: simplex device: DMA disabled
> ide0: ALI15X3 Bus-Master DMA disabled (BIOS)
> ALI15X3: simplex device: DMA disabled
> ide1: ALI15X3 Bus-Master DMA disabled (BIOS)
> hda: IC25N020ATDA04-0, ATA DISK drive
>
> Is the ALI15x3 driver falsely enabling udma on my system?
>
> ide0=nodma doesn't help, either...
>
> I'm appending the output from lspci -vv in case that helps.
>
> Thanks for any help...
> - James
>
> 00:00.0 Host bridge: Transmeta Corporation LongRun Northbridge (rev 01)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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
> Region 0: Memory at e8000000 (32-bit, non-prefetchable) [size=1M]
>
> 00:00.1 RAM memory: Transmeta Corporation SDRAM controller
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
>
> 00:00.2 RAM memory: Transmeta Corporation BIOS scratchpad
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
>
> 00:06.0 Multimedia audio controller: Acer Laboratories Inc. [ALi] M5451 PCI South Bridge Audio (rev 02)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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, 6000ns max)
> Interrupt: pin A routed to IRQ 9
> Region 0: I/O ports at 1800 [size=256]
> Region 1: Memory at e8100000 (32-bit, non-prefetchable) [size=4K]
> Capabilities: <available only to root>
>
> 00:07.0 ISA bridge: Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV]
> Subsystem: Sony Corporation: Unknown device 80ec
> 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
> Capabilities: <available only to root>
>
> 00:08.0 Modem: Acer Laboratories Inc. [ALi]: Unknown device 5457 (prog-if 00 [Generic])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at e8101000 (32-bit, non-prefetchable) [disabled] [size=4K]
> Region 1: I/O ports at 1c00 [disabled] [size=256]
> Capabilities: <available only to root>
>
> 00:09.0 FireWire (IEEE 1394): Texas Instruments: Unknown device 8021 (rev 02) (prog-if 10 [OHCI])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 (750ns min, 1000ns max), cache line size 08
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at e8102000 (32-bit, non-prefetchable) [size=2K]
> Region 1: Memory at e8104000 (32-bit, non-prefetchable) [size=16K]
> Capabilities: <available only to root>
>
> 00:0a.0 Multimedia controller: Citicorp TTI: Unknown device 2011
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: I/O ports at 2000 [disabled] [size=256]
> Region 1: Memory at e8200000 (32-bit, non-prefetchable) [disabled] [size=1M]
> Capabilities: <available only to root>
>
> 00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 (8000ns min, 16000ns max)
> Interrupt: pin A routed to IRQ 9
> Region 0: I/O ports at 2400 [size=256]
> Region 1: Memory at e8102800 (32-bit, non-prefetchable) [size=256]
> Capabilities: <available only to root>
>
> 00:0c.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY (prog-if 00 [VGA])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at f0000000 (32-bit, prefetchable) [size=128M]
> Region 1: I/O ports at 2800 [size=256]
> Region 2: Memory at e8110000 (32-bit, non-prefetchable) [size=64K]
> Expansion ROM at <unassigned> [disabled] [size=128K]
> Capabilities: <available only to root>
>
> 00:0f.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at e8103000 (32-bit, non-prefetchable) [disabled] [size=4K]
> Capabilities: <available only to root>
>
> 00:10.0 IDE interface: Acer Laboratories Inc. [ALi] M5229 IDE (rev c4) (prog-if a0)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 0
> Region 0: [virtual] I/O ports at 01f0 [size=16]
> Region 1: [virtual] I/O ports at 03f4
> Region 2: [virtual] I/O ports at 0170 [size=16]
> Region 3: [virtual] I/O ports at 0374
> Region 4: I/O ports at 1400 [size=16]
> Capabilities: <available only to root>
>
> 00:11.0 Non-VGA unclassified device: Acer Laboratories Inc. [ALi] M7101 PMU
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
>
> 00:12.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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: 168
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
> Bus: primary=00, secondary=01, subordinate=01, sec-latency=176
> Memory window 0: 10400000-107ff000 (prefetchable)
> Memory window 1: 10800000-10bff000
> I/O window 0: 00004000-000040ff
> I/O window 1: 00004400-000044ff
> BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
> 16-bit legacy interface ports at 0001
>
> 00:14.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 (20000ns max), cache line size 08
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at 000e0000 (32-bit, non-prefetchable) [size=4K]
> Capabilities: <available only to root>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>


2002-03-28 00:00:14

by Andre Hedrick

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support


This problem is being addressed at ALI with the help of Sony.
I can not tell you the issue because I have not been authorized.

Cheers,

On Wed, 27 Mar 2002, James Mayer wrote:

> Hi,
>
> I'm seeing a kernel hang at boot with the ALI15x3 driver on a Sony
> PCG-C1MV/M with 2.4.19-pre4-ac2.
>
> The kernel hangs right after printing
> ALI15X3: chipset revision 196
> ALI15X3: not 100% native mode: will probe irqs later
>
> After adding printk calls to alim15x3.c, it seems to hang during the
> pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02) call on line 588.
>
> The kernel successfully loads if I build without ALI15x3 support,
> printing these messages:
>
> ALI15X3: chipset revision 196
> ALI15X3: not 100% native mode: will probe irqs later
> ALI15X3: simplex device: DMA disabled
> ide0: ALI15X3 Bus-Master DMA disabled (BIOS)
> ALI15X3: simplex device: DMA disabled
> ide1: ALI15X3 Bus-Master DMA disabled (BIOS)
> hda: IC25N020ATDA04-0, ATA DISK drive
>
> Is the ALI15x3 driver falsely enabling udma on my system?
>
> ide0=nodma doesn't help, either...
>
> I'm appending the output from lspci -vv in case that helps.
>
> Thanks for any help...
> - James
>
> 00:00.0 Host bridge: Transmeta Corporation LongRun Northbridge (rev 01)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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
> Region 0: Memory at e8000000 (32-bit, non-prefetchable) [size=1M]
>
> 00:00.1 RAM memory: Transmeta Corporation SDRAM controller
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
>
> 00:00.2 RAM memory: Transmeta Corporation BIOS scratchpad
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
>
> 00:06.0 Multimedia audio controller: Acer Laboratories Inc. [ALi] M5451 PCI South Bridge Audio (rev 02)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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, 6000ns max)
> Interrupt: pin A routed to IRQ 9
> Region 0: I/O ports at 1800 [size=256]
> Region 1: Memory at e8100000 (32-bit, non-prefetchable) [size=4K]
> Capabilities: <available only to root>
>
> 00:07.0 ISA bridge: Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV]
> Subsystem: Sony Corporation: Unknown device 80ec
> 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
> Capabilities: <available only to root>
>
> 00:08.0 Modem: Acer Laboratories Inc. [ALi]: Unknown device 5457 (prog-if 00 [Generic])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at e8101000 (32-bit, non-prefetchable) [disabled] [size=4K]
> Region 1: I/O ports at 1c00 [disabled] [size=256]
> Capabilities: <available only to root>
>
> 00:09.0 FireWire (IEEE 1394): Texas Instruments: Unknown device 8021 (rev 02) (prog-if 10 [OHCI])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 (750ns min, 1000ns max), cache line size 08
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at e8102000 (32-bit, non-prefetchable) [size=2K]
> Region 1: Memory at e8104000 (32-bit, non-prefetchable) [size=16K]
> Capabilities: <available only to root>
>
> 00:0a.0 Multimedia controller: Citicorp TTI: Unknown device 2011
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: I/O ports at 2000 [disabled] [size=256]
> Region 1: Memory at e8200000 (32-bit, non-prefetchable) [disabled] [size=1M]
> Capabilities: <available only to root>
>
> 00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 (8000ns min, 16000ns max)
> Interrupt: pin A routed to IRQ 9
> Region 0: I/O ports at 2400 [size=256]
> Region 1: Memory at e8102800 (32-bit, non-prefetchable) [size=256]
> Capabilities: <available only to root>
>
> 00:0c.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY (prog-if 00 [VGA])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at f0000000 (32-bit, prefetchable) [size=128M]
> Region 1: I/O ports at 2800 [size=256]
> Region 2: Memory at e8110000 (32-bit, non-prefetchable) [size=64K]
> Expansion ROM at <unassigned> [disabled] [size=128K]
> Capabilities: <available only to root>
>
> 00:0f.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at e8103000 (32-bit, non-prefetchable) [disabled] [size=4K]
> Capabilities: <available only to root>
>
> 00:10.0 IDE interface: Acer Laboratories Inc. [ALi] M5229 IDE (rev c4) (prog-if a0)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 0
> Region 0: [virtual] I/O ports at 01f0 [size=16]
> Region 1: [virtual] I/O ports at 03f4
> Region 2: [virtual] I/O ports at 0170 [size=16]
> Region 3: [virtual] I/O ports at 0374
> Region 4: I/O ports at 1400 [size=16]
> Capabilities: <available only to root>
>
> 00:11.0 Non-VGA unclassified device: Acer Laboratories Inc. [ALi] M7101 PMU
> Subsystem: Sony Corporation: Unknown device 80ec
> 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-
>
> 00:12.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
> Subsystem: Sony Corporation: Unknown device 80ec
> 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: 168
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at 10000000 (32-bit, non-prefetchable) [size=4K]
> Bus: primary=00, secondary=01, subordinate=01, sec-latency=176
> Memory window 0: 10400000-107ff000 (prefetchable)
> Memory window 1: 10800000-10bff000
> I/O window 0: 00004000-000040ff
> I/O window 1: 00004400-000044ff
> BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
> 16-bit legacy interface ports at 0001
>
> 00:14.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
> Subsystem: Sony Corporation: Unknown device 80ec
> 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 (20000ns max), cache line size 08
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at 000e0000 (32-bit, non-prefetchable) [size=4K]
> Capabilities: <available only to root>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

Andre Hedrick
LAD Storage Consulting Group

2002-03-28 00:22:24

by James Mayer

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

On Thu, Mar 28, 2002 at 12:04:33AM +0000, Alan Cox wrote:
> > After adding printk calls to alim15x3.c, it seems to hang during the
> > pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02) call on line 588.
>
> Does it work if you comemtn that line out ?

No, if the line is commented out I get:

hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hda: drive not ready for command

. . . and then the kernel panics because it can't find init.

2002-03-28 00:30:54

by Andre Hedrick

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

On Wed, 27 Mar 2002, James Mayer wrote:

> On Thu, Mar 28, 2002 at 12:04:33AM +0000, Alan Cox wrote:
> > > After adding printk calls to alim15x3.c, it seems to hang during the
> > > pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02) call on line 588.
> >
> > Does it work if you comemtn that line out ?
>
> No, if the line is commented out I get:
>
> hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
> hda: drive not ready for command

Translation the HOST is not setup and the enable hooks are broken.
If you write to those bits it will tank the controller, and that is as
much as I can come forward on at this point. This is appears to be
exclusive to the TransMeta based NorthBridge + ALI south bridge.

Regards,

Andre Hedrick
LAD Storage Consulting Group

2002-03-28 03:37:43

by bhoward

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

>> > After adding printk calls to alim15x3.c, it seems to hang during the
>> > pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02) call on line 588.
>>
>> Does it work if you comemtn that line out ?

James> No, if the line is commented out I get:

James> hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
James> hda: drive not ready for command

I ran into this as well under various kernels including 2.4.18. Try
adding:
append="idebus=50"

to the lilo stanza for your kernel.

It seems even after I amputated the offending "write" that causes the
lockup, the bus speed was being set to 33MHz instead of 50Mhz. The
above solved the problem for me.

I don't need to specifically set idebus in the 2.5.7 version of the
driver so I assume something has been corrected in more recent
releases.

For anyone else trying to configure the pcg-c1mrx or pcg-c1mv, I'm
updating linux configuration document as I work through the
setup of the various devices:
http://hale.org/~bhoward/issue_7/pcg-c1mrx.html

Bruce

2002-03-29 01:09:42

by James Mayer

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

> James> hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
> James> hda: drive not ready for command
>
> I ran into this as well under various kernels including 2.4.18. Try
> adding:
> append="idebus=50"
>
> to the lilo stanza for your kernel.
>
> It seems even after I amputated the offending "write" that causes the
> lockup, the bus speed was being set to 33MHz instead of 50Mhz. The
> above solved the problem for me.

This worked for me as well -- interesting.

> For anyone else trying to configure the pcg-c1mrx or pcg-c1mv, I'm
> updating linux configuration document as I work through the
> setup of the various devices:
> http://hale.org/~bhoward/issue_7/pcg-c1mrx.html

Good information there. Oddly enough, I don't need to specify the
pci=conf2, though.

Thanks to everyone for the speedy assistance!
- James

2002-03-29 10:02:15

by bhoward

[permalink] [raw]
Subject: Re: [bug] 2.4.19-pre4-ac2 hang at boot with ALI15x3 chipset support

James> Good information there. Oddly enough, I don't need to specify the
James> pci=conf2, though.

Remember that you only need the pci=conf2 to get past the lockup bug
when doing an initial installation from CDROM. After that, once you
have installed a kernel updated with the patch to alim15x3.c, the need
for it goes away (and in fact, continuing to use pci=conf2 will
actually prevent many of the other devices from being properly
recognized).

Cheers,
Bruce