Re: [PATCH v1 3/3] misc: fastrpc: Skip reference for DMA handles

2024-09-19 Thread Dmitry Baryshkov
On Thu, Sep 19, 2024 at 12:00:33PM GMT, Ekansh Gupta wrote: > > > On 8/30/2024 3:03 PM, Dmitry Baryshkov wrote: > > On Thu, Aug 22, 2024 at 04:29:33PM GMT, Ekansh Gupta wrote: > >> If multiple dma handles are passed with same fd over a remote call > >> the kernel driver takes a reference and expe

Re: [PATCH v1 3/3] misc: fastrpc: Skip reference for DMA handles

2024-09-18 Thread Ekansh Gupta
On 8/30/2024 3:03 PM, Dmitry Baryshkov wrote: > On Thu, Aug 22, 2024 at 04:29:33PM GMT, Ekansh Gupta wrote: >> If multiple dma handles are passed with same fd over a remote call >> the kernel driver takes a reference and expects that put for the >> map will be called as many times to free the ma

Re: [PATCH v1 3/3] misc: fastrpc: Skip reference for DMA handles

2024-08-30 Thread Dmitry Baryshkov
On Thu, Aug 22, 2024 at 04:29:33PM GMT, Ekansh Gupta wrote: > If multiple dma handles are passed with same fd over a remote call > the kernel driver takes a reference and expects that put for the > map will be called as many times to free the map. > But DSP only > updates the fd one time in the fd

[PATCH v1 3/3] misc: fastrpc: Skip reference for DMA handles

2024-08-22 Thread Ekansh Gupta
If multiple dma handles are passed with same fd over a remote call the kernel driver takes a reference and expects that put for the map will be called as many times to free the map. But DSP only updates the fd one time in the fd list when the DSP refcount goes to zero and hence kernel make put call