linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PCI-PCI bridge memory ranges in linux device tree
@ 2014-02-17  6:31 Anand Mistry
  2014-02-17 23:05 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Anand Mistry @ 2014-02-17  6:31 UTC (permalink / raw)
  To: linux-pci

Hello,

Can anybody please help me out with this one. My linux kernel is not
programming memory ranges of PCI-PCI bridges and crashes on finding devices
beyond the bridge. How do i enable automatic resource allocation of PCI-PCi
bridges in the kernel? 

For reference,
Processor is MPC8313
Kernel version is 2.6.23.
Code from the DTS file

/* code starts */
pci@8500 {
	bus-range = <0 0>;
	ranges = <02000000 0 90000000 90000000 0 10000000
	          42000000 0 80000000 80000000 0 10000000
	          01000000 0 00000000 e2000000 0 00100000>;
	#interrupt-cells = <1>;
	#size-cells = <2>;
	#address-cells = <3>;
	reg = <8500 100>;
	compatible = "fsl,mpc8349-pci";
	device_type = "pci";
	interrupt-parent = < &ipic >;
	interrupts = <42 8>;
	interrupt-map-mask = <0F800 0 0 7>;
	interrupt-map = <

			// ** For reference **
			// INTA = IRQ1 = 0x11
			// INTB = IRQ2 = 0x12
			// INTC = IRQ0 = 0x30
			// INTD = IRQ4 = 0x14

			// BUS 0 IDSEL 0x18 (IDSEL = AD24)
			0c000 0 0 1 &ipic 11 8  // PCI_INTA 
			0c000 0 0 2 &ipic 12 8  // PCI_INTB  
			0c000 0 0 3 &ipic 30 8  // PCI_INTC 
			0c000 0 0 4 &ipic 14 8  // PCI_INTD 
			>;

}; 

/* code ends */



Thanks and Regards,
Anand Mistry



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PCI-PCI bridge memory ranges in linux device tree
  2014-02-17  6:31 PCI-PCI bridge memory ranges in linux device tree Anand Mistry
@ 2014-02-17 23:05 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2014-02-17 23:05 UTC (permalink / raw)
  To: Anand Mistry; +Cc: linux-pci@vger.kernel.org

On Sun, Feb 16, 2014 at 11:31 PM, Anand Mistry
<anand.mistry@spectross.com> wrote:
> Hello,
>
> Can anybody please help me out with this one. My linux kernel is not
> programming memory ranges of PCI-PCI bridges and crashes on finding devices
> beyond the bridge. How do i enable automatic resource allocation of PCI-PCi
> bridges in the kernel?

Can you collect a complete dmesg log (or console output with
"ignore_loglevel" option)?

> For reference,
> Processor is MPC8313
> Kernel version is 2.6.23.
> Code from the DTS file
>
> /* code starts */
> pci@8500 {
>         bus-range = <0 0>;
>         ranges = <02000000 0 90000000 90000000 0 10000000
>                   42000000 0 80000000 80000000 0 10000000
>                   01000000 0 00000000 e2000000 0 00100000>;
>         #interrupt-cells = <1>;
>         #size-cells = <2>;
>         #address-cells = <3>;
>         reg = <8500 100>;
>         compatible = "fsl,mpc8349-pci";
>         device_type = "pci";
>         interrupt-parent = < &ipic >;
>         interrupts = <42 8>;
>         interrupt-map-mask = <0F800 0 0 7>;
>         interrupt-map = <
>
>                         // ** For reference **
>                         // INTA = IRQ1 = 0x11
>                         // INTB = IRQ2 = 0x12
>                         // INTC = IRQ0 = 0x30
>                         // INTD = IRQ4 = 0x14
>
>                         // BUS 0 IDSEL 0x18 (IDSEL = AD24)
>                         0c000 0 0 1 &ipic 11 8  // PCI_INTA
>                         0c000 0 0 2 &ipic 12 8  // PCI_INTB
>                         0c000 0 0 3 &ipic 30 8  // PCI_INTC
>                         0c000 0 0 4 &ipic 14 8  // PCI_INTD
>                         >;
>
> };
>
> /* code ends */
>
>
>
> Thanks and Regards,
> Anand Mistry
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-17 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17  6:31 PCI-PCI bridge memory ranges in linux device tree Anand Mistry
2014-02-17 23:05 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).