Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3215696pxj; Mon, 7 Jun 2021 05:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVBWZ6H8Cy9ixb3qEwxuXTe2GABzAk811AOe5FR9v0lM4NHDVWxAKwarBrKri0YmrAhNUy X-Received: by 2002:a17:907:990f:: with SMTP id ka15mr17552502ejc.132.1623068710802; Mon, 07 Jun 2021 05:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623068710; cv=none; d=google.com; s=arc-20160816; b=hoy2aa+pDZKOFN9ApH8hLd72il490jhdixtP6nKtWshM3+8NkI6ZZ6jeGVizkJlrMn BZj7/Wg3ifabwvIgMB3j4dvtDFja1ucmuPtWGaysB6+AdWZz+XRSGlWxcA6K4P5feAs5 U45bJGeetR1dx8gHsJwxrejK+rhuNq0LjO+l6tuUSskIkhf9L2bG8sk0DjIoNVrRDy1o 6TJljlrDTmNY29X3xYmgfzsmL01gAB90TvnKvKtSmZRG+t7ktsiFOfwcPayJiqxCgA0A +LyPnWBo+VD81RkuKnSTJp3tIszV9WUIcGUWtaYtrusTiizPh4e/FLH3YgV2XLA2+FZ+ 7Cng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=zxx0YVyuhLwmmQ+qv1rHzjwKlRvyEJBfZxyMGFIJ9Ro=; b=j577iwApW+4DdRuxvSZNc4a6Waery5J5rnUomCvzJn4ebYV4zUk6pTpOi2YmCwFboA LQV+8Dee7oS8uhpk/eT71yBuN1aEA0eWgIS8ZgNys5oc4H30licVKcHNw2yGIreF6YA4 JsNQr/dgF3pG+HfevEazT+ipUy9EkairDvzXmQZsTASwgupvDGrlGOpDvzEx6hhZWGMI cimo9LdgXnEIjxjvWbIQyFmNQaFZABBYJ84dirP1tc9MlhIy3KYgTASeWj/2KmA0jhF9 Vn0xlcJo5767u+DMIqh30vNr1XYOw+JfZG67ctRCZ99j5IrHcaSwPRmLfmi6HZrIuHVZ iIzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="UqTst/zh"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9EjMX86U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si2287189edy.219.2021.06.07.05.24.47; Mon, 07 Jun 2021 05:25:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="UqTst/zh"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9EjMX86U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbhFGMYP (ORCPT + 99 others); Mon, 7 Jun 2021 08:24:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbhFGMYN (ORCPT ); Mon, 7 Jun 2021 08:24:13 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 461DEC061766; Mon, 7 Jun 2021 05:22:22 -0700 (PDT) Date: Mon, 07 Jun 2021 12:22:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1623068540; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zxx0YVyuhLwmmQ+qv1rHzjwKlRvyEJBfZxyMGFIJ9Ro=; b=UqTst/zhHLMPguii70EYaSwr0zfug/H/bYjeU3APn8+dnjF4Jdh+e42PlYEUgQ6dYV6Hf6 92c+Cbl+R48ieZguIG7zjNxlazD8yhR6duQsDOCvxRTDnqPXpKc4n41iOKV6jG5Jf/vD0n HS4YEJiqUNaa5sabeBEENpgEc+WMZG75uoPLLcz8Upjm6Y/bHPYinAEDM9pJ5KTnM/hF22 Fd/hIOoWW1Yu1RykZSwmkit9klMhk+qGfOT37jEBggaSXo1QStrx/x6m94Ar1AGMx2kroi gZwXDOF/QU5LeM4AcO/dVeShYGFxrWvyzss35KrKo3kSDBoq4KP2f192QvBW1Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1623068540; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zxx0YVyuhLwmmQ+qv1rHzjwKlRvyEJBfZxyMGFIJ9Ro=; b=9EjMX86UYbbl7+jhDcPWKLqoC/WJg8DwCQF1rHQ+BMnbU3PLjDb0/HDjGKiJnfu2wMVHGP tpgOwoPKbriMIcAg== From: "tip-bot2 for Mike Rapoport" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/crash: Remove crash_reserve_low_1M() Cc: Mike Rapoport , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210601075354.5149-4-rppt@kernel.org> References: <20210601075354.5149-4-rppt@kernel.org> MIME-Version: 1.0 Message-ID: <162306853884.29796.12879946484223593923.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 23721c8e92f73f9f89e7362c50c2996a5c9ad483 Gitweb: https://git.kernel.org/tip/23721c8e92f73f9f89e7362c50c2996a5c9ad483 Author: Mike Rapoport AuthorDate: Tue, 01 Jun 2021 10:53:54 +03:00 Committer: Borislav Petkov CommitterDate: Mon, 07 Jun 2021 12:14:45 +02:00 x86/crash: Remove crash_reserve_low_1M() The entire memory range under 1M is unconditionally reserved in setup_arch(), so there is no need for crash_reserve_low_1M() anymore. Remove this function. Signed-off-by: Mike Rapoport Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20210601075354.5149-4-rppt@kernel.org --- arch/x86/include/asm/crash.h | 6 ------ arch/x86/kernel/crash.c | 13 ------------- 2 files changed, 19 deletions(-) diff --git a/arch/x86/include/asm/crash.h b/arch/x86/include/asm/crash.h index f58de66..8b6bd63 100644 --- a/arch/x86/include/asm/crash.h +++ b/arch/x86/include/asm/crash.h @@ -9,10 +9,4 @@ int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params); void crash_smp_send_stop(void); -#ifdef CONFIG_KEXEC_CORE -void __init crash_reserve_low_1M(void); -#else -static inline void __init crash_reserve_low_1M(void) { } -#endif - #endif /* _ASM_X86_CRASH_H */ diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index 54ce999..e8326a8 100644 --- a/arch/x86/kernel/crash.c +++ b/arch/x86/kernel/crash.c @@ -70,19 +70,6 @@ static inline void cpu_crash_vmclear_loaded_vmcss(void) rcu_read_unlock(); } -/* - * When the crashkernel option is specified, only use the low - * 1M for the real mode trampoline. - */ -void __init crash_reserve_low_1M(void) -{ - if (cmdline_find_option(boot_command_line, "crashkernel", NULL, 0) < 0) - return; - - memblock_reserve(0, 1<<20); - pr_info("Reserving the low 1M of memory for crashkernel\n"); -} - #if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC) static void kdump_nmi_callback(int cpu, struct pt_regs *regs)