diff options
| author | Wenjing Liu <wenjing.liu@amd.com> | 2026-07-09 16:52:25 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-10 12:06:34 -0400 |
| commit | 9e82ad24da0ec81348551d2ef9ed3cfbb3cc2496 (patch) | |
| tree | 0265c7582d9ed6a0c82770472ff7346e760d6b5e /tools/perf/scripts/python/stackcollapse.py | |
| parent | 67b42763138c5f1d700d1bd1c94d4df58965b55a (diff) | |
| download | linux-9e82ad24da0ec81348551d2ef9ed3cfbb3cc2496.tar.gz linux-9e82ad24da0ec81348551d2ef9ed3cfbb3cc2496.zip | |
drm/amd/display: Route DCN6 mode programming calcs through function pointer table
[Why]
dml2_core_dcn6_funcs_mode_programming.c called DCN5 and DCN6
calcs functions directly by name, coupling the mode programming
flow to specific generations. Routing through the calcs table
lets a future core generation reuse this flow without editing it.
[How]
Add a static get_calcs(ctx) helper returning ctx->calcs->dcn6.
Replace every direct dcn5_*/dcn6_* calcs call with
get_calcs(ctx)->slot(...). dcn6_populate_mode_programming() did
not previously receive the mp context, so thread
calc_mp_ctx through it to reach get_calcs() for its three calcs
calls. Assign ctx->calcs from core->calcs in
dcn6_mp_build_calculate_mp_context(). Drop the now-unused
dml2_core_dcn5_calcs_dchub.h, dml2_core_dcn5_calcs_display_pipe.h,
and dml2_core_dcn6_calcs_dchub.h includes in favor of
dml2_core_dcn6_calcs.h.
Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
