Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp32531rdb; Mon, 30 Oct 2023 22:26:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXrPQyNXf1o9d0ZWm62G80iG2rCQqqb4sSB6wkGlm1Vgg5VF5UWu9mji2p1AxpgVtSBCJZ X-Received: by 2002:a54:4099:0:b0:3ab:83fe:e18f with SMTP id i25-20020a544099000000b003ab83fee18fmr11812317oii.35.1698730007733; Mon, 30 Oct 2023 22:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698730007; cv=none; d=google.com; s=arc-20160816; b=PNH3AZac8/kR4nLpRpxIWvYXvuSEysPGnI+4PuGYYekAyioE3k9rElAx+9h7NGdogO gdCOLYezUMZoFSrZqIaZB6nsxreWE6wDAxQ8lXd1RV+7vZ1FWubvhM6yWd3S8Yzqitzx yH0YsBr/9MaaF/4Nqf02vs6PIymidBtQXOvtN2r/0bUrejREhWzw72L3tQdSROx9npYW /aWurc/+Nn2lqoBSzy4qYORfScNOA2DCx9jYRlJBa/3OqaX27n+JivQYybWgOdhzTBbE 1jQuIrWLChuhW3VMRnkm8SxeCTxPxJcEhTKgCmn9RlYybACQJZlpvAN+HRQ11lKLSO/D XtEQ== 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=zWWTAw4O7AjDj0Sh1SsAmZTItwGjI/fDezH/BgyVAlw=; fh=qdj0tkh/DizaMqqbQOnHgXaeSMMOXB+7JcZ7Idw7sPI=; b=ZbchLdV0EuzmRDi2rfH9R4qqu4ylTNXd88Nwv4UsSFTbO/YFBJeHYCtNUBIcJTQn56 93TUkh0wXUjy8uFvM/v2Lp8nebpgeSwfM55/oOGu9nY/WTPXn0/41/YStUwR6IK3MJur FH9ujXauHk8f7xkkDN3ipkvlbdy2QXLj8RO4RuXYRtyJcRTmRfb5KKTdviUQx2Qc9lHH zUncpj6unDKg/OMkbYdu4E826GpVd4INq1D7iBj9nNZkODrPZEihxBLmUHBzSC9QERMs Yx8I76OBaZDNu7fdbj4NiRF5t9XD2xhJ5Y2wUP7mOBqdguMKSuiF2GBD2ttRnmm6U6VR Xz9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iyrIthBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id g19-20020a056a000b9300b00690bd178205si494442pfj.215.2023.10.30.22.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 22:26:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iyrIthBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 5485F80B817C; Mon, 30 Oct 2023 22:26:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbjJaF0e (ORCPT + 99 others); Tue, 31 Oct 2023 01:26:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjJaF0d (ORCPT ); Tue, 31 Oct 2023 01:26:33 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCB59D8 for ; Mon, 30 Oct 2023 22:26:30 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1cc58219376so12490295ad.1 for ; Mon, 30 Oct 2023 22:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698729990; x=1699334790; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zWWTAw4O7AjDj0Sh1SsAmZTItwGjI/fDezH/BgyVAlw=; b=iyrIthBau1EczbLqvOsotIzapV+5EhdWLZ9IKJsAaWCZxzqAwYlOyJIbQoEZX2oVHg Fn7HyX7H6nWQn3mHBgTbZMO0pQyMnwj7SxbeNp0IrMYvNOlc3q6iqKq4bCPU8zoT7xCs u0XnBmqy0CYAMjh4gyG6CvRbPASF9NOABXo0EtAjpDBJ7dFN10e6aOFNzEsg+WoT8pEs 8nMd3TbxEAjJQz7h4aCc5F/bxDneK7OKsnHDSAD8wC7mLPwqzedFBbjALFRdCXmsxc1N /FkLCqgWvUd3eqBxmzH0GOhqjvHH5plGNJYsR+Vdac9cjUBDBkV/bG8G0ILnvpxzYWhP KQJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698729990; x=1699334790; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zWWTAw4O7AjDj0Sh1SsAmZTItwGjI/fDezH/BgyVAlw=; b=LNsWrbg0qUFQpU+KmhNXEZ4Z+OkUQsVTIbbWzSy32wIGFZNZFYqzKlbJbD1OBfQif5 K2Fv8pyUovnnZOrwg63/3YONWd1fZtravH35vBzskawgMYLjfpx4QaV/As9i5weVOG5i h4Q5Qh34Rjt9voMEO8JnlpebP5vGtdK++8VAo5hnfqYW8GlAxE1cQs/qYlY4duFmWR2G yBvDJFZrHzP7iVlqa2t8orq+yNJ6IvpGHW5JX/W+2e8q5AuJgZwanHEvMoW0OLVwtKgr vgfBm4s8awwHIMLoheDp/r+nRs//d7UPhosmY+JP5MTVoeCgcQ68GpnBZd567DEN7dxo Qf3Q== X-Gm-Message-State: AOJu0Yw3u3XV6G2hizKSSPE6oo3xNT7Ejrtie0jEK8yCXquttVhjG1V0 dwTIcaR6RTE8FRIJ75v4SHQ8PQ== X-Received: by 2002:a17:902:e404:b0:1cc:33ee:ddf with SMTP id m4-20020a170902e40400b001cc33ee0ddfmr6596269ple.33.1698729990342; Mon, 30 Oct 2023 22:26:30 -0700 (PDT) Received: from localhost ([122.172.80.14]) by smtp.gmail.com with ESMTPSA id l15-20020a170902f68f00b001b86dd825e7sm399274plg.108.2023.10.30.22.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 22:26:29 -0700 (PDT) Date: Tue, 31 Oct 2023 10:56:27 +0530 From: Viresh Kumar To: Konrad Dybcio Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Vincent Guittot , Ulf Hansson , Stephan Gerhold , Manivannan Sadhasivam , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 1/3] OPP: Level zero is valid Message-ID: <20231031052627.3xuryhy3o4rk5nb2@vireshk-i7> References: <36de122e568dcba371d3581e5f936243b405a874.1698661048.git.viresh.kumar@linaro.org> <3d686b62-13a2-4107-86ff-d9753cb177fb@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3d686b62-13a2-4107-86ff-d9753cb177fb@linaro.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 22:26:45 -0700 (PDT) On 30-10-23, 19:47, Konrad Dybcio wrote: > On 30.10.2023 11:24, Viresh Kumar wrote: > > The level zero can be used by some OPPs to drop performance state vote > > for the device. It is perfectly fine to allow the same. > > > > _set_opp_level() considers it as an invalid value currently and returns > > early. > So, currently if the device is PM-enabled, but OPP requirements are lifted, How exactly are the OPP requirements lifted ? By calling dev_pm_opp_set_opp(dev, NULL) ? This will work fine even without this commit. > is the API currently internally stuck at the last non-zero level? > > Just trying to understand if this could fix some silent issues Also the issue I am trying to solve here came in existence only during the 6.7 merge window and doesn't affect the genpds linked via required-opps. And this commit will soon be merged. -- viresh