[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] QOMification of AXI streams
From: |
Edgar E. Iglesias |
Subject: |
Re: [Qemu-devel] [RFC] QOMification of AXI streams |
Date: |
Thu, 14 Jun 2012 04:31:54 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jun 14, 2012 at 12:16:45PM +1000, Benjamin Herrenschmidt wrote:
> On Thu, 2012-06-14 at 04:03 +0200, Edgar E. Iglesias wrote:
> > Thanks for the clarificatino Ben.
> >
> > I don't know much about PCI but in the embedded world I've never seen
> > anything that resemblems what you describe. Devices at the bottom of
> > the hierharcy (or at any location) that make acceses to the memory system
> > do it through a different port located at a differnt logical position in
> > the hierarchy.
>
> Right, that's what I meant when I said that master and slave interfaces
> don't have to be the same, but that's not a problem. A given device
> could depend on two memory regions, one for downstream accesses only and
> one for upstream accesses, both located in different positions in the
> hierarchy.
>
> > In fact, a DMA ctrl can through it's master port access it's
> > slave port without it even noticing that it is the same device accessing
> > itself and the access will travel top-down through the bus hierarchy.
>
> That sometimes work ... and sometimes doesn't ... some combinations of
> busses/devices will not allow that, some will deadlock, it really
> depends on the setup.
>
> > I've never seen address decoding beeing done in reverse.. bottom-up.
>
> It really depends on the bus type and happens on embedded as well.
>
> If your device master "port" is directly on the processor bus, you still
> have to deal with sibling devices potentially decoding right ? Now, what
> about you have a bridge from that bus to another bus. For example ppc
> PLB to AXI (that stuff exist out on the field).
>
> An AXI device might issue a cycle on the AXI portion, that can be
> decoded by either a sibling AXI device ... or go up. In most cases
No, it doesn't really go up.. This is where we disagree.
> though, "upstream" is some kind of substractive decoding (ie. anything
> -not- decoded by a sibling goes up).
I've never seen this happen, but I won't say it doesn't exist because
you'll find all kinds of HW out there that'll do all kind of stuff
you wouldn't imagine.
>
> This gets even more obvious with PCI of course. Then add a b43 wifi card
> on PCI, you have AXI -> PCI -> SSB (silicon backplane). Now what happens
> when one of the sub-devices on SBB (the MAC interface for example) does
> a bus master ? You have at least 2 layers to cross before you hit your
> processor bus.
>
> Add iommu's to the soup and you get into a serious mess :-)
IOmmus messify things a bit, but the translation is only done from
the masters above the iommu going down theough the iommu. Not
vice versa. At least AFAIK.
Cheers
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, (continued)
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Avi Kivity, 2012/06/12
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/12
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Anthony Liguori, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Edgar E. Iglesias, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Edgar E. Iglesias, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams,
Edgar E. Iglesias <=
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Edgar E. Iglesias, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/13
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/14
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Andreas Färber, 2012/06/11
- Re: [Qemu-devel] [RFC] QOMification of AXI streams, Benjamin Herrenschmidt, 2012/06/11
- Re: [Qemu-devel] [RFC] QOMification of AXI stream, Avi Kivity, 2012/06/12
- Re: [Qemu-devel] [RFC] QOMification of AXI stream, Edgar E. Iglesias, 2012/06/12
- Re: [Qemu-devel] [RFC] QOMification of AXI stream, Anthony Liguori, 2012/06/11
- Re: [Qemu-devel] [RFC] QOMification of AXI stream, Avi Kivity, 2012/06/12