drm/i915: Work-around garbage DR4 from UXA
Subsystems (2)
PATCH 1/1 drm/i915: Work-around garbage DR4 from UXA
Somehow UXA submits a completely bogus DR4 value since essentially forever. It was originally introduced in
commit bade7d7d2505a10a8a7d24b084aff9742e2d6d64
Author: Eric Anholt <[email protected]> Date: Fri Jun 6 14:03:25 2008 -0700
Use the DRM for submitting batchbuffers when available.
and dutifully copied around ever since.
This regression was introduced in
commit 9cb346648d9c529eccc5c7f30093e82d37004e37
Author: Daniel Vetter <[email protected]> Date: Thu Apr 24 08:09:11 2014 +0200
drm/i915: Catch dirt in unused execbuffer fields
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78494
--- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/i915_gem_execbuffer.c +5 -0
@@ -1168,6 +1168,11 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, goto pre_mutex_err; } }else { +if (args->DR4 ==0xffffffff ) { +DRM_DEBUG ("UXA submitting garbage DR4, fixing up\n" ); + args->DR4 =0 ; + } +if (args->DR1 || args->DR4 || args->cliprects_ptr) {DRM_DEBUG ("0 cliprects but dirt in cliprects fields\n" );return -EINVAL ;
Signature · 6 lines
1.9.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 drm/i915: Work-around garbage DR4 from UXA
Somehow UXA submits a completely bogus DR4 value since essentially forever. It was originally introduced in
commit bade7d7d2505a10a8a7d24b084aff9742e2d6d64
Author: Eric Anholt <[email protected]> Date: Fri Jun 6 14:03:25 2008 -0700
Use the DRM for submitting batchbuffers when available.
and dutifully copied around ever since. Since we want to keep the general dirt catching around just special case the UXA value.
This regression was introduced in
commit 9cb346648d9c529eccc5c7f30093e82d37004e37
Author: Daniel Vetter <[email protected]> Date: Thu Apr 24 08:09:11 2014 +0200
drm/i915: Catch dirt in unused execbuffer fields
v2: Pimp commit message a bit and remove the double space.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78494
--- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/i915_gem_execbuffer.c +5 -0
@@ -1168,6 +1168,11 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, goto pre_mutex_err; } }else { +if (args->DR4 ==0xffffffff ) { +DRM_DEBUG ("UXA submitting garbage DR4, fixing up\n" ); + args->DR4 =0 ; + } +if (args->DR1 || args->DR4 || args->cliprects_ptr) {DRM_DEBUG ("0 cliprects but dirt in cliprects fields\n" );return -EINVAL ;
Signature · 6 lines
1.9.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 18 lines · Daniel Vetter
Somehow UXA submits a completely bogus DR4 value since essentially forever. It was originally introduced in
commit
bade7d7d2505a10a8a7d24b084aff9742e2d6d64Author: Eric Anholt <[email protected]> Date: Fri Jun 6 14:03:25 2008 -0700Use the DRM for submitting batchbuffers when available.
and dutifully copied around ever since. Since we want to keep the general dirt catching around just special case the UXA value.
This regression was introduced in
commit
9cb346648d9c529eccc5c7f30093e82d37004e37Author: Daniel Vetter <[email protected]> Date: Thu Apr 24 08:09:11 2014 +0200
Quoted 8 lines
drm/i915: Catch dirt in unused execbuffer fields
v2: Pimp commit message a bit and remove the double space.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78494
Cc Chris Wilson <[email protected]>Cc Jörg Otte <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
To be fair, it is a sensible value if one supposes a Region style API to cliprects. Under that API, DR[14] define the extents of the clip region, and ((0,0), (0,0)) [DR1==DR4==0] would mean all clipped, do not draw anything.
Anyway, as far as fixing up the EINVAL,
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Quoted 28 lines · Chris Wilson
Quoted 18 lines · Daniel Vetter
Somehow UXA submits a completely bogus DR4 value since essentially forever. It was originally introduced in
commit
bade7d7d2505a10a8a7d24b084aff9742e2d6d64Author: Eric Anholt <[email protected]> Date: Fri Jun 6 14:03:25 2008 -0700Use the DRM for submitting batchbuffers when available.
and dutifully copied around ever since. Since we want to keep the general dirt catching around just special case the UXA value.
This regression was introduced in
commit
9cb346648d9c529eccc5c7f30093e82d37004e37Author: Daniel Vetter <[email protected]> Date: Thu Apr 24 08:09:11 2014 +0200Quoted 8 lines
drm/i915: Catch dirt in unused execbuffer fields
v2: Pimp commit message a bit and remove the double space.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78494
Cc Chris Wilson <[email protected]>Cc Jörg Otte <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 4 lines
To be fair, it is a sensible value if one supposes a Region style API to cliprects. Under that API, DR[14] define the extents of the clip region, and ((0,0), (0,0)) [DR1==DR4==0] would mean all clipped, do not draw anything.
Hm right. I've added this to the commit message.
Quoted 2 lines
Anyway, as far as fixing up the EINVAL,
Acked-by Chris Wilson <[email protected]>
And merged the patch to dinq.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
2014-05-13 15:56 GMT+02:00 Daniel Vetter <[email protected]>:
Quoted 39 lines · Chris Wilson
Quoted 28 lines · Daniel Vetter
Quoted 18 lines
Somehow UXA submits a completely bogus DR4 value since essentially forever. It was originally introduced in
commit
bade7d7d2505a10a8a7d24b084aff9742e2d6d64Author: Eric Anholt <[email protected]> Date: Fri Jun 6 14:03:25 2008 -0700Use the DRM for submitting batchbuffers when available.
and dutifully copied around ever since. Since we want to keep the general dirt catching around just special case the UXA value.
This regression was introduced in
commit
9cb346648d9c529eccc5c7f30093e82d37004e37Author: Daniel Vetter <[email protected]> Date: Thu Apr 24 08:09:11 2014 +0200Quoted 8 lines
drm/i915: Catch dirt in unused execbuffer fields
v2: Pimp commit message a bit and remove the double space.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78494
Cc Chris Wilson <[email protected]>Cc Jörg Otte <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Quoted 4 lines
To be fair, it is a sensible value if one supposes a Region style API to cliprects. Under that API, DR[14] define the extents of the clip region, and ((0,0), (0,0)) [DR1==DR4==0] would mean all clipped, do not draw anything.
Hm right. I've added this to the commit message.
Quoted 2 lines
Anyway, as far as fixing up the EINVAL,
Acked-by Chris Wilson <[email protected]>
Quoted 6 lines
And merged the patch to dinq.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
Patch works for me.Thanks
Jörg
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx