From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2303C56201 for ; Thu, 19 Nov 2020 18:19:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9223722248 for ; Thu, 19 Nov 2020 18:19:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eIkA6HW/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9223722248 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=w6/kO1SoKx18fPXAqH71+rBgMnyrwXHn08h5XZXxBDc=; b=eIkA6HW/Tw4kUIupmh59KXpnu biaqkKqfilp5OVlwkGAodUi5FVFWUNfI3mLgzWaZedJc9MI4l8gkiGezXyRlXyW1/zMOoH1/3CCFo X/YILrPcpvKS5VRuKWwpldYomxLM7blYRAhLBlRpTcgnhXPEIW8Pp0Q+Vgs7KDssfrz3LlW1YTTjZ CL10blMkjSR+H9lj6cQcOXt90OE4sX7CRaxxQeG4wlSMk3+/dZQpqMdJ7lSmNoNvqjAzhG6JPp8G4 KwSJsb2F3kE13fxt+Xvyfw3faE5yce1OzD7hegBolJSH8Vn4Ehvmak+strpqluAWTK8vt/pqxGgxd nLg+1JPTg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfoVr-0006sb-Gm; Thu, 19 Nov 2020 18:18:31 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfoVp-0006rn-6Q for linux-arm-kernel@lists.infradead.org; Thu, 19 Nov 2020 18:18:30 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BB7591396; Thu, 19 Nov 2020 10:18:27 -0800 (PST) Received: from [192.168.2.21] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F18F83F719; Thu, 19 Nov 2020 10:18:26 -0800 (PST) Subject: Re: [PATCH] arm64: Force NO_BLOCK_MAPPINGS if crashkernel reservation is required To: Catalin Marinas , Nicolas Saenz Julienne References: <20201119175556.18681-1-catalin.marinas@arm.com> From: James Morse Message-ID: <016eca6e-a13f-52c5-bdaa-37213e9a4e8b@arm.com> Date: Thu, 19 Nov 2020 18:18:25 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201119175556.18681-1-catalin.marinas@arm.com> Content-Language: en-GB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201119_131829_354669_2501E4A5 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Catalin, Nicolas, On 19/11/2020 17:55, Catalin Marinas wrote: > mem_init() currently relies on knowing the boundaries of the crashkernel > reservation to map such region with page granularity for later > unmapping via set_memory_valid(..., 0). If the crashkernel reservation > is deferred, such boundaries are not known when the linear mapping is > created. Simply parse the command line for "crashkernel" and, if found, > create the linear map with NO_BLOCK_MAPPINGS. Looks good to me! Acked-by: James Morse Thanks, James _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel