From: Joonyoung Shim <jy0922.shim@samsung.com>
To: Carlo Caione <carlo@caione.org>,
linux-arm-kernel@lists.infradead.org, jstpierre@mecheye.net,
drake@endlessm.com, linux@arm.linux.org.uk,
m.szyprowski@samsung.com, robdclark@gmail.com,
inki.dae@samsung.com, linux-samsung-soc@vger.kernel.org,
sw0312.kim@samsung.com, kgene@kernel.org
Subject: Re: [PATCH 1/2] drm/exynos: fix DMA_ATTR_NO_KERNEL_MAPPING usage
Date: Wed, 04 Feb 2015 11:59:23 +0900 [thread overview]
Message-ID: <54D18B0B.5060208@samsung.com> (raw)
In-Reply-To: <1422953252-10835-2-git-send-email-carlo@caione.org>
Hi,
On 02/03/2015 05:47 PM, Carlo Caione wrote:
> The Exynos DRM driver doesn't follow the correct API when dealing with
> dma_{alloc, mmap, free}_attrs functions and the
> DMA_ATTR_NO_KERNEL_MAPPING attribute.
>
> When a IOMMU is not available and the DMA_ATTR_NO_KERNEL_MAPPING is
> used, the driver should use the pointer returned by dma_alloc_attr() as
> a cookie.
>
> The Exynos DRM driver directly uses the non-requested virtual
> kernel address returned by the DMA mapping subsystem. This just works
> now because the non-IOMMU codepath doesn't obey
> DMA_ATTR_NO_KERNEL_MAPPING but we need to fix it before fixing the DMA
> layer.
>
> Signed-off-by: Carlo Caione <carlo@caione.org>
> ---
> drivers/gpu/drm/exynos/exynos_drm_buf.c | 6 +++---
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 29 +++++++++--------------------
> drivers/gpu/drm/exynos/exynos_drm_gem.h | 2 ++
> 3 files changed, 14 insertions(+), 23 deletions(-)
>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Thanks.
WARNING: multiple messages have this Message-ID (diff)
From: jy0922.shim@samsung.com (Joonyoung Shim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] drm/exynos: fix DMA_ATTR_NO_KERNEL_MAPPING usage
Date: Wed, 04 Feb 2015 11:59:23 +0900 [thread overview]
Message-ID: <54D18B0B.5060208@samsung.com> (raw)
In-Reply-To: <1422953252-10835-2-git-send-email-carlo@caione.org>
Hi,
On 02/03/2015 05:47 PM, Carlo Caione wrote:
> The Exynos DRM driver doesn't follow the correct API when dealing with
> dma_{alloc, mmap, free}_attrs functions and the
> DMA_ATTR_NO_KERNEL_MAPPING attribute.
>
> When a IOMMU is not available and the DMA_ATTR_NO_KERNEL_MAPPING is
> used, the driver should use the pointer returned by dma_alloc_attr() as
> a cookie.
>
> The Exynos DRM driver directly uses the non-requested virtual
> kernel address returned by the DMA mapping subsystem. This just works
> now because the non-IOMMU codepath doesn't obey
> DMA_ATTR_NO_KERNEL_MAPPING but we need to fix it before fixing the DMA
> layer.
>
> Signed-off-by: Carlo Caione <carlo@caione.org>
> ---
> drivers/gpu/drm/exynos/exynos_drm_buf.c | 6 +++---
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 29 +++++++++--------------------
> drivers/gpu/drm/exynos/exynos_drm_gem.h | 2 ++
> 3 files changed, 14 insertions(+), 23 deletions(-)
>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Thanks.
next prev parent reply other threads:[~2015-02-04 2:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-03 8:47 [PATCH 0/2] dma: fix DMA_ATTR_NO_KERNEL_MAPPING for no-IOMMU platforms Carlo Caione
2015-02-03 8:47 ` Carlo Caione
2015-02-03 8:47 ` [PATCH 1/2] drm/exynos: fix DMA_ATTR_NO_KERNEL_MAPPING usage Carlo Caione
2015-02-03 8:47 ` Carlo Caione
2015-02-04 2:59 ` Joonyoung Shim [this message]
2015-02-04 2:59 ` Joonyoung Shim
2015-02-03 8:47 ` [PATCH 2/2] arm/dma-mapping: Respect NO_KERNEL_MAPPING when we don't have an IOMMU Carlo Caione
2015-02-03 8:47 ` Carlo Caione
2015-02-03 17:54 ` Laura Abbott
2015-02-03 17:54 ` Laura Abbott
2015-02-03 19:13 ` Carlo Caione
2015-02-03 19:13 ` Carlo Caione
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=54D18B0B.5060208@samsung.com \
--to=jy0922.shim@samsung.com \
--cc=carlo@caione.org \
--cc=drake@endlessm.com \
--cc=inki.dae@samsung.com \
--cc=jstpierre@mecheye.net \
--cc=kgene@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=m.szyprowski@samsung.com \
--cc=robdclark@gmail.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 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.