Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3523606rwb; Tue, 16 Aug 2022 04:45:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR68bZVyySJUkQzbNTUyH64QaP+A1UbVzM4elgd4YsrhX7HXCpjgwTIr4mCc1611jgHAP9Ut X-Received: by 2002:a17:902:7682:b0:170:a235:b5a2 with SMTP id m2-20020a170902768200b00170a235b5a2mr21654421pll.113.1660650353953; Tue, 16 Aug 2022 04:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660650353; cv=none; d=google.com; s=arc-20160816; b=IoPsp+00aeo0ID1wtuAzzQX690FH/UA1XV0z7tA9gwOfDTr8eNLw3QYv4y56L/KpHA mtRDu/BqouVDbZw3LA3gkmj+AQPlp3EM21V6/IiSI5ZDlzF1c8lSKDkNDk8nPThKICz+ lvYrutM7f/YmBYwG7vtfcSkCnoEBX7Z1bC3SByqCWXlyT6JK9CUHVQ/RsxV3j0tcdmv+ HuUh8fmbRq33G3USpbwCCqbT4Y1JS212eP6DDIVFMImFXr/q2sQBZFANMdV7fze0AT0W M/IGpBQy1zAIJGFwb80qMEwaVPjgaaAZlj422szG+9iTIVZO6M3y3Yjey3ZH7ltGob4e zVxA== 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=CC0I+QyhCl78LNGXSDcokb2Igja0kEp2SAvinKMmolw=; b=wn3mLoF9jon7daPq4B2cyHQ0E2NVmouvCsHWMLJ0z3euym0zK4bjBlMKOC0wVEGfXP FBod9iTGPAbjL+VF1B7dnTJ0zwGX9f09KFjP0OsVt4cEY1kAkEdTRufnxaX+KgIhNkr1 KKVkpOVpG444C0cXBI6oPh9odOo8wBVRuP17eWAkj4eBV8cdqSzvfiSfi6dmQ5YwGmrz MH6A6KVBZcizBW2o5PswYTh899gOnhmPrx4LwClIMsBJZ2WBdJ356P8bQYlHWWu72k40 8AmwPMClKYavqR2Yqov0K4SO311zwmFrYIT3GSsHl/Naxt4l1WhtysdR76yHcLrmdjWY lUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oIdwil5N; 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 d2-20020a655882000000b00412b2911bf7si14151369pgu.198.2022.08.16.04.45.42; Tue, 16 Aug 2022 04:45:53 -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=oIdwil5N; 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 S235081AbiHPLFl (ORCPT + 99 others); Tue, 16 Aug 2022 07:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234722AbiHPLFN (ORCPT ); Tue, 16 Aug 2022 07:05:13 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3777BD5EA9 for ; Tue, 16 Aug 2022 03:30:53 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id r16so2864302wrm.6 for ; Tue, 16 Aug 2022 03:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=CC0I+QyhCl78LNGXSDcokb2Igja0kEp2SAvinKMmolw=; b=oIdwil5N6ek5uKSZgnjVAREcevTGeVp8vs/IUDYbqm1xSpyJDNbt69srWRT6oBdBxz /VLUHr0lFB2q5HZ3fS7K1cltoi8knDjQkfqECjrY+dl4xc5s1KBn3Uz5Np6gC0eOmFVl e68cazOb6z5hTOGDvlBRGMzTeLNgJhVgcfq+gApoomWMNBdmrE+Qz8SWj0OtvpqFFYYD FftV4YD9V+gHoiN0yXyXxF1YHWvvC9g38yulx7A7wjhDe47fp/qnS+Zgflom8NRx/Dri aAvCPyNpbLrydjojgGcsB7K4ws4E+h/DwogtbYwrGrA1hp9H2vgcvGq5gqzv38JtS6cp 3JNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=CC0I+QyhCl78LNGXSDcokb2Igja0kEp2SAvinKMmolw=; b=ptDsYmB5I6nl5+2RqdwBmULKAk69mxyKNIkL7FR2Ih9HOrCpn07kDNh2hHOK7n2TdK uc/cGoFiTEqJDDe3QAXmunO2J9eIc+ZGGqhiuY+8ld9fcZqU81BVgBShhTizBqGNOOJi DOUpRcij4VZBx5iLwdVVcKf7cfu53ckVyKFM8zS28zZYYevTHwsMV37W6kFdPobSwqF2 AuIGz5rIVmrCwphKQ8P126XX/Nn3LiOCS//vBEr95KG5Pq8piaNog2yxFeFMIqKIs3aY bxpU/OICloN8DYhEcXrZ1hBGDWWlb0m5rCfSsW6flUWVpHSSS/3VdpHfcGJXLiZ/6kfM +uAw== X-Gm-Message-State: ACgBeo2Xw1Fu56v6xj4GXbsK27aj68bDykfO8jr7NoJ6IV7Y+5orgmBT VGq+/58E1Au0x6SOpoV8JRcf6Q== X-Received: by 2002:a5d:4205:0:b0:223:654d:a2f8 with SMTP id n5-20020a5d4205000000b00223654da2f8mr11417330wrq.114.1660645851944; Tue, 16 Aug 2022 03:30:51 -0700 (PDT) Received: from linaro.org ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id j15-20020a05600c190f00b003a5f54e3bbbsm7494134wmq.38.2022.08.16.03.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 03:30:50 -0700 (PDT) Date: Tue, 16 Aug 2022 13:30:49 +0300 From: Abel Vesa To: Caleb Connolly Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Maulik Shah , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH v2 3/4] arm64: dts: qcom: sdm845: Add the RPMh stats node Message-ID: References: <20220812101240.1869605-1-abel.vesa@linaro.org> <20220812101240.1869605-3-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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=ham 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 22-08-15 21:34:07, Caleb Connolly wrote: > > > On 12/08/2022 11:12, Abel Vesa wrote: > > SDM845 is a special case compared to the other platforms that use RPMh > > stats, since it only has 2 stats (aosd and cxsd), while the others have > > a 3rd one (ddr). > > > > So lets add the node but with a SDM845 dedicated compatible to make > > the driver aware of the different stats config. > Hi, > > I gave this a go on the OnePlus 6, I noticed the driver is also meant to > read the stats for remote procs via smem, however this seems to fail for me > - it can't find any of the SMEM items even if I probe the driver manually > after ensuring remoteprocs have booted. Is this an unsupported feature on > SDM845? Thanks for giving it a test. Actually, you need to probe the qcom_stats after the remoteprocs have booted. Doing so, you'll end up having the following: adsp aosd cdsp cxsd > > > > Signed-off-by: Abel Vesa > > --- > > > > Changed qcom,rpmh-stats-sdm845 to qcom,sdm845-rpmh-stats, as suggested > > by Krzysztof. > > > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > index 5bea96a9ce06..67fe08b837be 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > @@ -4851,6 +4851,11 @@ ebi_cdev: ebi { > > }; > > }; > > > > + sram@c3f0000 { > > + compatible = "qcom,sdm845-rpmh-stats"; > > + reg = <0 0x0c3f0000 0 0x400>; > > + }; > > + > > spmi_bus: spmi@c440000 { > > compatible = "qcom,spmi-pmic-arb"; > > reg = <0 0x0c440000 0 0x1100>, > > -- > > 2.34.1 > > > > -- > Kind Regards, > Caleb (they/he)