[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1576514271-15687-1-git-send-email-jcrouse@codeaurora.org>
Date: Mon, 16 Dec 2019 09:37:46 -0700
From: Jordan Crouse <jcrouse@...eaurora.org>
To: iommu@...ts.linux-foundation.org
Cc: robin.murphy@....com, will@...nel.org,
linux-arm-kernel@...ts.infradead.org,
linux-arm-msm@...r.kernel.org, Sean Paul <sean@...rly.run>,
dri-devel@...ts.freedesktop.org, Sam Ravnborg <sam@...nborg.org>,
Fritz Koenig <frkoenig@...gle.com>,
David Airlie <airlied@...ux.ie>,
Joerg Roedel <joro@...tes.org>,
Allison Randal <allison@...utok.net>,
AngeloGioacchino Del Regno <kholk11@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Douglas Anderson <dianders@...omium.org>,
Rob Clark <robdclark@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jeffrey Hugo <jeffrey.l.hugo@...il.com>,
Wen Yang <wen.yang99@....com.cn>,
Alexios Zavras <alexios.zavras@...el.com>,
Jeykumar Sankaran <jsanka@...eaurora.org>,
zhengbin <zhengbin13@...wei.com>, linux-kernel@...r.kernel.org,
Brian Masney <masneyb@...tation.org>,
Drew Davenport <ddavenport@...omium.org>,
Georgi Djakov <georgi.djakov@...aro.org>,
freedreno@...ts.freedesktop.org,
Ben Dooks <ben.dooks@...ethink.co.uk>,
Daniel Vetter <daniel@...ll.ch>
Subject: [PATCH v3 0/5] iommu/arm-smmu: Split pagetable support for arm-smmu-v2
Another refresh to support split pagetables for Adreno GPUs as part of an
incremental process to enable per-context pagetables.
In order to support per-context pagetables the GPU needs to enable split tables
so that we can store global buffers in the TTBR1 space leaving the GPU free to
program the TTBR0 register with the address of a context specific pagetable.
This patchset adds split pagetable support if requested by the domain owner
via the DOMAIN_ATTR_SPLIT_TABLES attribute. If the attribute is non zero at
attach time, the implementation will set up the TTBR0 and TTBR1 spaces with
identical configurations and program the domain pagetable into the TTBR1
register. The TTBR0 register will be unused.
The driver can determine if split pagetables were programmed by querying
DOMAIN_ATTR_SPLIT_TABLES after attaching. The domain geometry will also be
updated to reflect the virtual address space for the TTBR1 range.
These patches are on based on top of linux-next-20191216 with [1], [2], and [3]
from Robin on the iommu list.
Change log:
v3: Remove the implementation specific and make split pagetable support
part of the generic configuration
[1] https://lists.linuxfoundation.org/pipermail/iommu/2019-October/039718.html
[2] https://lists.linuxfoundation.org/pipermail/iommu/2019-October/039719.html
[3] https://lists.linuxfoundation.org/pipermail/iommu/2019-October/039720.html
Jordan Crouse (5):
iommu: Add DOMAIN_ATTR_SPLIT_TABLES
iommu/arm-smmu: Add support for split pagetables
drm/msm: Attach the IOMMU device during initialization
drm/msm: Refactor address space initialization
drm/msm/a6xx: Support split pagetables
drivers/gpu/drm/msm/adreno/a2xx_gpu.c | 16 ++++++++++
drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 1 +
drivers/gpu/drm/msm/adreno/a4xx_gpu.c | 1 +
drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 1 +
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 51 ++++++++++++++++++++++++++++++++
drivers/gpu/drm/msm/adreno/adreno_gpu.c | 23 ++++++++++----
drivers/gpu/drm/msm/adreno/adreno_gpu.h | 8 +++++
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 18 ++++-------
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 18 +++++------
drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 4 ---
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 18 +++++------
drivers/gpu/drm/msm/msm_drv.h | 8 ++---
drivers/gpu/drm/msm/msm_gem_vma.c | 37 +++++------------------
drivers/gpu/drm/msm/msm_gpu.c | 49 ++----------------------------
drivers/gpu/drm/msm/msm_gpu.h | 4 +--
drivers/gpu/drm/msm/msm_gpummu.c | 6 ----
drivers/gpu/drm/msm/msm_iommu.c | 18 ++++++-----
drivers/gpu/drm/msm/msm_mmu.h | 1 -
drivers/iommu/arm-smmu.c | 40 +++++++++++++++++++++----
drivers/iommu/arm-smmu.h | 45 ++++++++++++++++++++++++----
include/linux/iommu.h | 1 +
21 files changed, 215 insertions(+), 153 deletions(-)
--
2.7.4
Powered by blists - more mailing lists