diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-10-17 00:08:02 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-04 16:33:10 -0500 |
commit | 7716ea564f6538236c34749cdf3a6351c2844c1a (patch) | |
tree | 772cb034a298df3fa6400f28296ad272604d1d6b /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 1102900de082a7ef6991de0ad2ff88047ae859b3 (diff) |
drm/amdgpu:skip job for guilty ctx in parser_init
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index b4b3ecf9f96d..16947bad5b49 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) | |||
90 | goto free_chunk; | 90 | goto free_chunk; |
91 | } | 91 | } |
92 | 92 | ||
93 | /* skip guilty context job */ | ||
94 | if (atomic_read(&p->ctx->guilty) == 1) { | ||
95 | ret = -ECANCELED; | ||
96 | goto free_chunk; | ||
97 | } | ||
98 | |||
93 | mutex_lock(&p->ctx->lock); | 99 | mutex_lock(&p->ctx->lock); |
94 | 100 | ||
95 | /* get chunks */ | 101 | /* get chunks */ |