]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Notify idle link detection through shared state
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 18 Apr 2024 13:51:36 +0000 (09:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:57:17 +0000 (09:57 -0400)
commit5419a2076de1dd9b0b4a191d0dd07de7c4fa7040
tree30e05834d736cf2499133f76d1d0f673598a544f
parentd2c5cb0c3561d7aaa5d1cbe30ec4dd50c09291be
drm/amd/display: Notify idle link detection through shared state

[Why]
We can hang in IPS2 checking DMCUB_SCRATCH0 for link detection state.

[How]
Replace the HW access with a check on the shared state bit. This will
work the same way as the SCRATCH0 but won't require a wake in the case
where link detection isn't required.

Reviewed-by: Duncan Ma <duncan.ma@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@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/dc_dmub_srv.c
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h
drivers/gpu/drm/amd/display/dmub/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c