drm/amd/display: Get link index for AUX reply notification
authorCruise <Cruise.Hung@amd.com>
Mon, 22 Jul 2024 11:15:53 +0000 (19:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 14:35:29 +0000 (10:35 -0400)
The link index wasn't updated for the AUX reply notification. Get link
index based on DPIA instance for AUX reply notification.

Signed-off-by: Cruise <Cruise.Hung@amd.com>
Reviewed-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stat.c

index cd6570a1e20ea5bc5837c22d8f6d23de9ba91f30..fe9f99f1bdf9f872b51d5f41bb4085656ca1548d 100644 (file)
@@ -61,6 +61,7 @@ void dc_stat_get_dmub_notification(const struct dc *dc, struct dmub_notification
        /* For HPD/HPD RX, convert dpia port index into link index */
        if (notify->type == DMUB_NOTIFICATION_HPD ||
            notify->type == DMUB_NOTIFICATION_HPD_IRQ ||
+           notify->type == DMUB_NOTIFICATION_AUX_REPLY ||
            notify->type == DMUB_NOTIFICATION_DPIA_NOTIFICATION ||
            notify->type == DMUB_NOTIFICATION_SET_CONFIG_REPLY) {
                notify->link_index =