Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp133659rdb; Tue, 31 Oct 2023 03:08:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsGXZYIUcW6k44l2hYKCbPV668u30m7YLNHklZuyGTDOiuthZRHy8wN2jC3mM31rM0LSWR X-Received: by 2002:a05:6a21:a591:b0:16b:bd0f:ad06 with SMTP id gd17-20020a056a21a59100b0016bbd0fad06mr16899889pzc.31.1698746902909; Tue, 31 Oct 2023 03:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698746902; cv=none; d=google.com; s=arc-20160816; b=LkKS8MmYJPuX8a0xF7DImvSjpz25sVVeX2Vs9SgwubDEQ64WPDqiKFlWnqfWc47ZwW UsE0RyFc8XAozW52cHLcApYHUwdZUhTkrs1oO9AkQBgcXL3OMYWDGjRecNZxMcpE7jK9 SyRVe6wx6j9fSAHPkzxf1GDC4eMkORbYePCfh8eQhmmOuweJNWYuG3u+CEHC3OpZZmkg baa4YE/ybk0acPg3wEQPpICTuz9+bKMAZBalWwP9+ZiU31edi7HrX//M/seIciGGQANm 28rv89lfpUCEg9xBOC1one2dkQH/mkJZjX8tKVmSRls8HGlMBXrVZ5hSMsZTP3ToM+gg RjKA== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=7eQttKOvr5i/jpnS/yPQ5Rv08gclTUqcCJH1d+hHQS8=; fh=c67WGcXFSUjlJ3ESbpGN5ykb/t3QzsDbZDxsFNJWmuo=; b=ZKhkMW2ok2yTaG/UL12fms/kjotylr0yeYux/IepLTdGoGPqqzyd2SApCO98KPinEH TSMusu//I5GwJ7ke2rXCO9C/TRlLAYoL3icNaeU9VvHqoLA9GiWXB6OsQyRwe2G/B1G2 h8NccO9udm+jEo6kzv5VNIGY7Vd5zz29TAzAHr7cAABBkQpsojtrqevb7HzxCKUilz52 AdozLNJ8JqVAKJSAsHPwFT3vyv6MgiOXBCk6SN2WeaBvJajLi+I0gLRZ9IG394KjXkRD KgzhXxkMOBrBANnw+USri+UslhQiVT2tn9q4e3LIQIp2UZz6UVIsDggIgfgQZan8IfnN vbrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HXhYCNiY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u30-20020a056a00099e00b0069109ee0b59si793627pfg.231.2023.10.31.03.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 03:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HXhYCNiY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 1FDC68031E9C; Tue, 31 Oct 2023 03:08:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236095AbjJaKIA (ORCPT + 99 others); Tue, 31 Oct 2023 06:08:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbjJaKH7 (ORCPT ); Tue, 31 Oct 2023 06:07:59 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7814EA for ; Tue, 31 Oct 2023 03:07:56 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507bd19eac8so7841267e87.0 for ; Tue, 31 Oct 2023 03:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698746875; x=1699351675; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7eQttKOvr5i/jpnS/yPQ5Rv08gclTUqcCJH1d+hHQS8=; b=HXhYCNiYJ0ylwdRnxgw7KQjyCDoceMqLw6cK0lx3hzlOAB36/T0wJ7VNdqyekICZak 4Ge/wLsEOo1CX83hGBgF7iaAhpJjidk+HxgQ24aIlu6GeSZDqXyHPgZQFVN3Yi9P17tp wbZaUlLHeRJC2lPA8v68/NrVEXI9WhXpgd9CKuGBb6a62fzh3Fme+H2enGOCpLNQxPIb M2MbwCnZImeTC9YTHOrVzfYhBX0zIZ6ixePjvMg2OAfkf9t6DB+q770j58zCMEn8HOcY MfJJAeLyK3BzQJ2XGJ2PUC3CmK5aP1euFgitybXSrpcz+UVdS5nRX/R4TfRLgMX/dwy2 Gigw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698746875; x=1699351675; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7eQttKOvr5i/jpnS/yPQ5Rv08gclTUqcCJH1d+hHQS8=; b=eD3IW9kBgCZVAkwYJMs4utGtXyAJpbOLBN1c9HtKUecvfe9AJW04uTeBQfOMbdsl2k mGaHlUFoj6mhuAO3UQxDtWO2XzPL+NiboDge8E+dqyYVRj7OAXq1T/Q7pu6QDxQu+SE3 s4WbkD5MT5yXuLeIEXGypyrQGqQfIMLTvC+qY3uSMfpDcnQgl282Z9KQwxSPBrOkPdGc U657U3EcDD5NaJSEHKcNPh8wHRNWxFCI3W8ka/sBFqTg6yrSY8pBBay0tOQKBZgOOexy vCxZam651IiJi2TjjZk2jaW1T8hYJIbDkETBQ0D8pjFkNPFELKYVs50hlUHcUUzv5vIp 77ww== X-Gm-Message-State: AOJu0Yzgg7g1ZXt2aAgOH3cx7p6uSRnr62aSgUSP2PLvv8/Hvd89b/Xd s7nZvvEYTK+4Rl8Ykez7cMIhZQ== X-Received: by 2002:a19:5209:0:b0:507:975f:1df6 with SMTP id m9-20020a195209000000b00507975f1df6mr8283380lfb.14.1698746875035; Tue, 31 Oct 2023 03:07:55 -0700 (PDT) Received: from [192.168.143.96] (178235177091.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.91]) by smtp.gmail.com with ESMTPSA id i21-20020a056512341500b00507a0098421sm165357lfr.181.2023.10.31.03.07.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Oct 2023 03:07:54 -0700 (PDT) Message-ID: <9e76cfc8-c062-4692-bed7-6d30e8628587@linaro.org> Date: Tue, 31 Oct 2023 11:07:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 1/3] OPP: Level zero is valid Content-Language: en-US To: Viresh Kumar 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 References: <36de122e568dcba371d3581e5f936243b405a874.1698661048.git.viresh.kumar@linaro.org> <3d686b62-13a2-4107-86ff-d9753cb177fb@linaro.org> <20231031052627.3xuryhy3o4rk5nb2@vireshk-i7> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQOF2biICzbLM8oyQPY8B///KJTWI2khoB8IJSJq3kNG68NjPg2vkP6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3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20231031052627.3xuryhy3o4rk5nb2@vireshk-i7> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 31 Oct 2023 03:08:18 -0700 (PDT) On 31.10.2023 06:26, Viresh Kumar wrote: > 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. Ok! > >> 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. Ack, thanks Konrad