]> exis.tech > repos - linux.git/commit
drm/amd/display: wire DCN42B mcache programming callback
authorPengpeng Hou <pengpeng@iscas.ac.cn>
Thu, 25 Jun 2026 06:06:47 +0000 (14:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Jul 2026 21:41:33 +0000 (17:41 -0400)
commit46c3c32ba655c94b885b75b5adb8e481612126bf
treefcdaab98580a7815fbd6dda7129d22316815d797
parent9fa26b9eed6195bf840f39ac183b9a6237548755
drm/amd/display: wire DCN42B mcache programming callback

DCN42B enables DML2 and DML21 by default and defines
dcn42b_prepare_mcache_programming(), but the resource function table only
wires the callback when CONFIG_DRM_AMD_DC_DML21 is defined.

There is no in-tree Kconfig symbol named DRM_AMD_DC_DML21, so the
preprocessor always removes the callback entry.  Sibling DCN42 and DCN401
resource tables wire their prepare_mcache_programming callbacks
unconditionally, and the core DC code already checks whether the callback
pointer is present before calling it.

Remove the stale guard so DCN42B exposes the callback relation that its
source and DML21 build world already provide.

This is an RFC patch draft from static conditional callback legality
auditing.  It needs AMD display maintainer review before submission as a
final fix.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 85453fb4ff726e1ddb9984ee83dca260903c5353)
drivers/gpu/drm/amd/display/dc/resource/dcn42b/dcn42b_resource.c