]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: determine rx id list bytes to read based on device count
authorWenjing Liu <Wenjing.Liu@amd.com>
Tue, 25 Feb 2020 21:37:32 +0000 (16:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:49:40 +0000 (13:49 -0400)
commit49c543f48eae24dff1cf6115f12292bd09c53086
tree07c28f420448bc835d296b0052e5c637301ae691
parent1e78685761d2b5b8751db76cde3fe95adbd35af5
drm/amd/display: determine rx id list bytes to read based on device count

[why]
Some RX doesn't like us to read rx id list upto max rx id list size.  As
discussed, we decided to read rx id list based on device count.

[how]
According to HDCP specs the actual size of rx id list is calculated as
rx id list size = 2+3+16+5*device_count.  We will read 16 bytes at a
time until it reached or exceeded rx id list size.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Ashley Thomas <Ashley.Thomas2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c