From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2A7C3BE633 for ; Tue, 5 May 2026 05:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777958284; cv=none; b=NSVCyRob8DCJSQmeF3Qj+Mm3zyGZOuX/yC6G4aeTFiXEn76G1e9WiLmvAJxM4kzZNNSZ30iE+bNn7TZISDo9zK4LSJ4SKMB5Le/V2izDrI9YrREbbLEb/XxOOzhO3nBbEwqGfIw8pEu5NHnAWx+rAqVEdUBlgv8mGXFO9aYIzyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777958284; c=relaxed/simple; bh=126x34L+5D/W27AWH5+Ia0Ud/CqimpCPKFYNDgfQlvY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hc1SmEcOfcRppd7x3Ipok8YgmKQVkoQHSL+vBUezEC3m4BDV486w0+64AHAyc0CmO1iAEeeZVmCFwUTlrZmZ33nHjTEJjrerDUJ4spd0KzYvlUJEHBV5yto16ndNUBuBnrD7qpkYdkrUGyQ/v0qcN/qS5WoL56d09hcn2qIaTWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=IQX00YCp; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=OWV43QVK; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="IQX00YCp"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="OWV43QVK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777958281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xl5SeCFAdc6WoqyWBYEluyvHLd+oZ4wSvK+mq+H5Z7o=; b=IQX00YCp94mfnFnOkXjhOLagQFZ6fabFgNCg4o5GDjeaAGxdtHzdJEdN+mcDVXD21eBWz4 yNmVJqUmwiSXXuX9BVXmxF5kFiLAheYfOfO2rguMO3cq+Y0P0WbpHffXu5zEKI5psCszfp LkdvSfGvcFySxL77dcyAMTEi4LL2X5Q= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-102-22JX6imKNIuNZHcqd1gARA-1; Tue, 05 May 2026 01:18:00 -0400 X-MC-Unique: 22JX6imKNIuNZHcqd1gARA-1 X-Mimecast-MFC-AGG-ID: 22JX6imKNIuNZHcqd1gARA_1777958279 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-3938ada9f32so9785501fa.1 for ; Mon, 04 May 2026 22:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1777958279; x=1778563079; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Xl5SeCFAdc6WoqyWBYEluyvHLd+oZ4wSvK+mq+H5Z7o=; b=OWV43QVKaaVMQV21bzxfyLN96aQK57x2v8OmYhhq6ZcDVWH/XIQyDGOWo5/bZ86eXB xlRWj6O8R3LopNUFuCWVG8Rg4ISvCfQCBxp0NztObTEFfYvyaIcTkvP3tTy6ZwChqdmc Vv3gDZTW4Q4nfWedAa3QQB5j8gsmy6CkuVBGkgu45KhWL0gSwM2WndjUdRh5AWd8+kKl qQ8ghdp4/2outG7FgI+MII8GSXOVl4IbfSX808927PqfqdDnlfh2+/+ySglI2bTwEuJf 1mPsjCFDXV5cjmZJHoMwiZ0ZWw7jNCVlc1n0FbdBpqA6ZCD66A0Ws/F2BNK9//AGl58T TdYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777958279; x=1778563079; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Xl5SeCFAdc6WoqyWBYEluyvHLd+oZ4wSvK+mq+H5Z7o=; b=dBEmy4zPkaAdOj2optx6sVTyrcbvrc2Iln0fF02eq95aNRnldB8dx+e/MxoOuxQc15 1Quow165EVXO/CCi7U+kVFzzQFjsHth+ufrSxFVQISxAiayWENdp1/Ifar0D9Q4c2emu nutyOa5AXdyu/ftQ4qc0U4QtqredkbDywhpNo7vzKn1b44SUBc8s/FXgxO9djxkr7d3J 0tyoGIURzamgTg/4YxCyFP4re9rpDHDhABC07x/UmYGAkqU9Cs4klvDgIjm9bXRLHNi6 e6xP+Bg43kUHaLVFODuvsmmmxQOYKpwnOSQKd3En7zWTMzbfyvY2qxqMG/ZG//UnOU+I Vf+Q== X-Forwarded-Encrypted: i=1; AFNElJ/6R/C2hoA4+tUNxInQAVf87hcKc/mV1hIJPa2MuChok+TA8jEN8Icl16SO7aZQ0fQ7ceZgtwhui9yiV4M=@vger.kernel.org X-Gm-Message-State: AOJu0YzNIB8LeyQykxX9c7P/DwRiYuX/TmuUOtS/i0CR2kNPLMSBebgW 4y0O9v1B/YXa2Z97dn/HOAo4pNMuJbLzEc1y2F/mGUfc188B92XYXq7QXfNuy7oDvFfJyZJJT3d fyJuo5/uMhFpQF5lOedjV9zpCcPeFLx4bHiwMXlbrlEikQZwjrvYUSss9cBFNwJsf X-Gm-Gg: AeBDietcxZGIf0bvjE5xQDqy6+/ZQ2Aw5B4vhlGn1t013Q01mov+avc25n4elB4sI0G tKsfwz++dEAnWoAvzTbCuGdhJOYD/wvjsFYeDAuPLS809i8OXqJKQR12Bqsd+qb7iqGhzb/Roma PJzNCDG4FMHSHVQwA7Dk5LUCkiIouriswfps6OmtiiooocPzvYk567cGiirtBVnBtogLWBa9TDt jpMXJ6gKuElDZpH9hexWCW1hVMJwLor9XTFv4pzdhtwk20J2vTE+tPZwhpj2me/fkFF5dPHDu1F 9gxEgDt6JoaX1BXkeq+bkXDKucgq04w1MagzBd7Ob+SeyknMtF+R7DWqpT7Ce+u0szUJRrArjOk vw7U4j3RA2woT7dUEBbjfjF+vVctuJUf+vhbgqoUq+27nya0= X-Received: by 2002:a05:651c:4199:b0:38e:186e:350e with SMTP id 38308e7fff4ca-393b495a02cmr5464461fa.7.1777958278621; Mon, 04 May 2026 22:17:58 -0700 (PDT) X-Received: by 2002:a05:651c:4199:b0:38e:186e:350e with SMTP id 38308e7fff4ca-393b495a02cmr5464161fa.7.1777958278137; Mon, 04 May 2026 22:17:58 -0700 (PDT) Received: from fedora (85-23-51-1.bb.dnainternet.fi. [85.23.51.1]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3936138935fsm37206141fa.41.2026.05.04.22.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2026 22:17:57 -0700 (PDT) From: mpenttil@redhat.com To: linux-mm@kvack.org Cc: dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Mika=20Penttil=C3=A4?= , David Hildenbrand , Jason Gunthorpe , Leon Romanovsky , Alistair Popple , Balbir Singh , Zi Yan , Matthew Brost , Andrew Morton , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko Subject: [PATCH v9 1/5] mm/Kconfig: changes for migrate on fault for device pages Date: Tue, 5 May 2026 08:16:54 +0300 Message-ID: <20260505051658.2219537-2-mpenttil@redhat.com> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20260505051658.2219537-1-mpenttil@redhat.com> References: <20260505051658.2219537-1-mpenttil@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Mika Penttilä HMM depends on MMU notifiers. With the unified HMM/migrate_device page table walk migrate_device needs HMM enabled. Enable them explicitly to avoid breaking random configs. Cc: Andrew Morton Cc: David Hildenbrand Cc: Lorenzo Stoakes Cc: "Liam R. Howlett" Cc: Vlastimil Babka Cc: Mike Rapoport Cc: Suren Baghdasaryan Cc: Michal Hocko Signed-off-by: Mika Penttilä Acked-by: David Hildenbrand (Arm) --- mm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/Kconfig b/mm/Kconfig index e8bf1e9e6ad9..0d8db75ffc23 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -646,6 +646,7 @@ config MIGRATION config DEVICE_MIGRATION def_bool MIGRATION && ZONE_DEVICE + select HMM_MIRROR config ARCH_ENABLE_HUGEPAGE_MIGRATION bool @@ -1221,6 +1222,7 @@ config ZONE_DEVICE config HMM_MIRROR bool depends on MMU + select MMU_NOTIFIER config GET_FREE_REGION bool -- 2.50.0