]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: dc_assert_fp_enabled assert only if FPU is not enabled
authorAnson Jacob <Anson.Jacob@amd.com>
Thu, 9 Sep 2021 16:48:29 +0000 (12:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Sep 2021 13:56:23 +0000 (09:56 -0400)
Assert only when FPU is not enabled.

Fixes: 9d9e364576a6 ("drm/amd/display: Add DC_FP helper to check FPU state")
Signed-off-by: Anson Jacob <Anson.Jacob@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Hersen Wu <hersenxs.wu@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c

index c9f47d16747235faaf85134bd386050e4b75a48f..b1bf80da3a55fd6f59f9153312043a0a8463564f 100644 (file)
@@ -62,7 +62,7 @@ inline void dc_assert_fp_enabled(void)
        depth = *pcpu;
        put_cpu_ptr(&fpu_recursion_depth);
 
-       ASSERT(depth > 1);
+       ASSERT(depth >= 1);
 }
 
 /**