From: Inki Dae <daeinki@gmail.com>
To: airlied@linux.ie, dri-devel@lists.freedesktop.org
Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com
Subject: [PATCH 0/3] drm/exynos: add iommu support for -next
Date: Sat, 20 Oct 2012 09:18:48 -0700 [thread overview]
Message-ID: <1350749931-9232-1-git-send-email-daeinki@gmail.com> (raw)
Hi all,
This patch set adds iommu support for exynos drm framework
and also relevant drivers, fimd and hdmi.
Exynos4xxx SoC and later have some iommu hardware units for
video codec, Camera, Post Processer(FIMC and GScaler), FIMD, HDMI,
Graphics 2D and so on. In other words, each device has its own
iommu hardware unit. So each device could have its own device
address space.
But in case of using DRM GEM and DMA Mapping API as allocator,
there is one issue. the issue is that we can't know which device
a gem buffer should be allocated for. So this patch set will use
unified device address space. Simply saying, exynos drm-based
all devices of using iommu have same device address space.
For example, if user process requested gem allocation, exynos drm
gem framework allocates desired physical memory region and maps it
with unified iommu mapping table through DMA Mapping API call,
dma_allc_attrs function.
And this patch set is based on the following patch, "DMA-mapping &
IOMMU - physically contiguous allocations" Marek posted before as RFC.
For this, you can refer to below link,
http://www.serverphorums.com/read.php?12,581741
As you know, RFC to the above patch is in progress so we have to wait
for the patch to be merged to mainline.
Thanks,
Inki Dae
Inki Dae (3):
drm/exynos: add iommu support for exynos drm framework
drm/exynos: add iommu support to fimd driver
drm/exynos: add iommu support for hdmi driver
drivers/gpu/drm/exynos/Kconfig | 6 +
drivers/gpu/drm/exynos/Makefile | 1 +
drivers/gpu/drm/exynos/exynos_drm_buf.c | 88 +++++-------
drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 87 +++++-------
drivers/gpu/drm/exynos/exynos_drm_drv.c | 23 +++-
drivers/gpu/drm/exynos/exynos_drm_drv.h | 11 ++
drivers/gpu/drm/exynos/exynos_drm_fb.c | 52 ++++++-
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 9 +-
drivers/gpu/drm/exynos/exynos_drm_gem.c | 210 +++--------------------------
drivers/gpu/drm/exynos/exynos_drm_gem.h | 1 +
drivers/gpu/drm/exynos/exynos_drm_hdmi.c | 15 +++
drivers/gpu/drm/exynos/exynos_drm_hdmi.h | 1 +
drivers/gpu/drm/exynos/exynos_drm_iommu.c | 156 +++++++++++++++++++++
drivers/gpu/drm/exynos/exynos_drm_iommu.h | 85 ++++++++++++
drivers/gpu/drm/exynos/exynos_hdmi.c | 21 +++
15 files changed, 460 insertions(+), 306 deletions(-)
create mode 100644 drivers/gpu/drm/exynos/exynos_drm_iommu.c
create mode 100644 drivers/gpu/drm/exynos/exynos_drm_iommu.h
--
1.8.0.rc3.16.g8ead1bf
next reply other threads:[~2012-10-20 16:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-20 16:18 Inki Dae [this message]
2012-10-20 16:18 ` [PATCH 1/3] drm/exynos: add iommu support for exynos drm framework Inki Dae
2012-10-22 7:22 ` [PATCH v2] " Inki Dae
2012-10-22 9:56 ` [PATCH] " Inki Dae
2012-11-05 4:57 ` [PATCH v4] " Inki Dae
2012-10-20 16:18 ` [PATCH 2/3] drm/exynos: add iommu support to fimd driver Inki Dae
2012-10-20 16:18 ` [PATCH 3/3] drm/exynos: add iommu support for hdmi driver Inki Dae
2012-12-04 5:56 ` [PATCH v2] " Inki Dae
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1350749931-9232-1-git-send-email-daeinki@gmail.com \
--to=daeinki@gmail.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=kyungmin.park@samsung.com \
--cc=sw0312.kim@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).