drm/amd/display: Fix by adding FPU protection for dcn30_internal_validate_bw
authorjsg <jsg@openbsd.org>
Wed, 13 Jul 2022 03:44:50 +0000 (03:44 +0000)
committerjsg <jsg@openbsd.org>
Wed, 13 Jul 2022 03:44:50 +0000 (03:44 +0000)
From CHANDAN VURDIGERE NATARAJ
59bf2aca4b1c3eca28b337b5e797bb9b43d44f3b in linux 5.15.y/5.15.54
50e6cb3fd2cde554db646282ea10df7236e6493c in mainline linux

sys/dev/pci/drm/amd/display/dc/dcn31/dcn31_resource.c

index 7aadb35..e224c52 100644 (file)
@@ -1813,7 +1813,9 @@ bool dcn31_validate_bandwidth(struct dc *dc,
 
        BW_VAL_TRACE_COUNT();
 
+       DC_FP_START();
        out = dcn30_internal_validate_bw(dc, context, pipes, &pipe_cnt, &vlevel, fast_validate);
+       DC_FP_END();
 
        // Disable fast_validate to set min dcfclk in alculate_wm_and_dlg
        if (pipe_cnt == 0)