Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2642147lqz; Wed, 3 Apr 2024 04:35:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTT77L/eWlJ9/M9FE9QHoJwKAZom55hXn8vPHSNBvPQOp5J1Zmq4UFM6oVVE0IhYBDGniji1O3n3T4BwXCGCr0NlNmMH3tTRC5/A+f/Q== X-Google-Smtp-Source: AGHT+IFTGHTRm/oyfXQqRDgIgxQgqdgIDBUE/lLmagk4dMBccsdMSEIx7wQIc4VpsqmHCXYcfgU6 X-Received: by 2002:a05:620a:36de:b0:788:2190:d293 with SMTP id cz30-20020a05620a36de00b007882190d293mr15689989qkb.40.1712144118544; Wed, 03 Apr 2024 04:35:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712144118; cv=pass; d=google.com; s=arc-20160816; b=N1zBJrcTXPf64j/w+T0PdF0C2YfDkhKVV+O5x/XNQSE5rzZmXalUHajXlIEOiregr9 VKpmYgJj/aB+F5MAVowRh7CiZQN5de/n7zlL//wvxLp/KvGgl3W4nnpH8L6oQeQgo0Ck JQ1ujWnbjuGd9kSeCLngbseJq4r/XXiIt3ctZsty6v6/rjbSfxUv0FI33Ufr0+l643Pv 5HKRg5dHA0U0gKmhUu13qlqopXIkcbVPNQ58q/nHVJmm6CRr8RH2X1Lqx8exrqd1uWJO nUm2LgJh3su2WbGWnwSN8vPqp611r+63Ri1OsRsmaeIyu92fBx6SGUPUGeCXyJeSLHuB 2dFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=rRLLFO/IMh3Lsjx+983xAE4fQEWCcGdjVcI6KHX7Ya0=; fh=vxnjxhdk3Sv92Zb3rY8P0Ioc9ARxzT+8fTwcGeMick4=; b=a5cibSkrwQybHGF1x7oUz6n1i5CyvsJaqsJrnUz2DabGoautk++UiqlSkePWaUMdru 0Sw7k5dC/be+CgnYTSQHh8d/F7xeisUT8rULzl7R1B3Sf+0cK5af03SkAOCuiXcfBS6Q 66b1UVNSqe/PRg45jkz28zM6xLGStcO6sUVn3HtSaG+BOBZJ01NbD8FbGRyGETzyaP4z 4fziQSZ5/AVHUSDJIA54CEIEIt/S0MaWbirFH5FdYqBmwQvyMCWlloZoXBfKH/7vsSfj OhT8QcjXM1qQ8vV5iUeXaCX9/UrVtWBneP0Jad30jifkrDux//0gKyirANeVbsrCRwst CrOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f2vn7QmH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x9-20020a05620a098900b0078a31e1ec3asi14459397qkx.109.2024.04.03.04.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:35:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129668-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f2vn7QmH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 90E531C25AFB for ; Wed, 3 Apr 2024 11:35:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FDE2146599; Wed, 3 Apr 2024 11:34:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f2vn7QmH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E7AB142E75; Wed, 3 Apr 2024 11:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712144093; cv=none; b=CJOevTUBWGvdcwGEmvg9ZWyUNgyO0Ir5O8DsraUA5K2J+qCj7I1JrdUMYTz5Yo5cTS7tOnpp7RmntUcqIPGngM+rWQhNg5TQaV5iCe9DrEAwnt8B7cbcopAD8hoNwJgKZy7n5IDN+K0+E0Xus0RemSSnqUvvNe+YjdDcATdn17c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712144093; c=relaxed/simple; bh=9758iPN/JC97kvoDw1mamVXOKflxBHmJlpHg9S7rrE4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I5b/BT26Jg4v+QVSot2zXezXUM1nAVTdpeUF0GV5s91JmioPiEZ7ddZgRPGJLoG9reSt3pBrvvkJbDFcUWywvhL0otl33TBObNbDVp5wRV4JwiLnJmJ/50XMjir9ZQKuQiQU6ouhqt3U6Ea7s3Gnvt8ZpsHV8kJ6jVDa+H033Bg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f2vn7QmH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id C2BF3C433A6; Wed, 3 Apr 2024 11:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712144092; bh=9758iPN/JC97kvoDw1mamVXOKflxBHmJlpHg9S7rrE4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=f2vn7QmHwXQ8S+xD1N0fPX0NzPWSSvRNLF5lINARbs8A11BBpw0JH5Z/OUm2tJeRm gj3sdslr/9HBzxOPQfGTSJuRBfDRJek83Bh9a5DMjDbcisARDNrCYGubU5ushMnTKN 7YtBu13wzUeN5s5bnYtInW/9FgrlhxF2mwyDPMqnt7gDBw4FkMAbTlxxaYzQY4c9VY fRTlctlooO1tLICiEc1XAEjQc5qqhBBqxtt32gNd+89mdC5j7VjcP2Cc0ycDnSWYY0 q6Iz5LkrkkJ9ieAIw8/eA6MYepbpp9DI2keIQtfrCh8AuZOBSh1Sh2FlhOOBd5Rhq+ v/GSRVWr0r2Kw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B586DCD1299; Wed, 3 Apr 2024 11:34:52 +0000 (UTC) From: Nikita Travkin via B4 Relay Date: Wed, 03 Apr 2024 16:31:42 +0500 Subject: [PATCH v2 3/3] thermal: gov_power_allocator: Suppress sustainable_power warning without trip_points Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240403-gpa-no-cooling-devs-v2-3-79bdd8439449@trvn.ru> References: <20240403-gpa-no-cooling-devs-v2-0-79bdd8439449@trvn.ru> In-Reply-To: <20240403-gpa-no-cooling-devs-v2-0-79bdd8439449@trvn.ru> To: Lukasz Luba , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin , Nikita Travkin X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1262; i=nikita@trvn.ru; h=from:subject:message-id; bh=gQ/lCJyqNkEYXe64V1azuLWqhZDrPtWfWIzY6a+krrM=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBmDT7a1s4sHI60htO7JPYtLc7eKRvDv6ApO1t84 n+JQrinvFmJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZg0+2gAKCRBDHOzuKBm/ damjD/9nikGP8u0SyJYkb8/hRI+pmOTDJA6BZr9vFr3xFe9n8VUXi/uAQCG6N6g0/DMZZe1wHwD n7SObRXMQBQ8p6G7XxIbkEKqVyQgczzrt2q878TJ9utGt9JTGSlSKKVnslumOQ5brXm9Ykywd9D S+O4JveQ5TS1yFPEb4y9G/Y9BmP/URNMt2Y1smsu4E7PwbfFylfM/UUv30MhfXMK62wgQ9lecmf lj4KPmxY0DkmV5LTOZDB0WLz75bHQ/7z2ubYtv8FCZJHyZjIVeWCjr7XxDz7fmb2tZc1nmuEZAG zdSWk2wr3i/4kc2CY9FTNzqJ9Go6cLlWvMB7xNp7rx8oCSo4YBE/ifUVGncff3gVgTx96HmdyBR r3StSRE0Ss8Iz6Clwsi0bexqXEMJWDBryOIuu4h38WVUshRaYP/XAam/9bfWaPiad8CeIVGx+Eg RrgzNMB4AyKLeWqUjNwWQwoz7NQQXr1rcB/bIx2JY8T7MGlCdgTKNwjIfRGXna44VmTDwmFClpo 77Nx6AAFdDkHjdpTCSEpzgvT+9i1p9kgfFEPK+tSDZn5bGu68pMmzJjlVmRb0TUWjxBpqn9cYmb gmbdl/egKr5zgMwp2p32obMQq9/w2kMubA2wXhBBHKPWu3iJy8m8A10uMbm9AAJJj6fxinf7NX8 pL7h1RbIlz0xjtw== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Endpoint-Received: by B4 Relay for nikita@trvn.ru/default with auth_id=151 X-Original-From: Nikita Travkin Reply-To: nikita@trvn.ru 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. --- 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; -- 2.44.0