From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lionel Landwerlin Date: Tue, 14 Jul 2020 14:39:21 +0000 Subject: Re: [PATCH v2] drm/i915/selftest: Fix an error code in live_noa_gpr() Message-Id: <29d5e25e-45e1-fca0-7d09-fd5e303b9eea@intel.com> List-Id: References: <20200714143652.GA337376@mwanda> In-Reply-To: <20200714143652.GA337376@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter , Jani Nikula Cc: David Airlie , intel-gfx@lists.freedesktop.org, kernel-janitors@vger.kernel.org, Chris Wilson On 14/07/2020 17:36, Dan Carpenter wrote: > 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 > Signed-off-by: Dan Carpenter > --- > v2: Fix a different bug instead. :P Colin fixed mine already. > > drivers/gpu/drm/i915/selftests/i915_perf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/selftests/i915_perf.c b/drivers/gpu/drm/i915/selftests/i915_perf.c > index 0aa151501fb3..c232194c60a2 100644 > --- a/drivers/gpu/drm/i915/selftests/i915_perf.c > +++ b/drivers/gpu/drm/i915/selftests/i915_perf.c > @@ -358,6 +358,7 @@ static int live_noa_gpr(void *arg) > cs = intel_ring_begin(rq, 4); > if (IS_ERR(cs)) { > i915_request_add(rq); > + err = PTR_ERR(cs); > goto out_rq; > } > Reviewed-by: Lionel Landwerlin