Re: 回复: 回复: [PATCH] drm/amdgpu: Fix a race of IB test

2021-09-12 Thread Christian König
; amd-gfx@lists.freedesktop.org 抄送: Deucher, Alexander; Koenig, Christian 主题: Re: [PATCH] drm/amdgpu: Fix a race of IB test Am 11.09.21 um 03:55 schrieb xinhui pan: Direct IB submission should be exclusive. So use write lock. Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu

回复: 回复: [PATCH] drm/amdgpu: Fix a race of IB test

2021-09-12 Thread Pan, Xinhui
: [PATCH] drm/amdgpu: Fix a race of IB test Well is the delayed init work using direct submission or submission through the scheduler? If the later we have the down_write of the reset semaphore pulled in through the scheduler dependency. Anyway just having the sync before taking the lock should work

Re: 回复: [PATCH] drm/amdgpu: Fix a race of IB test

2021-09-12 Thread Christian König
@lists.freedesktop.org 抄送: Deucher, Alexander; Koenig, Christian 主题: Re: [PATCH] drm/amdgpu: Fix a race of IB test Am 11.09.21 um 03:55 schrieb xinhui pan: Direct IB submission should be exclusive. So use write lock. Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 9

回复: [PATCH] drm/amdgpu: Fix a race of IB test

2021-09-11 Thread Pan, Xinhui
, Alexander; Koenig, Christian 主题: Re: [PATCH] drm/amdgpu: Fix a race of IB test Am 11.09.21 um 03:55 schrieb xinhui pan: > Direct IB submission should be exclusive. So use write lock. > > Signed-off-by: xinhui pan > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 9 +

Re: [PATCH] drm/amdgpu: Fix a race of IB test

2021-09-11 Thread Christian König
Am 11.09.21 um 03:55 schrieb xinhui pan: Direct IB submission should be exclusive. So use write lock. Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_de

[PATCH] drm/amdgpu: Fix a race of IB test

2021-09-10 Thread xinhui pan
Direct IB submission should be exclusive. So use write lock. Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_deb