Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1751285iob; Fri, 29 Apr 2022 11:58:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1eWJ1CP14UIC4dPNjJ/+KVTdRuTWGBtz4hxt2GJPINMVibV9sovkxXiqwhomA7RG/4z28 X-Received: by 2002:a05:6512:3b09:b0:472:24ea:a671 with SMTP id f9-20020a0565123b0900b0047224eaa671mr459944lfv.292.1651258688848; Fri, 29 Apr 2022 11:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651258688; cv=none; d=google.com; s=arc-20160816; b=angU7J/Ou02W2GhV/2CYoWF/gJFWF2WHGaXh5Tub8HqaWfsXZgh6PLixYq+6Ry1umR DOZ9nlkGb1jkU6pcFuBoHSd6iC0OdP4Vt0tlYyioqsH5jrlOVQaLYTxn71JYYoWpaUp6 lwNC90UDhloETonBzipf/4OhQfm7IWzEV0BU0j2WxRXpOQURYHwu7J0v76Vx4A7sDzwI 9rezFCjMmaZ0ILA8102GQanmaYOuiiEg7V6SZl9sxGE3z6VxiAzf6J4y3eR6qoE1rMu8 O+kcPWh88hUT3R+/3fvxV2Klhl3pode64Jfxh5Z9PuK8yVapUHy+g1dIder4LfupgYYw ndEA== 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:to:content-language:subject:mime-version:date:message-id :dkim-signature; bh=HLoub+h1hf/YTJ0X2IQp8xXHJp7y+NgCl9v20D02CWw=; b=Zho7onyklqsUzv4z2W5fCXfpAuXB5ucn7OQ9Yj/MVjJZhMNs8VqB3UpQtL1W/gQREF Onb+48/ADhw0pcSJSlPChsnEMlkVWUw5Ia8DGQ579utvqBSzfqodFyRIEmH28O1vYrKH o/opkgdOAJsxNzmd4JKWpTsbCSgWpQIsOh5h88xQrgSmjuj5cHwbgSmAgava2SNQaIMX SL1w/FnjiGKC7Zyw24uJzoKPERfbgU83ELxQ0OpZBdMiVtoeLSSzqpyJFm3hg2S60viI mUfRL3FKShqljEXyozmVvnyx3SdTRnbuTett/cQfdsL3MlEVWnJAKeOASF3TnrueFa1d ClQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=evVFGsSg; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5-20020a2eb285000000b0024f0c980116si7250529ljx.563.2022.04.29.11.57.39; Fri, 29 Apr 2022 11:58:08 -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=@kernel.org header.s=k20201202 header.b=evVFGsSg; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235086AbiD1LYt (ORCPT + 99 others); Thu, 28 Apr 2022 07:24:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345588AbiD1LX4 (ORCPT ); Thu, 28 Apr 2022 07:23:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FD5A55371; Thu, 28 Apr 2022 04:20:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 08A2B61F41; Thu, 28 Apr 2022 11:20:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 176E4C385A9; Thu, 28 Apr 2022 11:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651144841; bh=TY47/0/sbw4f9kkF8QnQ8nbEpKwxiWT9PmOLyB2eupo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=evVFGsSgkLC0lENLdtt85BsdKLf2gH3q08LxuD8/MfP6HK2L4V/1egXXfyB+cLbDx OJ/z9JzWW087ZqQV9V15lxzkj0XT78enOk5292msRqO1h1F8VwUAxL3DTTMO1iq/ah 9A6JGeyrneYBCcMNIOyAGpoO0fiNSI2AQLIQdgPVoQUhqh4xDtemM21Ej1AwsXTUl4 Y1LQMNiHXnL7UsXLsAlX2MH9vpQi/lSMOrmdg0hjrkfB8e89dYuJjtzaiZGlbCkP6u hLycJ5XdnOxJcRB1zbZF7a8B9jlS4hrZmwqnw47dB1lA3p4vPsiLtTNp28/+hPk55P kywp9Z8wSxG2g== Message-ID: <837facd5-2b8e-2bad-6b62-9550656a2dad@kernel.org> Date: Thu, 28 Apr 2022 14:20:36 +0300 MIME-Version: 1.0 Subject: Re: [PATCH] interconnect: qcom: use icc_sync_state Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220427145616.523557-1-krzysztof.kozlowski@linaro.org> <4769c796-6edd-c23a-ee2a-ce54495548f7@kernel.org> From: Georgi Djakov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 28.04.22 13:23, Krzysztof Kozlowski wrote: > On 27/04/2022 17:34, Georgi Djakov wrote: >> On 27.04.22 17:56, Krzysztof Kozlowski wrote: >>> Use icc_sync_state for interconnect providers, so that the bandwidth >>> request doesn't need to stay on maximum value. >> >> Did you test this? In general, we should not enable this on boards that >> do not have full interconnect scaling support in consumer drivers yet. >> Some of the interconnects could be enabled by default by the bootloader >> and usually later during boot the consumer drivers request the bandwidth >> that they need. But if the requests are missing, the interconnects >> without bandwidth users will be disabled when we reach sync state. So >> this may (or not) cause issues... > > I understand, thanks for bringing this up. It does not look like an > issue of interconnect provider but instead consumers and DTS. It's not > the job of provider driver to know all possible uses and DTS files. The > driver should expose itself and if platform is not ready, should not use > it by not enabling the interconnect. It's a job for DTS, not for the > interconnect provider. Agree, but we still need to make sure this is tested and does not introduce any regressions at least with the DT that is upstream. > Imagine some out of tree DTS which cannot use interconnects because we > assume that all users of that provider are missing bandwidth requests. > No, instead provider should allow anyone to use it. I have an idea to introduce a kernel parameter like clk_ignore_unused, but for interconnects. > I understand my change might cause unexpected issues, but it is still > technically correct, just maybe should be followed with disabling in DTS > the providers without proper consumers? Not sure that enabling/disabling stuff in DT is a good option. DT should be just a description of the hardware and it might not be updated as often as the kernel. Thanks, Georgi