From: Anson Jacob Date: Thu, 9 Sep 2021 16:48:29 +0000 (-0400) Subject: drm/amd/display: dc_assert_fp_enabled assert only if FPU is not enabled X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=2a54d110bd4393fe412ef2c9c2d05fcd92785d1a;p=kernel.git drm/amd/display: dc_assert_fp_enabled assert only if FPU is not enabled Assert only when FPU is not enabled. Fixes: 0ea7ee821701 ("drm/amd/display: Add DC_FP helper to check FPU state") Signed-off-by: Anson Jacob Cc: Christian König Cc: Hersen Wu Cc: Harry Wentland Cc: Rodrigo Siqueira Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c index c9f47d1674723..b1bf80da3a55f 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c @@ -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); } /**