]> 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)
commita0758871445798c52c1b94dea6931c4dfb2974a9
tree07c28f420448bc835d296b0052e5c637301ae691
parent40525d649f82afa3482a45f017b383ae5cc67279
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