Skip to content

iommu/qcom+msm: Use identity domain for display/GPU

Rob Clark dri-devel linux-arm-kernel linux-arm-msm linux-iommu lkml 1 version Applied

Status from this message: Applied, thanks. Patch 1 needs to go through Will.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2iommu/qcom: Use identity domain for GPU and displaydrivers/iommu/arm/arm-smmu/qcom_iommu.c+18 -02 replies
2/2iommu/msm: Use identity domain for GPU and displaydrivers/iommu/msm_iommu.c+16 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKonrad Dybcio
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] iommu/qcom+msm: Use identity domain for display/GPU

Similar to what is already done in arm-smmu-qcom, match display and GPU compatible strings to pick identity domain type for them.

So far, we have an "evil twin" domain kicking around after drm/msm attaches it's own domain. Until now, that has been relatively harmless. But it becomes a problem with [1] when we start using sg_dma_len()/ sg_dma_address() for setting up mappings. Which is required to avoid problems with CONFIG_DMABUF_DEBUG (dma_buf_wrap_sg_table()).

The first patch is at least compile tested.. msm_iommu seems to be armv7-only.

If there are devices with bootloader splash, we may also need some work on qcom_iommu_identity_attach() and/or msm_iommu_identity_attach() to put the context bank into bypass instead of disabling it? Not sure, but that is probably going to require someone with such hardware at hand.

[1] https://patchwork.freedesktop.org/series/175619/

Rob Clark (2):
iommu/qcom: Use identity domain for GPU and display iommu/msm: Use identity domain for GPU and display

 drivers/iommu/arm/arm-smmu/qcom_iommu.c | 18 ++++++++++++++++++
 drivers/iommu/msm_iommu.c               | 16 ++++++++++++++++
 2 files changed, 34 insertions(+)
Signature · 1 line
2.56.0