Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2683196lqz; Wed, 3 Apr 2024 05:54:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnQ0zAMCqH+Cb3wEtlZnPJ6BMxATdMQiLIkt3hz5eVUAtM2Ip3CTSgZ1Oz4ndsX6Xi8R1MTI8y7/NM5A6K4LUgVRJVxyxX4FxdwziiRQ== X-Google-Smtp-Source: AGHT+IHXBQ7KK8pt64RnhC16ADKf5zoYvpFEpZSUsR79swdOdqsCzFE+w5HjYv4wRthI2ngFQds2 X-Received: by 2002:a05:6830:4c5:b0:6e6:8b5a:814d with SMTP id s5-20020a05683004c500b006e68b5a814dmr17821080otd.13.1712148893394; Wed, 03 Apr 2024 05:54:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712148893; cv=pass; d=google.com; s=arc-20160816; b=pp5OLrx52F/x6kHYLIFJ0twbqapDZexmIAj03XTC3FzaGXv0x+fe/II9qqLOw9gb0r G61SuvwzLyALa4pKt5AMDgAixZ0hT18Ozw9u1ID9C9/fCu3vU7V4CfUt1OtzzQFDpi3M 1NccVICi6/JYvfLxkHc622YlRd0DvYAA0qK3eFcYdt8VtU0CaKnQFwOeAU8u38fICPdu Wm8y3sa1TlpNo4PncsevHrud7dEH4AJywM9Mu1V+rj9mIbcjmcnL8KPX87kBL5qpItPB UBe5c7E2gsKRcnG2LuzCbtQJZioPNYXmGsLxMgpo7sr1TIV3Bd+xA7E+ounJjOqYWaOY fTvA== 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=PF8ls/CaJuqvn7JEFYmr48/ajsZHoGvCMn2COXzvm5Q=; fh=nxITihF8Oc/f+YiPzFO/P9wRrQCnKMPTJe3jttBuVKU=; b=y6To+Ty+T0LjvlFTwK74Sgdi7ZrfIpm+h7+psvgNbmRHiQsNHZ4KFJ7kHqFTajkWZ2 6I+Cwc7VCngh5fK+ApNWTIDkaB2D1qupNbAeuIduTQ5hW2cfSWi/DRLTo6rz4d0xzXAn 5sN/HY6SASyIR2nDrpqVqAF5I3KeP3YRbpiBny/vNEELcaVjlPu9fbkiLDtd+d8z7wvg UFDbB15VVsROn+y26bIExZClPy2a4CImzw8Vs5TzN/mhz5R/i3Z+1P9ourh2ZW2qTLSF Z5jJtIHFGIrBCR3O58hFdufDeaINyKkquP2c6cDWlzsyzVIEq1Tiw1nCppbdmOKlbxyX 4x2A==; 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-129749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129749-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. [147.75.199.223]) by mx.google.com with ESMTPS id b1-20020a05622a020100b004313358b73fsi14200012qtx.507.2024.04.03.05.54.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 05:54:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-129749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129749-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 0415B1C263A4 for ; Wed, 3 Apr 2024 12:54:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAC8A148856; Wed, 3 Apr 2024 12:52:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 510471487EB; Wed, 3 Apr 2024 12:52:25 +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=1712148747; cv=none; b=fk7nX5I/CFF1Ck7taX/JPaLHKTU8KisatOAsqNzbws7bxCM5z0q5SjstEsU57tkELiYPukAn5p/Mqx1QBcb9TjY8QK+NroMvaLKaVE693IjfzEyHyKOxtoPITUefmlcMx5rIJpbVMVni9UzxVhFfbAv0Q/bHHV3JRONv+5LqxoU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712148747; c=relaxed/simple; bh=vf5d7MSWti+Q4CFio8rLViQMsiHN4xSksYnuqd/mjZs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uQMP1Gt/AcdqF0/ume8md3wJXBZIsAyjQddfixoGERR4PuTJMfRcVfHJGCJDbhp0sfbMzuR54ZIVWqjL1+XzOIoMVycHVWCNtunlN/nWmELCEMVUxW2OXntRqk2b2zgM/nkrbwpxuFXliBwGEJ3u99Y0P2sPQ6yFrHAkgCxIlSc= 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 D4AD81007; Wed, 3 Apr 2024 05:52:55 -0700 (PDT) Received: from [10.57.72.191] (unknown [10.57.72.191]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 955B63F7B4; Wed, 3 Apr 2024 05:52:23 -0700 (PDT) Message-ID: <187a3acb-d4a8-41e6-822c-f901a693aae1@arm.com> Date: Wed, 3 Apr 2024 13:52:25 +0100 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 v2 3/3] thermal: gov_power_allocator: Suppress sustainable_power warning without trip_points Content-Language: en-US To: Nikita Travkin Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Zhang Rui , Daniel Lezcano , linux-kernel@vger.kernel.org References: <20240403-gpa-no-cooling-devs-v2-0-79bdd8439449@trvn.ru> <20240403-gpa-no-cooling-devs-v2-3-79bdd8439449@trvn.ru> From: Lukasz Luba In-Reply-To: <20240403-gpa-no-cooling-devs-v2-3-79bdd8439449@trvn.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/3/24 12:31, Nikita Travkin via B4 Relay wrote: > From: Nikita Travkin > > IPA warns if the thermal zone it was attached to doesn't define > sustainable_power value. In some cases though IPA may be bound to an > "empty" TZ, in which case the lack of sustainable_power doesn't matter. > > Suppress the warning in case when IPA is bound to an empty TZ to make it > easier to see the warnings that actually matter. > > Signed-off-by: Nikita Travkin > --- > > I've decided to add this along to supress those warnings for some TZ on > sc7180. Feel free to drop this patch if you think the warning should > always appear. That warning should stay, since in the development or integration phase quite a lot of stuff is missing. This will warn that there is an issue. The case with 'empty' TZ is an exception only to 'work' with IPA. Thanks for the patches! Regards, Lukasz > --- > drivers/thermal/gov_power_allocator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/gov_power_allocator.c b/drivers/thermal/gov_power_allocator.c > index e25e48d76aa7..05a40f6b5928 100644 > --- a/drivers/thermal/gov_power_allocator.c > +++ b/drivers/thermal/gov_power_allocator.c > @@ -704,7 +704,7 @@ static int power_allocator_bind(struct thermal_zone_device *tz) > params->allocated_tzp = true; > } > > - if (!tz->tzp->sustainable_power) > + if (!tz->tzp->sustainable_power && params->trip_max) > dev_warn(&tz->device, "power_allocator: sustainable_power will be estimated\n"); > else > params->sustainable_power = tz->tzp->sustainable_power; >