drm/amd/display: Do not read DSC state if not in use
authorOvidiu Bunea <Ovidiu.Bunea@amd.com>
Tue, 15 Oct 2024 22:20:54 +0000 (18:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Oct 2024 20:36:53 +0000 (16:36 -0400)
commit558cec793e73e5d22c96c56b1f70c83a8ce4b672
treee3db1a7a49f1b2a92a29521bc41ce0592247f92f
parent1b7ac448cc544f6a4f8543423d9c2b726f3313fd
drm/amd/display: Do not read DSC state if not in use

[why & how]
DSC may be power gated when coming out of S0i3, so avoid polling
DSC registers since it will fail anyways. Only read if it is known
that DSC is in use.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Ovidiu Bunea <Ovidiu.Bunea@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c