]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Call FP Protect Before Mode Programming/Mode Support
authorAustin Zheng <Austin.Zheng@amd.com>
Thu, 17 Apr 2025 14:24:29 +0000 (10:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 May 2025 22:14:20 +0000 (18:14 -0400)
commiteba692ca3abca258b3214a6e4126afefad1822f0
treef16a8b8b35f1d09f905e17ca9f9a864c03c06fd6
parent2a24755774ef8db33139e2d9a968cc585c6488da
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 fe3250f10819b411808ab9ae1d824c5fc9b59170)
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c