pci_resource_end problem revisited

Segher Boessenkool segher at kernel.crashing.org
Wed May 10 18:04:19 EST 2006


> I still have this problem of OF reporting the serial port bar
> size as 16 instead of 8 on my G5.  Where would be a proper
> place to fix this?  BTW, I verified that it is OF that reports
> the size as 16.

Make fixup_device_tree() fix the dev tree itself?

> 0001:05:03.0 Serial controller: NetMos Technology PCI 9845 Multi-I/ 
> O Controller (rev 01) (prog-if 02 [16550])
>         Subsystem: LSI Logic / Symbios Logic 0P4S (4 port 16550A  
> serial card)
>         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 53
>         Region 0: I/O ports at f4000050 [size=16]
>         Region 1: I/O ports at f4000040 [size=16]
>         Region 2: I/O ports at f4000030 [size=16]
>         Region 3: I/O ports at f4000020 [size=16]
>         Region 4: I/O ports at f4000010 [size=16]
>         Region 5: I/O ports at f4000000 [size=16]

Also note that the last BAR is at legacy I/O address 0, various things
will break due to bogus assumptions... this BAR is not needed for the
UARTs though :-)


Segher




More information about the Linuxppc-dev mailing list