]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amd/display: Add polling method to handle MST reply packet
authorWayne Lin <wayne.lin@amd.com>
Wed, 9 Mar 2022 09:05:05 +0000 (17:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 18:32:37 +0000 (14:32 -0400)
commit4f6d9e38c4d244ad106eb9ebd8c0e1215e866f35
treec54babc5adbc069651388a7b766c2f87137be625
parent87279fdf5ee0ad1360765ef70389d1c4d0f81bb6
drm/amd/display: Add polling method to handle MST reply packet

[Why]
Specific TBT4 dock doesn't send out short HPD to notify source
that IRQ event DOWN_REP_MSG_RDY is set. Which violates the spec
and cause source can't send out streams to mst sinks.

[How]
To cover this misbehavior, add an additional polling method to detect
DOWN_REP_MSG_RDY is set. HPD driven handling method is still kept.
Just hook up our handler to drm mgr->cbs->poll_hpd_irq().

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Jerry Zuo <jerry.zuo@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h