Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3759789rwb; Tue, 8 Nov 2022 08:06:33 -0800 (PST) X-Google-Smtp-Source: AMsMyM6NiPS+2kBF+tkcjQrOh+++nOLVPyOJv/MdIU4fOpl7gzx2KQ3T0BGuCcjMvdIljQbZhxzp X-Received: by 2002:aa7:818f:0:b0:562:dc99:8a84 with SMTP id g15-20020aa7818f000000b00562dc998a84mr56805188pfi.30.1667923593017; Tue, 08 Nov 2022 08:06:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667923593; cv=none; d=google.com; s=arc-20160816; b=rkjuj/QsnCV+QAZ7nbyVeGG9+b34Hdh/Hk6Ly2tZAp4ARNQomtq7QPevH/YRG2GRPT wtcy7zxwSqmZc8MAg5ChE/CK/8ZAtMXUTALTra5sYVo6mIHKU//o+WdIhBxQ88jTO/bw HGfOc1uh/jLBrP0pF1c80k17KIFCg31ajAt99Pam/vpGS6AOMYqNoCDvkxfD7syDj0lJ A4nb6J/e74cjg7DBoBFnyw9jqBPcy2IK+GmzliK2hyZRrNB51xaYoz9aX0MMN9UQ+N6T YZEvUyiKPU3WRWZpN0kBS+tbCIk2aCqLmkkEcvh1Ssg9hMQW9JUHG7fYQ/udqKVBX+M/ fRXA== 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; bh=yUOx4rGkYrJP8kocXW5Z/J1ndnyOCylI885XIbVmPBI=; b=NuJKyB4fs+7Elq3guD6WfH3dd1Es8OfWYbfn9kBkxRyXzRIsyo4JuFY/WWz0lnzf0Y U4Wxz/4IFyTCwXUcUi68joIDNeQpb00V5SJyDfaheRNM9rW5bevvABddyuZRFSskO2WB QU7Ay4d5SsozxzniHYRpEJYAhp5bl9Qsj+WRN15A1er/39YgP9wqrGGow4ilqykxkPXx fte4m0YRPNnXba2FhwqoF2KbfX2mhZsXLIFU81V2dX22V3dKS1vRWF0YK+bAQS4V88zt 4eKQgEpO4PhIkSM22vTTRebuuyoUhLtbcMsBx/oyY+8l4N36tgG7alhBwYy81wQukqT2 u7RA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm24-20020a17090afa1800b00213587b200esi13038155pjb.189.2022.11.08.08.06.19; Tue, 08 Nov 2022 08:06:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234455AbiKHPpj (ORCPT + 92 others); Tue, 8 Nov 2022 10:45:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233817AbiKHPph (ORCPT ); Tue, 8 Nov 2022 10:45:37 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9053B57B72; Tue, 8 Nov 2022 07:45:36 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8009A1FB; Tue, 8 Nov 2022 07:45:42 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C1B083F73D; Tue, 8 Nov 2022 07:45:34 -0800 (PST) Date: Tue, 8 Nov 2022 15:45:32 +0000 From: Sudeep Holla To: Manivannan Sadhasivam Cc: andersson@kernel.org, viresh.kumar@linaro.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, robh+dt@kernel.org, johan@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Sudeep Holla , linux-pm@vger.kernel.org Subject: Re: [PATCH v4 0/3] qcom-cpufreq-hw: Add CPU clock provider support Message-ID: <20221108154532.dvo3drvvkagkssab@bogus> References: <20221102090818.65321-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221102090818.65321-1-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Wed, Nov 02, 2022 at 02:38:15PM +0530, Manivannan Sadhasivam wrote: > Hello, > > This series adds clock provider support to the Qcom CPUFreq driver for > supplying the clocks to the CPU cores in Qcom SoCs. > > The Qualcomm platforms making use of CPUFreq HW Engine (EPSS/OSM) supply > clocks to the CPU cores. But this is not represented clearly in devicetree. > There is no clock coming out of the CPUFreq HW node to the CPU. This created > an issue [1] with the OPP core when a recent enhancement series was submitted. > Eventhough the issue got fixed in the OPP framework in the meantime, that's > not a proper solution and this series aims to fix it properly. > > There was also an attempt made by Viresh [2] to fix the issue by moving the > clocks supplied to the CPUFreq HW node to the CPU. But that was not accepted > since those clocks belong to the CPUFreq HW node only. > > The proposal here is to add clock provider support to the Qcom CPUFreq HW > driver to supply clocks to the CPUs that comes out of the EPSS/OSM block. > This correctly reflects the hardware implementation. > Just curious as who will be the consumer of this CPU clock information ? Traditionally it was cpufreq that needed this information. But now with this series, it is bit convoluted IMO as the clocks is depending on the CPUFreq information indirectly and not used by cpufreq. Whoever is the consumer of this clock, why can't they use cpufreq information ? I did a quick check and couldn't find the info I am requesting here, sorry if it is already answered/discussed. Please just point me the url. -- Regards, Sudeep