pci-resources feedback
Hi all,
I have applied the patches from Michel to my 2399p3 tree. The main reason for that was some hope in getting my CardBus card recognized properly. Ok, not that successful but I think on the right way. At least what dmesg says.
Also I'm confused about the ati memory range two. Which base is the one I have to take?
A wallstreet I.
Below the dmesg from the 2399p3 (only pci-probing) and the corresponding lspci -vv
as PCIBIOS_MIN_MEM I took 0x80000000.
---2399-dmesg---
PCI: Probing PCI hardware (semiautomatic)
Scanning bus 00
Found 00:00 [1057/0002] 000600 00
Found 00:68 [106b/0010] 00ff00 00
Found 00:80 [106b/0010] 00ff00 00
Found 00:88 [1002/4c47] 000300 00
Found 00:98 [104c/ac15] 000607 02
Found 00:99 [104c/ac15] 000607 02
Fixups for bus 00
Scanning CardBus bridge 00:13.0 <------ sounds good for CardBus!!
Scanning CardBus bridge 00:13.1
Bus scan for 00 returning with max=09
PCI: Fixing device 00:00.0 (1057:0002)
PCI: Fixing device 00:0d.0 (106b:0010)
PCI: Fixing device 00:10.0 (106b:0010)
PCI: Fixing device 00:11.0 (1002:4c47)
PCI: Setting IRQ 24 on device 00:11.0.
PCI: Correcting IO address 1 on device 00:11.0, now fe000400.
PCI: Enabling device 00:11.0 (0086 -> 0087)
PCI: Fixing device 00:13.0 (104c:ac15)
PCI: Setting IRQ 22 on device 00:13.0.
PCI: Fixing device 00:13.1 (104c:ac15)
PCI: Setting IRQ 23 on device 00:13.1.
PCI: Resource f4000000-f407ffff (f=200, d=0, p=0)
PCI: Resource f3000000-f307ffff (f=200, d=0, p=0)
PCI: Resource 82000000-82ffffff (f=200, d=0, p=0)
PCI: Resource fe000400-fe0004ff (f=101, d=0, p=0)
PCI: Resource 82fff000-82ffffff (f=200, d=0, p=0)
PCI: Cannot allocate resource region 2 of device 00:11.0
PCI: Resource 81803000-81803fff (f=200, d=0, p=0)
PCI: Resource 81802000-81802fff (f=200, d=0, p=0)
for root[0:ffffffff] min[80000000] size[1000]
got res[80000000:80000fff] for resource 2
---end---
---lspci2399p3---
00:11.0 VGA compatible controller: ATI Technologies Inc 215LG [Mach64 LG] (rev 80)
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: 8 min, 32 set, cache line size 08 Interrupt: pin A routed to IRQ 24 Region 0: Memory at 82000000 (32-bit, non-prefetchable) Region 1: I/O ports at fe000400 Region 2: Memory at 80000000 (32-bit, non-prefetchable)
---end---
For comparison reasons a lspci -vv from the actual 2215p14:
---lspci2215p14---
00:11.0 VGA compatible controller: ATI Technologies Inc 215LG [Mach64 LG] (rev 80)
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: 8 min, 32 set, cache line size 08
Interrupt: pin A routed to IRQ 24
Region 0: Memory at 82000000 (32-bit, non-prefetchable) Region 1: I/O ports at 0400 [disabled]
Region 2: Memory at 82fff000 (32-bit, non-prefetchable)
---end---
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi Andreas,
On 27 Mar, this message from Andreas Tobler echoed through cyberspace:
Quoted 2 lines
Also I'm confused about the ati memory range two. Which base is the one I have to take?
As I understand it (which may be wrong ;-) that's the MMIO region corresponding to the (VGA?) IO ports used for configuring the device.
Problem is by default it lies within the framebuffer region...
Quoted 6 lines
---2399-dmesg---
PCI: Probing PCI hardware (semiautomatic) Scanning bus 00
Found 00:00 [1057/0002] 000600 00
Found 00:68 [106b/0010] 00ff00 00
Found 00:80 [106b/0010] 00ff00 00
Hmmm... two times the same dev?? You really have two heathrows?
Quoted 6 lines
Found 00:88 [1002/4c47] 000300 00
Found 00:98 [104c/ac15] 000607 02
Found 00:99 [104c/ac15] 000607 02
Fixups for bus 00
Scanning CardBus bridge 00:13.0 <------ sounds good for CardBus!!
Scanning CardBus bridge 00:13.1
Cool ;-)
Quoted 7 lines
Bus scan for 00 returning with max=09
PCI: Fixing device 00:00.0 (1057:0002)
PCI: Fixing device 00:0d.0 (106b:0010)
PCI: Fixing device 00:10.0 (106b:0010)
PCI: Fixing device 00:11.0 (1002:4c47)
PCI: Setting IRQ 24 on device 00:11.0.
PCI: Correcting IO address 1 on device 00:11.0, nowfe000400.
Hey, it even works on grackle!
Quoted 11 lines
PCI: Enabling device 00:11.0 (0086 -> 0087)
PCI: Fixing device 00:13.0 (104c:ac15)
PCI: Setting IRQ 22 on device 00:13.0.
PCI: Fixing device 00:13.1 (104c:ac15)
PCI: Setting IRQ 23 on device 00:13.1.
PCI: Resource f4000000-f407ffff (f=200, d=0, p=0)
PCI: Resource f3000000-f307ffff (f=200, d=0, p=0)
PCI: Resource 82000000-82ffffff (f=200, d=0, p=0)
PCI: Resource fe000400-fe0004ff (f=101, d=0, p=0)
PCI: Resource 82fff000-82ffffff (f=200, d=0, p=0)
PCI: Cannot allocate resource region 2 of device 00:11.0
Here the resource code notices the conflict on the ATI.
Quoted 4 lines
PCI: Resource 81803000-81803fff (f=200, d=0, p=0)
PCI: Resource 81802000-81802fff (f=200, d=0, p=0)
for root[0:ffffffff] min[80000000] size[1000] got res[80000000:80000fff] for resource 2
This is the message as the conflicting (second) region of the ATI gets remapped. It did work... as can be seen ba the lspci outtput.
So far, so good :-)
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art. 23, Rue Paul Henkes | Ask Questions. Make Mistakes. L-1710 Luxembourg | email [email protected] | http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 11 lines
Here the resource code notices the conflict on the ATI.
Quoted 4 lines
PCI: Resource 81803000-81803fff (f=200, d=0, p=0)
PCI: Resource 81802000-81802fff (f=200, d=0, p=0)
for root[0:ffffffff] min[80000000] size[1000]
got res[80000000:80000fff] for resource 2This is the message as the conflicting (second) region of the ATI gets remapped. It did work... as can be seen ba the lspci outtput.
And it even used the right function (the one in drivers/pci/ to do it. Now what kernel version was that with?
Seems the wallstreet was another one of the 'broken mapping for atyfb' boxes. XFree86 4.0 should work fine now.
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
On 27 Mar, this message from Michael Schmitz echoed through cyberspace:
Quoted 8 lines
Quoted 8 lines
Here the resource code notices the conflict on the ATI.
Quoted 4 lines
PCI: Resource 81803000-81803fff (f=200, d=0, p=0)
PCI: Resource 81802000-81802fff (f=200, d=0, p=0)
for root[0:ffffffff] min[80000000] size[1000]
got res[80000000:80000fff] for resource 2
Quoted 5 lines
Quoted 2 lines
This is the message as the conflicting (second) region of the ATI gets remapped. It did work... as can be seen ba the lspci outtput.
And it even used the right function (the one in
drivers/pci/to do it. Now what kernel version was that with?
If I am not mistaken, 2.3.99 with the following patch applied:
http://www.cpu.lu/~mlan/linux/dev/2.3.99-pre3-pci.diff
Quoted 2 lines
Seems the wallstreet was another one of the 'broken mapping for atyfb' boxes. XFree86 4.0 should work fine now.
;-)
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art. 23, Rue Paul Henkes | Ask Questions. Make Mistakes. L-1710 Luxembourg | email [email protected] | http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 9 lines · Michael Schmitz
Quoted 9 lines
Here the resource code notices the conflict on the ATI.
Quoted 4 lines
PCI: Resource 81803000-81803fff (f=200, d=0, p=0)
PCI: Resource 81802000-81802fff (f=200, d=0, p=0)
for root[0:ffffffff] min[80000000] size[1000]
got res[80000000:80000fff] for resource 2
Quoted 8 lines
Quoted 2 lines
This is the message as the conflicting (second) region of the ATI gets remapped. It did work... as can be seen ba the lspci outtput.
And it even used the right function (the one in
drivers/pci/to do it. Now what kernel version was that with?Seems the wallstreet was another one of the 'broken mapping for atyfb' boxes. XFree86 4.0 should work fine now.
As written 2399pre3 on a wallstreet I (spring 98)
If needed more input/output?
Thx
Andreas
btw, attached the lspci -vv for the whole tree
00:00.0 Host bridge: Motorola Computer Group 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 set, cache line size 08
00:0d.0 Class ff00: Apple Computer Inc. Heathrow Mac I/O (rev 01)
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: 32 set, cache line size 08
Region 0: Memory at f4000000 (32-bit, non-prefetchable)
00:10.0 Class ff00: Apple Computer Inc. Heathrow Mac I/O (rev 01)
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: 32 set, cache line size 08
Region 0: Memory at f3000000 (32-bit, non-prefetchable)
00:11.0 VGA compatible controller: ATI Technologies Inc 215LG [Mach64 LG] (rev 80)
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: 8 min, 32 set, cache line size 08
Interrupt: pin A routed to IRQ 24
Region 0: Memory at 82000000 (32-bit, non-prefetchable)
Region 1: I/O ports at fe000400
Region 2: Memory at 80000000 (32-bit, non-prefetchable)
00:13.0 CardBus bridge: Texas Instruments PCI1131 (rev 01)
Subsystem: Unknown device 104c:ac15
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: 32 set, cache line size 08
Interrupt: pin A routed to IRQ 22
Region 0: Memory at 81803000 (32-bit, non-prefetchable)
Bus: primary=00, secondary=01, subordinate=04, sec-latency=64
Memory window 0: 90000000-90005000
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
16-bit legacy interface ports at 0007
00:13.1 CardBus bridge: Texas Instruments PCI1131 (rev 01)
Subsystem: Unknown device 104c:ac15
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: 32 set, cache line size 08
Interrupt: pin B routed to IRQ 23
Region 0: Memory at 81802000 (32-bit, non-prefetchable)
Bus: primary=00, secondary=06, subordinate=09, sec-latency=64
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt- PostWrite-
16-bit legacy interface ports at 0007
Quoted 8 lines · Michel Lanners
Quoted 6 lines
---2399-dmesg---
PCI: Probing PCI hardware (semiautomatic)
Scanning bus 00
Found 00:00 [1057/0002] 000600 00
Found 00:68 [106b/0010] 00ff00 00
Found 00:80 [106b/0010] 00ff00 00Hmmm... two times the same dev?? You really have two heathrows?
The "Wall Street" and "PDQ" series PB G3s really do have two heathrow ASICs. One of them is the main Heathrow. The other is only present because these two PB models need three IDE channels and three serial channels, and a single Heathrow provides just two of each. (Two IDEs for the two expansion bays, one IDE for the internal HD, one serial for IrDA, one serial for the internal modem, and one serial for the general purpose serial port.)
Tim Seufert
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/