All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] Cap SMMU s2 input-size based on p2m tables
@ 2015-04-27  9:24 Edgar E. Iglesias
  2015-04-27  9:24 ` [RFC 1/2] xen/arm: Save and expose the p2m IPA address size Edgar E. Iglesias
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Edgar E. Iglesias @ 2015-04-27  9:24 UTC (permalink / raw)
  To: xen-devel; +Cc: julien.grall, tim, stefano.stabellini, ian.campbell

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

Hi,

This is a first try at fixing the issue I'm seeing on ZynqMP with
missmatched setup of the SMMU and the shared page-tables with p2m.

I've only handled the case of having an SMMU that supports larger
s2 input-sizes than what p2m wants to use.

To support the case were the system has SMMUs that can only do smaller
input-sizes than the CPU, I think we will need to walk the device-tree
when creating domains and somehow cap the p2m IPA size to the largest
supported S2 size across the SMMUs used by that particular domain.
The max IPA size may need to be domain specific.
I did not implement this but I did make the max size domain specific.
Julien, you mentioned you might have access to such a system?

Does this look reasonable or should we be fixing this some other way?
I could make the patch simpler I guess by having a global (not
domain specific) max value set once aswell.

Comments?

Best regards,
Edgar

Edgar E. Iglesias (2):
  xen/arm: Save and expose the p2m IPA address size
  xen/iommu: smmu: Use the p2m IPA size as S2 input-size

 xen/arch/arm/p2m.c                 |  7 ++++++-
 xen/drivers/passthrough/arm/smmu.c | 17 +++++++++++++++--
 xen/include/asm-arm/p2m.h          |  3 +++
 3 files changed, 24 insertions(+), 3 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2015-04-29  0:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27  9:24 [RFC 0/2] Cap SMMU s2 input-size based on p2m tables Edgar E. Iglesias
2015-04-27  9:24 ` [RFC 1/2] xen/arm: Save and expose the p2m IPA address size Edgar E. Iglesias
2015-04-27  9:24 ` [RFC 2/2] xen/iommu: smmu: Use the p2m IPA size as S2 input-size Edgar E. Iglesias
2015-04-28 16:50 ` [RFC 0/2] Cap SMMU s2 input-size based on p2m tables Julien Grall
2015-04-29  0:47   ` Edgar E. Iglesias

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.