OSDN Git Service

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)
commitd7ecf5e37d76bbac5bbcc9d5033119ea0dbfbc92
tree07c28f420448bc835d296b0052e5c637301ae691
parent8cc426d79be1c360f2cc53a469a9eb7c737ccad9
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