All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] drm/msm: fixes for KMS iommu handling
@ 2022-05-05  0:16 ` Dmitry Baryshkov
  0 siblings, 0 replies; 30+ messages in thread
From: Dmitry Baryshkov @ 2022-05-05  0:16 UTC (permalink / raw)
  To: Rob Clark, Sean Paul, Abhinav Kumar
  Cc: Stephen Boyd, David Airlie, Daniel Vetter, Bjorn Andersson,
	linux-arm-msm, dri-devel, freedreno, Robin Murphy

This series started from the applied and then reverted [2] patch by
Robin Murphy [1]. After the MDSS rework [3] has landed it is now
possible to reapply the extended version of the original patch. While we
are at it, also rework the IOMMU init code for DPU and MDP5 drivers.

For MDP5 this moves iommu_domain_alloc() call and removes struct
mdp5_cfg_platform remains.

For DPU this allows specifying the iommus = <...> either in the DPU
device (like all DPU devices do) or in the MDSS device (like MDP5
devices do).

Changes since v1:
 - Move aspace init to common helper
 - Use device_iommu_mapped() rather than semi-internal
   dev_iommu_fwspec_get() (suggested by Robin Murphy)

[1] https://patchwork.freedesktop.org/patch/480707/
[2] https://patchwork.freedesktop.org/patch/482453/
[3] https://patchwork.freedesktop.org/series/98525/

Dmitry Baryshkov (5):
  drm/msm/dpu: check both DPU and MDSS devices for the IOMMU
  drm/msm/mdp5: move iommu_domain_alloc() call close to its usage
  drm/msm: Stop using iommu_present()
  drm/msm: move KMS aspace init to the separate helper
  drm/msm: switch msm_kms_init_aspace() to use device_iommu_mapped()

 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c  | 24 ++---------
 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 16 --------
 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.h |  6 ---
 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 31 +++-----------
 drivers/gpu/drm/msm/msm_drv.c            | 51 +++++++++++++++++++++++-
 drivers/gpu/drm/msm/msm_drv.h            |  1 +
 6 files changed, 59 insertions(+), 70 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-06-16  8:07 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05  0:16 [PATCH v2 0/5] drm/msm: fixes for KMS iommu handling Dmitry Baryshkov
2022-05-05  0:16 ` Dmitry Baryshkov
2022-05-05  0:16 ` [PATCH v2 1/5] drm/msm/dpu: check both DPU and MDSS devices for the IOMMU Dmitry Baryshkov
2022-05-05  0:16   ` Dmitry Baryshkov
2022-06-15 17:55   ` [Freedreno] " Abhinav Kumar
2022-06-15 17:55     ` Abhinav Kumar
2022-06-15 18:42     ` Dmitry Baryshkov
2022-06-15 18:42       ` Dmitry Baryshkov
2022-06-15 23:51       ` Abhinav Kumar
2022-06-15 23:51         ` Abhinav Kumar
2022-05-05  0:16 ` [PATCH v2 2/5] drm/msm/mdp5: move iommu_domain_alloc() call close to its usage Dmitry Baryshkov
2022-05-05  0:16   ` Dmitry Baryshkov
2022-06-15 18:18   ` Abhinav Kumar
2022-06-15 18:18     ` Abhinav Kumar
2022-05-05  0:16 ` [PATCH v2 3/5] drm/msm: Stop using iommu_present() Dmitry Baryshkov
2022-05-05  0:16   ` Dmitry Baryshkov
2022-06-15 18:29   ` Abhinav Kumar
2022-06-15 18:29     ` Abhinav Kumar
2022-05-05  0:16 ` [PATCH v2 4/5] drm/msm: move KMS aspace init to the separate helper Dmitry Baryshkov
2022-05-05  0:16   ` Dmitry Baryshkov
2022-06-16  2:34   ` Stephen Boyd
2022-06-16  2:34     ` Stephen Boyd
2022-06-16  8:07     ` Dmitry Baryshkov
2022-06-16  8:07       ` Dmitry Baryshkov
2022-05-05  0:16 ` [PATCH v2 5/5] drm/msm: switch msm_kms_init_aspace() to use device_iommu_mapped() Dmitry Baryshkov
2022-05-05  0:16   ` Dmitry Baryshkov
2022-05-05 10:27   ` Robin Murphy
2022-05-05 10:27     ` Robin Murphy
2022-05-05 11:49     ` Dmitry Baryshkov
2022-05-05 11:49       ` Dmitry Baryshkov

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.