drm/amdgpu: add a spinlock to wb allocation
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Apr 2024 22:03:32 +0000 (18:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:40 +0000 (17:22 -0400)
commit497d7cee24572db59cbfc4875d0c9270cee01e7f
treeade9390283896387d36cf46a31e5077309f9f70f
parent754c366e41d237ca90708c9e1b803a7471358622
drm/amdgpu: add a spinlock to wb allocation

As we use wb slots more dynamically, we need to lock
access to avoid racing on allocation or free.

Reviewed-by: Shaoyun.liu <shaoyunl@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c