]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Wrap dcn32_override_min_req_memclk() in DC_FP_{START, END}
authorXi Ruoyao <xry111@xry111.site>
Fri, 6 Mar 2026 06:28:03 +0000 (14:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:34:25 +0000 (10:34 -0400)
commit25bb1d54ba3983c064361033a8ec15474fece37e
treeb75701170a5b41da90a24d1e150291634de1b3d0
parentb7f1402f6ad24cc6b9a01fa09ebd1c6559d787d0
drm/amd/display: Wrap dcn32_override_min_req_memclk() in DC_FP_{START, END}

[Why]
The dcn32_override_min_req_memclk function is in dcn32_fpu.c, which is
compiled with CC_FLAGS_FPU into FP instructions.  So when we call it we
must use DC_FP_{START,END} to save and restore the FP context, and
prepare the FP unit on architectures like LoongArch where the FP unit
isn't always on.

Reported-by: LiarOnce <liaronce@hotmail.com>
Fixes: ee7be8f3de1c ("drm/amd/display: Limit DCN32 8 channel or less parts to DPM1 for FPO")
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c