]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Skip on writeback when it's not applicable
authorAlex Hung <alex.hung@amd.com>
Sat, 16 Mar 2024 03:25:25 +0000 (21:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:02:16 +0000 (12:02 +0200)
commit951a498fa993c5501994ec2df97c9297b02488c7
treed39cefa8ba03a65e582483c90b07b89fec5c82f6
parentc0beff4e35af8ef3f5e30ac3f55a6109f751d9c0
drm/amd/display: Skip on writeback when it's not applicable

[ Upstream commit ecedd99a9369fb5cde601ae9abd58bca2739f1ae ]

[WHY]
dynamic memory safety error detector (KASAN) catches and generates error
messages "BUG: KASAN: slab-out-of-bounds" as writeback connector does not
support certain features which are not initialized.

[HOW]
Skip them when connector type is DRM_MODE_CONNECTOR_WRITEBACK.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3199
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c