Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2690791lqz; Wed, 3 Apr 2024 06:06:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXM22+blyBODqJ/HXKuwz7w0MGnbW5D1O4QIkNac4hzjCYY8Oe584AIzH6cb0fn75h1OhJQR2jVzWTBVt9lAR2aGnr43bLP9QWJFRSAig== X-Google-Smtp-Source: AGHT+IHphI3PUTksuN6iiFDdESvBMIwFpRqtJiQxkhFTHCeL09s5B2qnVVoTHOenjArk2x7ec90v X-Received: by 2002:ac2:5214:0:b0:515:d168:ade7 with SMTP id a20-20020ac25214000000b00515d168ade7mr1593050lfl.31.1712149569837; Wed, 03 Apr 2024 06:06:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712149569; cv=pass; d=google.com; s=arc-20160816; b=bKBE8tb16EcAV+LFDO5m8cfCI92g/6muBOL5hjsIB0O+T0WJjPNZ72Coy7P/evYLNI S+ZST509T0rL4PBVsDAN2zm8cRuOs1YJ/fMWbMPqrdQW+Zht2RmoCPVliMbm/E24Zle9 XCnMDILGpm+8hNWxNuTyaOY1CZolieFRpt8CZLq9fhhwL0DQcFkzXeCpV2MUwbJcgJkF 69ZkjnN8/CPepw8GX6XbJkQrSm8zSMP4Ye4CaKpfPrxTYqOUj0yLoDmVDTXhFjxDzELN SquhbZMCikPH77wQGK1lpr+fYYcMa++wa2gRmPWh7cmXf7NpFsi+19KSVB8VIV2EP7hI o0OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=/qpDKTFHgYEBe0w0N3iXwvyoiKCATOl8h9lKP1Scxuc=; fh=SWhXQGKCtS9d+NFDbvXbeDHB2OmzTf9mWa2qlTRN7mM=; b=MOEDSzQixeAbh6GWSXb9dPY5amW3IaG027SaKqqquiFMuHTFEnB6XXaFZ4v6hO1xYe CTqBuuAghZMRE9wDzJM2HJGhUGBh5ZbuqS+JlRfRcbDafsjx2FwYeB8Qy4FGgRM+ds6K 0BbIVNafCtQponv+9c8Ys7f0kIDe8pjCESGVNyQdPhwbK+OagyDVrT0tJIrcaBf+QhWN zNWqZg2qQ5AJrECo0v7fcWJk3L/GOEVG7Vvjap6OfYmse0Hd9T82wZyPXU0rZ0B9uVPz 8tRSYHSQhXFG66Y24StOz0lpKC3YJXyj3N2i8T2PUboGDFIQBJwL2rhwnHGmsJ2Gi+xq hJlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DtrIgt7W; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129781-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z2-20020a50cd02000000b0056bed02304csi6614345edi.348.2024.04.03.06.06.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:06:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129781-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DtrIgt7W; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129781-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 71A111F22DA3 for ; Wed, 3 Apr 2024 13:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43D81146D4B; Wed, 3 Apr 2024 13:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DtrIgt7W" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 166BA147C8C; Wed, 3 Apr 2024 13:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712149549; cv=none; b=LZ0eO4OmQRsMpTgDdUVRWs1hNiMS1m1ytIh5lefEuhMacPdTZULQa/SVaUieYMaxVBc2n130vumpGU+88/fHnfhCmxHWHTzgUFasmTVgfLnXJMsQwDufElfE5GqLRoQYgflrapm50Jz4lOt7Pxu9E6TGJyJRsTyuSRzEwajp0bA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712149549; c=relaxed/simple; bh=QJEeCIkAPiFZbRuleWyDEENFSiH12JZFpZfsYZc250s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WDbWoO79lflLZ7cMAykwdYYWuNC3ttfPRJlg64WCPNkE3w6bPrW9/CjBh//HgAKNj2eps1njRUEGHt3hBZofZqZrgYYb8fTRrJkhxVRUIyjhg2eABi7O9+xHX6iRklHT9nbzyyAXXevHPp2lq9wHGFDYUqtY4bbj75/YyeDkYSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DtrIgt7W; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e46dcd8feaso2960279b3a.2; Wed, 03 Apr 2024 06:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712149547; x=1712754347; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/qpDKTFHgYEBe0w0N3iXwvyoiKCATOl8h9lKP1Scxuc=; b=DtrIgt7WtyDPCLFT7y5WFeQgtqeMe68CqmFcrAXvpaE2JF0QUhcp8b7Hc9hcO8RMit GxUS85mrXr4VVQazbQf6j2D4Gqs78Or+a9b4oh09Xa7qvt4XOii273hk0cK+889S0CsE zbdtSCfJzzxYWUJwafnqwSeEFW3eMktYA5qDKCJgcIGjWuKq2gZ5+Csp5WmlMrLcXheN 1LXOhH9BpJcps9jnRiUqh42Hw1BJDDMlgBxB5dquMUhjgoPfycgT48BAGeIpVcWj3Iwk VxnmVLl+C8eqsDeUgwSSfRSvtsvxXx0W3qtN9NzJbCtu3fGwpIBFpFxxJhgEwX7jNCWZ uUpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712149547; x=1712754347; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/qpDKTFHgYEBe0w0N3iXwvyoiKCATOl8h9lKP1Scxuc=; b=rP+dn1EyYdq6uNqUXAVtUk0uSGtGmRuPdZ0IXBxr3zUCMqGQEiAazA9U+22F3CA9BO mU2LMJd+RoPK78qQ7zzjhF9EqgwxRhcqE4ZMjn/ISgz8zxL8mPpGEyLawayhmG8h7H0y J+B1PSkd4PIZ9beJ0Yyx69m7QtGjtrV8n7eV1B6T4trVSfl1gMd9u6zMsu4pEKmyrDiP vSmuEzTbYlQOP7JczyiAo+AKzMYkLp74fx/fbt+jHgEoofyqeskgpiXb6i2AuJcu6Fo0 HpzJCpUltyS14D4n9Mh567eSe0Ru/Aspa+NkIpVKci/ZKOOIbr43hPOxIYh7jmqpIFqp 81XQ== X-Forwarded-Encrypted: i=1; AJvYcCXf7xWxqw7Mgxe5bLu9JgOqTcWYbIGdwBcbSw4X2uKolSDa4SIIAbSJnE1mr/i4Yoaf/JUwnLbEQ6EuhqbkDt2SuP5NxgxFPv73N0lF+ikUNLoWq8qmcoOCMsEzWnakckcw6uhen8A= X-Gm-Message-State: AOJu0YztHpv0hQEZw4trqN6ynI96tjA6QzUBUB/hcCU9NozqgIr/OZeg y5K5weMuGJBRAoboxSzVb3tR2pdLKKeD8CU7Nq/7YcqkaxsRUB5zfwjt8efU3ljaTJP+g819+5T Oetf9RpOZ8VhKjeoWMaW91J3+PcQ= X-Received: by 2002:a17:90a:d4f:b0:29d:dd50:afe with SMTP id 15-20020a17090a0d4f00b0029ddd500afemr12411970pju.30.1712149547342; Wed, 03 Apr 2024 06:05:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240403-gpa-no-cooling-devs-v2-0-79bdd8439449@trvn.ru> <20240403-gpa-no-cooling-devs-v2-3-79bdd8439449@trvn.ru> <187a3acb-d4a8-41e6-822c-f901a693aae1@arm.com> In-Reply-To: <187a3acb-d4a8-41e6-822c-f901a693aae1@arm.com> From: Nikita Travkin Date: Wed, 3 Apr 2024 18:05:36 +0500 Message-ID: Subject: Re: [PATCH v2 3/3] thermal: gov_power_allocator: Suppress sustainable_power warning without trip_points To: Lukasz Luba Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Zhang Rui , Daniel Lezcano , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D1=81=D1=80, 3 =D0=B0=D0=BF=D1=80. 2024=E2=80=AF=D0=B3. =D0=B2 17:52, Luka= sz Luba : > > > > 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 i= t > > 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. > Yes, that's understandable, though by suppressing those I could actually see the few actual warnings for TZ with cooling devices and no value, which I couldn't see before because it looked like "all of them" have the warning. In any case, as I said, I'm fine with this not being applied :) Thanks for your review! Nikita > 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/go= v_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 =3D 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 =3D tz->tzp->sustainable_power; > >