]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Remove unnecessary completion flag for secure display
authorWayne Lin <Wayne.Lin@amd.com>
Fri, 13 Mar 2026 04:05:40 +0000 (12:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:16:06 +0000 (14:16 -0400)
The completion flag is not used in secure display today.
Remove unnecessary code.

Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Chuanyu Tseng <chuanyu.tseng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h

index b96fbc03c371aa5793107414a66f75994fd2c102..62573173e2ac2940befe4f193f0e5e5cf90d742b 100644 (file)
@@ -812,7 +812,6 @@ void amdgpu_dm_crtc_handle_crc_window_irq(struct drm_crtc *crtc)
        unsigned long flags1;
        bool forward_roi_change = false;
        bool notify_ta = false;
-       bool all_crc_ready = true;
        struct dc_stream_state *stream_state;
        int i;
 
@@ -936,9 +935,6 @@ void amdgpu_dm_crtc_handle_crc_window_irq(struct drm_crtc *crtc)
                        continue;
                }
 
-               if (!crtc_ctx->crc_info.crc[i].crc_ready)
-                       all_crc_ready = false;
-
                if (reset_crc_frame_count[i] || crtc_ctx->crc_info.crc[i].frame_count == UINT_MAX)
                        /* Reset the reference frame count after user update the ROI
                         * or it reaches the maximum value.
@@ -948,9 +944,6 @@ void amdgpu_dm_crtc_handle_crc_window_irq(struct drm_crtc *crtc)
                        crtc_ctx->crc_info.crc[i].frame_count += 1;
        }
        spin_unlock_irqrestore(&crtc_ctx->crc_info.lock, flags1);
-
-       if (all_crc_ready)
-               complete_all(&crtc_ctx->crc_info.completion);
 }
 
 void amdgpu_dm_crtc_secure_display_create_contexts(struct amdgpu_device *adev)
index 95bdb8699d7fa7f386fedba3efb3b4137321c229..8538513ea87996b2077b9cbe34f4be13ba2018b5 100644 (file)
@@ -70,7 +70,6 @@ struct crc_data {
 
 struct crc_info {
        struct crc_data crc[MAX_CRC_WINDOW_NUM];
-       struct completion completion;
        spinlock_t lock;
 };