Skip to content

Commit

Permalink
drm/amd/display: dc_assert_fp_enabled assert only if FPU is not enabled
Browse files Browse the repository at this point in the history
Assert only when FPU is not enabled.

Fixes: 0ea7ee8 ("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>
  • Loading branch information
Anson Jacob authored and Alex Deucher committed Sep 14, 2021
1 parent 3771449 commit 5f64d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 5f64d9a

Please sign in to comment.