[PATCH v7 1/6] mm:/Kconfig changes for migrate on fault for device pages

mpenttil@redhat.com posted 6 patches 2 days, 16 hours ago
[PATCH v7 1/6] mm:/Kconfig changes for migrate on fault for device pages
Posted by mpenttil@redhat.com 2 days, 16 hours ago
From: Mika Penttilä <mpenttil@redhat.com>

With the unified HMM/migrate_device page table walk
migrate_device needs HMM enabled and HMM needs
MMU notifiers. Enable them explicitly to avoid
breaking random configs.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Mika Penttilä <mpenttil@redhat.com>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
---
 mm/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/Kconfig b/mm/Kconfig
index ebd8ea353687..583d92bba2e8 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -647,6 +647,7 @@ config MIGRATION
 
 config DEVICE_MIGRATION
 	def_bool MIGRATION && ZONE_DEVICE
+	select HMM_MIRROR
 
 config ARCH_ENABLE_HUGEPAGE_MIGRATION
 	bool
@@ -1222,6 +1223,7 @@ config ZONE_DEVICE
 config HMM_MIRROR
 	bool
 	depends on MMU
+	select MMU_NOTIFIER
 
 config GET_FREE_REGION
 	bool
-- 
2.50.0

Re: [PATCH v7 1/6] mm:/Kconfig changes for migrate on fault for device pages
Posted by David Hildenbrand (Arm) 2 days, 13 hours ago
On 3/30/26 13:56, mpenttil@redhat.com wrote:
> From: Mika Penttilä <mpenttil@redhat.com>

Hi Mika,

nit: subject should be "mm/Kconfig:". It's also wrong on patch #6.


But more general:

1) I have two v7 submissions in my inbox. Which one is the right one?

2) I don't receive cover letters for the series. Please make sure that
you CC everybody on the cover letter.

I recommend "b4 prep" + "b4 send" for patch series management, that can
simplify both steps.

Regarding 2), if you prefer to do this manually, you best put all CC's
in the cover letter, specifying "--cc-cover" for git send-email.

This is also what "b4 prep --auto-to-cc" + "b4 send" will end up doing :)

-- 
Cheers,

David
Re: [PATCH v7 1/6] mm:/Kconfig changes for migrate on fault for device pages
Posted by Mika Penttilä 2 days, 12 hours ago
Hi,

On 3/30/26 18:08, David Hildenbrand (Arm) wrote:

> On 3/30/26 13:56, mpenttil@redhat.com wrote:
>> From: Mika Penttilä <mpenttil@redhat.com>
> Hi Mika,
>
> nit: subject should be "mm/Kconfig:". It's also wrong on patch #6.

Ah yes will change..

>
> But more general:
>
> 1) I have two v7 submissions in my inbox. Which one is the right one?

Sorry about that..had a merge glitch so did a resend, this is the right one:
https://lore.kernel.org/linux-mm/20260330115611.347988-1-mpenttil@redhat.com/

>
> 2) I don't receive cover letters for the series. Please make sure that
> you CC everybody on the cover letter.

Yes I seem to have lost my CC section in couple past series.

>
> I recommend "b4 prep" + "b4 send" for patch series management, that can
> simplify both steps.
>
> Regarding 2), if you prefer to do this manually, you best put all CC's
> in the cover letter, specifying "--cc-cover" for git send-email.
>
> This is also what "b4 prep --auto-to-cc" + "b4 send" will end up doing :)
>
Thanks!

--Mika