From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: Master-aware devices and sideband ID data
Date: Mon, 11 May 2015 10:52:36 +0100 [thread overview]
Message-ID: <20150511095236.GC1549@arm.com> (raw)
In-Reply-To: <CALRxmdAEvQPGN_xvwU5Xb4eNfKegPfTyM-GKXg4jRD7JyRxHJA@mail.gmail.com>
On Fri, May 08, 2015 at 08:30:00PM +0100, Stuart Yoder wrote:
> On Fri, May 8, 2015 at 10:49 AM, Will Deacon <will.deacon@arm.com> wrote:
> > On Thu, May 07, 2015 at 06:49:32PM +0100, Stuart Yoder wrote:
> >> The FSL LS2085A SoC has an actual RID->SID mapping table in the PCI
> >> controller, but it is not static in the sense of fixed in hardware or
> >> firmware. It's
> >> a programmable mapping table, and we envision Linux programming this table.
> >
> > Ok, so I assume you're not planning to use ACPI with this system?
>
> Not initially, but perhaps in the future. I guess I don't know the implications
> to ACPI yet.
Well, I suggest you take a look at the IORT spec[1] asap, because I don't think
it can describe your system if you want to go in the direction of dynamic
mappings.
> > Also, we can't just program this table willy-nilly, as I'm sure you're
> > aware. For example, updating a the SMRs in a live SMMU is a big no-no,
> > so although Linux may initialise the table, it can only be safely changed
> > at device init/teardown time, surely?
>
> Correct. That would not be updated when a device is live.
Ok, so the best way for Linux is probably to abstract this in the bus code
and have that allocate the IDs when a device is `hotplugged' on. This would
also fit well with consolidating the group creation for platform and PCI
devices.
Will
[1] http://infocenter.arm.com/help/topic/com.arm.doc.den0049a/DEN0049A_IO_Remapping_Table.pdf
next prev parent reply other threads:[~2015-05-11 9:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-24 15:50 Master-aware devices and sideband ID data Mark Rutland
2015-05-07 17:49 ` Stuart Yoder
2015-05-08 15:49 ` Will Deacon
2015-05-08 19:30 ` Stuart Yoder
2015-05-11 9:52 ` Will Deacon [this message]
2015-05-26 22:20 ` Chalamarla, Tirumalesh
2015-05-27 17:39 ` Mark Rutland
2015-05-29 17:46 ` Chalamarla, Tirumalesh
2015-06-01 10:22 ` Mark Rutland
2015-06-04 22:19 ` Chalamarla, Tirumalesh
2015-06-05 9:05 ` Will Deacon
2015-06-09 10:17 ` Mark Rutland
2015-06-10 8:11 ` Will Deacon
2015-07-08 13:30 ` Mark Rutland
2015-07-08 16:02 ` Will Deacon
2015-07-16 13:34 ` Mark Rutland
2015-07-17 10:36 ` Will Deacon
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=20150511095236.GC1549@arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 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).