Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2472160rdb; Wed, 4 Oct 2023 02:07:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxNQxfSRFbADDoSo0xY1HUy8zwGkkjz4IzDnLKZwgpCI/IcNvYA6/jR5IwfAG2smKRGkUV X-Received: by 2002:a05:6870:808a:b0:1a6:c968:4a15 with SMTP id q10-20020a056870808a00b001a6c9684a15mr2003372oab.4.1696410471096; Wed, 04 Oct 2023 02:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696410471; cv=none; d=google.com; s=arc-20160816; b=bo8UmduK6g2k1IIYI8+Y8Z6HyEvxJwzANSsj/Su9/B5Fio9VzxOz8iVhMZ58AbZcRh Jzf4qlEZ/11BFuxCYIQmG4GTH6YV+R45sSSmLbpyfFE2rI/Aw1oxl1Wo8gbwqPaUiidr l7ohrRoGFRYdt0uweTzAt/EM3yN/+79zEJgWB8bRSsoNc2lgpRAUFzuVuZWec5ByaOgY EZYw09ha1kZJhj2tYsY++tPjK2E3WHm93uwsEr4OiI8mKNmLmrC1w3T+vxA8NaoZGYwd EpGek2ikbUVpckf40+LXmsVralCxaRCFZPLhmoGRUTCQpk6Ly2KIVcWJP+OYzG9NwXMD GR9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=30QXTNHFmVF6SpQ7YlpsZSTCTRsGylbFUGk24eHz+aQ=; fh=JM/jzNzAnRTL6fpeIBsz/ab/7xUuKrh5aVsRWdKNHj8=; b=ok/3NB6tjUrA7yncx8QuftdUktqST6v4FQpq2XxwjMtr9j6I79wvfvFNJyxzZdK8lq d6N9M0Ucv3cYKZy2FjNKRxBizOvn5YiYatnusewrx0iBw7xUx7WsAAiAV5hWijWvd8U9 SJIMmZLOcfnwmTuuHYe1HwIDyVwticjj7Eab0WYuKkjQLdfdDtfZKWNQaHSgiZGBdkuV yB6Byg8vZU/7SANynolwjB4t1qefv6BQUTbrPnwKBDPRziHpbhPPGEEOgEPTwfSm+nHF 74AvE+TAWJcJDsZIHnRYGanTTbI17quDnFtn4QlnQ4KoQS28y07G5H1I91xF1uyfGeqF ex0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=reY45Im0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id br10-20020a056a00440a00b006910e8e46e0si3320056pfb.371.2023.10.04.02.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:07:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=reY45Im0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 076FF8339649; Wed, 4 Oct 2023 02:07:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241932AbjJDJHn (ORCPT + 99 others); Wed, 4 Oct 2023 05:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241959AbjJDJHg (ORCPT ); Wed, 4 Oct 2023 05:07:36 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A158EBD for ; Wed, 4 Oct 2023 02:07:30 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-d857c8a1d50so1924072276.3 for ; Wed, 04 Oct 2023 02:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696410450; x=1697015250; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=30QXTNHFmVF6SpQ7YlpsZSTCTRsGylbFUGk24eHz+aQ=; b=reY45Im0qe7C1p0eVqG+uAf8Q0mGZz8Tu4etEToNSRtmPT1rjkrQvifGEd7LN6eYIt H2nam9SpXVBMoGWFfJUqcAkyplULzZtIMc9fR/QOzWa4ecHl/Ty3fTSsxBSX5Vp+DJqE 6Tv5Kl8hf5RuZW7Jmhwal20VrDh4yUQ2UfA8p/UN5qUwpeX2tgGLcRa4PikgcI6n/MSq f3a6qO5bLt3x1JGJyZkEPSS8xLAoeHkPTaaDbhd3D+3tk4MQk6z9vCq6Scay5aFIWnql sHoX/gxXm15/swdfTVC1qZegqJ5Yi8I02n0R61MLUjhYD6sX5DtoYdHcQWzPBO/N67+t VwDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696410450; x=1697015250; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=30QXTNHFmVF6SpQ7YlpsZSTCTRsGylbFUGk24eHz+aQ=; b=grQlZnjHpyoYp6dFzTBolz0cfC3q7EWQGPOE9wqS7XY+fMJt/orWp0eqZzKKlnCE7o AnVAeBFlcv0keBgpE69+pqyU5VIIfn29CV8Ka8gyeJPslE9vPsbUifvd9uC6tOPnCthw ashUqL86jMAQS7W388OMvueQ34DbCMBJ+bfU5WbCk+8ByOIa9bfVV/l03rOVuKFsmJTQ N/1OIcG81U5uY2/wD0B+GcSalea4IJzMJkaPtaErbCeIeAFXuKmNVpF7GJSYHD0HClGk eCxMSGGDwdHIl+TcmXx1c1O/d68VhiXcnKJ66vZPL7OwQFpGi+MVsIJtyVEhrbnRbVaw C5ZA== X-Gm-Message-State: AOJu0YxHm/oKuST6BqqE+D2/rudo9aTvLW0YqIfjQNB6/1mkXI+gQkWI v29ZPvfDvIajUkJDY4LgGGblQh0h86EfIvXhcIJh4g== X-Received: by 2002:a25:dbc2:0:b0:d84:90c5:4e1f with SMTP id g185-20020a25dbc2000000b00d8490c54e1fmr1433778ybf.63.1696410449825; Wed, 04 Oct 2023 02:07:29 -0700 (PDT) MIME-Version: 1.0 References: <20230925131715.138411-1-ulf.hansson@linaro.org> <20230925131715.138411-7-ulf.hansson@linaro.org> <20231003082322.cmok766jxzftsgrg@vireshk-i7> <20231004050427.e3aalotrtpvld6rk@vireshk-i7> In-Reply-To: <20231004050427.e3aalotrtpvld6rk@vireshk-i7> From: Ulf Hansson Date: Wed, 4 Oct 2023 11:06:53 +0200 Message-ID: Subject: Re: [PATCH 6/9] OPP: Extend support for the opp-level beyond required-opps To: Viresh Kumar Cc: Sudeep Holla , Cristian Marussi , Viresh Kumar , "Rafael J . Wysocki" , Nishanth Menon , Stephen Boyd , Nikunj Kela , Prasad Sodagudi , Alexandre Torgue , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:07:50 -0700 (PDT) On Wed, 4 Oct 2023 at 07:04, Viresh Kumar wrote: > > On 03-10-23, 14:36, Ulf Hansson wrote: > > Can you please explain further on this. Rafael has acked those > > patches, so it should be perfectly fine for you to pick them via your > > tree too. There is no need to defer them. > > Ahh, then it is fine. > > > > I will then push out a branch and you can > > > rebase your patches on top of it ? And then probably Sudeep or someone else can > > > apply everything ? > > > > Or are you suggesting to just take one of the patches from my series, > > and then I will re-base everything on top? > > > > Just trying to understand the way forward. :-) > > Applied patches 1-6/9 and the fixed routine looks like this now: > > +static int _set_opp_level(struct device *dev, struct opp_table *opp_table, > + struct dev_pm_opp *opp) > +{ > + unsigned int level = 0; > + int ret = 0; > + > + if (opp) { > + if (!opp->level) > + return 0; > + > + level = opp->level; > + } > + > + /* Request a new performance state through the device's PM domain. */ > + ret = dev_pm_domain_set_performance_state(dev, level); > + if (ret) > + dev_err(dev, "Failed to set performance state %u (%d)\n", level, > + ret); > + > + return ret; > +} > > Does it look okay now ? Yes, perfect! Thanks for helping out! Kind regards Uffe