From nobody Tue Sep 29 04:50:57 2026 Received: from canpmsgout01.his.huawei.com (canpmsgout01.his.huawei.com [113.46.200.216]) (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 C7946402B9E for ; Wed, 12 Aug 2026 09:18:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.216 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786526338; cv=none; b=lm6AgRRa2zJYZsazJifPoIkwtW3iz3vFfT0vq/bSb2G5FwYPSp5/A17oQG9yGJEMlGaFdfkDEDBi2MWTTzt5rjWFLTlIHhP5VCH8+x1R0pqscR1DvoSV7B6L4nEFHj0na6X84pTFfjFSWm30mAHPy87YxadlwYmn0sRA9cHDHuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786526338; c=relaxed/simple; bh=CjhP+GCJilEUCNEfVhscsQFvRZSmwwpkHipDuaez2C0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KeZEmyDzoEC9URnuikczOoRVbjJ4w/yq22RFpLXNYGsWFTORvKlyOHUEh7O7KVeUwXqmvo3GZlGfzQ6xMC5jSdhyyb8nAVXCKPietp51SS+0LyFn9whK+9avELjF3zR4+3/g7GYjle7mtS66U2jx4DPY/TvohcCyXi3nTZVWeRs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=BWThciDu; arc=none smtp.client-ip=113.46.200.216 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="BWThciDu" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=FfJ5nAyyp3uAf1i1mDP7ix0yMVKhktD7PymhKvowdmk=; b=BWThciDuZL39Kr3k4Repy9byHSsEFtIsDQbspS4kgW9CVTJCKluwmbYtGvVrlTkijwxZtrk4f dZfXzvKQ01VfRC57JIBtmZgB1x/uJHbweVIy/xBrCs2IwmBpl5RjifVcJ5gZG/QWbEYWKvMbR3w 0QMqOcLMR4CrmGk48vddvAs= Received: from mail.maildlp.com (unknown [172.19.162.140]) by canpmsgout01.his.huawei.com (SkyGuard) with ESMTPS id 4hKjN62CLDz1T4Fq; Wed, 12 Aug 2026 17:08:54 +0800 (CST) Received: from kwepemj100009.china.huawei.com (unknown [7.202.194.3]) by mail.maildlp.com (Postfix) with ESMTPS id A48542DBF7; Wed, 12 Aug 2026 17:18:44 +0800 (CST) Received: from DESKTOP-A37P9LK.huawei.com (10.67.109.17) by kwepemj100009.china.huawei.com (7.202.194.3) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Wed, 12 Aug 2026 17:18:43 +0800 From: Xie Yuanbin To: , , , , , , , , , , , , , , , , , , , CC: , , , , Xie Yuanbin Subject: [PATCH] mm/Kconfig: allow user to select MIGRATION if MEMORY_FAILURE is enabled Date: Wed, 12 Aug 2026 17:16:44 +0800 Message-ID: <20260812091644.224299-1-xieyuanbin1@huawei.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) To kwepemj100009.china.huawei.com (7.202.194.3) Content-Type: text/plain; charset="utf-8" Currently, memory-failure can be enabled without migration. However, migration cannot be selected by user when memory-failure is enabled. Migration is very useful for soft_offline_page(), which may be triggered by correctable memory errors. Most of the anonymous or file-mapping faulty pages can be migrated to other healthy pages. Allow user to select MIGRATION if MEMORY_FAILURE is enabled. Also, select MIGRATION by default if MEMORY_FAILURE is enabled. Signed-off-by: Xie Yuanbin --- mm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 8a24c130d008..b4c217383b51 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -682,7 +682,8 @@ config NUMA_MIGRATION demotion for memory tiering. =20 config MIGRATION - bool + bool "Enable page migration" if MEMORY_FAILURE=09 + default y if MEMORY_FAILURE depends on MMU =20 config DEVICE_MIGRATION --=20 2.55.0