Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2025249rwb; Sun, 15 Jan 2023 08:03:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXtuZqg05UgG3/igfZIHsfMJxJY+PL4nugQqfFa2GVh4nGbHMvgOnHsFi4tz3LXOgnUTK2FR X-Received: by 2002:a17:907:9a0c:b0:84d:4e4f:1f85 with SMTP id kr12-20020a1709079a0c00b0084d4e4f1f85mr23407892ejc.59.1673798631579; Sun, 15 Jan 2023 08:03:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673798631; cv=none; d=google.com; s=arc-20160816; b=tVDlsGSjCMUo8ly3xia5lNX+Oy7oViZUOz8OpMC2+T8oNkYmXGSYjBuS894tZ3zrps rXTFswisdkwEn6RW3TZUpLMsdazrPJSfv4lmVaCpuq2kX4GOzXVngD46e6yBIV8lpIFp gavvqb8pIBkPX/EPhaPIiVoD8eAClMJq6LBut7xKPcLuIDgtgu6SwaR9UuBoHchHqnnw /WZX61OeZpsqKLGrJyCOWqFBLtMw+xezBBy9uGzC3mgcn4MMFcPmU7nxvYw7XgUn7A65 g392k41znVi12VxebGQEyttI5xMaJyzLXJCeabceasj6/5TwJBl0bWFEUzxAuPfbDBeW uGOA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=aFcwOmEFlKwz+PgBDJg3oPEza0ShiNrJoHvCTAjQ6D0=; b=x1xS0wOTG3d+dzhX9RC1QJCsQduAiJfqnYcmZiS1vvdolhYgkKLgwmz2LNAiCfkL9q AsTxEdzstqg2VegaUyqPPyJgB1/Mlp13bD4B8nCWranMI80J8cG3RKU5NgvUbRSq+XRa cqa6GXEmRJ3IlVxETh/6o5UulEqz1rJMz4fTFBXG1AnPy4yZ3kJJcdNP70lBAOhfvpnx Y8wKXkLXyTI+TG2lwn0EIP1aADC5xrjaag8DphWS2OkYS0dW4eCkcUqOz6Grv249PXx+ ic8UiP/LlhDBYfAmFGbOnvqyoHLo+bDvTSgBkzZ9IMISVa/tblPZFBZk3rdZ6NBitSLF Sa0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u5MeUGD1; 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 hp18-20020a1709073e1200b0084cf763ac0esi28556081ejc.158.2023.01.15.08.03.30; Sun, 15 Jan 2023 08:03:51 -0800 (PST) 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=u5MeUGD1; 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 S231346AbjAOPNt (ORCPT + 52 others); Sun, 15 Jan 2023 10:13:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231241AbjAOPNq (ORCPT ); Sun, 15 Jan 2023 10:13:46 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27FC8F768 for ; Sun, 15 Jan 2023 07:13:44 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id l22so32999479eja.12 for ; Sun, 15 Jan 2023 07:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aFcwOmEFlKwz+PgBDJg3oPEza0ShiNrJoHvCTAjQ6D0=; b=u5MeUGD1SllOGGSGeF0Ev6qqHPNz8QOA87zzGYt0CikM0TX9RbBDUdxzGXGov+KrSz /sAWYXqTulK7wz3AHsnsxRrUAtt9Czrg/Uio30iZp3W6q2f9Q/UDxS1n1wWn0nq0efoI TVXOiWyEPV4CdpJvDJnaDnqEHWhay/21Fk4TS57l2L7ai2BZACO71+ztpRj5Xrh/SdU5 fHnOV9N+YJZAGCA3+5I7h/Xrzn4W9IYiG1VvX5lmeLQXILvOFSYq1M0cSvK9NOBDx0U8 A3+XXIkZpuLFZxlGDs9JxLvHFbU80lA0NxoEGmXIOaKN7yeraJnRcn7YTNVxk3HPKGQX wyng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aFcwOmEFlKwz+PgBDJg3oPEza0ShiNrJoHvCTAjQ6D0=; b=OtXmk1WhbbVxAQJyppqe6aWoRj2sJi8+aY/y4L5S3rfHCB0uv920LgRWTXts6B6VPG yYKU9+9k6wjk6wdtQfZHHabqhpKZfFORVEGxTQWDrbtBdlv4pmRKuEGe1i15XZXs63H8 bKyE2HWdb5REZeRf4yq3WHx9XDLKJmUEPwcbyMQ/n0M8vtGVrYhzL0ynFrx9rzTwNk2r l2KsTwYnoVHZtj3lCHYoGxWFg398qGE+K/IsaMwufzd/bD5Uhw17V3HRO5bF4FcQRypA 2sD8jO9w9jVPDOuSGCTRnyseV1goaBqa83qMpBtqiOH+1KoyNu3P2/4xShBGZt9h926j BbmQ== X-Gm-Message-State: AFqh2kplA0N/kfEG7VMo7orisZnmbrZ5n5IF009mXhXIAqLyu7oNop2i eMmMmrQDtmtjdWRX+zZr3eMuYQ== X-Received: by 2002:a17:906:6881:b0:84d:4d6c:a462 with SMTP id n1-20020a170906688100b0084d4d6ca462mr21181417ejr.25.1673795622740; Sun, 15 Jan 2023 07:13:42 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id e2-20020a170906314200b007c08439161dsm10694392eje.50.2023.01.15.07.13.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Jan 2023 07:13:42 -0800 (PST) Message-ID: Date: Sun, 15 Jan 2023 16:13:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 4/4] arm64: dts: qcom: sc7280: Add cpu and llcc BWMON (=> interconnect issue) Content-Language: en-US To: Matthias Kaehlcke , Rajendra Nayak , Georgi Djakov Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Douglas Anderson , Stephen Boyd References: <20220902043511.17130-1-quic_rjendra@quicinc.com> <20220902043511.17130-5-quic_rjendra@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 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 13/01/2023 19:18, Matthias Kaehlcke wrote: > Hi, > > On Fri, Sep 02, 2022 at 10:05:11AM +0530, Rajendra Nayak wrote: >> Add cpu and llcc BWMON nodes and their corresponding >> OPP tables for sc7280 SoC. >> >> Signed-off-by: Rajendra Nayak >> Reviewed-by: Krzysztof Kozlowski > > I found that with a v6.1 kernel AOSS on sc7280 doesn't reach it's low > power state during system. This can be observed on herobrine based > boards on which the AP_SUSPEND signal should transition to 1 during > system suspend. If it doesn't the Embedded Controller (EC) notices > it and wakes the system up again. > > Bisection points to this patch, the issue only occurs when > CONFIG_QCOM_ICC_BWMON is *not* set. One might think the patch shouldn't > have any impact at all when the driver is not enabled, but it does. > > Debugging shows that the issue is interconnect related. A bare platform > device is created for each bwmon devices, which results in the average > and peak bandwidth of the interconnect link to be set 'initially' to > INT_MAX. The driver is supposed to call icc_sync_state() during probe, This is for interconnect providers, not consumers. > which would set the initially bandwidths to 0 and determine the actually > needed bandwidth. But since the driver isn't probed the initial > bandwidths stay at INT_MAX. > > This isn't actually an issue with this patch, but how the interconnect > framework deals with devices that are registered on the bus, but aren't > probed (yet). Not sure how this would be best fixed. Georgi, do you have > any ideas? Why the device is not probed (yet)? If it is registered, it will come soon during boot up. Best regards, Krzysztof