drm/amd/display: add workaround for riommu invalidation request hang
authorEric Yang <Eric.Yang2@amd.com>
Fri, 9 Jul 2021 16:57:50 +0000 (12:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jul 2021 14:07:58 +0000 (10:07 -0400)
commita4d5df1787cc143b513b9f472ead1ff5eaa550e1
tree12b8b8eba21ada474cdd94a00f5b2fdbb61a7b08
parentba16b22d42283b6393db123ce0ff6e17bb0d01eb
drm/amd/display: add workaround for riommu invalidation request hang

[Why]
When an riommu invalidation request come at the same time as a pipe is
disabled there can be a case where DCN cannot ACK the request if only
one VMID is setup in the inuse list.

[How]
Setup a second unused VMID will work around the issue.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.c
drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h