drm/amd/display: change global buffer to local buffer
authorLewis Huang <Lewis.Huang@amd.com>
Wed, 20 May 2020 10:03:05 +0000 (18:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:21 +0000 (01:59 -0400)
commit8ae5b155928c9183c2f37b5c4eec21037d958699
treee21a8f90abbe43f0a536c8f70734237489b527ce
parenteec3303de3378cdfaa0bb86f43546dbbd88f94e2
drm/amd/display: change global buffer to local buffer

[Why]
Multi-adapter calculate regamma table at the same time.
Two thread used the same global variable cause race
condition.

[How]
Change global buffer to local buffer

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
drivers/gpu/drm/amd/display/modules/color/Makefile
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
drivers/gpu/drm/amd/display/modules/color/color_gamma.h
drivers/gpu/drm/amd/display/modules/color/color_table.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/modules/color/color_table.h [new file with mode: 0644]