[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Jesse Zhang <[email protected]>
> -----Original Message----- > From: amd-gfx <[email protected]> On Behalf Of Alex > Deucher > Sent: Tuesday, January 20, 2026 9:34 AM > To: [email protected] > Cc: Deucher, Alexander <[email protected]> > Subject: [PATCH 06/10] drm/amdgpu/cs: return -ETIME for guilty contexts > > Return -ETIME rather than -ECANCELED for guilty contexts. > Userspace only considers contexts to be guilty if they return -ETIME. > Returning - > ECANCELED means the context was innocent. > > Signed-off-by: Alex Deucher <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > index 4d53d9cb8490d..3112a7c5be81f 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > @@ -62,7 +62,7 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser > *p, > > if (atomic_read(&p->ctx->guilty)) { > amdgpu_ctx_put(p->ctx); > - return -ECANCELED; > + return -ETIME; > } > > amdgpu_sync_create(&p->sync); > -- > 2.52.0
