From: "David Hildenbrand (Arm)" <david@kernel.org>
To: "Garg, Shivank" <shivankg@amd.com>,
"tejavojjala@google.com" <tejavojjala@google.com>,
"Rao, Bharata Bhasker" <bharata@amd.com>,
"rppt@kernel.org" <rppt@kernel.org>,
"david.laight.linux@gmail.com" <david.laight.linux@gmail.com>,
"ankur.a.arora@oracle.com" <ankur.a.arora@oracle.com>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"vbabka@kernel.org" <vbabka@kernel.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"mingo@redhat.com" <mingo@redhat.com>,
"surenb@google.com" <surenb@google.com>,
"peterz@infradead.org" <peterz@infradead.org>,
"nhuhuan@google.com" <nhuhuan@google.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"tglx@kernel.org" <tglx@kernel.org>,
"liam@infradead.org" <liam@infradead.org>,
"Salunke, Hrushikesh" <Hrushikesh.Salunke@amd.com>,
"bp@alien8.de" <bp@alien8.de>,
"mhocko@suse.com" <mhocko@suse.com>,
"ljs@kernel.org" <ljs@kernel.org>,
"rientjes@google.com" <rientjes@google.com>,
"pfalcato@suse.de" <pfalcato@suse.de>,
"torvalds@linuxfoundation.org" <torvalds@linuxfoundation.org>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"x86@kernel.org" <x86@kernel.org>
Subject: Re: [PATCH v3] mm: introduce copy_mc_highpages() and batch copy in folio_mc_copy()
Date: Thu, 26 Nov 2026 21:43:50 +0100 [thread overview]
Message-ID: <f43c375f-7648-465c-97f1-2678a879701b@kernel.org> (raw)
In-Reply-To: <8ef0c61f525f3a1881d2717b1b7e43cd74d7674e.camel@amd.com>
On 11/26/26 19:44, Garg, Shivank wrote:
> On Mon, 2026-11-23 at 17:23 +0100, David Hildenbrand (Arm) wrote:
>> On 11/13/26 18:09, Shivank Garg wrote:
>>> folio_mc_copy() copies a folio one page at a time with copy_mc_highpage(),
> <snip>
>>> -
>>> - return 0;
>>> + return copy_mc_highpages(folio_page(dst, 0), folio_page(src, 0),
>>> + folio_nr_pages(src));
>>> }
>>
>> What bugs me a bit is that we are not tackling copy_user_large_folio(). So this
>> looks incomplete.
>>
>> There, we still have this. That keeps this process_huge_page() machinery alive,
>> and a special case for gigantic pages (copy_user_gigantic_page).
>
> Agreed.
>
>>
>> Meanwhile, folio_zero_user() moved to a range-based approach and abandoned that.
>>
>> Can we clean all that up as well while we are at it?
>>
>> These look like excellent candidats for using copy_mc_user_highpages() as well.
>
> I've started working on this and the cleanups around it.
>
> As copy_mc_highpages() patch stands on its own, I'd prefer to post those as follow-up
> series on top.
>
> Does that work for you, or would you prefer it in one series together?
Let's do the full thing if possible please. Only if you get stuck there we could
use a partial solution.
--
Cheers,
David
prev parent reply other threads:[~2026-11-26 20:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 17:09 Shivank Garg
2026-11-22 7:30 ` Andrew Morton
2026-11-22 17:13 ` Garg, Shivank
2026-11-23 16:23 ` David Hildenbrand (Arm)
2026-11-26 18:44 ` Garg, Shivank
2026-11-26 20:43 ` David Hildenbrand (Arm) [this message]
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=f43c375f-7648-465c-97f1-2678a879701b@kernel.org \
--to=david@kernel.org \
--cc=Hrushikesh.Salunke@amd.com \
--cc=akpm@linux-foundation.org \
--cc=ankur.a.arora@oracle.com \
--cc=bharata@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=david.laight.linux@gmail.com \
--cc=hpa@zytor.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=mingo@redhat.com \
--cc=nhuhuan@google.com \
--cc=peterz@infradead.org \
--cc=pfalcato@suse.de \
--cc=rientjes@google.com \
--cc=rppt@kernel.org \
--cc=shivankg@amd.com \
--cc=surenb@google.com \
--cc=tejavojjala@google.com \
--cc=tglx@kernel.org \
--cc=torvalds@linuxfoundation.org \
--cc=vbabka@kernel.org \
--cc=x86@kernel.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®