* Problem in PCI with MPC5200B
@ 2006-06-07 5:35 Ram Prasad H L
2006-06-07 10:02 ` Sylvain Munaut
0 siblings, 1 reply; 4+ messages in thread
From: Ram Prasad H L @ 2006-06-07 5:35 UTC (permalink / raw)
To: linuxppc-embedded
hi all,
We are using a customised board which is based on
the reference design of lite5200B. But our board is customised by adding
a PCI-PCI Bridge on the primary bus. On the secondary bus we have added
a DSP(DM642) along with 2 PCI slots, which are routed through
bridge (PCI2250) to MPC5200B.
As far as software is concerned we are using "mpc5200_lite_K26-BSP-b30"
BSP downloaded from freescale's website for lite5200B. This BSP has a
u-boot-1.1.3 and linux kernel-2.6.11.7. As far as u-boot is concerned
the PCI devices are allocated and assigned with proper resources (BAR's)
which come under the range for Mem region(40000000 - 4fffffff) and I/O
region (50000000 - 50ffffff). But during the boot process of linux we
are getting the following errors:
****************************************************************************
***
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 1 of PCI bridge 1
PCI: bridge 1 resource 1 moved to 4ff00000..4fffffff
PCI: Cannot allocate resource region 2 of PCI bridge 1
PCI: bridge 1 resource 2 moved to 4fe00000..4fefffff
PCI: Failed to allocate mem resource #0: 400000 @ 50000000 for 0000:01:08.0
PCI: Failed to allocate mem resource #1: 800000 @ 50000000 for 0000:01:08.0
PCI: Failed to allocate I/O resource #2: 10 @ 1000 for 0000:01:08.0
****************************************************************************
****
where 0000:01:08.0 is the dev function address for DM642(DSP).
I'm stuck up with this problem since long time. Plz help me in giving some
pointers
for overcoming this problem as i'm a newbie to linux-pci. Any patches for
the kernel
2.6.11.7 which can resolve the above problem would be of great help.
Thanks and regards,
Ramprasad
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@tataelxsi.co.in
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem in PCI with MPC5200B
2006-06-07 5:35 Ram Prasad H L
@ 2006-06-07 10:02 ` Sylvain Munaut
2006-06-30 12:51 ` Ram Prasad H L
0 siblings, 1 reply; 4+ messages in thread
From: Sylvain Munaut @ 2006-06-07 10:02 UTC (permalink / raw)
To: Ram Prasad H L; +Cc: linuxppc-embedded
Hi,
> As far as software is concerned we are using "mpc5200_lite_K26-BSP-b30"
> BSP downloaded from freescale's website for lite5200B. This BSP has a
> u-boot-1.1.3 and linux kernel-2.6.11.7.
I'm not familiar with that BSP and then without knowing
exactly what's in that kernel and what's not it's hard
to answer.
Can you provide a link to it ?
Sylvain
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Problem in PCI with MPC5200B
2006-06-07 10:02 ` Sylvain Munaut
@ 2006-06-30 12:51 ` Ram Prasad H L
0 siblings, 0 replies; 4+ messages in thread
From: Ram Prasad H L @ 2006-06-30 12:51 UTC (permalink / raw)
To: linuxppc-embedded
hi all,
we are using a customized board based on the reference design of lite5200B.
The PCI bus heirarchy in the board is as follows:
|---------> DM642(TMS320C642)
OnChip-Host-Bridge(MPC5200B) ----> PCI-to-PCI Bridge (TI2250) ---|
|---------> Empty Slot
|
|---------> Empty Slot
The linux kernel used is 2.6.11.7. with u-boot-1.1.3. The problem we are
facing is that
I'm able to access the PCI Memory and I/O Region of DM642 from my Host
(MPC5200B) ie.upstream.
But when it comes to other way around ie. with Host Bridge being the PCI
slave and DM642 being the
master, the transaction is failing to complete. But not getting any
exceptions like master abort
and target abort. The BAR Configuration is as follows
Host (MPC5200B):
BAR0 -- 0x41000000 (256MB) Non prefetchable
BAR1 -- 0x00000000 (1GB) prefetchable
PCI-PCI Bridge (TI2250):
BAR0 -- 0x00000000 {Both are defaulted to 0's and are Read Only}
BAR1 -- 0x00000000
DM642:
BAR0 -- 0x40000000 (4MB) prefetchable
BAR1 -- 0x40800000 (8MB) Non prefetchable
BAR2 -- 0x00fff001 (16 bytes) I/O
If anyone can provide pointers and suggestions to overcome this problem, it
will be of great help, as
we are stuck up with it since long time.
thanks and regards,
Ramprasad H L
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or administrator@tataelxsi.co.in
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem in PCI with MPC5200B
[not found] <mailman.656.1149719253.11183.linuxppc-embedded@ozlabs.org>
@ 2006-07-06 7:08 ` Heiko Schocher
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Schocher @ 2006-07-06 7:08 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: hlrprasad
Hello Ram,
On Wed, 7 Jun 2006 11:05:16 +0530 Ram Prasad H L wrote
> hi all,
> We are using a customised board which is based on
> the reference design of lite5200B. But our board is customised by adding
> a PCI-PCI Bridge on the primary bus. On the secondary bus we have added
> a DSP(DM642) along with 2 PCI slots, which are routed through
> bridge (PCI2250) to MPC5200B.
>
> As far as software is concerned we are using "mpc5200_lite_K26-BSP-b30"
> BSP downloaded from freescale's website for lite5200B. This BSP has a
> u-boot-1.1.3 and linux kernel-2.6.11.7. As far as u-boot is concerned
> the PCI devices are allocated and assigned with proper resources (BAR's)
> which come under the range for Mem region(40000000 - 4fffffff) and I/O
> region (50000000 - 50ffffff). But during the boot process of linux we
> are getting the following errors:
>
>
> ****************************************************************************
> ***
> PCI: Probing PCI hardware
> PCI: Cannot allocate resource region 1 of PCI bridge 1
> PCI: bridge 1 resource 1 moved to 4ff00000..4fffffff
> PCI: Cannot allocate resource region 2 of PCI bridge 1
> PCI: bridge 1 resource 2 moved to 4fe00000..4fefffff
> PCI: Failed to allocate mem resource #0: 400000 @ 50000000 for 0000:01:08.0
> PCI: Failed to allocate mem resource #1: 800000 @ 50000000 for 0000:01:08.0
> PCI: Failed to allocate I/O resource #2: 10 @ 1000 for 0000:01:08.0
>
> ****************************************************************************
> ****
I had a similar problem with a 2.4.25 Kernel. I get the following
errors:
PCI: Cannot allocate resource region 0 of device 00:1b.0
PCI: moved device 00:1b.0 resource 0 (200) to e0000000
I solved the problem by adding
hose->last_busno = pciauto_bus_scan(hose, hose->first_busno);
at the end of the function mpc5xxx_find_bridges() in
arch/ppc/kernel/mpc5xxx_pci.c
I didnt looked in the 2.6.11.7 Kernel, but maybe this helps you!
Best regards
Heiko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-06 7:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.656.1149719253.11183.linuxppc-embedded@ozlabs.org>
2006-07-06 7:08 ` Problem in PCI with MPC5200B Heiko Schocher
2006-06-07 5:35 Ram Prasad H L
2006-06-07 10:02 ` Sylvain Munaut
2006-06-30 12:51 ` Ram Prasad H L
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).