All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [Qemu-ppc] [PATCH] e500-pci: Factor into distinct mpc8540 and p4080 PCI Hosts
       [not found] <503663EE-6BC1-4C3A-97B9-06737AAD8266@ubuntu.com>
@ 2012-06-01 15:17 ` Andreas Färber
       [not found] ` <4FC7B66B.1020706@freescale.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Färber @ 2012-06-01 15:17 UTC (permalink / raw)
  To: Ben Collins; +Cc: Michael S. Tsirkin, PowerPC, qemu-devel, Alexander Graf

Am 31.05.2012 01:25, schrieb Ben Collins:
> In order to provide a closer virtualization, factor out e500-pci into seperate
> PCI hosts, namely fsl,mpc8540-pci and fsl,p4080-pcie (to match the device-tree
> node naming).
> 
> Make use of the mpc8540 variant (basically a NOP) for ppce500_mpc8544 machine
> type. The p4080-pcie variant can be used later for a P4080DS specific machine
> description.
> 
> The major differences between the two are the host-bridge PCI device ID and the
> difference in starting slot number. Eventually I'd like to get the p4080 variant
> to support any valid slot number, and actually move the bus behind the host
> bridge as is done in the physical hardware.
> 
> Signed-off-by: Ben Collins <bcollins@ubuntu.com>

Please always cc qemu-devel on patches and the respective maintainers,
here ppc and pci.

Thanks,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

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

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] e500-pci: Factor into distinct mpc8540 and p4080 PCI Hosts
       [not found] ` <4FC7B66B.1020706@freescale.com>
@ 2012-06-03 11:10   ` Ben Collins
  2012-06-03 11:21     ` Alexander Graf
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Collins @ 2012-06-03 11:10 UTC (permalink / raw)
  To: Scott Wood; +Cc: Michael S. Tsirkin, PowerPC, qemu-devel, Alexander Graf


On May 31, 2012, at 2:20 PM, Scott Wood wrote:

> On 05/30/2012 06:25 PM, Ben Collins wrote:
>> In order to provide a closer virtualization, factor out e500-pci into seperate
>> PCI hosts, namely fsl,mpc8540-pci and fsl,p4080-pcie (to match the device-tree
>> node naming).
>> 
>> Make use of the mpc8540 variant (basically a NOP) for ppce500_mpc8544 machine
>> type. The p4080-pcie variant can be used later for a P4080DS specific machine
>> description.
>> 
>> The major differences between the two are the host-bridge PCI device ID and the
>> difference in starting slot number. Eventually I'd like to get the p4080 variant
>> to support any valid slot number, and actually move the bus behind the host
>> bridge as is done in the physical hardware.
> 
> Do these really need to be totally separate implementations?  If we then
> want to support another FSL PPC chip's PCI that has some subtle
> differences, do we need a third?  If the emulation of these host bridges
> is made more complete, we'll have to add that code to every one of these
> forks.
> 
> I'd rather see one driver that is parameterizable to implement any
> mpc85xx/mpc86xx/QorIQ PCI(e).


I'm completely ok with that. My original intent was to remove the limitations of the e500-pci driver, but Alexander had reservations about making the mpc8540-pci implementation non-compliant to the original hardware. My main goal is to make it so users (and myself) don't have to be limited by this lowest-common-denominator (2-4 PCI slots, forced at 0x17 starting point).

I'll look into making this configurable. Are there any current PCI implementations that allow for such configurability that I can base work on?

--
Bluecherry: http://www.bluecherrydvr.com/
SwissDisk : http://www.swissdisk.com/
Ubuntu    : http://www.ubuntu.com/
My Blog   : http://ben-collins.blogspot.com/

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

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] e500-pci: Factor into distinct mpc8540 and p4080 PCI Hosts
  2012-06-03 11:10   ` Ben Collins
@ 2012-06-03 11:21     ` Alexander Graf
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Graf @ 2012-06-03 11:21 UTC (permalink / raw)
  To: Ben Collins; +Cc: Scott Wood, PowerPC, qemu-devel, Michael S. Tsirkin


On 03.06.2012, at 13:10, Ben Collins wrote:

> 
> On May 31, 2012, at 2:20 PM, Scott Wood wrote:
> 
>> On 05/30/2012 06:25 PM, Ben Collins wrote:
>>> In order to provide a closer virtualization, factor out e500-pci into seperate
>>> PCI hosts, namely fsl,mpc8540-pci and fsl,p4080-pcie (to match the device-tree
>>> node naming).
>>> 
>>> Make use of the mpc8540 variant (basically a NOP) for ppce500_mpc8544 machine
>>> type. The p4080-pcie variant can be used later for a P4080DS specific machine
>>> description.
>>> 
>>> The major differences between the two are the host-bridge PCI device ID and the
>>> difference in starting slot number. Eventually I'd like to get the p4080 variant
>>> to support any valid slot number, and actually move the bus behind the host
>>> bridge as is done in the physical hardware.
>> 
>> Do these really need to be totally separate implementations?  If we then
>> want to support another FSL PPC chip's PCI that has some subtle
>> differences, do we need a third?  If the emulation of these host bridges
>> is made more complete, we'll have to add that code to every one of these
>> forks.
>> 
>> I'd rather see one driver that is parameterizable to implement any
>> mpc85xx/mpc86xx/QorIQ PCI(e).
> 
> 
> I'm completely ok with that. My original intent was to remove the limitations of the e500-pci driver, but Alexander had reservations about making the mpc8540-pci implementation non-compliant to the original hardware. My main goal is to make it so users (and myself) don't have to be limited by this lowest-common-denominator (2-4 PCI slots, forced at 0x17 starting point).
> 
> I'll look into making this configurable. Are there any current PCI implementations that allow for such configurability that I can base work on?

I'm not sure, but if you just pass all the differences as qdev parameters, you should be able to basically spawn your different PCI host bridge by just overriding those :)


Alex

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

end of thread, other threads:[~2012-06-03 11:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <503663EE-6BC1-4C3A-97B9-06737AAD8266@ubuntu.com>
2012-06-01 15:17 ` [Qemu-devel] [Qemu-ppc] [PATCH] e500-pci: Factor into distinct mpc8540 and p4080 PCI Hosts Andreas Färber
     [not found] ` <4FC7B66B.1020706@freescale.com>
2012-06-03 11:10   ` Ben Collins
2012-06-03 11:21     ` Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.