From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5C36630C16F for ; Wed, 12 Aug 2026 10:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786531542; cv=none; b=tcXYevEQQDrE2LojnGRf+5Z3EBHlEXEEF7iMzXc6+cUkzrkBSeOa16DKh4Wjda9LPgs1yTA0GrawRYGqhVXP9glhiI+qj+qHHzu0e2TgVPZYlAZ3SbGof+SdSy5h0V1DugsHPcohnywgB0G5fk9U4ZBHMGhigkRSfQ3Qgi/TEIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786531542; c=relaxed/simple; bh=ufmoxpNsJ/IW97Qlz5c4LHBxKwLXhXJiMX8DTl7rt68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aoCUq//ysYH3LTSrfeaQkJ6Tk2o25VmPWX9wW/QeLJbeBtrA+qaVfhk1pOcdu2wbBgf2FTmsiIR9UUiR4KU2JugnAHwfBGs3mJo6LfIMrjaPCx0nuIXxsph8Ku3x5evZlke8wuQtLeSMXF2s44Z5091jJ8v3qClDwqa+F+9JO+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GlgD36p3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GlgD36p3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB3281F000E9; Wed, 12 Aug 2026 10:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786531541; bh=3jZ6wkNedTUfJCXrV76nCCr0yC0b1EaP+oUbDdDQRYo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=GlgD36p3Ivo9rrgWpuswy69jInboKQ6Tv/dl2rmNw19xEJwbo+U4ok9R0u8rkgW7w rtWIG5tkFLIAZu3BOyKCKTZa08xbrhH73H3hu+58haHrluohur4JnvJlfRnBWV7/40 jI1uHb5m/gSPdKD4G/FlCbyr8DyXbT+8gG0ZLKSg38zeHqADAiSAt1bZX0xbuJoUUi 9Et4qRIbfh++CgxTv0+GeXANdeUau9lmIsBKECxkY54rn9Xddwqk1FLOvVjOdxeo10 xuVpsAV/Cs3T9pToBKfAM2lLW5j7FjLhjZFBicyE6FED6eu/SjSXpHGVftvOA5QW7Z evyedK+1tcHbw== Date: Wed, 12 Aug 2026 13:45:30 +0300 From: Mike Rapoport To: Xie Yuanbin Cc: akpm@linux-foundation.org, david@kernel.org, linmiaohe@huawei.com, ziy@nvidia.com, matthew.brost@intel.com, joshua.hahnjy@gmail.com, rakie.kim@sk.com, byungchul@sk.com, ying.huang@linux.alibaba.com, apopple@nvidia.com, nao.horiguchi@gmail.com, ljs@kernel.org, liam@infradead.org, vbabka@kernel.org, surenb@google.com, mhocko@suse.com, gourry@gourry.net, tony.luck@intel.com, bp@alien8.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, liaohua4@huawei.com, lilinjie8@huawei.com Subject: Re: [PATCH] mm/Kconfig: allow user to select MIGRATION if MEMORY_FAILURE is enabled Message-ID: References: <20260812091644.224299-1-xieyuanbin1@huawei.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=us-ascii Content-Disposition: inline In-Reply-To: <20260812091644.224299-1-xieyuanbin1@huawei.com> Hi, On Wed, Aug 12, 2026 at 05:16:44PM +0800, Xie Yuanbin wrote: > 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. Do we want to make users decide if they need MIGRATION when MEMORY_FAILURE is enabled? Just make MEMORY_FAILURE select MIGRATION. > 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. > > config MIGRATION > - bool > + bool "Enable page migration" if MEMORY_FAILURE > + default y if MEMORY_FAILURE > depends on MMU > > config DEVICE_MIGRATION > -- > 2.55.0 > -- Sincerely yours, Mike.