]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9dc27d49291f2fd3b329a5440d59ae712f1474be
treee21a8f90abbe43f0a536c8f70734237489b527ce
parentcb415223d73a62f3b25e7312162e62ce83979c23
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]