Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6341641pxu; Wed, 23 Dec 2020 22:47:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLIxOzveBYDEB1JotZ6YtjXnYBJ9IZxhi8L7b0ADR+fRUU0jWGrvcexJ+avibSyazN8DTB X-Received: by 2002:a17:906:fb9b:: with SMTP id lr27mr27569295ejb.175.1608792435331; Wed, 23 Dec 2020 22:47:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608792435; cv=none; d=google.com; s=arc-20160816; b=p6KeB9H1Hpe+Alus/9lTPxsBE1CSIYornyKnH6siuAUlKHMgyhnuo4nEZ/2A3BK6W2 UvvgYKOfztp1dxlhflbw5qrEMVbcosUeB83dSpYM3/5Z/FE966HcAJYpdnJJ18morJ5k iGylsF1ioiIQ1HoEawv3o9xoRIP8Zda3OZHJ+fc7YW94d8eEUZertxFDcvgBFDC2WMDp H19MicRruOeXrO7Z5m2km8q4JdU25BsnN4BWvC/56xoPsFS94pT+wwuAGSZA0RINOOGa xOb9tdwGC+H84OMY4om+xBCdxiSivRpXR0IxGQrGom2NgGizkPljioWiDiuDeQ5aro9F hzIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EggZlPNaFVNouUQNpMn4xGppTh9DzckHE4NrKj3sjKU=; b=u3i/Dux7UUh2AFGoS+wNQvwDRMsoR7XM+x/4wVEgY+jw/prXyLxF8pruFQjzkyW1Bl Nx6SGiP9WMqwSQv+CMY7e57VQalZtDY8sguAC/bH7fwKQ8NVNifB3pn61ueOMxAoUM8q DG+0fGQs8ZVB8fL4Dgk/tv5E5Hg8DZRYl0pFfoezZjcnstHCtay6GUrWK2XudeF3kDAI oN8k4X/2j1v0eaAT/jqemxLUXLWDCV+ZNsDu8FdeB0ElfrN22JEmThfCTM+j1oRLRjqR T0KDyfwo4ByK3+zZfLZKrdMpAP69Hu4m0V0XnawWMEXHzfR2tlqm1RGuWjmyeWi+BQTq FWHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Oh3/knrL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si14370792edx.218.2020.12.23.22.46.52; Wed, 23 Dec 2020 22:47:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Oh3/knrL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726159AbgLXGoY (ORCPT + 99 others); Thu, 24 Dec 2020 01:44:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgLXGoX (ORCPT ); Thu, 24 Dec 2020 01:44:23 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D1C2C0617A6 for ; Wed, 23 Dec 2020 22:43:43 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id x12so855827plr.10 for ; Wed, 23 Dec 2020 22:43:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=EggZlPNaFVNouUQNpMn4xGppTh9DzckHE4NrKj3sjKU=; b=Oh3/knrLmICSN2Z3rwKTSyV0rZAdC95C5D83OrFtERU6Bx2ojcAX/s8nBJJNKbvkSv BfQYGy1zC8m1ZuYadonmShwKsEssyRaQOZBAyphCdJD8hE380Ft5/TXEmY6MO3GlJasq RrkhWNQEmgh/GsGttqWcNfZ71NVDkNEYwWsjuqkP8VdwJTCX2vdDpxVwsnQ5HNEweh0M An3fXfg9/d0G0+FuPk0ByAahetYKeSmx82mAoRUPnE+BrNipzngY1IzLAgLZrzjOCrN5 irhxwHDc5mBc6s5RnM5iXO8Nlvm9QXzBmJqpuOPmEAQFWdjKY9j2t4sfjZzWKZOQDh3R twCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=EggZlPNaFVNouUQNpMn4xGppTh9DzckHE4NrKj3sjKU=; b=T/Z9SubWEI08uVAqcF5euE+lYXBAl1GBTlsU/soUmPv+R2keWhwgwdPx92Gw3HMJ/A KgUlbRv1jRcxgwoXtFN8c4H/c2Jtindo0mYNRfkex/Sbg0hV4oxOSgqCXv7GrLeMf83J QCBc3y2VjRAPvxbRwCEG6pkXjSHZd0F8E+HEiikBEzxdOwYZSX4xWCr+2y5NmoLBEpne fF9iTLQjBKUDFVArjZZr3guRMRYmO2v8YwwaUH2rep/TBNfQwohPuwhD470aoML1D6IL lOT6syrBEgKd5WgJw7JPbjAQVNVK6S2egk7aM3hq0K6W7MLSUdIIEpMc1oe5K6PTI8Xh zg5Q== X-Gm-Message-State: AOAM533cs4iWXZVmrYo2J3ingAmy8XnffbeHorD9FhIPNGPiWBFfjqJA 1Fg7rseIl4QfnUMPunYu8qV7Ng== X-Received: by 2002:a17:90b:60b:: with SMTP id gb11mr3193035pjb.122.1608792222393; Wed, 23 Dec 2020 22:43:42 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id c14sm24658375pfd.37.2020.12.23.22.43.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Dec 2020 22:43:41 -0800 (PST) Date: Thu, 24 Dec 2020 12:13:39 +0530 From: Viresh Kumar To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Mark Brown , Liam Girdwood , Ulf Hansson , Mauro Carvalho Chehab , Rob Herring , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski , "Rafael J. Wysocki" , Kevin Hilman , Peter De Schrijver , Viresh Kumar , Stephen Boyd , Michael Turquette , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v2 11/48] opp: Add dev_pm_opp_find_level_ceil() Message-ID: <20201224064339.zngidobhstnlu2a3@vireshk-i7> References: <20201217180638.22748-1-digetx@gmail.com> <20201217180638.22748-12-digetx@gmail.com> <20201222064253.x7vsurh7q5k7qzb5@vireshk-i7> <20201223041931.klnppy4fu3sdgtsz@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-12-20, 23:37, Dmitry Osipenko wrote: > 23.12.2020 07:19, Viresh Kumar пишет: > > On 22-12-20, 22:15, Dmitry Osipenko wrote: > >> 22.12.2020 09:42, Viresh Kumar пишет: > >>> On 17-12-20, 21:06, Dmitry Osipenko wrote: > >>>> Add a ceil version of the dev_pm_opp_find_level(). It's handy to have if > >>>> levels don't start from 0 in OPP table and zero usually means a minimal > >>>> level. > >>>> > >>>> Signed-off-by: Dmitry Osipenko > >>> > >>> Why doesn't the exact version work for you here ? > >>> > >> > >> The exact version won't find OPP for level=0 if levels don't start with > >> 0, where 0 means that minimal level is desired. > > > > Right, but why do you need to send 0 for your platform ? > > > > To put power domain into the lowest performance state when device is idling. I see. So you really want to set it to the lowest state or just take the vote out ? Which may end up powering off the domain in the worst case ? -- viresh