Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp722853pxb; Fri, 15 Oct 2021 14:54:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPTnIVAJKq6lZ1Lln4IPOgG9xfMAYg9X26cgvOR63WKj4b4IpVpXXoLIr2VzDadeSpVLMZ X-Received: by 2002:a62:2984:0:b0:44b:b8fe:9454 with SMTP id p126-20020a622984000000b0044bb8fe9454mr14255830pfp.36.1634334891566; Fri, 15 Oct 2021 14:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634334891; cv=none; d=google.com; s=arc-20160816; b=ULfbvkW+t/AwslzQq9QRNdsQipb6NR1BmROiF7qPzdmJf2mbdJGMRXqXdHX6Zmj6eq 8x0F/fU03fVyb0ITf88K2YLJli4zTKH9zCECybeGESqJxDNoT7WUHiGG8M+zFaeGZgYo VOm4s7shLsfAoJOl6Kz0wPwefUO/qyO9JQ1R9gGEsJhkaZ9XMXNOqJ8iitIdz58ihXV8 e01R1cBBonURFGA8/RCMkQv8g+WbUAi9IejWR//qCAm+dyf1490y7mn30vZK+cgup5Sm 5u6UUCJkNLe/Ycm9BgHtCe8rnKZ/eak6ZhLR53LyhHwJi1HdUf11BT5KbXPmY9RkMH5b 70pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=aN6B1/BM9Kv2ljjVtYrZQ0Uq+FqHaq0akAQiyBTYy6c=; b=xJwlt5hCRY7/3D4P6u3DEyW3CUR+H23xguVhjdZg2nUl8G32PgtJnztZ+CIq1Y+yGP XLLmo6kpbWLwLZ3NoGSi7JkYuxp6uLfmwEUUKg2b5a2heHjmpoKQBw499yycF00BykpB DVFJ4PIK0Y/ozFpno6ZOyAsEK0U4m77Xren0EaH3BZnWSkapCK9iUVNXnvtL9Q3MgXE3 I97wpZIPUf1BlrP+RooowAMEjtoUf+tjBBnUwuAQ/41rNl8h336I9UqbLylR+cDS2t10 zRWmH9Ib0uB7gcCtZB8x2O3kTZ94p+ezp0NhQmEwrST1OSOp8rfn/pn/vtrehVL5QGY6 k22g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si10364685plh.40.2021.10.15.14.54.38; Fri, 15 Oct 2021 14:54:51 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238691AbhJOMPR (ORCPT + 99 others); Fri, 15 Oct 2021 08:15:17 -0400 Received: from foss.arm.com ([217.140.110.172]:41662 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbhJOMPQ (ORCPT ); Fri, 15 Oct 2021 08:15:16 -0400 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 52380147A; Fri, 15 Oct 2021 05:13:10 -0700 (PDT) Received: from [10.57.23.184] (unknown [10.57.23.184]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9879C3F70D; Fri, 15 Oct 2021 05:13:07 -0700 (PDT) Subject: Re: [PATCH 1/5] arch_topology: Introduce thermal pressure update function To: Thara Gopinath Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, sudeep.holla@arm.com, will@kernel.org, catalin.marinas@arm.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, rafael@kernel.org, viresh.kumar@linaro.org, amitk@kernel.org, daniel.lezcano@linaro.org, amit.kachhap@gmail.com, bjorn.andersson@linaro.org, agross@kernel.org References: <20211007080729.8262-1-lukasz.luba@arm.com> <20211007080729.8262-2-lukasz.luba@arm.com> <0ee4bc3b-0ad8-598d-417f-b8fe0a8fb8b1@linaro.org> From: Lukasz Luba Message-ID: <086e7186-7c41-5e39-4f6a-e1b44f63b867@arm.com> Date: Fri, 15 Oct 2021 13:13:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <0ee4bc3b-0ad8-598d-417f-b8fe0a8fb8b1@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thara, Thank you having a look at these patches. My apologies for the delay, I haven't felt well recently. On 10/11/21 10:15 PM, Thara Gopinath wrote: > > > On 10/7/21 4:07 AM, Lukasz Luba wrote: [snip] >> +/** >> + * topology_thermal_pressure_update() - Update thermal pressure for CPUs >> + * @cpus    : The related CPUs which capacity has been reduced > > The related CPUs "for" which thanks > >> + * @capped_freq    : The maximum allowed frequency that CPUs can run at [snip] >> + >> +    capacity = capped_freq * max_capacity; >> +    capacity /= per_cpu(freq_factor, cpu); > > use mult_frac as used in other implementations ? > Good point. Let me check that. In that arch_topology file we never use such trick, but in this case it makes sense IMO. Regards, Lukasz