linux/drivers/gpu/drm/amd/display/dc/dml2
Austin Zheng eba692ca3a drm/amd/display: Call FP Protect Before Mode Programming/Mode Support
[Why]
Memory allocation occurs within dml21_validate() for adding phantom planes.
May cause kernel to be tainted due to usage of FP Start.

[How]
Move FP start from dml21_validate to before mode programming/mode support.
Calculations requiring floating point are all done within mode programming
or mode support.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit fe3250f108)
2025-05-07 18:14:20 -04:00
..
dml21 drm/amd/display: Call FP Protect Before Mode Programming/Mode Support 2025-05-07 18:14:20 -04:00
Makefile drm/amd/display: Respect user's CONFIG_FRAME_WARN more for dml files 2025-02-04 17:47:10 -05:00
cmntypes.h
display_mode_core.c drm/amd/display: Prevent VStartup Overflow 2025-03-18 14:03:46 -04:00
display_mode_core.h
display_mode_core_structs.h drm/amd/display: Add DCN36 DML2 support 2025-02-12 21:04:07 -05:00
display_mode_lib_defines.h
display_mode_util.c drm/amd/display: DML21 Reintegration For Various Fixes 2024-12-18 12:19:34 -05:00
display_mode_util.h
dml2_dc_resource_mgmt.c drm/amd/display: stop DML2 from removing pipes based on planes 2025-02-25 11:45:11 -05:00
dml2_dc_resource_mgmt.h
dml2_dc_types.h
dml2_internal_types.h
dml2_mall_phantom.c drm/amd/display: fix page fault due to max surface definition mismatch 2024-12-19 17:38:19 -05:00
dml2_mall_phantom.h
dml2_policy.c drm/amd/display: Add DCN36 DML2 support 2025-02-12 21:04:07 -05:00
dml2_policy.h
dml2_translation_helper.c drm/amd/display: Fix invalid context error in dml helper 2025-05-07 18:07:44 -04:00
dml2_translation_helper.h
dml2_utils.c
dml2_utils.h
dml2_wrapper.c drm/amd/display/dml2: use vzalloc rather than kzalloc 2025-04-16 15:55:37 -04:00
dml2_wrapper.h drm/amd/display: pass calculated dram_speed_mts to dml2 2025-02-12 21:04:10 -05:00
dml_assert.h
dml_depedencies.h
dml_display_rq_dlg_calc.c drm/amd/display: delete legacy code 2024-12-18 12:19:57 -05:00
dml_display_rq_dlg_calc.h
dml_logging.h