Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2932957rdh; Mon, 30 Oct 2023 11:48:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyrRq1S3cduPCrSEqVpfflFgzINt3c0OcTaVkdt/30UFAtYEKkSORbUFiNThXTy/n/WW6n X-Received: by 2002:a05:6a00:391a:b0:6c0:148f:74de with SMTP id fh26-20020a056a00391a00b006c0148f74demr633403pfb.5.1698691683821; Mon, 30 Oct 2023 11:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698691683; cv=none; d=google.com; s=arc-20160816; b=eS1YLwY1sqy6ZxuNG+YW3ZcXyzEklaV9kL40IF1rffz1h58rgTou3jlbVVDZlL8unH AIl/HHirsjRXIz2F4VT5G/ZThfFbqZSZuI+QKvuElxEW7pd6bD5RYsGcwMWxXAg2e40O A7EjOLUIVSe8jNq8i12Wi97xYjWxAvFUgRw5MowbAVU/4koqkmPThzj9T5FdicqKLNss XVGxjca80epHZfcnjiC9/e4UVBfPwhv8g0sZ/J/YfPVI2DYFJYJiTx687KCQHk7T24gQ pMJLvccy8nGHBMhOPwoOnWBxQrSsXBMtHmWX/x1dIB9yf2ZNvpJH5GA2D4fc9zIBP+C4 B59g== 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=mdfkodqtRgpzDSBxx7a3aoX4UmAsfQ6jNbjpEc4xUMk=; fh=l6FOhcfHz4q8U+ap4SVD3M+IMW1CtRHUyeUcyOGFvTM=; b=jC3Ha/aeZcIfv/fhuAh6w2hrrQw2pKps7qjgUDEGvtupg9xYbFm4p+TeAA93URckQ3 hdj/3Ec/YISjGoNsQnDDm5DEMvs1D54IrhBB40BgGeSRlLSC1TwMiIkPv7jMKOWm29u+ Q6iYp/SCaOIULIk050VN3JSMq/ITJ4V9vJ9qbIppKudbjpP0ANYvVZQPtv96tLdr57dl pyQTFWuMR9QPr8LrMsFIc7iP5m9oAv0IYV/eBkETduQ01eo2du9KYK52bbnUOo2kdE9i 1Jpze1x+Hckx674uOY5WpCxGBvIDJTjD2HWphn4XFntkznAhMGzS2WCKiFRJI8/creTr BsQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C+bEJImr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j191-20020a638bc8000000b005b106cd44d1si5409999pge.486.2023.10.30.11.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 11:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C+bEJImr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 DAF8D804905A; Mon, 30 Oct 2023 11:48:00 -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 S229731AbjJ3Srz (ORCPT + 99 others); Mon, 30 Oct 2023 14:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjJ3Sry (ORCPT ); Mon, 30 Oct 2023 14:47:54 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6088DDE for ; Mon, 30 Oct 2023 11:47:51 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2c523ac38fbso71249031fa.0 for ; Mon, 30 Oct 2023 11:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698691669; x=1699296469; 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=mdfkodqtRgpzDSBxx7a3aoX4UmAsfQ6jNbjpEc4xUMk=; b=C+bEJImrIvIaYDTTvhSVlp1BL0HsCiFVGortmX6UeiLT7a3YgcsVwrd3iuLVHMcnUB WXakFk3Z9+SwP218/RkjOPtNgvpGG3LLyxKl/AJhCnIWIcUTYX6jZqTUj6k+xfTZKpLU quOUgXicC2hyRlylxPMA0O/utG/QoEeyCkwjTm2QcV+mRZki93gvWamYae5zuFtqzsMg Z8208bhTEcJ061+044A82r/QiOQdPg7SbZofSox3jKADWZtkZFctg4M8fMv/4lqrZixR Pc6DJtmmKAR/XHz5XdPuC1Er8rsg2417Tm+FiNMH1uACiAFqmHq9TqKXYgmJqe0uU8QD nawA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698691669; x=1699296469; 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=mdfkodqtRgpzDSBxx7a3aoX4UmAsfQ6jNbjpEc4xUMk=; b=ds3RDXsmLlXrCOGVoJtAI59ACSX7gavMuG03M1CPp+BnbD9uEnbvo2Zy0RMh2bu84l 0kknZpxk1tX3QF6VUlFgRIotAiAkHfDp757dZPE+pI0H3wUxpjPtZtEVDH0nWjtT2Coi vn0qSfnW0BIgJPSTQFzM3Rru8nLfgtX8+DFRaHRg2V9w1O+qRP1LfZJHlZ3gmLEbRswh xnxK5I7qBDFpGGVWww4jhqiJUOEDLrI+/WEZkukZfTmzic5Jb9MqJ6zs8PP7yea8nfi7 zNfuUPcECSzlIpnbtA+Dof6qZBKkQnV8FB1G2MZqlvEco70TwkK9gzfK4d7M9MZIsShP MeWw== X-Gm-Message-State: AOJu0YyegPFbEtT68Zkxb9/BIvFlWQcrleZxvOA03qXjryXAVe/IzVCi 6AvDxamGg3ftXHT4vQRsiEoyvA== X-Received: by 2002:a2e:84c7:0:b0:2b6:e958:5700 with SMTP id q7-20020a2e84c7000000b002b6e9585700mr7247840ljh.4.1698691669554; Mon, 30 Oct 2023 11:47:49 -0700 (PDT) Received: from [192.168.133.160] (178235177091.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.91]) by smtp.gmail.com with ESMTPSA id bf19-20020a2eaa13000000b002bcb89e92dcsm1357295ljb.6.2023.10.30.11.47.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 11:47:49 -0700 (PDT) Message-ID: <3d686b62-13a2-4107-86ff-d9753cb177fb@linaro.org> Date: Mon, 30 Oct 2023 19:47:47 +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 , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" Cc: 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> From: Konrad Dybcio Autocrypt: addr=konrad.d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yIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <36de122e568dcba371d3581e5f936243b405a874.1698661048.git.viresh.kumar@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 11:48:01 -0700 (PDT) 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, is the API currently internally stuck at the last non-zero level? Just trying to understand if this could fix some silent issues Konrad