Re: Re: [BUG] Data race when use PACKET3_DMA_DATA?

2021-06-04 Thread Chen Lei
Thanks very much. I get it now. -Original Messages- From: "Christian König" Sent Time: 2021-06-04 15:40:08 (Friday) To: "Chen Lei" , "Alex Deucher" Cc: "amd-gfx list" Subject: Re: [BUG] Data race when use PACKET3_DMA_DATA? Hi, I t

Re: Re: Re: [BUG] Data race when use PACKET3_DMA_DATA?

2021-06-02 Thread Chen Lei
? -Original Messages- From: "Alex Deucher" Sent Time: 2021-06-03 10:11:46 (Thursday) To: "Chen Lei" Cc: "amd-gfx list" Subject: Re: Re: [BUG] Data race when use PACKET3_DMA_DATA? On Wed, Jun 2, 2021 at 8:29 PM Chen Lei wrote: Hi Alex. Thanks for your

Re: Re: [BUG] Data race when use PACKET3_DMA_DATA?

2021-06-02 Thread Chen Lei
after launching the OpenCL kernel. If so, is there any way to sync the CP engine until the OpenCL kernel is complete? -Original Messages- From: "Alex Deucher" Sent Time: 2021-06-02 21:37:51 (Wednesday) To: "Chen Lei" Cc: "amd-gfx list" Subject

[BUG] Data race when use PACKET3_DMA_DATA?

2021-06-02 Thread Chen Lei
Hi, I noticed that there are two ways to do DMA for amd gpu: the SDMA copy packet and the PM4 dma packet. I had tested the PM4 dma packet: PACKET3_DMA_DATA. In most of time, it works. But when I launch an OpenCL kernel followed by a host-to-gpu DMA packet, it seems that the OpenCL kernel

Re: Re: [PATCH] drm/amdgpu: add the missing AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS flag

2020-12-08 Thread Chen Lei
Hi! I am not quite familiar with it, and I was wondering why this flag is blocked. As the VM subsystem supports giant pages, it might be useful to add this flag in amdgpu_gem_create_ioctl. -原始邮件- 发件人: "Christian König" 发送时间: 2020-12-08 15:41:02 (星期二) 收件人:

[PATCH] drm/amdgpu: add the missing AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS flag

2020-12-07 Thread Chen Lei
Add the AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS flag in amdgpu_gem_create_ioctl. Signed-off-by: Chen Lei --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 7e8265da9