]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Skip inactive planes within ModeSupportAndSystemConfiguration
authorHersen Wu <hersenxs.wu@amd.com>
Fri, 26 Apr 2024 20:39:37 +0000 (16:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:32:05 +0000 (14:32 +0200)
commit4331ae2788e779b11f3aad40c04be6c64831f2a2
tree2ee29dc7add7f97e993c890b839ec323917a645c
parente549cd6da1f21c34ba0f65adeca6a8aa9860b381
drm/amd/display: Skip inactive planes within ModeSupportAndSystemConfiguration

commit a54f7e866cc73a4cb71b8b24bb568ba35c8969df upstream.

[Why]
Coverity reports Memory - illegal accesses.

[How]
Skip inactive planes.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
[get_pipe_idx() was introduced as a helper by
dda4fb85e433 ("drm/amd/display: DML changes for DCN32/321") in v6.0.
This patch backports it to make code clearer. And minor conflict is
resolved due to code context change.]
Signed-off-by: Jianqi Ren <jianqi.ren.cn@windriver.com>
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c