Re: [PATCH] drm/amdgpu: Add mem sync flag for SDMA IB test

2021-04-20 Thread Christian König
@lists.freedesktop.org Cc: Huang, Ray Subject: Re: [PATCH] drm/amdgpu: Add mem sync flag for SDMA IB test Am 20.04.21 um 04:23 schrieb Jinzhou Su: The buffer for SDMA IB test is allocated by sa bo which may be used by other purpose. Better to flush the cache before commit the IB. Good point

RE: [PATCH] drm/amdgpu: Add mem sync flag for SDMA IB test

2021-04-20 Thread Su, Jinzhou (Joe)
PM To: Su, Jinzhou (Joe) ; amd-gfx@lists.freedesktop.org Cc: Huang, Ray Subject: Re: [PATCH] drm/amdgpu: Add mem sync flag for SDMA IB test Am 20.04.21 um 04:23 schrieb Jinzhou Su: > The buffer for SDMA IB test is allocated by sa bo which may be used by > other purpose. Better to flush the

Re: [PATCH] drm/amdgpu: Add mem sync flag for SDMA IB test

2021-04-20 Thread Christian König
Am 20.04.21 um 04:23 schrieb Jinzhou Su: The buffer for SDMA IB test is allocated by sa bo which may be used by other purpose. Better to flush the cache before commit the IB. Good point, but shouldn't we do this for a lot of other cases as well? I think the only place where we should not set

[PATCH] drm/amdgpu: Add mem sync flag for SDMA IB test

2021-04-19 Thread Jinzhou Su
The buffer for SDMA IB test is allocated by sa bo which may be used by other purpose. Better to flush the cache before commit the IB. Signed-off-by: Jinzhou Su --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c