Messages in this thread | | | From | "Joakim Zhang" <> | Subject | RE: [PATCH V2] dma-mapping: Set dma_mem pointer as NULL after it's freed | Date | Fri, 15 Dec 2023 14:24:48 +0000 |
| |
Hi Christoph Hellwig,
> -----Original Message----- > From: Christoph Hellwig <hch@lst.de> > Sent: Friday, December 15, 2023 7:32 PM > To: Joakim Zhang <joakim.zhang@cixtech.com> > Cc: hch@lst.de; m.szyprowski@samsung.com; robin.murphy@arm.com; > iommu@lists.linux.dev; linux-kernel@vger.kernel.org; cix-kernel-upstream > <cix-kernel-upstream@cixtech.com> > Subject: Re: [PATCH V2] dma-mapping: Set dma_mem pointer as NULL after > it's freed > > I've applied this after fixing the whitespace errors. > > But we really need to get remoteporc off messing with the reserved regions > itself and retire this API entirely.
Indeed, I met this issue when debugging remoteproc, this API maybe useful since some system would not support device tree, but still want to reserve memory in the driver.
| |