drm/amd/display: protect remaining FPU-code calls on dcn3.1.x
authorMelissa Wen <mwen@igalia.com>
Wed, 30 Mar 2022 23:02:04 +0000 (22:02 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Apr 2022 21:44:02 +0000 (17:44 -0400)
commit7324d02a6545414fff3bcd2c6e95b9e1041a327e
treeb80be388ed58245fa22ce077d7541714790a6082
parent322687d5968ba45755118feff9a64d2e6f2ae03d
drm/amd/display: protect remaining FPU-code calls on dcn3.1.x

From [1], I realized two other calls to dcn30 code are associated with
FPU operations and are not protected by DC_FP_* macros:
* dcn30_populate_dml_writeback_from_context()
* dcn30_set_mcif_arb_params()

So, since FPU-associated code is not fully isolated in dcn30, and
dcn3.1.x reuses them, let's wrap their calls properly.

Note: this patch complements the fix from [1].

[1] https://lore.kernel.org/amd-gfx/20220329082957.1662655-1-chandan.vurdigerenataraj@amd.com/

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.h
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c
drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c