mbox series

[RFC,0/2] Generic DT Support for SMMU

Message ID 1578619590-3661-1-git-send-email-brian.woods@xilinx.com (mailing list archive)
Headers show
Series Generic DT Support for SMMU | expand

Message

Brian Woods Jan. 10, 2020, 1:26 a.m. UTC
I'd like some feedback on these patches.  Parts I particularly want
feedback on are listed below and each patch will have a copy of the
relevant parts requesting feedback.  Any feedback is welcomed though.
Also, the commit messages are a little rough.

Patch 1:
  - Check in device_tree.c.  This is needed, otherwise it won't boot due
    to dev_iommu_fwspec_get(dev) being true and returning EEXIST.  I'm
    not completely sure what type of check is best here.

Patch 2:
   - Checks for the: arm_smmu_dt_add_device* and arm_smmu_dt_xlate*
     functions.

These patches have been tested with device passthrough on a Xilinx
ZCU102 with passing the on board ethernet to a guest via the SMMU.

Brian Woods (2):
  arm,smmu: add support for iommu_fwspec functions
  smmu: add support for generic DT bindings

 xen/drivers/passthrough/arm/smmu.c    | 156 +++++++++++++++++++++++++---------
 xen/drivers/passthrough/device_tree.c |  20 +----
 2 files changed, 118 insertions(+), 58 deletions(-)