Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp773551rwl; Fri, 7 Apr 2023 05:24:36 -0700 (PDT) X-Google-Smtp-Source: AKy350alpwPfNrz+lLygmUdjRBt82dtJlJ9Pyjl4k+PRJXnSv8CrE6D0SxpJCyxXw/RdwnDkZ8rD X-Received: by 2002:a05:6a21:78a3:b0:e8:e097:88c4 with SMTP id bf35-20020a056a2178a300b000e8e09788c4mr1164376pzc.26.1680870276067; Fri, 07 Apr 2023 05:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680870276; cv=none; d=google.com; s=arc-20160816; b=ipl7O2iyENwzsZno2dIfoRpckXu6Zzq8biEKy706ypFahYYL1zY9F6qJFKtNBbSgYg DIccyg2hHDESfyD2nnkGxIXrPXEr0iuu81bdl2zqyNmewBb7zdm5LZyDb5uLt5N7hm4I vIG5mnhTD5PmQvZd8xTLzhzSIaEZfhqwc8BAglR5Rgjyqj1QyjMMBQKrSYIuTwZNfPGn HGg5DuB1rPI1PGJqvjCAPzJBJJ3F2xPCoJLkPZ0PVhUkFcsnRs5Xea3ilvgO+Bhi3Z4B A0Vm+qa7Ku9vwWkQSZqMDkqnKRIQihznuAKAZzQ79Mtp/GgGTQdOcJS49voccvQKuJUx oQCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hj8WZn4fsaNVXzouph4VuJoSDtm/pAjQ+hGj5NXmwD0=; b=YDyh+OfCRE8FmNgrvQDpWy68YlU3tW5kfXcRH8OPVJJ5Od1NODeJJwuKkz1tuc/kIi c4Aoh9m8vDHBLuQkGFjWrDcSJ3JeR4/49BMBdPiDPMVcyXIQUmDaefJn2udfS9Btj5um z9tWd4ZhsQ+AY4hMf3yT7tDNJnw65eWt8n3xTyVak9SV3NIJ2KzDUV5hpRaO/R3cV9cw 2tHCMFRgU7NeqoGCHSUd3hUZoQnSkA7dYYTODnYMUW5sun6bDOGEgCOa86aRyipnOVH3 0kCD3gxKaqzig+vuNsd/o7Hlem8o76x2yUYt8ru504+KxMRQusE79N99K79G2/8pHSTk pchw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBXLq4fa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020a656401000000b0051322a9ea4dsi3356719pgv.180.2023.04.07.05.24.21; Fri, 07 Apr 2023 05:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBXLq4fa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240588AbjDGMEC (ORCPT + 99 others); Fri, 7 Apr 2023 08:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240247AbjDGMEA (ORCPT ); Fri, 7 Apr 2023 08:04:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 275D683CD; Fri, 7 Apr 2023 05:03:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B654760F87; Fri, 7 Apr 2023 12:03:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36B44C4339B; Fri, 7 Apr 2023 12:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680869038; bh=hj8WZn4fsaNVXzouph4VuJoSDtm/pAjQ+hGj5NXmwD0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cBXLq4fagWKRTewxo4p5y+yltMfue1gHv9h6Rhkf+kT90l5ObTPyf5Q+HxCMGQAsM 1WP18Sp/Ya3w+QiZ4Uku4/jcrSyIhhTDl6GoeWbpZfrxfYH144zC7BdFXcOmN3Bs8l ixgsTZd59XKKamoXJiCD5OBzTnOMIL4T96AiI38v7Ttj3fY3eZPYH/jj8zcKKxqUjw yZoR54HGahnG32BUoRdGl3XUEBDexCXzAufgslwOsGCS+z+ydlK/+dWroXXTzS6rYo BzhTRRDstfoWaFx2kUjdCg3egxn1cf8mY8FaYa/WqcsUV2RCUa8bxxeEYIVS0jpejz CO8A+lDkofXZw== Date: Fri, 7 Apr 2023 14:03:52 +0200 From: Simon Horman To: Guo Ren Cc: Chen Jiahao , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kexec@lists.infradead.org, linux-doc@vger.kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, conor.dooley@microchip.com, heiko@sntech.de, bjorn@rivosinc.com, alex@ghiti.fr, akpm@linux-foundation.org, atishp@rivosinc.com, bhe@redhat.com, thunder.leizhen@huawei.com Subject: Re: [PATCH -next v3 1/2] riscv: kdump: Implement crashkernel=X,[high,low] Message-ID: References: <20230406220206.3067006-1-chenjiahao16@huawei.com> <20230406220206.3067006-2-chenjiahao16@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 07, 2023 at 05:06:24PM +0800, Guo Ren wrote: > On Thu, Apr 6, 2023 at 10:06 PM Chen Jiahao wrote: > > > > On riscv, the current crash kernel allocation logic is trying to > > allocate within 32bit addressible memory region by default, if > > failed, try to allocate without 4G restriction. > > > > In need of saving DMA zone memory while allocating a relatively large > > crash kernel region, allocating the reserved memory top down in > > high memory, without overlapping the DMA zone, is a mature solution. > > Here introduce the parameter option crashkernel=X,[high,low]. > > > > One can reserve the crash kernel from high memory above DMA zone range > > by explicitly passing "crashkernel=X,high"; or reserve a memory range > > below 4G with "crashkernel=X,low". > Asked-by: Guo Ren Perhaps 'Acked-by' :)