From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout06.his.huawei.com (canpmsgout06.his.huawei.com [113.46.200.221]) (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 DB45B456E08 for ; Fri, 14 Aug 2026 08:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.221 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786696916; cv=none; b=VzgS2/ZCIpCYS1KnTljBx6Xu3oS2D3LTaYY6B+yYAOtWLVe1N8KDJiHRT7wX/gO0VGB2WTqO99Rb8pspb967KehcHMEIowRGtzVri1J5Pdqem8S24tpKPHSBV9ybOnauUu27H1f4E6rOCpeoWFnKDB00FPa9F+1sFpl90l/dnCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786696916; c=relaxed/simple; bh=ok9xC//k8MLUpcnf9audFrqrN45pjjYbmsSoG3SuPbs=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=h7GjqUIhai8H1XfHYtH46ZLQ3NBRFhB28BipAacGEFnIxGXQ4x/XbK+95iXv2EZDdZFPaAHYNLYVIwebB96eUtTWmmlO6bo508FNbAaoXaS2WJok5UYP0waRys68lX4ckzgoy4B+T6gFvI4eVW1g4I21SRrCIFcVs3LXOeiHheE= 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=byolz25j; arc=none smtp.client-ip=113.46.200.221 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="byolz25j" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=kmBTxvXk2uM+Jy9SERybidwxfN4RThE8kHyyWABO2k0=; b=byolz25jrt5vYjOAub+vk/9I5KgD/HjZaDJFz0f/a1zhJfTlR0gXCmHJ3fmKkyARoKcQpxJWt 6LAIkabqTk/L9oEYEQYfjCA1PB/7qFcPS/wg4WS67daP27yJHdwfhdAYVJgobDLrTkfedcUSBDe m0SfUChT6ix32sPFEasIhNM= Received: from mail.maildlp.com (unknown [172.19.162.140]) by canpmsgout06.his.huawei.com (SkyGuard) with ESMTPS id 4hLwRT4P8BzRhR0; Fri, 14 Aug 2026 16:31:01 +0800 (CST) Received: from dggemv712-chm.china.huawei.com (unknown [10.1.198.32]) by mail.maildlp.com (Postfix) with ESMTPS id 11FBC203C8; Fri, 14 Aug 2026 16:41:38 +0800 (CST) Received: from kwepemq500010.china.huawei.com (7.202.194.235) by dggemv712-chm.china.huawei.com (10.1.198.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 14 Aug 2026 16:41:37 +0800 Received: from [10.173.124.160] (10.173.124.160) by kwepemq500010.china.huawei.com (7.202.194.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 14 Aug 2026 16:41:36 +0800 Subject: Re: [PATCH v2] mm/Kconfig: make MEMORY_FAILURE select MIGRATION To: Xie Yuanbin CC: , , , , , , , , , , , , , , , , , , , , , , References: <20260813134916.292733-1-xieyuanbin1@huawei.com> From: Miaohe Lin Message-ID: <827fab66-1678-dc37-7b3f-e7b0a2987427@huawei.com> Date: Fri, 14 Aug 2026 16:41:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20260813134916.292733-1-xieyuanbin1@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) To kwepemq500010.china.huawei.com (7.202.194.235) On 2026/8/13 21:49, Xie Yuanbin wrote: > For embedded devices, lacking support for NUMA, memory hotplug/hotremove, > CMA and huge pages is a quite common scenario. In this scenario, the > demand for contiguous physical memory allocation is very low. To reduce > the kernel image size, some devices disable the compaction. However, > their SoCs do support DDR ECC, meaning that memory-failure may be needed. > > Migration is very useful for soft_offline_page() in memory-failure, which > may be triggered by correctable memory errors. Most anonymous and > file-mapped faulty pages can be migrated to other healthy pages. > > Currently, MEMORY_FAILURE does not explicitly select MIGRATION. When > COMPACTION, MEMORY_HOTREMOVE, NUMA_MIGRATION and CMA are all disabled, > MEMORY_FAILURE can be enabled, but MIGRATION cannot be selected. > > Make MEMORY_FAILURE select MIGRATION to handle this situation. > > Suggested-by: Mike Rapoport > Cc: Lorenzo Stoakes (ARM) > Cc: David Hildenbrand (Arm) > Cc: Miaohe Lin > Signed-off-by: Xie Yuanbin Acked-by: Miaohe Lin Thanks. .