diff options
author | Christian König <christian.koenig@amd.com> | 2022-04-08 16:22:55 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-04-21 11:26:20 +0200 |
commit | 94f4c4965e5513ba624488f4b601d6b385635aec (patch) | |
tree | 969e9470e0c12550679f893e33996bd70ce34d04 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | |
parent | b089c0a9b14c354a0c3a421e09af3208cb7c232c (diff) | |
download | linux-94f4c4965e5513ba624488f4b601d6b385635aec.tar.gz linux-94f4c4965e5513ba624488f4b601d6b385635aec.tar.bz2 linux-94f4c4965e5513ba624488f4b601d6b385635aec.zip |
drm/amdgpu: partial revert "remove ctx->lock" v2
This reverts commit 461fa7b0ac565ef25c1da0ced31005dd437883a7.
We are missing some inter dependencies here so re-introduce the lock
until we have figured out what's missing. Just drop/retake it while
adding dependencies.
v2: still drop the lock while adding dependencies
Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> (v1)
Fixes: 461fa7b0ac56 ("drm/amdgpu: remove ctx->lock")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220419110633.166236-1-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h index d0cbfcea90f7..142f2f87d44c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h @@ -49,6 +49,7 @@ struct amdgpu_ctx { bool preamble_presented; int32_t init_priority; int32_t override_priority; + struct mutex lock; atomic_t guilty; unsigned long ras_counter_ce; unsigned long ras_counter_ue; |