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 02:03:41 +0000 (22:03 -0400)
commitcf82a80a1456e9b4323852164a51a24dffc50515
tree9f31684c9da280096a91cf0084ebd277aecb2ed9
parentb3f98c00c4157c8c437bcdab91c38aa8961a4722
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