[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 3 Mar 2022 19:20:30 +0800
From: Muchun Song <songmuchun@...edance.com>
To: Catalin Marinas <catalin.marinas@....com>
Cc: Will Deacon <will@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...hat.com>,
"Bodeddula, Balasubramaniam" <bodeddub@...zon.com>,
Oscar Salvador <osalvador@...e.de>,
Mike Kravetz <mike.kravetz@...cle.com>,
David Rientjes <rientjes@...gle.com>,
Mark Rutland <mark.rutland@....com>, james.morse@....com,
"Song Bao Hua (Barry Song)" <song.bao.hua@...ilicon.com>,
linux-arm-kernel@...ts.infradead.org,
LKML <linux-kernel@...r.kernel.org>,
Linux Memory Management List <linux-mm@...ck.org>,
Xiongchun duan <duanxiongchun@...edance.com>,
Fam Zheng <fam.zheng@...edance.com>,
Muchun Song <smuchun@...il.com>
Subject: Re: [PATCH v2 RESEND 1/2] arm64: avoid flushing icache multiple times
on contiguous HugeTLB
On Wed, Mar 2, 2022 at 8:32 PM Catalin Marinas <catalin.marinas@....com> wrote:
>
> On Wed, Mar 02, 2022 at 04:46:23PM +0800, Muchun Song wrote:
> > When a contiguous HugeTLB page is mapped, set_pte_at() will be called
> > CONT_PTES/CONT_PMDS times. Therefore, __sync_icache_dcache() will
> > flush cache multiple times if the page is executable (to ensure
> > the I-D cache coherency). However, the first flushing cache already
> > covers subsequent cache flush operations. So only flusing cache
> > for the head page if it is a HugeTLB page to avoid redundant cache
> > flushing. In the next patch, it is also depends on this change
> > since the tail vmemmap pages of HugeTLB is mapped with read-only
> > meanning only head page struct can be modified.
> >
> > Signed-off-by: Muchun Song <songmuchun@...edance.com>
>
> Reviewed-by: Catalin Marinas <catalin.marinas@....com>
Thanks for your review.
>
> (for this patch only, I have yet to figure out whether Anshuman's and
> Mark's comments have been addressed in patch 2)
>
Their comments are memory hotplug related, actually, those issues
are not real issues as I explained in patch 2. And If you have any
questions, feel free to ask, maybe I can help.
Thanks Catalin.
Powered by blists - more mailing lists