Skip to contentSkip to conversation

2.4.23 PCI source inconsistency

parisc-linux northern snowfall 3 participants 3 messages Dec 3, 2003 – Dec 4, 2003

lore
Share & tools
lore
#0 lore raw

Hey all,
I compiled 2.4.23 from kernel.org for 32bit PA-RISC today
and found that the PA-RISC specific PCI code seems to be out- of sync with the generic pci code.

from arch/parisc/kernel/pci.c:

gcc -D__KERNEL__ -I/usr/home/north_/k/linux-2.4.23/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -D__linux__ -pipe -fno-strength-reduce -mno-space-regs -mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=2.0 -mschedule=8000 -nostdinc -iwithprefix include -DKBUILD_BASENAME=pci -c -o pci.o pci.c
pci.c: In function `pcibios_init_bus':
pci.c:310: structure has no member named bridge_ctl' pci.c:311: structure has no member named bridge_ctl' pci.c:312: structure has no member named bridge_ctl' pci.c:315: structure has no member named bridge_ctl' make[1]: *** [pci.o] Error 1

Of course, the pci_bus structure is declared in the header include/linux/pci.h:/^struct.*pci_bus However, there is no longer a bridge_ctl member.

I'm running 2.4.17 off the Debian 3.0 release on a B2000, and /usr/include/linux/pci.h still has the bridge_ctl member in the pci_bus structure.

Advice?

Thanks,
Don (north_)

#1 lore raw
Quoted 4 lines · northern snowfall

Hey all,
I compiled 2.4.23 from kernel.org for 32bit PA-RISC today
and found that the PA-RISC specific PCI code seems to be out- of sync with the generic pci code.

Use cvs.parisc-linux.org.

c.

#2 lore raw
In reply to northern snowfall
Quoted 4 lines · northern snowfall

Hey all,
I compiled 2.4.23 from kernel.org for 32bit PA-RISC today
and found that the PA-RISC specific PCI code seems to be out- of sync with the generic pci code.

As carlos said, use kernels from ftp.parisc-linux.org or pull sources directly from cvs.parisc-linux.org.

Quoted 2 lines

pci.c: In function `pcibios_init_bus':
pci.c:310: structure has no member named `bridge_ctl'

I added this field to clean up FBB and VGA routing support. "bridge_ctl" is a PCI-PCI Bridge register that controls both of those behaviors. Ivan K. (ex PCI Maintainer) and I had it working for parisc/ia32/alpha but apperently it never got submitted/accepted into any official tree.

Russell King (ARM maintainer) found it useful anyway and submitted it

	http://www.ussg.iu.edu/hypermail/linux/kernel/0208.0/0723.html

and later:

	http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2003-October/017459.html

Darn...looks like bridge_ctl didn't get pushed into 2.6 either. :^( I'll follow up a bit offline.

grant