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 98DE833F5B6 for ; Thu, 13 Aug 2026 09:32:19 +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=1786613540; cv=none; b=eZ7ZleISMZllvRjm6/f2286ur3fP56PHDctU0QPXrtpaidfkseMfGQrKEjFvlLs/WKa4JynBkQQ61vqVEFxo/7m1R7R9XsP2mdxRMeiW0bbdOVU8Z5CKVUMnMB9lItTOvHZWaj3fz9QdO++mxIVUZy6fBpGHPtTvvwESkl9Dz+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786613540; c=relaxed/simple; bh=nAWes2BXkarxcSwrrfFt7mtosTy2189oDBYFN8w+S6Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RjvEiI4QvwhvaYaWOH0EXUFaRYkHUZN4jI/zn1fQlsrUKRQ5te/5EwxRsJvhJWFCoaIn1qGmKVQ65hT22VvH9d5mpY4NTgoZ5eNQTNv/qTrJrmj2BMLxi+RGjYlf1RD7MQ1JD6AAtsDt+xhqNC8DSO0C4zH64E7UEeUQ89dHOTs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a3wVsJdN; 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="a3wVsJdN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EE801F000E9; Thu, 13 Aug 2026 09:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786613539; bh=nAWes2BXkarxcSwrrfFt7mtosTy2189oDBYFN8w+S6Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=a3wVsJdNUj7FbrNxMi7nCwOfx6FTNl8WKwtxgclhKlL3EMzkiG46MX9ojuTBuTBdK L8PFgBapyC2e/SYXTmfBU7BI/I9YIa9lCU3mCKgh1SHZd2y7Bq7Qi1RynAX3M/gqzS TjuScnbX/uZKNt7EjMUjFwjCPPKhfSdIX3Yw6RdM2U/cvpep95+r2auYc6+jnNerNz J3e98r75pAPxrEh9GKbLGY2sAJi6CFAlC3if8YmKhqqzFv5LTw82X56CgJfMxiioWI VHwTO0M01ddM2uMYVhMgRSLWH+yD4cdyPPMWhw1zhrYhm+4SF7gdoWv3OlmJL3EStj In0Gz63gtbT+g== Date: Thu, 13 Aug 2026 10:31:56 +0100 From: "Lorenzo Stoakes (ARM)" To: Mike Rapoport Cc: Xie Yuanbin , 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, 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: On Thu, Aug 13, 2026 at 10:26:04AM +0100, Lorenzo Stoakes (ARM) wrote: > On Wed, Aug 12, 2026 at 04:32:12PM +0300, Mike Rapoport wrote: > > On Wed, Aug 12, 2026 at 11:55:03AM +0100, Lorenzo Stoakes (ARM) wrote: > > > On Wed, Aug 12, 2026 at 01:45:30PM +0300, Mike Rapoport wrote: > > > > 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. > > > > > > NO. > > > > > > Explain first why the hell one of the other options that selection migration > > > can't be enabled. > > > > Think small systems ;-P > > That need soft offline and migration?... But still, he did do what I asked and reality > theory so your suggestion seems the least worst way. > > -- > Cheers, Lorenzo -- Cheers, Lorenzo