summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorTom Chung <chiahsuan.chung@amd.com>2024-12-05 18:08:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-23 19:23:04 +0300
commit583d3a42b2bf24583d81c6a6eb40a653eab0ba6e (patch)
tree2c59a8833a534da5f057c677d5d42541963d3c9b /scripts/generate_rust_analyzer.py
parent1366b0e9dd575034f7573e4e3bba88a46a5733be (diff)
downloadlinux-583d3a42b2bf24583d81c6a6eb40a653eab0ba6e.tar.xz
drm/amd/display: Fix PSR-SU not support but still call the amdgpu_dm_psr_enable
commit b0a3e840ad287c33a86b5515d606451b7df86ad4 upstream. [Why] The enum DC_PSR_VERSION_SU_1 of psr_version is 1 and DC_PSR_VERSION_UNSUPPORTED is 0xFFFFFFFF. The original code may has chance trigger the amdgpu_dm_psr_enable() while psr version is set to DC_PSR_VERSION_UNSUPPORTED. [How] Modify the condition to psr->psr_version == DC_PSR_VERSION_SU_1 Reviewed-by: Sun peng Li <sunpeng.li@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Roman Li <roman.li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit f765e7ce0417f8dc38479b4b495047c397c16902) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions