swizzling pci irqs
Hi.
If there were a noswizzle option to the kernel command line that resulted in pci scan simply trusting that the bootrom/u-boot had already correctly assigned the PCI irqs.... every tom,dick,harry, and yours-truly wouldn't have to make a new platform to define the swizzle-o-the-day. Or have I already missed this argument?
-dbu
Quoted 7 lines · David Updegraff
Hi.
If there were a noswizzle option to the kernel command line that resulted in pci scan simply trusting that the bootrom/u-boot had already correctly assigned the PCI irqs.... every tom,dick,harry, and yours-truly wouldn't have to make a new platform to define the swizzle-o-the-day. Or have I already missed this argument?
Sure, I do this now. Just don't build pci_auto into your pci support and don't explicitly rescan in your pci setup. The 83xx pci code under arch/powerpc should effective do this.
- kumar
Quoted 13 lines · Kumar Gala
Quoted 8 lines · David Updegraff
Hi.
If there were a noswizzle option to the kernel command line that resulted in pci scan simply trusting that the bootrom/u-boot had already
correctly assigned the PCI irqs.... every tom,dick,harry, and yours-truly wouldn't have to make a new platform to define the swizzle-o-the-day. Or have I already missed this argument?
Quoted 5 lines
Sure, I do this now. Just don't build
pci_autointo your pci support and don't explicitly rescan in your pci setup. The 83xx pci code underarch/powerpcshould effective do this.- kumar
Hmm; I must be missing something... cuz to me it looks like pci_32.c will allways call pcibios_init, which will will scan the bus, which will swizzle irqs if the platform has non-null swizzle and map_irq function pointers defined.. Perhaps a setting I've missed somewhere re. 'pci_auto', which I thought was a 'ppc' thing, not a 'powerpc' thing..??
-dbu.
Quoted 18 lines · David Updegraff
Quoted 17 lines · Kumar Gala
Quoted 8 lines · David Updegraff
Hi.
If there were a noswizzle option to the kernel command line that resulted in pci scan simply trusting that the bootrom/u-boot had already
correctly assigned the PCI irqs.... every tom,dick,harry, and yours-truly wouldn't have to make a new platform to define the swizzle-o-the-day. Or have I already missed this argument?Sure, I do this now. Just don't build
pci_autointo your pci support and don't explicitly rescan in your pci setup. The 83xx pci code underarch/powerpcshould effective do this.
Quoted 7 lines
Quoted 1 line
- kumar
Hmm; I must be missing something... cuz to me it looks like
pci_32.cwill allways callpcibios_init, which will will scan the bus, which will swizzle irqs if the platform has non-null swizzle andmap_irqfunction pointers defined.. Perhaps a setting I've missed somewhere re. 'pci_auto', which I thought was a 'ppc' thing, not a 'powerpc' thing..??
Ahh, why do you have swizzle and map_irq functions? I guess I forgot that part. In my setup I have u-boot do all IRQ assignment (via PCI IRQ line register) as well as all BAR config. I just leave swizzle and map_irq null.
- kumar