Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1413037rbb; Mon, 26 Feb 2024 08:29:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWntStG3pTftgm884nema7jo9d59WcEdkCn4hPxmZZ6H0Tc6nx7A/2yTzj1S2q+/7hzH0+CPaAWYV5tPaEiAE7aOL6qepcDSVcQ9Q2eOg== X-Google-Smtp-Source: AGHT+IFq+McKW7D2SDV5zECI4hO9QRgxjxAmvaI6t0HekQ/1/fsEX2FfR+2Li3Yl33/bTBLVMg3o X-Received: by 2002:a05:620a:2415:b0:787:c9ce:3bb3 with SMTP id d21-20020a05620a241500b00787c9ce3bb3mr5819843qkn.67.1708964972577; Mon, 26 Feb 2024 08:29:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708964972; cv=pass; d=google.com; s=arc-20160816; b=RDDmAucJ6xQ6EjbMM07C1pqkHb/07ciEvEjuBgpFChFBhA4b8PMglyUPStoqgwERSY N+4JzN1uIO5R9hB7Q4GyyafNVN8tMStIdaDl8sq50LIoc0tPds2BrySXYLVvz9mrvxGi gPq3aX3/bUCJ5I4em3ft0L8aylImn66h3yMeWXqXv+Baz+8LIi6AdvPIqi6y4khihkKy ypd8fB4W/LqA8IYzWa7JI9HrkIwXg5YD/uhgtf0avkeISeggRIvaKfv+V68sIiegda+E 8GbuJBDjPwqiIfOdhgiVVqRj/bPkS55fQZAUY4C/gm9z/xJNFAhdNSDK5j2qj1iVhudA F9FQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=6Lo0K9teEaud+8iDYSk81zB14V2a5TEJRZfVCkVjMVk=; fh=YIkygnpoUzIZF+sllhlXeANsAfu3QFgweK53m5Ww+sI=; b=b0dCXYyUT5DD4mzK3qixFTCrNQ143FCyj7y/FHufye51x1xtCwZ5l8r9i/+oECOIP0 7yFMF5bYbRqalthiLJWmi91gQmRAHCQOGD5CZfPzg7aliHO3wskqTdb6TfC+RFfC1bW4 r33H5OryhwDhpnUJt40f1KDCboDCMHhsyrfqHdBhjI7djYLPpiI03th2CdOpWwJHU98G 8+ONi2krRYWFW5ztlhmxdkK5QLkfzXTphpEwRofSZzWw0TVypVnDrWH7mGOXp2RiKeJm wOLOMG7viPy9Nsc/cMBwwkFcS+zE+JUy1lguFligzuJiVRsTsr9t5WStI7zD1/jZFzJ0 9mRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-81910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u6-20020ae9c006000000b00787b81d4660si5411261qkk.670.2024.02.26.08.29.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:29:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-81910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5430C1C2AA61 for ; Mon, 26 Feb 2024 16:29:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E836112F59E; Mon, 26 Feb 2024 16:29:24 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FF8012F39B; Mon, 26 Feb 2024 16:29:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708964964; cv=none; b=spCevTfV3iw0pqYcUYlzkkC02G9tcL1D66u6gxhIMpzFkw91aluQXIQduHPo0bgEAtouPFUePHu3dsHhej4wHNysIDb/FyAEJBuHTbViai0mbwv3AsEuevnxjedCE9MzY3BVfe10pY0+N4vfgq6MfE/gvZnVC151qUNwQq2nbw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708964964; c=relaxed/simple; bh=RqI1ZOwpCqfHOLSUWAUd97Slp9znorLCgecOqeZopt8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SsiOx7i+OpFiWWjsxPw8CrmBmI7bPhzC5OB/mLuiczkPuNOMuGOZe6MSCIZoDrqDXa+LinKeCDhfe0vUS8bQomTe8DmUuSZfSJOca2ap1g9tIXohHDtjQ3WErj+D37dVnTbtJlpPWsV+76IVVpOsL6M+0zgZclRbFEDvvirMQ3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 230FBDA7; Mon, 26 Feb 2024 08:30:01 -0800 (PST) Received: from [10.57.12.43] (unknown [10.57.12.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D7C9B3F73F; Mon, 26 Feb 2024 08:29:19 -0800 (PST) Message-ID: Date: Mon, 26 Feb 2024 16:29:36 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] OPP: Extend dev_pm_opp_data with turbo support Content-Language: en-US To: Sibi Sankar Cc: linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, morten.rasmussen@arm.com, viresh.kumar@linaro.org, rafael@kernel.org, cristian.marussi@arm.com, sudeep.holla@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mdtipton@quicinc.com, linux-arm-msm@vger.kernel.org, nm@ti.com, dietmar.eggemann@arm.com References: <20240117110443.2060704-1-quic_sibis@quicinc.com> <20240117110443.2060704-2-quic_sibis@quicinc.com> From: Lukasz Luba In-Reply-To: <20240117110443.2060704-2-quic_sibis@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/17/24 11:04, Sibi Sankar wrote: > Let's extend the dev_pm_opp_data with a turbo variable, to allow users to > specify if it's a boost frequency for a dynamically added OPP. > > Signed-off-by: Sibi Sankar > --- > drivers/opp/core.c | 1 + > include/linux/pm_opp.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/opp/core.c b/drivers/opp/core.c > index c4e0432ae42a..e233734b7220 100644 > --- a/drivers/opp/core.c > +++ b/drivers/opp/core.c > @@ -2065,6 +2065,7 @@ int _opp_add_v1(struct opp_table *opp_table, struct device *dev, > /* populate the opp table */ > new_opp->rates[0] = data->freq; > new_opp->level = data->level; > + new_opp->turbo = data->turbo; > tol = u_volt * opp_table->voltage_tolerance_v1 / 100; > new_opp->supplies[0].u_volt = u_volt; > new_opp->supplies[0].u_volt_min = u_volt - tol; > diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h > index 76dcb7f37bcd..a08a1fb1ca2a 100644 > --- a/include/linux/pm_opp.h > +++ b/include/linux/pm_opp.h > @@ -93,6 +93,7 @@ struct dev_pm_opp_config { > * @u_volt: The voltage in uV for the OPP. > */ > struct dev_pm_opp_data { > + bool turbo; Please add description of that new field, like other fields in the comment above. > unsigned int level; > unsigned long freq; > unsigned long u_volt;