drm/i915: Fix up broken merge
Subsystems (2)
PATCH 1/1 drm/i915: Fix up broken merge
Maxime didn't really compile-test this :-/
We need to re-apply
commit e4fa8457b2197118538a1400b75c898f9faaf164
Author: Daniel Vetter <[email protected]> Date: Fri Jun 14 22:35:25 2019 +0200
drm/prime: Align gem_prime_export with obj_funcs.export
plus make sure i915_gem_dma_buf.c doesn't get zombie-resurrect. It moved in
commit 10be98a77c558f8cfb823cd2777171fbb35040f6
Author: Chris Wilson <[email protected]> Date: Tue May 28 10:29:49 2019 +0100
drm/i915: Move more GEM objects under gem/
--- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 5 +- drivers/gpu/drm/i915/i915_gem_dmabuf.c | 336 --------------------- 2 files changed, 2 insertions(+), 339 deletions(-) delete mode 100644 drivers/gpu/drm/i915/i915_gem_dmabuf.c
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c +2 -3
@@ -204,8 +204,7 @@ static const struct dma_buf_ops i915_dmabuf_ops = { .end_cpu_access = i915_gem_end_cpu_access, }; -struct dma_buf *i915_gem_prime_export (struct drm_device *dev, -struct drm_gem_object *gem_obj,int flags) +struct dma_buf *i915_gem_prime_export (struct drm_gem_object *gem_obj,int flags) {struct drm_i915_gem_object *obj =to_intel_bo (gem_obj);DEFINE_DMA_BUF_EXPORT_INFO (exp_info);
@@ -222,7 +221,7 @@ struct dma_buf *i915_gem_prime_export(struct drm_device *dev,return ERR_PTR (ret); } -return drm_gem_dmabuf_export (dev, &exp_info); +return drm_gem_dmabuf_export (gem_obj->dev, &exp_info); }static int i915_gem_object_get_pages_dmabuf (struct drm_i915_gem_object *obj)
drivers/gpu/drm/i915/i915_gem_dmabuf.c deleted +0 -336
336 lines not on this page · raw message
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Daniel Vetter (2019-07-22 22:21:01)
Quoted 17 lines
Maxime didn't really compile-test this :-/
We need to re-apply
commit
e4fa8457b2197118538a1400b75c898f9faaf164Author: Daniel Vetter <[email protected]> Date: Fri Jun 14 22:35:25 2019 +0200drm/prime: Align
gem_prime_exportwith obj_funcs.exportplus make sure
i915_gem_dma_buf.cdoesn't get zombie-resurrect. It moved incommit
10be98a77c558f8cfb823cd2777171fbb35040f6Author: Chris Wilson <[email protected]> Date: Tue May 28 10:29:49 2019 +0100
Quoted 8 lines
drm/i915: Move more GEM objects under gem/
Fixes 03b0f2ce735e ("Merge v5.3-rc1 into drm-misc-next")Cc Maxime Ripard <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 5 +- drivers/gpu/drm/i915/i915_gem_dmabuf.c | 336 ---------------------
4 little fixes for the change in iface forgem/selftests/i915_gem_dmabuf.c (plus git rmselftests/i915_gem_dmabuf.c)
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 drm/i915: Fix up broken merge
In reply to Daniel VetterMaxime didn't really compile-test this :-/
We need to re-apply
commit e4fa8457b2197118538a1400b75c898f9faaf164
Author: Daniel Vetter <[email protected]> Date: Fri Jun 14 22:35:25 2019 +0200
drm/prime: Align gem_prime_export with obj_funcs.export
plus make sure i915_gem_dma_buf.c doesn't get zombie-resurrect. It moved in
commit 10be98a77c558f8cfb823cd2777171fbb35040f6
Author: Chris Wilson <[email protected]> Date: Tue May 28 10:29:49 2019 +0100
drm/i915: Move more GEM objects under gem/
v2: Remember the selftests (Chris).
--- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 5 +- .../drm/i915/gem/selftests/i915_gem_dmabuf.c | 8 +- drivers/gpu/drm/i915/i915_gem_dmabuf.c | 336 --------------- .../gpu/drm/i915/selftests/i915_gem_dmabuf.c | 404 ------------------ 4 files changed, 6 insertions(+), 747 deletions(-) delete mode 100644 drivers/gpu/drm/i915/i915_gem_dmabuf.c delete mode 100644 drivers/gpu/drm/i915/selftests/i915_gem_dmabuf.c
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c +2 -3
@@ -204,8 +204,7 @@ static const struct dma_buf_ops i915_dmabuf_ops = { .end_cpu_access = i915_gem_end_cpu_access, }; -struct dma_buf *i915_gem_prime_export (struct drm_device *dev, -struct drm_gem_object *gem_obj,int flags) +struct dma_buf *i915_gem_prime_export (struct drm_gem_object *gem_obj,int flags) {struct drm_i915_gem_object *obj =to_intel_bo (gem_obj);DEFINE_DMA_BUF_EXPORT_INFO (exp_info);
@@ -222,7 +221,7 @@ struct dma_buf *i915_gem_prime_export(struct drm_device *dev,return ERR_PTR (ret); } -return drm_gem_dmabuf_export (dev, &exp_info); +return drm_gem_dmabuf_export (gem_obj->dev, &exp_info); }static int i915_gem_object_get_pages_dmabuf (struct drm_i915_gem_object *obj)
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c +4 -4
@@ -20,7 +20,7 @@ static int igt_dmabuf_export(void *arg)if (IS_ERR (obj))return PTR_ERR (obj); - dmabuf =i915_gem_prime_export (&i915->drm, &obj->base,0 ); + dmabuf =i915_gem_prime_export (&obj->base,0 );i915_gem_object_put (obj);if (IS_ERR (dmabuf)) { pr_err("i915_gem_prime_export failed with err=%d\n",
@@ -44,7 +44,7 @@ static int igt_dmabuf_import_self(void *arg)if (IS_ERR (obj))return PTR_ERR (obj); - dmabuf =i915_gem_prime_export (&i915->drm, &obj->base,0 ); + dmabuf =i915_gem_prime_export (&obj->base,0 );if (IS_ERR (dmabuf)) {pr_err ("i915_gem_prime_export failed with err=%d\n" , (int )PTR_ERR (dmabuf));
@@ -219,7 +219,7 @@ static int igt_dmabuf_export_vmap(void *arg)if (IS_ERR (obj))return PTR_ERR (obj); - dmabuf =i915_gem_prime_export (&i915->drm, &obj->base,0 ); + dmabuf =i915_gem_prime_export (&obj->base,0 );if (IS_ERR (dmabuf)) {pr_err ("i915_gem_prime_export failed with err=%d\n" , (int )PTR_ERR (dmabuf));
@@ -266,7 +266,7 @@ static int igt_dmabuf_export_kmap(void *arg)if (IS_ERR (obj))return PTR_ERR (obj); - dmabuf =i915_gem_prime_export (&i915->drm, &obj->base,0 ); + dmabuf =i915_gem_prime_export (&obj->base,0 );i915_gem_object_put (obj);if (IS_ERR (dmabuf)) { err =PTR_ERR (dmabuf);
drivers/gpu/drm/i915/i915_gem_dmabuf.c deleted +0 -336
336 lines not on this page · raw message
drivers/gpu/drm/i915/selftests/i915_gem_dmabuf.c deleted +0 -404
404 lines not on this page · raw message
Signature · 6 lines
2.22.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Daniel Vetter (2019-07-22 22:37:59)
Quoted 17 lines
Maxime didn't really compile-test this :-/
We need to re-apply
commit
e4fa8457b2197118538a1400b75c898f9faaf164Author: Daniel Vetter <[email protected]> Date: Fri Jun 14 22:35:25 2019 +0200drm/prime: Align
gem_prime_exportwith obj_funcs.exportplus make sure
i915_gem_dma_buf.cdoesn't get zombie-resurrect. It moved incommit
10be98a77c558f8cfb823cd2777171fbb35040f6Author: Chris Wilson <[email protected]> Date: Tue May 28 10:29:49 2019 +0100
Quoted 8 lines
drm/i915: Move more GEM objects under gem/
v2: Remember the selftests (Chris).
Fixes 03b0f2ce735e ("Merge v5.3-rc1 into drm-misc-next")Cc Maxime Ripard <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Matches the same compile fix and git rm as I did locally,
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 23 lines · Chris Wilson
Quoting Daniel Vetter (2019-07-22 22:37:59)
Quoted 21 lines
Maxime didn't really compile-test this :-/
We need to re-apply
commit
e4fa8457b2197118538a1400b75c898f9faaf164Author: Daniel Vetter <[email protected]> Date: Fri Jun 14 22:35:25 2019 +0200drm/prime: Align
gem_prime_exportwith obj_funcs.exportplus make sure
i915_gem_dma_buf.cdoesn't get zombie-resurrect. It moved incommit
10be98a77c558f8cfb823cd2777171fbb35040f6Author: Chris Wilson <[email protected]> Date: Tue May 28 10:29:49 2019 +0100drm/i915: Move more GEM objects under gem/
v2: Remember the selftests (Chris).
Quoted 7 lines
Quoted 4 lines
Fixes 03b0f2ce735e ("Merge v5.3-rc1 into drm-misc-next")Cc Maxime Ripard <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Matches the same compile fix and git rm as I did locally,
Reviewed-by Chris Wilson <[email protected]>
And pushed with Dave's irc-ack. Thanks for helping along to get this rectified. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel