Skip to contentSkip to conversation

drm/amd/display: dc_assert_fp_enabled assert only if FPU is not enabled

PATCH In review Anson Jacob 2 participants 2 messages Sep 9, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: dc_assert_fp_enabled assert only if FPU is not enabled

Assert only when FPU is not enabled.

Fixes e549f77c1965 ("drm/amd/display: Add DC_FP helper to check FPU state")
Cc Christian König <[email protected]>
Cc Hersen Wu <[email protected]>
Cc Harry Wentland <[email protected]>
Cc Rodrigo Siqueira <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c +1 -1
index c9f47d167472..b1bf80da3a55 100644
@@ -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);
 }
 
 /**
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Anson Jacob

Assert only when FPU is not enabled.

Fixes e549f77c1965 ("drm/amd/display: Add DC_FP helper to check FPU state")
Cc Christian König <[email protected]>
Cc Hersen Wu <[email protected]>
Cc Harry Wentland <[email protected]>
Cc Rodrigo Siqueira <[email protected]>

Harry

Quoted 18 lines
---
 drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c +1 -1
index c9f47d167472..b1bf80da3a55 100644
@@ -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);
 }
 
 /**