From nobody Mon Feb 9 10:49:44 2026 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 22DEB1DAC4F for ; Fri, 2 Aug 2024 09:19:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590365; cv=none; b=MbXROvbYvaiB5q55p69eC0k8biNNoujtak8NhbQ38WQNHNpvs/Ub4ot5U1dpujH+8zwymAYfWwTuZlN39AaOgsbb/Sjn3zL2zSkyarn1e6IdN1NVPZ/NachmYzBpXLEayvv1PYKxwG34+Nn4rEpAfOSSqvGeibxyTZwnG8OuJvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722590365; c=relaxed/simple; bh=t91oUSCw6oje1J3rVWrMxurCJ8NX2swgfnuwDlpKbds=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NbdkIonqZH/lcZMucMi8CWObTQR+NM7SyYlpS/ILtGx0GHV+6u2HDFTAjdaVx1VknQh0almXmsiE2W+kyWPrLyGT9QinVATqMCqgD0FjrnztIEXpr5JoOwa+YLTkpwowK6XxAFJv5fdz9p+nBcsn6XHDSrtxgPjUQGdIVab+eMA= 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; arc=none smtp.client-ip=45.249.212.188 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 Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Wb0bQ3KtkzfZFj; Fri, 2 Aug 2024 17:17:22 +0800 (CST) Received: from kwepemi100008.china.huawei.com (unknown [7.221.188.57]) by mail.maildlp.com (Postfix) with ESMTPS id DD02D180101; Fri, 2 Aug 2024 17:19:13 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi100008.china.huawei.com (7.221.188.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 2 Aug 2024 17:19:13 +0800 From: Jinjie Ruan To: , , , , CC: Subject: [RFC PATCH] ARM: Support allocating crashkernel above 4G for LPAE Date: Fri, 2 Aug 2024 17:25:10 +0800 Message-ID: <20240802092510.3915986-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 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: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi100008.china.huawei.com (7.221.188.57) Content-Type: text/plain; charset="utf-8" As ARM LPAE feature support accessing memory beyond the 4G limit, define HAVE_ARCH_CRASHKERNEL_RESERVATION_HIGH macro to support reserving crash memory above 4G for ARM32 LPAE. No test because there is no LPAE ARM32 hardware. Signed-off-by: Jinjie Ruan --- arch/arm/include/asm/crash_reserve.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/crash_reserve.h b/arch/arm/include/asm/cr= ash_reserve.h index 85c9298bd3b7..33a2f18b0ec1 100644 --- a/arch/arm/include/asm/crash_reserve.h +++ b/arch/arm/include/asm/crash_reserve.h @@ -19,6 +19,10 @@ static inline unsigned long crash_addr_low_max(void) return (crash_max > lowmem_max) ? lowmem_max : crash_max; } =20 - #define HAVE_ARCH_ADD_CRASH_RES_TO_IOMEM_EARLY + +#if defined(CONFIG_ARM_LPAE) && defined(CONFIG_HIGHMEM) +#define HAVE_ARCH_CRASHKERNEL_RESERVATION_HIGH +#endif + #endif --=20 2.34.1