* [PATCH] drm/i915: fix flags in dma buf exporting
@ 2012-12-20 0:51 Dave Airlie
2012-12-20 7:39 ` [PATCH 1/2] drm/exynos: " Seung-Woo Kim
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Dave Airlie @ 2012-12-20 0:51 UTC (permalink / raw)
To: dri-devel
From: Dave Airlie <airlied@redhat.com>
As pointed out by Seung-Woo Kim this should have been
passing flags like nouveau/radeon have.
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
drivers/gpu/drm/i915/i915_gem_dmabuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/i915_gem_dmabuf.c
index 773ef77..7be4241 100644
--- a/drivers/gpu/drm/i915/i915_gem_dmabuf.c
+++ b/drivers/gpu/drm/i915/i915_gem_dmabuf.c
@@ -226,7 +226,7 @@ struct dma_buf *i915_gem_prime_export(struct drm_device *dev,
{
struct drm_i915_gem_object *obj = to_intel_bo(gem_obj);
- return dma_buf_export(obj, &i915_dmabuf_ops, obj->base.size, 0600);
+ return dma_buf_export(obj, &i915_dmabuf_ops, obj->base.size, flags);
}
static int i915_gem_object_get_pages_dmabuf(struct drm_i915_gem_object *obj)
--
1.8.0.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 1/2] drm/exynos: fix flags in dma buf exporting
2012-12-20 0:51 [PATCH] drm/i915: fix flags in dma buf exporting Dave Airlie
@ 2012-12-20 7:39 ` Seung-Woo Kim
2012-12-21 16:08 ` Inki Dae
2012-12-20 7:39 ` [PATCH 2/2] drm/omap: " Seung-Woo Kim
2012-12-20 10:17 ` [PATCH] drm/i915: " Daniel Vetter
2 siblings, 1 reply; 6+ messages in thread
From: Seung-Woo Kim @ 2012-12-20 7:39 UTC (permalink / raw)
To: dri-devel, airlied; +Cc: kyungmin.park, sw0312.kim
This patch fixes flags passed to dma buf exporting.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin.park <kyungmin.park@samsung.com>
---
I found exynos drm also sends wrong flag for dma buf exporting. So I send this
based on drm-fixes branch.
drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
index fae1f2e..8cb8c56 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
@@ -185,7 +185,7 @@ struct dma_buf *exynos_dmabuf_prime_export(struct drm_device *drm_dev,
struct exynos_drm_gem_obj *exynos_gem_obj = to_exynos_gem_obj(obj);
return dma_buf_export(exynos_gem_obj, &exynos_dmabuf_ops,
- exynos_gem_obj->base.size, 0600);
+ exynos_gem_obj->base.size, flags);
}
struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,
--
1.7.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] drm/exynos: fix flags in dma buf exporting
2012-12-20 7:39 ` [PATCH 1/2] drm/exynos: " Seung-Woo Kim
@ 2012-12-21 16:08 ` Inki Dae
0 siblings, 0 replies; 6+ messages in thread
From: Inki Dae @ 2012-12-21 16:08 UTC (permalink / raw)
To: Seung-Woo Kim; +Cc: kyungmin.park, dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1375 bytes --]
Applied.
Thanks,
Inki Dae
2012/12/20 Seung-Woo Kim <sw0312.kim@samsung.com>
> This patch fixes flags passed to dma buf exporting.
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> Signed-off-by: Kyungmin.park <kyungmin.park@samsung.com>
> ---
> I found exynos drm also sends wrong flag for dma buf exporting. So I send
> this
> based on drm-fixes branch.
>
> drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
> b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
> index fae1f2e..8cb8c56 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
> @@ -185,7 +185,7 @@ struct dma_buf *exynos_dmabuf_prime_export(struct
> drm_device *drm_dev,
> struct exynos_drm_gem_obj *exynos_gem_obj = to_exynos_gem_obj(obj);
>
> return dma_buf_export(exynos_gem_obj, &exynos_dmabuf_ops,
> - exynos_gem_obj->base.size, 0600);
> + exynos_gem_obj->base.size, flags);
> }
>
> struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device
> *drm_dev,
> --
> 1.7.4.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
[-- Attachment #1.2: Type: text/html, Size: 2033 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] drm/omap: fix flags in dma buf exporting
2012-12-20 0:51 [PATCH] drm/i915: fix flags in dma buf exporting Dave Airlie
2012-12-20 7:39 ` [PATCH 1/2] drm/exynos: " Seung-Woo Kim
@ 2012-12-20 7:39 ` Seung-Woo Kim
2012-12-20 14:30 ` Rob Clark
2012-12-20 10:17 ` [PATCH] drm/i915: " Daniel Vetter
2 siblings, 1 reply; 6+ messages in thread
From: Seung-Woo Kim @ 2012-12-20 7:39 UTC (permalink / raw)
To: dri-devel, airlied; +Cc: sw0312.kim, rob.clark
This patch fixes flags passed to dma buf exporting.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Rob Clark <rob.clark@linaro.org>
---
I found omap drm also sends wrong flag for dma buf exporting. So I send this
based on drm-fixes branch.
drivers/staging/omapdrm/omap_gem_dmabuf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omapdrm/omap_gem_dmabuf.c b/drivers/staging/omapdrm/omap_gem_dmabuf.c
index c6f3ef6..e5ffe72 100644
--- a/drivers/staging/omapdrm/omap_gem_dmabuf.c
+++ b/drivers/staging/omapdrm/omap_gem_dmabuf.c
@@ -194,7 +194,7 @@ struct dma_buf_ops omap_dmabuf_ops = {
struct dma_buf * omap_gem_prime_export(struct drm_device *dev,
struct drm_gem_object *obj, int flags)
{
- return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, 0600);
+ return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, flags);
}
struct drm_gem_object * omap_gem_prime_import(struct drm_device *dev,
--
1.7.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 2/2] drm/omap: fix flags in dma buf exporting
2012-12-20 7:39 ` [PATCH 2/2] drm/omap: " Seung-Woo Kim
@ 2012-12-20 14:30 ` Rob Clark
0 siblings, 0 replies; 6+ messages in thread
From: Rob Clark @ 2012-12-20 14:30 UTC (permalink / raw)
To: Seung-Woo Kim; +Cc: Greg Kroah-Hartman, dri-devel
On Thu, Dec 20, 2012 at 1:39 AM, Seung-Woo Kim <sw0312.kim@samsung.com> wrote:
> This patch fixes flags passed to dma buf exporting.
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> Cc: Rob Clark <rob.clark@linaro.org>
Probably should go to GregKH, unless he doesn't mind this going in via
drm tree (it won't conflict with any other recent patches). Either
way,
Signed-off-by: Rob Clark <rob@ti.com>
> ---
> I found omap drm also sends wrong flag for dma buf exporting. So I send this
> based on drm-fixes branch.
>
> drivers/staging/omapdrm/omap_gem_dmabuf.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/omapdrm/omap_gem_dmabuf.c b/drivers/staging/omapdrm/omap_gem_dmabuf.c
> index c6f3ef6..e5ffe72 100644
> --- a/drivers/staging/omapdrm/omap_gem_dmabuf.c
> +++ b/drivers/staging/omapdrm/omap_gem_dmabuf.c
> @@ -194,7 +194,7 @@ struct dma_buf_ops omap_dmabuf_ops = {
> struct dma_buf * omap_gem_prime_export(struct drm_device *dev,
> struct drm_gem_object *obj, int flags)
> {
> - return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, 0600);
> + return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, flags);
> }
>
> struct drm_gem_object * omap_gem_prime_import(struct drm_device *dev,
> --
> 1.7.4.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drm/i915: fix flags in dma buf exporting
2012-12-20 0:51 [PATCH] drm/i915: fix flags in dma buf exporting Dave Airlie
2012-12-20 7:39 ` [PATCH 1/2] drm/exynos: " Seung-Woo Kim
2012-12-20 7:39 ` [PATCH 2/2] drm/omap: " Seung-Woo Kim
@ 2012-12-20 10:17 ` Daniel Vetter
2 siblings, 0 replies; 6+ messages in thread
From: Daniel Vetter @ 2012-12-20 10:17 UTC (permalink / raw)
To: Dave Airlie; +Cc: dri-devel
On Thu, Dec 20, 2012 at 10:51:09AM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> As pointed out by Seung-Woo Kim this should have been
> passing flags like nouveau/radeon have.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Dave Airlie <airlied@redhat.com>
Picked up for -fixes, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-12-21 16:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-20 0:51 [PATCH] drm/i915: fix flags in dma buf exporting Dave Airlie
2012-12-20 7:39 ` [PATCH 1/2] drm/exynos: " Seung-Woo Kim
2012-12-21 16:08 ` Inki Dae
2012-12-20 7:39 ` [PATCH 2/2] drm/omap: " Seung-Woo Kim
2012-12-20 14:30 ` Rob Clark
2012-12-20 10:17 ` [PATCH] drm/i915: " Daniel Vetter
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.