Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25784846rwd; Mon, 3 Jul 2023 00:35:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHK2+B1kF4ZNHOENS9hdvyDelUEOpIdz3+9DP+ioZG42ozX3P8b46ScI85ksXp37ly3kUv6 X-Received: by 2002:a17:902:b088:b0:1b7:ca9c:4f53 with SMTP id p8-20020a170902b08800b001b7ca9c4f53mr4400593plr.20.1688369746417; Mon, 03 Jul 2023 00:35:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688369746; cv=none; d=google.com; s=arc-20160816; b=Bg2bVzHVKaybzkCACMnxTGzIL41X0V/X5BSzICs4c3wy3kXUbDrXjbJOzrU1+Prp5W N1l22mOFNHHbeV7wTsAU/yH2SesJakPtseZd1elr81/l7/yvCWdG+9lqd8nApUInZkdr VlHG5CR+Atk2xYpw8GppHI1QkHSFk4N9CFw+MGbym5R1Ib6DIdkRm9/EVSKKmrCDhf0T z+h9IQglENu5+FKu5W7tPXp2Rbkj+yD1ZBZfv2W803ol8nthIObBdBWo4drrA0UkdWlj Gfz26LJ9zbrAoNygrmzbrdd3duMRIKBOj4849lIfp1l+FNsurP4JSW5EQdKpjAmQkEep OYTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5wOEeEqZxs/53QPFBAeYmLrF3X4waeqXDqE1Qr5s1oo=; fh=F/WCgWJYJJV1zGCscz4uNe5JdMCiMON9pBZ9NZfJiRo=; b=cjGxEdiizCKirVp2ReCgFJSuptFaJPEm+ZVLsSCsrq0JyFfVuSbuq7HxcBU+Da9lQJ OYyaOXNKiSr1czY+YMbj/UmoJnpHxOHJMTDiqhH4N1HceKqV7rrw3mc8pB8Tr8ZezlrP JYfYLgGnTgKu0d4RWKdtf5xzX/EakbIL2mfWNlZA2QLlzm88BacN60eMxK88ArzUf/t0 8KBO6oqN1gI47Coy3oS8c5HlEn/QkF808PZWQ0v9l80u6/3RdGIHpxyzzlO1yd0QR15x X4ZzWSq7whai/2vqt/iHIqNWtgjpCT4sAN1+xMGzEFegbt3HytXer/a7hYEobfaFGVud qEgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K4Fk0wgl; 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 x12-20020a1709027c0c00b001b55070e154si14776649pll.96.2023.07.03.00.35.33; Mon, 03 Jul 2023 00:35:46 -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=K4Fk0wgl; 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 S230263AbjGCHUv (ORCPT + 99 others); Mon, 3 Jul 2023 03:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbjGCHUt (ORCPT ); Mon, 3 Jul 2023 03:20:49 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB957E42 for ; Mon, 3 Jul 2023 00:20:47 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-19fa4346498so3549364fac.1 for ; Mon, 03 Jul 2023 00:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688368847; x=1690960847; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5wOEeEqZxs/53QPFBAeYmLrF3X4waeqXDqE1Qr5s1oo=; b=K4Fk0wgl41urJ973GedutT6AJySQVRpM7IEAeH1DL3A0K5cftuzCamKRTB9DPS99mD nA2nj+JvCX7ToqPkiXrqneN0AFk6tdTwfutFdtsVKkSIPottw7M/tR3AATLz4IgyfIl5 3uIT+BmwDiCixsnU59nodSwDjHwYO1qhwePVV9/5uIAGIE8HgjGzSORacDRfTQN9o+A4 RK189ThZg7KIFV/i1sqW4r2TYZBTb/6fmGM/KM32273ABzhuloTOaX+mqNyy/elVoy8H x0NV4f9dVSDnPrOCSmBeOuSYdtx92ccMK5jyz2fExYMyn5NXHnQPrd9uQwVYLUOJFjPO p98w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688368847; x=1690960847; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5wOEeEqZxs/53QPFBAeYmLrF3X4waeqXDqE1Qr5s1oo=; b=UQzFBPsDjS08fjzhXzmCFa8PxEumyRvUNt2n6q5VvA9l5nfiADpGcFKzm0NtGL34r+ ljsX+tLZOIHXxDJ3ccFHqBAIMHuxfVFUclKQIsV4FhYvsyrzblDyad7Dxl1GW3sL2ELw ZK2tl86ayl0O5RwmuqpaG9VImgVohFe+Fd+XqhGn8cvTlqik/tc7JWQDs0LuG2ir2npt /sIQ5ZqO2l39w10JHVK5PBZcxpsXRVy7cvsoMHUu5voQASWSoahgngtqISjNBfAlaoWP LSsTEAcS0czz+OZB94ziNA6K84UU2dVVezJdqdo/SJvRMpFodDW9eyzTr8Q8GTAeFrj5 lH3w== X-Gm-Message-State: ABy/qLYmktBoK6jtHwuOlag9xjALOVymwQfWQDR1TJ6WcHqCJQl/yS0y J1/WnpHioJPbjDz5xm5OPKglo2E+F1ZQNh3wbYXQ7A== X-Received: by 2002:a05:6870:f150:b0:1b0:3771:736c with SMTP id l16-20020a056870f15000b001b03771736cmr12943732oac.41.1688368847232; Mon, 03 Jul 2023 00:20:47 -0700 (PDT) MIME-Version: 1.0 References: <1687955688-20809-1-git-send-email-quic_mojha@quicinc.com> <1687955688-20809-9-git-send-email-quic_mojha@quicinc.com> <58a26b9e-a48d-d567-c310-193a2c52521e@linaro.org> <5447f9f8-55b4-8bed-66a6-1c9d62b02c79@quicinc.com> In-Reply-To: <5447f9f8-55b4-8bed-66a6-1c9d62b02c79@quicinc.com> From: Krzysztof Kozlowski Date: Mon, 3 Jul 2023 09:20:35 +0200 Message-ID: Subject: Re: [PATCH v4 08/21] dt-bindings: reserved-memory: Add qcom,ramoops binding To: Mukesh Ojha Cc: Rob Herring , corbet@lwn.net, agross@kernel.org, andersson@kernel.org, konrad.dybcio@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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, 3 Jul 2023 at 08:22, Mukesh Ojha wrote: > On 7/2/2023 1:42 PM, Krzysztof Kozlowski wrote: > >>> 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. > > If you go through the driver, you will know that what it does, is We talk about bindings and I should not be forced to look at the driver to be able to understand them. Bindings should stand on their own. > just create platform device for actual ramoops driver to probe and to Not really justification for Devicetree anyway. Whatever your driver is doing, is driver's business, not bindings. > provide this it needs exact set of parameters of input what original > ramoops DT provides, we need to keep it in DT as maintaining this in > driver will not scale well with different size/parameter size > requirement for different targets. Really? Why? I don't see a problem in scaling. At all. > > > > >> > >> 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. > > Please suggest, what is the other way being above text as requirement.. I do not see any requirement for us there. Forcing me to figure out how to add non-hardware property to DT is not the way to convince reviewers. But if you insist - we have ABI for this, called sysfs. If it is debugging feature, then debugfs. Best regards, Krzysztof