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 782853B6BE5 for ; Thu, 13 Aug 2026 09:26:18 +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=1786613180; cv=none; b=R1vzFwPdED0/zCAV4uI6pEBp83a04Ayi2uCD/e231M4w5/X4DvKWU0x0pws912PAtDzJ9Y0edVMqPRg8oRUEgy2Ae1+F8MyIiJyb5Ov5g4rKxBjwGA3W+8SmJ1C62WihWRweZ4Q7/L/kfhMLPksVE+FY22cvcO5++IwT68N0XRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786613180; c=relaxed/simple; bh=eWT1IKWTRNYzP3BjXhUqv26NBwMphfIRgnPCKqxWM9Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HIqMrnwTISkGZ3IwVDjEuLF3MTC7sBv1Gkb/naXb+yp8/H/egW95Gg1NXzpej87hCL5au/im57KnlPLQmpJ8EITNocL1GhkBF/5oeSyyLpta7DxqnDYIyhXORR93XpdPlxHbA9vJ++JRBheR8hOIwy5ugqohusFkn+6ONykM4/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=osZkmIX6; 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="osZkmIX6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45EB81F000E9; Thu, 13 Aug 2026 09:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786613178; bh=eWT1IKWTRNYzP3BjXhUqv26NBwMphfIRgnPCKqxWM9Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=osZkmIX6YUKuwxY38slNqvBsWiQNDNxPYCj5qqGQ4/Y0pIrfMjifzx2/z1f3HyXhl ng0Q3tf+dsU4N5U2fYavdTK07+pIPx1hx2EwST2/ucqvwUPiztEz2uJuR6llK7L0dA dKWV1SJ6myQMp1gilTQ8o4ZIB0AF/eI82D+iSpKAy1A8YUC7O9hy4Ubznuma96NwcU BMqSl95kS3NaXdM2gzDn9mlJki3nb8lHZq/BETAikNcwt8J51xpTCMzB8cumyxw7e8 w0jUptWrHwj0fzNIdaFWUT8g4HLu+IRYhyLmYnXwjzfIfEJMi/fipBiMli07B/ltRb OPf9hXUNswKjA== Date: Thu, 13 Aug 2026 10:25:55 +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 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?... -- Cheers, Lorenzo