From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> To: Nicholas Piggin <npiggin@gmail.com> Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Robin Murphy <robin.murphy@arm.com>, Christoph Hellwig <hch@lst.de> Subject: Re: [PATCH 2/5] kernel/dma: remove unnecessary unmap_kernel_range Date: Tue, 26 Jan 2021 17:08:46 -0500 [thread overview] Message-ID: <YBCS7toITTwP04aK@Konrads-MacBook-Pro.local> (raw) In-Reply-To: <20210126045404.2492588-3-npiggin@gmail.com> On Tue, Jan 26, 2021 at 02:54:01PM +1000, Nicholas Piggin wrote: > vunmap will remove ptes. Should there be some ASSERT after the vunmap to make sure that is the case? > > Cc: Christoph Hellwig <hch@lst.de> > Cc: Marek Szyprowski <m.szyprowski@samsung.com> > Cc: Robin Murphy <robin.murphy@arm.com> > Cc: iommu@lists.linux-foundation.org > Signed-off-by: Nicholas Piggin <npiggin@gmail.com> > --- > kernel/dma/remap.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/kernel/dma/remap.c b/kernel/dma/remap.c > index 905c3fa005f1..b4526668072e 100644 > --- a/kernel/dma/remap.c > +++ b/kernel/dma/remap.c > @@ -66,6 +66,5 @@ void dma_common_free_remap(void *cpu_addr, size_t size) > return; > } > > - unmap_kernel_range((unsigned long)cpu_addr, PAGE_ALIGN(size)); > vunmap(cpu_addr); > } > -- > 2.23.0 > > _______________________________________________ > iommu mailing list > iommu@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/iommu
WARNING: multiple messages have this Message-ID (diff)
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> To: Nicholas Piggin <npiggin@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Andrew Morton <akpm@linux-foundation.org>, Robin Murphy <robin.murphy@arm.com>, Christoph Hellwig <hch@lst.de> Subject: Re: [PATCH 2/5] kernel/dma: remove unnecessary unmap_kernel_range Date: Tue, 26 Jan 2021 17:08:46 -0500 [thread overview] Message-ID: <YBCS7toITTwP04aK@Konrads-MacBook-Pro.local> (raw) In-Reply-To: <20210126045404.2492588-3-npiggin@gmail.com> On Tue, Jan 26, 2021 at 02:54:01PM +1000, Nicholas Piggin wrote: > vunmap will remove ptes. Should there be some ASSERT after the vunmap to make sure that is the case? > > Cc: Christoph Hellwig <hch@lst.de> > Cc: Marek Szyprowski <m.szyprowski@samsung.com> > Cc: Robin Murphy <robin.murphy@arm.com> > Cc: iommu@lists.linux-foundation.org > Signed-off-by: Nicholas Piggin <npiggin@gmail.com> > --- > kernel/dma/remap.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/kernel/dma/remap.c b/kernel/dma/remap.c > index 905c3fa005f1..b4526668072e 100644 > --- a/kernel/dma/remap.c > +++ b/kernel/dma/remap.c > @@ -66,6 +66,5 @@ void dma_common_free_remap(void *cpu_addr, size_t size) > return; > } > > - unmap_kernel_range((unsigned long)cpu_addr, PAGE_ALIGN(size)); > vunmap(cpu_addr); > } > -- > 2.23.0 > > _______________________________________________ > iommu mailing list > iommu@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/iommu _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu
next prev parent reply other threads:[~2021-01-27 3:42 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-26 4:53 [PATCH 0/5] mm/vmalloc: cleanup after hugepage series Nicholas Piggin 2021-01-26 4:54 ` [PATCH 1/5] mm/vmalloc: remove map_kernel_range Nicholas Piggin 2021-01-26 6:37 ` Christoph Hellwig 2021-01-26 4:54 ` [PATCH 2/5] kernel/dma: remove unnecessary unmap_kernel_range Nicholas Piggin 2021-01-26 4:54 ` Nicholas Piggin 2021-01-26 6:38 ` Christoph Hellwig 2021-01-26 6:38 ` Christoph Hellwig 2021-01-26 22:08 ` Konrad Rzeszutek Wilk [this message] 2021-01-26 22:08 ` Konrad Rzeszutek Wilk 2021-01-27 7:10 ` Christoph Hellwig 2021-01-27 7:10 ` Christoph Hellwig 2021-01-27 23:44 ` Nicholas Piggin 2021-01-27 23:44 ` Nicholas Piggin 2021-01-26 4:54 ` [PATCH 3/5] powerpc/xive: " Nicholas Piggin 2021-01-26 4:54 ` Nicholas Piggin 2021-01-26 6:38 ` Christoph Hellwig 2021-01-26 6:38 ` Christoph Hellwig 2021-01-26 7:25 ` Cédric Le Goater 2021-01-26 7:25 ` Cédric Le Goater 2021-01-26 4:54 ` [PATCH 4/5] mm/vmalloc: remove unmap_kernel_range Nicholas Piggin 2021-01-26 6:38 ` Christoph Hellwig 2021-01-26 4:54 ` [PATCH 5/5] mm/vmalloc: improve allocation failure error messages Nicholas Piggin 2021-01-26 6:39 ` Christoph Hellwig
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=YBCS7toITTwP04aK@Konrads-MacBook-Pro.local \ --to=konrad.wilk@oracle.com \ --cc=akpm@linux-foundation.org \ --cc=hch@lst.de \ --cc=iommu@lists.linux-foundation.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=npiggin@gmail.com \ --cc=robin.murphy@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.