linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* could linux support to configure the PLB-PCI bridge of PPC440 into adapter mode
@ 2006-06-19  7:57 陈 云
  2006-06-19 14:11 ` Matthias Fuchs
  0 siblings, 1 reply; 4+ messages in thread
From: 陈 云 @ 2006-06-19  7:57 UTC (permalink / raw)
  To: linuxppc-embedded

hi,now I want to use PPC440GX as PCI adapter card bridge. according to user 
manual, the PLB-PCI bridge should be configured to Adapter mode. after 
check some code of PCI of linux, i find the linux only support configuring 
the PLB-PCI bridge into HOST mode. Is my understanding correct ? if the 
normal version of linux don't support the adapter mode, could i found the 
patch?

best regards and thank you.

 chen

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  

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

* Re: could linux support to configure the PLB-PCI bridge of PPC440 into adapter mode
  2006-06-19  7:57 could linux support to configure the PLB-PCI bridge of PPC440 into adapter mode 陈 云
@ 2006-06-19 14:11 ` Matthias Fuchs
  2006-06-20  9:10   ` 陈 云
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Fuchs @ 2006-06-19 14:11 UTC (permalink / raw)
  To: hilichen2000; +Cc: linuxppc-embedded

Hi chen,

it's not easy to setup the PCI-to-PLB mapping in a generic way so that 
is gets into the kernel. Also it might be too late when the adapter OS 
configures the bridge. The bridge must be setup quickly after reset so 
that the host OS can assign resources to the card. The bootloader of 
your board might be a good place to setup of the adapter stuff. At least 
number and sizes of the needed address spaces should be setup early.
The PLB address can be setup or modified later (e.g. from the target OS).

> hi,now I want to use PPC440GX as PCI adapter card bridge. according to user 
> manual, the PLB-PCI bridge should be configured to Adapter mode. after 
> check some code of PCI of linux, i find the linux only support configuring 
> the PLB-PCI bridge into HOST mode. Is my understanding correct ? if the 
> normal version of linux don't support the adapter mode, could i found the 
> patch?
Probably not.

Matthias

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

* Re: could linux support to configure the PLB-PCI bridge of PPC440 into adapter mode
  2006-06-19 14:11 ` Matthias Fuchs
@ 2006-06-20  9:10   ` 陈 云
  2006-06-20 13:41     ` Matthias Fuchs
  0 siblings, 1 reply; 4+ messages in thread
From: 陈 云 @ 2006-06-20  9:10 UTC (permalink / raw)
  To: matthias.fuchs; +Cc: linuxppc-embedded

hi Matthias:
   thank for your reply.
   according to information you provide, i should set the proper parameter 
of register of PPC440GX in U-BOOT(I use u-boot as bootloader),such as 
PAE,PHCE,PISE of SDR0_XCR and BAR etc.  during the time of linux kernel 
booting, I turn off CONFIG_PCI , let linux kernel don't initialize the PCI 
bus as host bridge and set PLB address in kernel.  then after the linux 
system operated, the ppc440gx could act as adapter mode. does my 
understanding correct? 
   i really appreciate your help.

 chen 


>From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
>To: hilichen2000@msn.com
>CC: linuxppc-embedded@ozlabs.org
>Subject: Re: could linux support to configure the PLB-PCI bridge of PPC440 
into	adapter mode
>Date: Mon, 19 Jun 2006 16:11:54 +0200
>
>Hi chen,
>
>it's not easy to setup the PCI-to-PLB mapping in a generic way so 
>that is gets into the kernel. Also it might be too late when the 
>adapter OS configures the bridge. The bridge must be setup quickly 
>after reset so that the host OS can assign resources to the card. 
>The bootloader of your board might be a good place to setup of the 
>adapter stuff. At least number and sizes of the needed address 
>spaces should be setup early.
>The PLB address can be setup or modified later (e.g. from the target 
>OS).
>
>>hi,now I want to use PPC440GX as PCI adapter card bridge. according 
>>to user manual, the PLB-PCI bridge should be configured to Adapter 
>>mode. after check some code of PCI of linux, i find the linux only 
>>support configuring the PLB-PCI bridge into HOST mode. Is my 
>>understanding correct ? if the normal version of linux don't 
>>support the adapter mode, could i found the patch?
>Probably not.
>
>Matthias
>
>
>
>

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

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

* Re: could linux support to configure the PLB-PCI bridge of PPC440 into adapter mode
  2006-06-20  9:10   ` 陈 云
@ 2006-06-20 13:41     ` Matthias Fuchs
  0 siblings, 0 replies; 4+ messages in thread
From: Matthias Fuchs @ 2006-06-20 13:41 UTC (permalink / raw)
  To: hilichen2000; +Cc: linuxppc-embedded

Hello chen,

that's how we do it on our boards (a couple of 405GP(r) based adapters).
We normally hide the top meg's of RAM so that it is not used by Linux.
We setup the PLB side of the bridge to point to this RAM so that it is
accessable from the PCI side.

Matthias
> hi Matthias:
>   thank for your reply.
>   according to information you provide, i should set the proper 
> parameter of register of PPC440GX in U-BOOT(I use u-boot as 
> bootloader),such as PAE,PHCE,PISE of SDR0_XCR and BAR etc.  during the 
> time of linux kernel booting, I turn off CONFIG_PCI , let linux kernel 
> don't initialize the PCI bus as host bridge and set PLB address in 
> kernel.  then after the linux system operated, the ppc440gx could act as 
> adapter mode. does my understanding correct?   i really appreciate your 
> help.
> 
> chen

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

end of thread, other threads:[~2006-06-20 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-19  7:57 could linux support to configure the PLB-PCI bridge of PPC440 into adapter mode 陈 云
2006-06-19 14:11 ` Matthias Fuchs
2006-06-20  9:10   ` 陈 云
2006-06-20 13:41     ` Matthias Fuchs

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).