Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1058771pxj; Wed, 2 Jun 2021 19:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7onnt6QFuXdo0doTJ9/GNqdAPgexYz44gTi+4T//UBcol2BEXtY7w6cfD8hlL7whBa7Hw X-Received: by 2002:a50:8751:: with SMTP id 17mr32339461edv.340.1622688386214; Wed, 02 Jun 2021 19:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622688386; cv=none; d=google.com; s=arc-20160816; b=c/VCIPRg79SmuinDvrBE3j/ToAYUNmDGX1unrzqj3rTMEdTobqdvYqwK6FbI33TrsO orykfjvYVA3HI91eMMqfVYJFxpr/JAeqX+8eCXW2KK0MyIh5HydVLWVa8nBvX+m6x3Ay HDCS71mF8S0QALMFcKiN+Xa8ezApQV7hCELum1qhXppMDcMrtBE76jP2avMxqw2hw9a8 OQdDXvM4e3JmxFDxaV6V7mUraiYc3hjrAPiqfXS0H1yUd+N1u6Ud8koGh8FHpIoLX8YF KV3qsvHWKNCe7tM2Dbp0wVkfbtVvVS4tMYjAm96rUibL/JbqGX2RmG1N1w4MXYvP6Ukk TeUg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZZQYKNjkzbXDm9CIMxGhmOJ08FkC41qsAMnb0o1Bjxs=; b=ktTMaBEleDVpbvVAqjjhb3BnNnKOtclQHpg1rOXIXevRfxMRg3pvnvdJCodMUfaj6E rGF4j3apr4ECz6e0s7pcGhECcSH2VqR7POh6BdsrA1MbzQhKg+NNGHlTZTUrE6jZOxYo I36L/P450zCjJSCSQSQouuHLotHua+YsUIicqFHlqPC3NwrXpV+UVr5Gsmv1aw2tX+6y UMG3/oi4Y13Bp7gbK4EyhybXb2Lga6j7zdNL9YazT+TiGHBmdiHIgZXukhRUS2VH7Zpl h2DIK+hOF1l459w7AJVX6KHBGBY0qKpSK/RVBgEocsP8r+AbPlN+y0La3KjGS0qxD0g3 nzLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RgmSNlHK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n30si444403ejl.424.2021.06.02.19.46.02; Wed, 02 Jun 2021 19:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RgmSNlHK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229625AbhFCCqq (ORCPT + 99 others); Wed, 2 Jun 2021 22:46:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbhFCCqo (ORCPT ); Wed, 2 Jun 2021 22:46:44 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B12BBC06174A for ; Wed, 2 Jun 2021 19:44:44 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id f30so3537562oij.7 for ; Wed, 02 Jun 2021 19:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZZQYKNjkzbXDm9CIMxGhmOJ08FkC41qsAMnb0o1Bjxs=; b=RgmSNlHKZ4fxhOVgzUIKQnKC6KAXoEYn2tb6HQBdFU84JbJrOkZ5dz4BlNToJLPlKS mcF9s+xJzVC3oKtTR0TshLDyHMTrAogZ1+DlIJ+4Gu4wzhgAW2nYqsOjudeh/0Rcye7R P6lH7cd2Z0BgP/houfZYs3LAv1w7lR4Nj2mGj8Vao3+7x8QlrKAiRqtpJ7qhgD9l3WxE Z4UFAg4TFDt01v1w17duqgAQaJR9RTa993ESYgM5kqSCJoKSigvEUZi5bbiufFv4yvY2 h7aobkWFvg4wi6hHGNGNW9/HjPxE1Wc0LiAtBNrnJ0Bvr81akcULkAjUYq1QCcEMdPMA 6wcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZZQYKNjkzbXDm9CIMxGhmOJ08FkC41qsAMnb0o1Bjxs=; b=JBYpLTU1EN/fEJNGnjfO1E76dYv73Q1XQihyyiuv0yI9LBmCd+z9aMzFe3zooW4k4o odHQkh8+hGKqallWLDvhXzpkU1iKiaVh8hMhLOAj9Xbx3Ahm5vdhcSfCYfzbKxzWQG/a sZq1xiho5wg374QHPNCJhjXqKEsYtbXGDiSjnntOBkqLoARY+RwefKR8oxDrXh3O3jQ3 Qy9l2JgZjdqWFQoC9XQFnru8tqF1RFRew1b3QPXf8mqdY4btuggt9XvPj4SyGfeOvOQn 5Z6S/UGHAmwp4rqWRVkTWHmw6SMudDqdivwLuxDUwD6A/ywBG8GhMUavz1FP2ISIDrMr wyFg== X-Gm-Message-State: AOAM531XV+SMl9Anoib+6XOzsybzWMQr3M2e0kq64XC0PR1JLttDS121 cl6P5flp+FNRNbyRT5AA3aQ5cA== X-Received: by 2002:aca:4bd6:: with SMTP id y205mr6134307oia.5.1622688283169; Wed, 02 Jun 2021 19:44:43 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id v8sm410008oiv.5.2021.06.02.19.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 19:44:42 -0700 (PDT) Date: Wed, 2 Jun 2021 21:44:40 -0500 From: Bjorn Andersson To: Stephen Boyd Cc: Maulik Shah , evgreen@chromium.org, mka@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, agross@kernel.org, dianders@chromium.org, linux@roeck-us.net, rnayak@codeaurora.org, lsrao@codeaurora.org, devicetree@vger.kernel.org Subject: Re: [PATCH v8 3/5] arm64: dts: qcom: sc7180: Enable SoC sleep stats Message-ID: References: <1621596371-26482-1-git-send-email-mkshah@codeaurora.org> <1621596371-26482-4-git-send-email-mkshah@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 02 Jun 19:26 CDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-05-31 10:57:03) > > On Wed 26 May 18:30 CDT 2021, Stephen Boyd wrote: > > > > > Quoting Maulik Shah (2021-05-21 04:26:09) > > > > Add device node for SoC sleep stats driver which provides various > > > > low power mode stats. > > > > > > > > Also update the reg size of aoss_qmp device to 0x400. > > > > > > > > Cc: devicetree@vger.kernel.org > > > > Signed-off-by: Maulik Shah > > > > Reviewed-by: Bjorn Andersson > > > > --- > > > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 7 ++++++- > > > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > > index 6228ba2..889d04d 100644 > > > > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > > @@ -3215,7 +3215,7 @@ > > > > > > > > aoss_qmp: power-controller@c300000 { > > > > compatible = "qcom,sc7180-aoss-qmp"; > > > > - reg = <0 0x0c300000 0 0x100000>; > > > > + reg = <0 0x0c300000 0 0x400>; > > > > interrupts = ; > > > > mboxes = <&apss_shared 0>; > > > > > > > > @@ -3223,6 +3223,11 @@ > > > > #power-domain-cells = <1>; > > > > }; > > > > > > > > + rpmh-sleep-stats@c3f0000 { > > > > + compatible = "qcom,rpmh-sleep-stats"; > > > > + reg = <0 0x0c3f0000 0 0x400>; > > > > + }; > > > > + > > > > > > Does this need to be in DT? Can the sc7180-aoss-qmp driver use the > > > aux-bus and stick the sleep stats device on there? > > > > > > > The AOSS memory space has N chunks of "message ram", one is used for the > > QMP protocol (presumably the APSS specific one), a different one is used > > for the sleep stats. > > > > I presume we could have come up with a binding for the entire AOSS/AOP > > and then describe (either implicit or explicitly) the QMP and > > debug-stats under that. > > > > But we'd also have to come up with the same container-device for the RPM > > case. > > Because the rpm node doesn't include this region of memory today? I > still fail to see why we're changing the existing binding and adding a > DT node for this new region that is basically a debug feature. We're not changing the binding, the memory region for the "AOSS QMP" thing was never larger than 0x400. 0x100000 is the size of all the AOSS "msg_ram" regions. We don't have this whole thing described in a binding and we don't have an implementation for the whole thing. If we're going for that we'd need to extend the binding to indicate which of the msg_ram regions are used for APSS QMP and for debug stats on particular platform (either by compatible, explicit properties or as some subnodes). That said, as I looked into my other objection, for the RPM (non-hardened) case it seems that we're actually describing the RPM region. So there it would make sense to describe it as such in DT - but we don't have any other code (that I'm aware of) that would implement the "qcom,-rpm". Regards, Bjorn