Skip to content

Commit 9898245

Browse files
Wayne Linalexdeucher
authored andcommitted
drm/amd/display: Add case for dcn35 to support usb4 dmub hpd event
[Why & how] Refactor dc_is_dmub_outbox_supported() a bit and add case for dcn35 to register dmub outbox notification irq to handle usb4 relevant hpd event. Reviewed-by: Roman Li <[email protected]> Reviewed-by: Jun Lei <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3248211 commit 9898245

File tree

1 file changed

+18
-8
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+18
-8
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,18 +5095,28 @@ void dc_mclk_switch_using_fw_based_vblank_stretch_shut_down(struct dc *dc)
50955095
*/
50965096
bool dc_is_dmub_outbox_supported(struct dc *dc)
50975097
{
5098-
/* DCN31 B0 USB4 DPIA needs dmub notifications for interrupts */
5099-
if (dc->ctx->asic_id.chip_family == FAMILY_YELLOW_CARP &&
5100-
dc->ctx->asic_id.hw_internal_rev == YELLOW_CARP_B0 &&
5101-
!dc->debug.dpia_debug.bits.disable_dpia)
5102-
return true;
5098+
switch (dc->ctx->asic_id.chip_family) {
51035099

5104-
if (dc->ctx->asic_id.chip_family == AMDGPU_FAMILY_GC_11_0_1 &&
5105-
!dc->debug.dpia_debug.bits.disable_dpia)
5106-
return true;
5100+
case FAMILY_YELLOW_CARP:
5101+
/* DCN31 B0 USB4 DPIA needs dmub notifications for interrupts */
5102+
if (dc->ctx->asic_id.hw_internal_rev == YELLOW_CARP_B0 &&
5103+
!dc->debug.dpia_debug.bits.disable_dpia)
5104+
return true;
5105+
break;
5106+
5107+
case AMDGPU_FAMILY_GC_11_0_1:
5108+
case AMDGPU_FAMILY_GC_11_5_0:
5109+
if (!dc->debug.dpia_debug.bits.disable_dpia)
5110+
return true;
5111+
break;
5112+
5113+
default:
5114+
break;
5115+
}
51075116

51085117
/* dmub aux needs dmub notifications to be enabled */
51095118
return dc->debug.enable_dmub_aux_for_legacy_ddc;
5119+
51105120
}
51115121

51125122
/**

0 commit comments

Comments
 (0)