RE: [PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-07-23 Thread Robin Gong
On 2020/07/23 19:52 Frieder Schrempf wrote: > > > The warning log comes out during spi > > transfer start and sdma firmware loading done, but if sdma driver > > building as module could ensure firmware loading done in > > sdma_driver_probe_phase-> spi_imx_probe_phase, which means sdma > >

Re: [PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-07-23 Thread Frieder Schrempf
On 23.07.20 13:12, Robin Gong wrote: On 2020/07/23 17:04 Frieder Schrempf wrote: Hi Robin, On 30.06.20 15:31, Robin Gong wrote: Add 'fw_loaded' and 'is_ram_script' to check if the script used by channel is ram script and it's loaded or not, so that could prevent meaningless following malloc

RE: [PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-07-23 Thread Robin Gong
> On 2020/07/23 17:04 Frieder Schrempf > wrote: > > Hi Robin, > > > > On 30.06.20 15:31, Robin Gong wrote: > > > Add 'fw_loaded' and 'is_ram_script' to check if the script used by > > > channel is ram script and it's loaded or not, so that could prevent > > > meaningless following malloc dma

RE: [PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-07-23 Thread Robin Gong
On 2020/07/23 17:04 Frieder Schrempf wrote: > Hi Robin, > > On 30.06.20 15:31, Robin Gong wrote: > > Add 'fw_loaded' and 'is_ram_script' to check if the script used by > > channel is ram script and it's loaded or not, so that could prevent > > meaningless following malloc dma descriptor and bd

Re: [PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-07-23 Thread Frieder Schrempf
Hi Robin, On 30.06.20 15:31, Robin Gong wrote: Add 'fw_loaded' and 'is_ram_script' to check if the script used by channel is ram script and it's loaded or not, so that could prevent meaningless following malloc dma descriptor and bd allocate in sdma_transfer_init(), otherwise memory may be

Re: [PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-07-14 Thread Vinod Koul
On 30-06-20, 21:31, Robin Gong wrote: > Add 'fw_loaded' and 'is_ram_script' to check if the script used by channel > is ram script and it's loaded or not, so that could prevent meaningless > following malloc dma descriptor and bd allocate in sdma_transfer_init(), > otherwise memory may be consumed

[PATCH v10 05/12] dmaengine: dma: imx-sdma: add fw_loaded and is_ram_script

2020-06-29 Thread Robin Gong
Add 'fw_loaded' and 'is_ram_script' to check if the script used by channel is ram script and it's loaded or not, so that could prevent meaningless following malloc dma descriptor and bd allocate in sdma_transfer_init(), otherwise memory may be consumed out potentially without free in case that spi