summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorBhawanpreet Lakha <bhawanpreet.lakha@amd.com>2023-07-24 16:32:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-08-07 17:14:09 -0400
commit393e83484839970e4975dfa1f0666f939a6f3e3d (patch)
tree381ad50cfb5b880e6ad94893c733c964e0ede973 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parent198f0e895349de51b3c96a16b0db6fb2c570983c (diff)
downloadlinux-393e83484839970e4975dfa1f0666f939a6f3e3d.tar.gz
linux-393e83484839970e4975dfa1f0666f939a6f3e3d.tar.bz2
linux-393e83484839970e4975dfa1f0666f939a6f3e3d.zip
drm/amd/display: Change HDCP update sequence for DM
Refactor the sequence in hdcp_update_display() to use mod_hdcp_update_display(). Previous sequence: - remove()->add() This Sequence was used to update the display, (mod_hdcp_update_display didn't exist at the time). This meant for any hdcp updates (type changes, enable/disable) we would remove, reconstruct, and add. This leads to unnecessary calls to psp eventually New Sequence using mod_hdcp_update_display(): - add() once when stream is enabled - use update() for all updates The update function checks for prev == new states and will not unnecessarily end up calling psp via add/remove. Reviewed-by: Qingqing Zhuo <qingqing.zhuo@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions