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

2021-06-04 Thread Chen Lei
gpu_cs_ioctl twice. > > If I was not mistaken, the `amdgpu_ib_schedule` would emit fence packets for each amdgpu_cs_ioctl call. > > Did I need to insert the fence packet explicitly after the dispatch packet? > > > > > > > -Original Messages----- > > &

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 wrot

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

2021-06-02 Thread Alex Deucher
On Wed, Jun 2, 2021 at 8:29 PM Chen Lei wrote: > > Hi Alex. Thanks for your quick reply. > I first submit the OpenCL kernel packet and then submit the DMA DATA packet. > And the OpenCL kernel reads the value written by the DMA DATA packet. > If I understand you correctly, that is because the CP e

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

2021-06-02 Thread Chen Lei
Hi Alex. Thanks for your quick reply. I first submit the OpenCL kernel packet and then submit the DMA DATA packet. And the OpenCL kernel reads the value written by the DMA DATA packet. If I understand you correctly, that is because the CP engine continues on to process the DMA DATA packet after