Эх сурвалжийг харах

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>
Monk Liu 7 жил өмнө
parent
commit
7716ea564f

+ 6 - 0
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;
 		goto free_chunk;
 	}
 	}
 
 
+	/* skip guilty context job */
+	if (atomic_read(&p->ctx->guilty) == 1) {
+		ret = -ECANCELED;
+		goto free_chunk;
+	}
+
 	mutex_lock(&p->ctx->lock);
 	mutex_lock(&p->ctx->lock);
 
 
 	/* get chunks */
 	/* get chunks */