]> 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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 03:21:05 +0000 (23:21 -0400)
commitecedd99a9369fb5cde601ae9abd58bca2739f1ae
tree8a8ad23499715779aecf4f5522ef41cda45c52c6
parentf886b49feaae30acd599e37d4284836024b0f3ed
drm/amd/display: Skip on writeback when it's not applicable

[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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c