All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: BALATON Zoltan <balaton@eik.bme.hu>,
	qemu-devel@nongnu.org,
	"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>
Subject: Re: [Qemu-devel] Multiple pci buses
Date: Mon, 17 Mar 2014 13:09:26 +1100	[thread overview]
Message-ID: <53265956.8010603@ozlabs.ru> (raw)
In-Reply-To: <alpine.LMD.2.02.1403152213250.5373@jedlik.phy.bme.hu>

On 03/16/2014 08:21 AM, BALATON Zoltan wrote:
> Hello,
> 
> I'm trying to change hw/ppc/mac_newworld.c and hw/pci-host/uninorth.c to
> bring the mac99 machine type closer to what's seen in these dumps:
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=604134
> http://nandra.segv.jp/NetBSD/G4.dump-device-tree.txt
> http://raveland.org/ports/eeprom.txt
> http://mail-index.netbsd.org/port-macppc/2007/10/24/0000.html
> 
> This machine seems to have 3 pci busses but the third is not important just
> the other two:
> 
> ff8721c0: /pci@f0000000
> ff898cd0:   /uni-north-agp@b
> ff898f40:   /ATY,Rage128Ps@10
> ff873268: /pci@f2000000
> ff8742d8:   /pci-bridge@d
> ff876368:     /mac-io@7
> 
> The first is actually an AGP bus with the onboard graphics card and the
> second is where other devices are. It would be enough to create an empty
> bus without the AGP graphics card for now and have the devices on the
> second bus. The pci_pmac_init function in uninorth.c seems to have some
> commented out code to try to model this but that does not work. Can someone
> who understands this better please explain what should be done to model the
> above? How to create two pci buses and connect them to separate memory
> regions?

[adding qemu-devel@nongnu.org to cc]

I have no idea how that "pmac" works... On pseries you can add multiple
PHBs via "-device spapr-pci-host-bridge,id=lalala" and then put devices
onto it by "-device e1000,bus=lalala.0" so this should be good reference to
start with.




-- 
Alexey

  parent reply	other threads:[~2014-03-17  2:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-15 21:21 [Qemu-devel] Multiple pci buses BALATON Zoltan
2014-03-16 17:06 ` BALATON Zoltan
2014-03-17  2:09 ` Alexey Kardashevskiy [this message]
2014-03-17 16:51 ` Andreas Färber
2014-03-17 22:14   ` BALATON Zoltan
2014-03-19 22:36     ` Andreas Färber
2014-03-20  9:42       ` BALATON Zoltan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53265956.8010603@ozlabs.ru \
    --to=aik@ozlabs.ru \
    --cc=balaton@eik.bme.hu \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.