diff options
| author | Paloma Arellano <[email protected]> | 2023-12-12 23:10:58 +0000 |
|---|---|---|
| committer | Dmitry Baryshkov <[email protected]> | 2023-12-14 07:27:45 +0000 |
| commit | 45284ff733e4caf6c118aae5131eb7e7cf3eea5a (patch) | |
| tree | 9dcebd06d37a0a8512c9e86091ebe0352bb101f5 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/msm/dpu: add cdm blocks to dpu snapshot (diff) | |
| download | kernel-45284ff733e4caf6c118aae5131eb7e7cf3eea5a.tar.gz kernel-45284ff733e4caf6c118aae5131eb7e7cf3eea5a.zip | |
drm/msm/dpu: Add mutex lock in control vblank irq
Add a mutex lock to control vblank irq to synchronize vblank
enable/disable operations happening from different threads to prevent
race conditions while registering/unregistering the vblank irq callback.
v4: -Removed vblank_ctl_lock from dpu_encoder_virt, so it is only a
parameter of dpu_encoder_phys.
-Switch from atomic refcnt to a simple int counter as mutex has
now been added
v3: Mistakenly did not change wording in last version. It is done now.
v2: Slightly changed wording of commit message
Signed-off-by: Paloma Arellano <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/571854/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
