]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Support for DMUB HPD and HPD RX interrupt handling
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Wed, 27 Jan 2021 06:05:28 +0000 (01:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Oct 2021 19:51:03 +0000 (15:51 -0400)
commitad38bd95712baecdcf8e64fffe4765d12dde90d8
tree398827a377909190d2d83a67d2152e4f37a2397d
parent6600ed03f46f5b6db23159aba4c4a320cff8f3c8
drm/amd/display: Support for DMUB HPD and HPD RX interrupt handling

[WHY]
To add support for HPD & HPD RX interrupt handling for USB4 DPIA in
YELLOW_CARP_B0. USB4 DPIA HPD & HPD RX interrupts are issued from DMUB to
driver as a outbox1 message.

[HOW]
1) Created get_link_index_from_dpia_port_index() to retrieve link index
   from dpia port index for HPD & HPD RX dmub notifications.
2) Added DMUB HPD & HPD RX handling in dmub_srv_stat_get_notification().

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Wayne Lin <Wayne.Lin@amd.com>
Acked-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_stat.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv_stat.c