]> git.hungrycats.org Git - linux/commit
drm/amdgpu: fix duplicated buffer allocation for concurrent
authorShiwu Zhang <shiwu.zhang@amd.com>
Wed, 13 May 2026 06:45:54 +0000 (14:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:52:36 +0000 (13:52 -0400)
commit2064610469c5f7f5d665034ddd4c4365dff65f58
tree78d448c924cc48d909f385f33d1a8f30cea52f97
parent6229898d46c0cbc238a6fe9f11c1ea12cf8bb9c5
drm/amdgpu: fix duplicated buffer allocation for concurrent

In case of concurrent calling to the bin file writing, use the mutex
to avoid allocating the temporary buffer more than once.

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c