Re: [PATCH 1/2] drm/amdgpu: add a spinlock to wb allocation

2024-04-23 Thread Alex Deucher
On Tue, Apr 23, 2024 at 9:58 AM Christian König wrote: > > Am 23.04.24 um 15:18 schrieb Alex Deucher: > > On Tue, Apr 23, 2024 at 2:57 AM Christian König > > wrote: > >> Am 22.04.24 um 16:37 schrieb Alex Deucher: > >>> As we use wb slots more dynamically, we need to lock > >>> access to avoid rac

Re: [PATCH 1/2] drm/amdgpu: add a spinlock to wb allocation

2024-04-23 Thread Christian König
Am 23.04.24 um 15:18 schrieb Alex Deucher: On Tue, Apr 23, 2024 at 2:57 AM Christian König wrote: Am 22.04.24 um 16:37 schrieb Alex Deucher: As we use wb slots more dynamically, we need to lock access to avoid racing on allocation or free. Wait a second. Why are we using the wb slots dynamica

Re: [PATCH 1/2] drm/amdgpu: add a spinlock to wb allocation

2024-04-23 Thread Alex Deucher
On Tue, Apr 23, 2024 at 2:57 AM Christian König wrote: > > Am 22.04.24 um 16:37 schrieb Alex Deucher: > > As we use wb slots more dynamically, we need to lock > > access to avoid racing on allocation or free. > > Wait a second. Why are we using the wb slots dynamically? > See patch 2. I needed a

Re: [PATCH 1/2] drm/amdgpu: add a spinlock to wb allocation

2024-04-22 Thread Christian König
Am 22.04.24 um 16:37 schrieb Alex Deucher: As we use wb slots more dynamically, we need to lock access to avoid racing on allocation or free. Wait a second. Why are we using the wb slots dynamically? The number of slots made available is statically calculated, when this is suddenly used dynam

RE: [PATCH 1/2] drm/amdgpu: add a spinlock to wb allocation

2024-04-22 Thread Liu, Shaoyun
: 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. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 11 ++- 2 files changed, 11

[PATCH 1/2] drm/amdgpu: add a spinlock to wb allocation

2024-04-22 Thread Alex Deucher
As we use wb slots more dynamically, we need to lock access to avoid racing on allocation or free. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 11 ++- 2 files changed, 11 insertions(+), 1 deletion(-) dif