aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-07-14 17:36:52 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2020-07-14 18:16:15 +0100
commit23ec9f42241a4625b954023aae3591c0baa12ea1 (patch)
treebdbf24ebee4d09a96890b4c854e51efaa2f05d5f /drivers/gpu/drm/i915/selftests
parentdrm/i915: Recalculate FBC w/a stride when needed (diff)
downloadlinux-dev-23ec9f42241a4625b954023aae3591c0baa12ea1.tar.xz
linux-dev-23ec9f42241a4625b954023aae3591c0baa12ea1.zip
drm/i915/selftest: Fix an error code in live_noa_gpr()
The error code needs to be set on this path. It currently returns success. Fixes: ed2690a9ca89 ("drm/i915/selftest: Check that GPR are restored across noa_wait") Reported-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20200714143652.GA337376@mwanda
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r--drivers/gpu/drm/i915/selftests/i915_perf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_perf.c b/drivers/gpu/drm/i915/selftests/i915_perf.c
index 0aa151501fb3..c2d001d9c0ec 100644
--- a/drivers/gpu/drm/i915/selftests/i915_perf.c
+++ b/drivers/gpu/drm/i915/selftests/i915_perf.c
@@ -357,6 +357,7 @@ static int live_noa_gpr(void *arg)
cs = intel_ring_begin(rq, 4);
if (IS_ERR(cs)) {
+ err = PTR_ERR(cs);
i915_request_add(rq);
goto out_rq;
}