Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3534587imw; Mon, 11 Jul 2022 10:24:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v92f6lbqWNFZz/AW/+OAEPu6Feep0PWKzVuxq9/6OUg2DxSYSZGw+GS2PXAbcmkMFLAQDF X-Received: by 2002:a17:906:1ca:b0:715:73f3:b50f with SMTP id 10-20020a17090601ca00b0071573f3b50fmr19239511ejj.374.1657560245558; Mon, 11 Jul 2022 10:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657560245; cv=none; d=google.com; s=arc-20160816; b=TIyoqvmvXr6Xc7cdmvZ0UjF54t5cr6hSATYd2C82UYyskLfZkj7YiqZC46Z3oddMfr u0mbMP7w68gqQo3MKw6RRQuxG3HIxtv2d8y+RuPsIsEWZSALw5y2yxaCpXH4B4vrAHqO jBXykjH/6evFspyNoO5C6InTWx3IsQzMFlXF1MYZ5IwXTn9Kog2M/FjYsAfilQxqtJ+A a9qRyjY5MbgdXXw0R2hKyXpsKpydzOjX9RFQ44BxUc1RJTuZSQkJTq6OuEVMKk7ctRUx TwSmNEE33lLkuwE1xa936eNawM1GueRAPoogX7wDcvHcZZyAzy9QFtpSudmhFX2S97uW ousg== 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=2oGQ+ONlYu2z0EcMsw9mPFx7mA9Wfsck16Ecgb4RiZs=; b=igtBDymGniA/NS+uilw+FAFPxdKP750Nv3MD3hsDzHmQyJw7dgLAYb5mBbQn19O50w 3DYTAownKB6w43o+aN7zzHTphk/maayco8AsgNVKpaDjkOW5cWQg58n9YwPWrMI92dti edSepJ1EcxzonnChgT/LolpRWyRKzwoQXJFpoUPmeyCqi71H7aFI18X6D5WGzxYPsJt5 dNeHHgruiyvocch4k0p1PzVILA4+bTU0iQg7VyXvsol3oglALz8HICFteALtwsRWF+GW BCfCJqsD1X8+KsSFkGotlRmRDPphmEyKi0WLTuqguePbqTNX8vf8iJ8uIOunYZ2s8cO7 dS0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b7Zr6+hM; 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 d11-20020a170906040b00b00726efe5b919si9100183eja.806.2022.07.11.10.23.40; Mon, 11 Jul 2022 10:24:05 -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=b7Zr6+hM; 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 S229908AbiGKQkz (ORCPT + 99 others); Mon, 11 Jul 2022 12:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiGKQky (ORCPT ); Mon, 11 Jul 2022 12:40:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2154F2F3BB; Mon, 11 Jul 2022 09:40:53 -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 ams.source.kernel.org (Postfix) with ESMTPS id D5F00B810CC; Mon, 11 Jul 2022 16:40:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 812E9C341CA; Mon, 11 Jul 2022 16:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657557650; bh=/Lw4Q9soP+EcCVd0Sy1C1VtqWV7sCe+lIMQS2/XUllM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b7Zr6+hM3Unc0j6Z1ocyilCLS89BjJccdJVZp4QSrUFOdjzclrd8k1RvJkL+LUoa4 z/ekQUcZQJFTsZUyOTz/SUXjmedvbIewglgXTVqtbUK6Ve5ucflHQBA8x2/F3X1D4x V3mranynsaHvXZ/VX6YYGfukLuvoZ8NKyZ2UUObC3s27jIMBJV40fYyHazTXqx/1Gh hCEchTC7dRnLtqaFA6SgwmAR7qLB80aYdt02GHOHghzd2LZkR8GB5f+N7cgmithXuR Y8IJhk5D8eXBta4lszqfqaBwnW9uFdHYenPtsjmssbpe/Skr/kqJojcOho2TDiyM13 3pEAlKT6+06NQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oAwSo-0000sn-9N; Mon, 11 Jul 2022 18:40:51 +0200 Date: Mon, 11 Jul 2022 18:40:50 +0200 From: Johan Hovold To: Viresh Kumar , Bjorn Andersson , Manivannan Sadhasivam Cc: Chanwoo Choi , Dmitry Osipenko , Jonathan Hunter , Kyungmin Park , MyungJoo Ham , Nishanth Menon , "Rafael J. Wysocki" , Stephen Boyd , Thierry Reding , Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Krzysztof Kozlowski , Bjorn Andersson , devicetree@vger.kernel.org, Dmitry Osipenko , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Manivannan Sadhasivam , Rob Herring Subject: Re: [PATCH V2 00/13] OPP: Add support for multiple clocks* Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,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 Tue, Jul 05, 2022 at 12:30:03PM +0530, Viresh Kumar wrote: > Hello, > > This patchset adds support for devices with multiple clocks. None of the clocks > is considered primary in this case and all are handled equally. > > The drivers, for multiple clock case, are expected to call dev_pm_opp_set_opp() > to set the specific OPP. Though how they find the target OPP is left for the > users to handle. For some, we may have another unique OPP property, like level, > which can be used to find the OPP. While in case of others, we may want to > implement freq-based OPP finder APIs for multiple clock rates. I have decided > not to implement them in advance, and add them only someone wants to use them. This break OPP parsing on SC8280XP and hence cpufreq and other things: [ +0.010890] cpu cpu0: _opp_add_static_v2: opp key field not found [ +0.000019] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -19 [ +0.000060] cpu cpu0: _opp_is_duplicate: duplicate OPPs detected. Existing: freq: 300000000, volt: 576000, enabled: 1. New: freq: 403200000, volt: 576000, enabled: 1 [ +0.000030] cpu cpu0: _opp_is_duplicate: duplicate OPPs detected. Existing: freq: 300000000, volt: 576000, enabled: 1. New: freq: 499200000, volt: 576000, enabled: 1 ... I just did a rebase on next-20220708 and hit this. I've narrowed it down to _read_rate() now returning -ENODEV since opp_table->clk_count is zero. Similar to what was reported for tegra for v1: https://lore.kernel.org/all/58cc8e3c-74d4-e432-8502-299312a1f15e@collabora.com/ I don't have time to look at this any more today, but it would we nice if you could unbreak linux-next. Perhaps Bjorn or Mani can help with further details, but this doesn't look like something that is specific to SC8280XP. Johan