* ACPI Xen and SMMU driver
@ 2014-09-17 4:06 manish jaggi
2014-09-18 18:04 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: manish jaggi @ 2014-09-17 4:06 UTC (permalink / raw)
To: xen-devel, prasun.Kapoor, manish.jaggi, Vijaya.Kumar
Hi Stefano / Ian,
Currently the SMMU code for ARM is derived from Linux SMMU code which
is dependent on device tree. My current PCI passthrough work is based
on the platform device passthrough support which is actually the
device tree node pass through.
With ACPI smmu.c have to be split into smmu-dt.c and smmu-acpi.c,
smmu-ops.c. The smmu-ops would be much simpler driver.
As PCI passthrough on ARM is only on ARMv8 servers do you think it
makes sense to provide the PCI passthrough support via acpi smmu
driver or we would have to still base it on (current)smmu-dt driver,
when targeting for 4.5 Xen.
-Regards
Manish
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ACPI Xen and SMMU driver
2014-09-17 4:06 ACPI Xen and SMMU driver manish jaggi
@ 2014-09-18 18:04 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2014-09-18 18:04 UTC (permalink / raw)
To: manish jaggi
Cc: prasun.Kapoor, Naresh Bhat, manish.jaggi, xen-devel, Parth Dixit,
Vijaya.Kumar
On Wed, 2014-09-17 at 09:36 +0530, manish jaggi wrote:
Adding Naresh and Parth who are working on Xen ACPI support within
Linaro.
> Hi Stefano / Ian,
>
> Currently the SMMU code for ARM is derived from Linux SMMU code which
> is dependent on device tree. My current PCI passthrough work is based
> on the platform device passthrough support which is actually the
> device tree node pass through.
>
> With ACPI smmu.c have to be split into smmu-dt.c and smmu-acpi.c,
> smmu-ops.c. The smmu-ops would be much simpler driver.
>
> As PCI passthrough on ARM is only on ARMv8 servers
I don't think this is a true assumption (but I also don't think it makes
a difference to the approach we should take)
> do you think it
> makes sense to provide the PCI passthrough support via acpi smmu
> driver or we would have to still base it on (current)smmu-dt driver,
> when targeting for 4.5 Xen.
We certainly don't want to be duplicating the actual driver
functionality (I don't think you were suggesting that though).
What we will need is an ACPI equivalent of the "glue" bit (i.e.
DT_DEVICE_START and the functions it references). I think it remains to
be seen once ACPI patches start turning up but I hope that the glue
layer will be small enough that it can all live alongside the DT glue in
the smmu.c file, and perhaps even share some of the code between the DT
and ACPI glue.
If it turns out that the ACPI glue is a significant portion of the
smmu.c file then perhaps we will need to consider splitting it out, but
I'm hopeful it won't come to that.
Ian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-18 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-17 4:06 ACPI Xen and SMMU driver manish jaggi
2014-09-18 18:04 ` Ian Campbell
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).