drm/amd/display: add i2c speed arbitration for dc_i2c and hdcp_i2c
authorCharlene Liu <Charlene.Liu@amd.com>
Mon, 21 Sep 2020 18:24:09 +0000 (14:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:07:07 +0000 (12:07 -0500)
commite97978e8121ecc6e7d16eed55f0bb3987c2993aa
tree2dfd659e0dab90d6749c9649a88edd56b3d11425
parenta2a8857ceefe0a5011624779b9edec4412df6b6e
drm/amd/display: add i2c speed arbitration for dc_i2c and hdcp_i2c

[why]
HDCP 1.4 failed on SL8800 SW w/a test driver use.

[how]
slower down the HW i2c speed when used by HW i2c.
this request: each acquired_i2c_engine setup the i2c speed needed.
and set the I2c engine for HDCP use at release_engine.

this covers SW using HW I2c engine and HDCP using HW I2c engine. for
dmcu using HW I2c engine, needs add similar logic in dmcufw.

Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c
drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c