mirror of https://github.com/torvalds/linux.git
[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
|
||
|---|---|---|
| .. | ||
| dml21 | ||
| Makefile | ||
| cmntypes.h | ||
| display_mode_core.c | ||
| display_mode_core.h | ||
| display_mode_core_structs.h | ||
| display_mode_lib_defines.h | ||
| display_mode_util.c | ||
| display_mode_util.h | ||
| dml2_dc_resource_mgmt.c | ||
| dml2_dc_resource_mgmt.h | ||
| dml2_dc_types.h | ||
| dml2_internal_types.h | ||
| dml2_mall_phantom.c | ||
| dml2_mall_phantom.h | ||
| dml2_policy.c | ||
| dml2_policy.h | ||
| dml2_translation_helper.c | ||
| dml2_translation_helper.h | ||
| dml2_utils.c | ||
| dml2_utils.h | ||
| dml2_wrapper.c | ||
| dml2_wrapper.h | ||
| dml_assert.h | ||
| dml_depedencies.h | ||
| dml_display_rq_dlg_calc.c | ||
| dml_display_rq_dlg_calc.h | ||
| dml_logging.h | ||