Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24646207rwd; Sun, 2 Jul 2023 01:56:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlET51eb9Ts5XCtXNb0eTJXSbmqIAMAT07bW0B+18YupWVwyhCZuDlX/i5E+odFAfHwSn0an X-Received: by 2002:a17:902:a502:b0:1b8:69f:f169 with SMTP id s2-20020a170902a50200b001b8069ff169mr5028058plq.30.1688288182644; Sun, 02 Jul 2023 01:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688288182; cv=none; d=google.com; s=arc-20160816; b=d/M8iVgsgRrTuozMEjNQ8BGr6td7JEo9XFHPdUigfN5KmI0VViS1J3LX6uM0ZsUQXQ nMtkQtRqfyLdPRUku5jWFgAkCnLKia/9rTdiZwfOFV6ypb0Y8oiSqkzDYSVm4orD6Ni2 w9X6/O4YevpjUg/BWuU13uO6yJzq4uVKTIs3BfP5xG3MXYW45Xp7dq/0HEXZQXDzLWQ9 kR5lVN6hOxbea2FT25yo692ZDI5aY6Ru8a6Ut39OcDviuHPZlhuq+3dX7eMfwvUUuyIo kfq8C0oyDvdyEj9uZTbJ5iIES/Tn6/vscmZqzaCVQXhT/6K7fF/PaIyYiE7jEV9vTHuJ kbPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AQhWpYL9hEZIUpMtAIawe0pmPnv0SY03GJaWnN0onTA=; fh=k8U7cZCJeKN2g5/VQdYh7s2wxV0SrS0XHDH9U+Ote1k=; b=desQMGtVJZuWZIAmLHvq24+hSXXj1TH2GJVcnh69oZN3McR2aCHqkg3liwFQ+U5mRy jFhA3lnhJFB+haqMnX36wYcbFExSnAMSahUbzwbYoBmkEoBgGrcPNrr0lSPQ42UMXZgM +mhy+Zeqn6z2WG+2QQqobhfZIiZnL1G9QBdSLoqauKO5M7veO2JxfcZMVN9gyZ4LlD2t a95li/p8w118wEZSUuYvb9/HvrQfphFvd1dTo7R/BDF7xZWmn5VY2AzonkJIme3xth4J SLPa0M8jvmtAwtTukmbXUChKZ5lohpGGWg46UKn+FpdNt6eg2b86DpMHR+FDDb3ZwgBL YXtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xC51ZzzM; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a170902db0a00b001b8922e82e9si430229plx.59.2023.07.02.01.56.10; Sun, 02 Jul 2023 01:56:22 -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=@linaro.org header.s=google header.b=xC51ZzzM; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbjGBIMc (ORCPT + 99 others); Sun, 2 Jul 2023 04:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbjGBIMa (ORCPT ); Sun, 2 Jul 2023 04:12:30 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A7410E9 for ; Sun, 2 Jul 2023 01:12:28 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-51e00695e21so700701a12.1 for ; Sun, 02 Jul 2023 01:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688285547; x=1690877547; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AQhWpYL9hEZIUpMtAIawe0pmPnv0SY03GJaWnN0onTA=; b=xC51ZzzM4ZKoBMI4V8NMMtadmxxxemrNka3FteTPT7S80w9jo771KZxMwoCSxXnHVq mQ/Ct8hPihzooSonqa0IwxYHmKNrlItug0o22lRahVLPGJc1i55rQSPq2fN7K1quMuZm MOCR6eeodx9vxyhmr9XCuHDKgC/1DzM7KvWBbB8llOnnaM9+leerRAYvBAO6YOv0nFK0 7o46635deoSiuDR0sB0z1qogjbx3AreMLxxqTa8e11rEptZpS7koADwxBvHAhUPNcB3W ICnzlnLQ7sHXvp5fLTlxXJAhkksI+Roh13Sp/hK7eKrPoIo0ltY/2eR0NZOuHZxTm9H8 0Hew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688285547; x=1690877547; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AQhWpYL9hEZIUpMtAIawe0pmPnv0SY03GJaWnN0onTA=; b=BRYpbNgUJrnDcnZ3uMrNTgLrBWZB1Lf1PEZy5qsEU7O9p9UB7qQqz2nHhxWVs5uL93 ya0XfuceS5WrCWKzXojilKvKm+dXCiCBho6icaYOa02SIyeOi76HmGa0Tu22VKCnvRJx zIF3+SB3jZ9L1vF/pcknu2GXKqoFfwSHV8tf8dL5cQZmqiILYd65a2kZJigZnwfxbyOu t6He8pfdcXoorW/jrhC+z+TSXmG0UvzapIbZahBCDySoCiWCv9iQQ3AycuP6lGfkFpob VHZUTJzJhzTMoKttVnejdUXAzfLmFEtmAGSXmVZ1WhPj5Jl6tYRQ/NmRcpO1J4Z+2JEF D1yg== X-Gm-Message-State: ABy/qLY6nf+unvGeqmvUDftb8fe+4lt10crw8HhTCVLlvJUeZOwUwOEn rsJDIxDZFCZOtIdTh/GLfFKXYg== X-Received: by 2002:aa7:d7c5:0:b0:51d:9664:e84 with SMTP id e5-20020aa7d7c5000000b0051d96640e84mr4610483eds.9.1688285547047; Sun, 02 Jul 2023 01:12:27 -0700 (PDT) Received: from [192.168.10.214] ([217.169.179.6]) by smtp.gmail.com with ESMTPSA id n15-20020a05640204cf00b0050bc4600d38sm8804565edw.79.2023.07.02.01.12.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Jul 2023 01:12:26 -0700 (PDT) Message-ID: <58a26b9e-a48d-d567-c310-193a2c52521e@linaro.org> Date: Sun, 2 Jul 2023 10:12:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v4 08/21] dt-bindings: reserved-memory: Add qcom,ramoops binding To: Mukesh Ojha , Rob Herring Cc: corbet@lwn.net, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.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, will@kernel.org, linus.walleij@linaro.org, andy.shevchenko@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-hardening@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org References: <1687955688-20809-1-git-send-email-quic_mojha@quicinc.com> <1687955688-20809-9-git-send-email-quic_mojha@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 28/06/2023 17:01, Mukesh Ojha wrote: > > > On 6/28/2023 8:17 PM, Rob Herring wrote: >> On Wed, Jun 28, 2023 at 6:36 AM Mukesh Ojha wrote: >>> >>> Qualcomm ramoops minidump logger provide a means of storing >>> the ramoops data to some dynamically reserved memory instead >>> of traditionally implemented ramoops where the region should >>> be statically fixed ram region. Its device tree binding >>> would be exactly same as ramoops device tree binding and is >>> going to contain traditional ramoops frontend data and this >>> content will be collected via Qualcomm minidump infrastructure >>> provided from the boot firmware. >> >> The big difference is if firmware is not deciding where this log >> lives, then it doesn't need to be in DT. How does anything except the >> kernel that allocates the log find the logs? > > Yes, you are correct, firmware is not deciding where the logs lives > instead here, Kernel has reserved the region where the ramoops region > lives and later with the minidump registration where, physical > address/size/virtual address(for parsing) are passed and that is how > firmware is able to know and dump those region before triggering system > reset. Your explanation does not justify storing all this in DT. Kernel can allocate any memory it wishes, store there logs and pass the address to the firmware. That's it, no need for DT. > > A part of this registration code you can find in 11/21 > >> I'm pretty sure I already said all this before. > > Yes, you said this before but that's the reason i came up with vendor > ramoops instead of changing traditional ramoops binding. That's unexpected conclusion. Adding more bindings is not the answer to comment that it should not be in the DTS in the first place. Best regards, Krzysztof