Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp884462pxb; Wed, 27 Oct 2021 14:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfTb1sOXw80YvJDGTc6jKO3lvEs5EFg/hhHs5VU9P3yDOMk/dR5Kvi1Vsf/chJJDDkbwF/ X-Received: by 2002:a17:906:a94b:: with SMTP id hh11mr71788ejb.85.1635370005361; Wed, 27 Oct 2021 14:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370005; cv=none; d=google.com; s=arc-20160816; b=AGdGii4JsMzUdevPsiEJYrheWXAeIo5BBMCbW6mguE0v/jxGoqLXqJWjEw/dGkr1A7 Kb1GkU5aqZ/rcDuyar1vjr88wdIZUQf2mbP9cOmwCLUTwTvI19hoMOPyZeJ9F6jdD8jJ v4uwd1yz+BquDbQ9dIUC5Rh8n9UrMRG70hNe0Tcgf0eqB+aL4Xx9npatVoslpiSTWKwj RT9kvrqHFtxBRJgW1Sk5khqWlU6vBtJhJwcIRxJ3PQPHo5BlSzRimd++J41qc6TYT//B ETQV3tdw89ivddAhDuCQey1h57hlfynLObnbACwgl4yCVfxMKKJiRN/Gqq5m6Oa7GPny xqpQ== 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=8pZW8BX92t8HhouBI9rkWMPag0uBgCWwcO6vTmmbuNQ=; b=Vgl/tX8/RLcdTcGYwMkXcTWWJV9hMsdlUOqNZ0UM/iopzaE9ODVHmxnC7KJuAJulSf 0WxINaG/wH/rhLvFledQlvs1xpEqz8XOzBFBj8yeg3+m5RNHXlN7apYSL+08syl6hs0e tupZ+0fJLEML9awHjEfad9U/jPsVW74xaRv4ctN4S43/aEazfYWpYq7AsACitnQ8Enwo 1P+DH3PGV2iHIA3XnvykVUXgtR6F61ssyQ+sHBMVfAALPdZREyRRSUKu1e4EQ5gT/5JF BCo+tbT4U/cNFBZcWdsn+nr1UtljxtQpKLDZJ11Oe5ptAg2MfioCTmWKq/n8XsI65/4F oDLQ== 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 gs43si1579624ejc.209.2021.10.27.14.26.22; Wed, 27 Oct 2021 14:26:45 -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 S242188AbhJ0Nhs (ORCPT + 97 others); Wed, 27 Oct 2021 09:37:48 -0400 Received: from foss.arm.com ([217.140.110.172]:43446 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236811AbhJ0Nhs (ORCPT ); Wed, 27 Oct 2021 09:37:48 -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 821E71FB; Wed, 27 Oct 2021 06:35:22 -0700 (PDT) Received: from [192.168.185.184] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 13E003F73D; Wed, 27 Oct 2021 06:35:16 -0700 (PDT) Subject: Re: [PATCH v2 1/5] arch_topology: Introduce thermal pressure update function To: Lukasz Luba 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, thara.gopinath@linaro.org, bjorn.andersson@linaro.org, agross@kernel.org References: <20211015144550.23719-1-lukasz.luba@arm.com> <20211015144550.23719-2-lukasz.luba@arm.com> <431230a5-00e9-0211-0731-035eab5fa3f6@arm.com> From: Dietmar Eggemann Message-ID: <018a888d-ed39-09a1-9828-cedef23c7701@arm.com> Date: Wed, 27 Oct 2021 15:35:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/10/2021 10:56, Lukasz Luba wrote: > Hi Dietmar, > > Thank you for having a look at this. > > On 10/26/21 5:51 PM, Dietmar Eggemann wrote: >> On 15/10/2021 16:45, Lukasz Luba wrote: [...] >>> +void topology_thermal_pressure_update(const struct cpumask *cpus, >>> +                      unsigned long capped_freq) >>> +{ >> >> ... why not just s/unsigned long th_pressure/unsigned long capped_freq >> in existing topology_set_thermal_pressure() and move code the >> frequency/capacity conversion in there? The patch set will become >> considerably smaller. > > I've been trying to avoid confusion when changing actually behavior > of the API function. Thus, introducing new would IMO opinion > make sure the old 'set' function was expecting proper pressure > value, while the new 'update' expects frequency. > > I agree that the patch set would be smaller in that case, but I'm > not sure if that would not hide some issues. This one would > definitely break compilation of some vendor modules (or drivers > queuing or under review), not silently passing them through (with wrong > argument). I see, since the parameter type list would stay the same, this could potentially happen. [...]