]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amd/display: Fix p-state allow debug index on dcn31
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 18 Mar 2022 15:10:34 +0000 (11:10 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:42:04 +0000 (14:42 +0200)
commitbe87be8fcfc7d5dd057032dd841f90e417d63b69
tree9adc8a53cb1e93d51d9ed4d93f8f1c53b2a12cbe
parentf042c3307e103f51b583eb389004a77f10605113
drm/amd/display: Fix p-state allow debug index on dcn31

BugLink: https://bugs.launchpad.net/bugs/1969857
commit 3107e1a7ae088ee94323fe9ab05dbefd65b3077f upstream.

[Why]
It changed since dcn30 but the hubbub31 constructor hasn't been
modified to reflect this.

[How]
Update the value in the constructor to 0x6 so we're checking the right
bits for p-state allow.

It worked before by accident, but can falsely assert 0 depending on HW
state transitions. The most frequent of which appears to be when
all pipes turn off during IGT tests.

Cc: Harry Wentland <harry.wentland@amd.com>
Fixes: e7031d8258f1b4 ("drm/amd/display: Add pstate verification and recovery for DCN31")
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Eric Yang <Eric.Yang2@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.c