Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CD94C6FD1C for ; Sat, 11 Mar 2023 14:29:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjCKO36 (ORCPT ); Sat, 11 Mar 2023 09:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbjCKO3n (ORCPT ); Sat, 11 Mar 2023 09:29:43 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F172658D for ; Sat, 11 Mar 2023 06:29:41 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id az36so5196383wmb.1 for ; Sat, 11 Mar 2023 06:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678544980; 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=QRTQw/9BNhOrTIPyX4pb03o+u72TXJpTw++ksWpJKxE=; b=AXMc1SAbNW422wU9J3c9q6KpO3ZLkxn8NCit8e+a+DGlhQAaR9y/shSptTXRr4svr3 LG59ebc86gv7Hui11jgkIvjHnxtdvJ+Aea4S+hME9bBzzUzqvTvUHPRdecRd7G33F0Ku qN5XLoT8hcGI8vsWmBDd/jUYbdB8DAXCpUxnF8+xq+LgCpBbkezQ6fqAWCa6h3HgCJFR IvkyhbozI8tvhiQ64fqVYM8o8OSF2J2ShS3vGBBhpOU0YUQDRK5+dsKpT/hhSp+OQBZ7 z+NrAlNuQX/hTLJlq6/DRG4NKwCbAu8GzqAAcF0lkAEKCLc1Co+Hq3YAHHbv7Sbq9za3 QUWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678544980; 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=QRTQw/9BNhOrTIPyX4pb03o+u72TXJpTw++ksWpJKxE=; b=tIKoJlRFGa3eKyhhTYFGneYvo6KqkJX3s7KgZA0803Fwa0PlODbH2l1vRxD6UxaIaK 0lGrEzdAvrDE3X226pcm/rj+l1q9JHa88pDys23lQg/mt2//CjpeYuSP7xcUPBom3upk 0EIl//widdqWSvKRPYWhUDph7N7y/TP9FUXmPQPOo2BfO92i/FauownWWxHFQnT11S0C XunQ+l7PTUMYMnoIoYeEtO4hB6lj4oSkFRKKd2BKnoVMy2g5NHkTTYTGvxe6C0xJ8M4K AGsdy5WPiorZRs/pyxE6WHBBSfblNtyw5VbQFqsewSEDkpHiq4jTv61Pm/pW73FYsAPS 3sGQ== X-Gm-Message-State: AO0yUKUxNRQUwWMjUFNG0x+sngeAF0k8vyDfe8DocR+axzIGGABigiu7 8t5P7sjK7l6E6yBzMabKiMnIRQ== X-Google-Smtp-Source: AK7set/Me4mcO4YxTwFEzlYCQWVW7QshBnu/OHpBi11xdGXxyVJ4hYNS6p9PGJKMcJyDXsDRYY6q7w== X-Received: by 2002:a05:600c:5253:b0:3eb:3b7e:7b82 with SMTP id fc19-20020a05600c525300b003eb3b7e7b82mr5779127wmb.27.1678544980037; Sat, 11 Mar 2023 06:29:40 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id p19-20020a05600c469300b003e206cc7237sm3221589wmo.24.2023.03.11.06.29.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Mar 2023 06:29:39 -0800 (PST) Message-ID: Date: Sat, 11 Mar 2023 14:29:38 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v7 6/9] interconnect: qcom: rpm: Handle interface clocks Content-Language: en-US To: Dmitry Baryshkov , Konrad Dybcio , Andy Gross , Bjorn Andersson , Georgi Djakov Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230228-topic-qos-v7-0-815606092fff@linaro.org> <20230228-topic-qos-v7-6-815606092fff@linaro.org> <68a5d81a-5de8-798a-c150-d74c8ad38cb7@linaro.org> From: Bryan O'Donoghue In-Reply-To: <68a5d81a-5de8-798a-c150-d74c8ad38cb7@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/03/2023 14:01, Dmitry Baryshkov wrote: >> >> Limit the number of bus_clocks to 2 (which is the maximum that SMD >> RPM interconnect supports anyway) and handle non-scaling clocks >> separately. Update MSM8996 and SDM660 drivers to make sure they do >> not regress with this change. >> >> This unfortunately has to be done in one patch to prevent either >> compile errors or broken bisect. > > Can we determine somehow if the intf clocks are required for the whole > NoC or just for a single node? I don't think that clocks like a0noc_ufs > are requiered to be up for the whole aggre_noc. Instead they probably > have to be enabled only when UFS makes use of the NoC (in other words > when is has voted for the bandwidth). Its probably worthwhile experimenting to see if the *ufs*_clk can/should be added to the UFS device list of clocks. I hadn't realised we were talking about enabling the intf clocks always but, actually that is what we are talking about isn't it ? It seems pretty unlikely that other devices would depend on clocks named *ufs* OTOH "clk-aggre2-noc-clk-no-rate" may be used across different nodes, seems like a pretty generic name, though still suspicious it is bundled with UFS, likely it is only required for UFS ?!? Konrad can you try: 1. Moving the intf_clks/QoS clocks be contained to UFS alone ? 2. If that doesn't work just the *ufs* clocks be put there with 2a. "clk-aggre2-noc-clk-no-rate" alone added to the intf_clk list It seems wrong to be enabling ufs related NoC clocks unless we are actually switching on UFS. --- bod