Skip to contentSkip to conversation

drm/i915: fix up the relocate_entry refactoring

PATCH In review Daniel Vetter 2 participants 2 messages Sep 2, 2013 – Sep 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: fix up the relocate_entry refactoring

Somehow we've lost the error handling in the patch split-up between the internal and external patch. This regression has been introduced in

commit 5032d871f7d300aee10c309ea004eb4f851553fe

Author: Rafael Barbalho <[email protected]>
Date:   Wed Aug 21 17:10:51 2013 +0100

drm/i915: Cleaning up the relocate entry function

Cc Rafael Barbalho <[email protected]>
---
 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_gem_execbuffer.c +3 -0
index ea4bacb..e519f9f 100644
@@ -349,6 +349,9 @@ i915_gem_execbuffer_relocate_entry(struct drm_i915_gem_object *obj,
 	else
 		ret = relocate_entry_gtt(obj, reloc);
 
+	if (ret)
+		return ret;
+
 	/* and update the user's relocation entry */
 	reloc->presumed_offset = target_offset;
 
Signature · 1 line
1.8.4.rc3
#1 lore raw
Quoted 9 lines · Daniel Vetter

Somehow we've lost the error handling in the patch split-up between the internal and external patch. This regression has been introduced in

commit 5032d871f7d300aee10c309ea004eb4f851553fe

Author: Rafael Barbalho <[email protected]>
Date:   Wed Aug 21 17:10:51 2013 +0100

drm/i915: Cleaning up the relocate entry function

This bug is exercised by igt/gem_reloc_vs_gpu/interruptible.

I've smashed the patch onto dinq meanwhile.
-Daniel

Quoted 24 lines
Cc Rafael Barbalho <[email protected]>
---
 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/i915_gem_execbuffer.c +3 -0
index ea4bacb..e519f9f 100644
@@ -349,6 +349,9 @@ i915_gem_execbuffer_relocate_entry(struct drm_i915_gem_object *obj,
 	else
 		ret = relocate_entry_gtt(obj, reloc);
 
+	if (ret)
+		return ret;
+
 	/* and update the user's relocation entry */
 	reloc->presumed_offset = target_offset;
 
Signature · 1 line
1.8.4.rc3
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch