Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Remove unnecessary completion flag for secure display

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>

authored by

Wayne Lin and committed by
Alex Deucher
601fcb5f 0e4e84de

-8
-7
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
··· 812 812 unsigned long flags1; 813 813 bool forward_roi_change = false; 814 814 bool notify_ta = false; 815 - bool all_crc_ready = true; 816 815 struct dc_stream_state *stream_state; 817 816 int i; 818 817 ··· 935 936 continue; 936 937 } 937 938 938 - if (!crtc_ctx->crc_info.crc[i].crc_ready) 939 - all_crc_ready = false; 940 - 941 939 if (reset_crc_frame_count[i] || crtc_ctx->crc_info.crc[i].frame_count == UINT_MAX) 942 940 /* Reset the reference frame count after user update the ROI 943 941 * or it reaches the maximum value. ··· 944 948 crtc_ctx->crc_info.crc[i].frame_count += 1; 945 949 } 946 950 spin_unlock_irqrestore(&crtc_ctx->crc_info.lock, flags1); 947 - 948 - if (all_crc_ready) 949 - complete_all(&crtc_ctx->crc_info.completion); 950 951 } 951 952 952 953 void amdgpu_dm_crtc_secure_display_create_contexts(struct amdgpu_device *adev)
-1
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h
··· 70 70 71 71 struct crc_info { 72 72 struct crc_data crc[MAX_CRC_WINDOW_NUM]; 73 - struct completion completion; 74 73 spinlock_t lock; 75 74 }; 76 75