drm/amd/display: Disable migration to ensure consistency of per-CPU variable
authorTianci Yin <tianci.yin@amd.com>
Mon, 6 Feb 2023 07:58:46 +0000 (15:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:54 +0000 (16:28 -0400)
commit0c316556d124916e1dc2be171b3414b764972802
tree8cab47c5036be872a1fc2f3d715d5ee7c79d1ee8
parent2a66c0c9d20238812172693b5bef28c6c659eff4
drm/amd/display: Disable migration to ensure consistency of per-CPU variable

[why]
Since the variable fpu_recursion_depth is per-CPU type, it has one copy
on each CPU, thread migration causes data consistency issue, then the
call trace shows up. And preemption disabling can't prevent migration.

[how]
Disable migration to ensure consistency of fpu_recursion_depth.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Tianci Yin <tianci.yin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c