Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2532406rdb; Tue, 12 Sep 2023 05:08:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHh3YiRHnQaCEkJLHZPd1DXs3mHd5mJIu99eRHkH3Hrzc5hhIUxxP1KBNW0niGxXdvqvvtX X-Received: by 2002:a05:6a00:f0f:b0:68f:b2f3:7737 with SMTP id cr15-20020a056a000f0f00b0068fb2f37737mr6012415pfb.15.1694520498510; Tue, 12 Sep 2023 05:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694520498; cv=none; d=google.com; s=arc-20160816; b=HEj2I6w9MjbGte/rgxxh+LLrH4BykZ/hQLY0zFEthI3iOmhcpkJFhutD98vxH3MQBx dogvPOU6sZyiIZ/0FUiiQ6HQh0XUCLYSoKbN/xoDahFU2uYf+sL2FKDhoa3HITGQlmgv VhDhaurPDN6J6YKt0IOevqA3+6swmbMjI8j77ZKnyoFznN/TcCH2FAMzZZh3iRe0v+vq 9OexqbIvlmgwg5kJbzyruUg48YQGDq5xeebhCEFeyU2bM47TcKshybGR1hpKFCgn0k7S 3krWtYqsM5sSKuzcttrF65Fc+grbJP/U9AJKzfJ61KcACIHsyztEziRMnVOanL8rvM/q V/Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1pZUV42NSSXD/ZGv1EHsOPC2gOn+cDsiJhzOiI/iasM=; fh=JbMGiYRFXlt+52a9srZoTm//JQ2lvhGjHFh6Arwzz2o=; b=y+m6V/6FUn5hJ8CLm/aaLyGuYQ2/d2DrEhbtvvElxV/TDpT7VREwOfNN7djP80YgAS 17yyWJkhBCbVvuYfUCwhWITAVk0AgxTsyf7a1sm4TEeNdkRNjGe/nxVpqRb4+8F5wGLb R9LplCvHViF+NmcPgvZXKW3eQNeBMyDFtCxS618mOL5x2XPTU/Ddei0cMRJGUIOfJ04o a44mJEzEamPYH2R1t63SguC0gaG7SkS2+aR3/oXmt97zaxp94JpV6JsGqFgEjcQKjqvr /GeWmG+kwInTbCSLKQ64mWHccd0w8pZ8BDS3blLTjo5FRH+DnXhmNWJs90uFnGs2zM5H m9ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AQYFILSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bd38-20020a056a0027a600b0068e3b6b12ddsi7906889pfb.223.2023.09.12.05.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:08:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AQYFILSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2873C81CE854; Tue, 12 Sep 2023 03:18:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233970AbjILKSf (ORCPT + 99 others); Tue, 12 Sep 2023 06:18:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233902AbjILKSe (ORCPT ); Tue, 12 Sep 2023 06:18:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EB491726; Tue, 12 Sep 2023 03:18:30 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90C03C433B9; Tue, 12 Sep 2023 10:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694513909; bh=uKvPIfnxCoZtHrrIPaG9nNRcDJHXgQGDDHfQe/MWQZY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AQYFILSsh4WNbTikyKtzLokfkY+RYdnG+CMwUDOF4KBxYbpQhedujXf88J52hQ7aF LXdcFlB8e4yXzo/E1ZbP7gDQtTpVc9e3uNGD5t5AtILSNFV+dbdpLboAIf/QHuBeLz JiQraaMpvFZr2mErtyQgWb9r0muXGjyqtOz2zoGnOThZlJw2epVIxJHTSlwPl03P17 NromokDPjkkgDl0Js/Aeksn6886MU//9WG5coE3g1sT9569WQKU4lMr4OPhtEOviKI LMcRZ9OWgtXWG3+vpdMNGDuSb4bV6yKGvsYlTSKdz8lMnVUrEpt5WmB5XqBVdrcUSq zcq5/G+WvKQDw== Date: Tue, 12 Sep 2023 11:18:20 +0100 From: Will Deacon To: Mukesh Ojha Cc: corbet@lwn.net, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, mathieu.poirier@linaro.org, catalin.marinas@arm.com, linus.walleij@linaro.org, andy.shevchenko@gmail.com, vigneshr@ti.com, nm@ti.com, matthias.bgg@gmail.com, kgene@kernel.org, alim.akhtar@samsung.com, bmasney@redhat.com, quic_tsoni@quicinc.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-samsung-soc@vger.kernel.org, kernel@quicinc.com Subject: Re: [REBASE PATCH v5 08/17] arm64: mm: Add dynamic ramoops region support through command line Message-ID: <20230912101820.GA10884@willie-the-truck> References: <1694429639-21484-1-git-send-email-quic_mojha@quicinc.com> <1694429639-21484-9-git-send-email-quic_mojha@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1694429639-21484-9-git-send-email-quic_mojha@quicinc.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:18:40 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 pete.vger.email On Mon, Sep 11, 2023 at 04:23:50PM +0530, Mukesh Ojha wrote: > The reserved memory region for ramoops is assumed to be at a fixed > and known location when read from the devicetree. This may not be > required for something like Qualcomm's minidump which is interested > in knowing addresses of ramoops region but it does not put hard > requirement of address being fixed as most of it's SoC does not > support warm reset and does not use pstorefs at all instead it has > firmware way of collecting ramoops region if it gets to know the > address and register it with apss minidump table which is sitting > in shared memory region in DDR and firmware will have access to > these table during reset and collects it on crash of SoC. > > So, add the support of reserving ramoops region to be dynamically > allocated early during boot if it is request through command line > via 'dyn_ramoops_size=' and fill up reserved resource structure and > export the structure, so that it can be read by ramoops driver. > > Signed-off-by: Mukesh Ojha > --- > arch/arm64/mm/init.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++ Why does this need to be in the arch code? There's absolutely nothing arm64-specific here. Will