linux/drivers/gpu/drm/amd/display/dc/resource
Pengpeng Hou 46c3c32ba6 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 85453fb4ff)
2026-07-17 17:41:33 -04:00
..
dce60 drm/amd/display: Allow constructing DCE6 link encoder without DDC 2026-04-29 10:29:26 -04:00
dce80 drm/amd/display: Fix signed/unsigned comparison mismatches 2026-05-11 16:10:20 -04:00
dce100 drm/amd/display: dce100: skip non-DP stream encoders for DP MST 2026-07-17 17:40:02 -04:00
dce110 drm/amd/display: Fix signed/unsigned comparison mismatches 2026-05-11 16:10:20 -04:00
dce112 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dce120 drm/amd/display: Fix signed/unsigned comparison mismatches 2026-05-11 16:10:20 -04:00
dcn10 drm/amd/display: Fix signed/unsigned comparison mismatches 2026-05-11 16:10:20 -04:00
dcn20 drm/amd/display: Fix signed/unsigned comparison mismatches 2026-05-11 16:10:20 -04:00
dcn21 drm/amd/display: Fix signed/unsigned comparison mismatches 2026-05-11 16:10:20 -04:00
dcn30 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn31 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn32 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn35 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn36 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn42 drm/amd/display: fix dcn42 det allocation order 2026-07-17 17:37:52 -04:00
dcn42b drm/amd/display: wire DCN42B mcache programming callback 2026-07-17 17:41:33 -04:00
dcn201 Linux 7.0-rc7 2026-04-07 12:36:31 +02:00
dcn301 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn302 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn303 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn314 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn315 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn316 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn321 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn351 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
dcn401 drm/amd/display: Add DC resource support for FRL 2026-06-03 13:44:41 -04:00
Makefile drm/amd/display: Add DCN42B code to DC 2026-06-03 13:44:02 -04:00