Am 20.10.2017 um 05:33 schrieb Monk Liu: > Change-Id: I44019f6475b1eaaba55633cf5f8bb84284f19a2c > Signed-off-by: Monk Liu <Monk.Liu at amd.com> Reviewed-by: Christian König <christian.koenig at amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > index f7fceb6..1d5cbe7 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c > @@ -90,6 +90,12 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data) > goto free_chunk; > } > > + /* skip guilty context job */ > + if (atomic_read(&p->ctx->guilty) == 1) { > + ret = -ECANCELED; > + goto free_chunk; > + } > + > mutex_lock(&p->ctx->lock); > > /* get chunks */