Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp314976lqp; Thu, 21 Mar 2024 01:54:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvqo8wzYHCq7h0mwXiHbk/AhgqFWm+0P7UwmDT/6RJ7T5Rzko5hAgKSUBmlxghUXxjwDOoEJl894k9UZmnGb7VpOevmJ1+2gh944232g== X-Google-Smtp-Source: AGHT+IFApyHEF6WeBP35qtW1/d8TcOwrjZDZKHtGToTlbrfl/u54bMv5TeGxzLgDbhA+DZG5Epq9 X-Received: by 2002:a05:6a20:ca0:b0:1a3:67fd:46b1 with SMTP id dt32-20020a056a200ca000b001a367fd46b1mr7079188pzb.36.1711011253810; Thu, 21 Mar 2024 01:54:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711011253; cv=pass; d=google.com; s=arc-20160816; b=X/P7jwaGMC47MZA+TNCY30tmewTCDKAU19Z4HvpUW8YvLhdrPv/8l2hTQNf/fXT5YU RPsNt6ntCrgfQQ0UOz4AE3y4v1vTqnJG2VusikJdBQafbvaiFci1lDwz0H5gShL0JAEI vt6D/3k3V18XZXDPow7SYCBJDGh2Mgy4K6soRoHMa5VaSlJ+4q/+we4bfllwxpQui4ak h8CHY/DI5Mfdo07Q8GbJwJwsRrKDrmHEoe8XhfzopB5DSIcc6swhbfQK442d3bLPs3g6 uRCMdPDfhA7H6XnUbo8Uy93Gvmafkf91/dBbwwEzn74SvJq2VSKaYacPmkodL40MM+SL OW7Q== 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=78eUGKcfNMoCDaD6zNFQeyhlQFCrg4Pv/BgE+AFIpk0=; fh=78yUf1rG6VuTWBOJXO6BTLRZH1QgL5s39WscFn+9aqQ=; b=akbfzpoe1ySDJBIx9jPrme/A+iB4bjaiBNG+iyVMKgRF+/Tjn94CXA1hW++PfRxJkt Dw4j2Y0QcsciZrLnNL2Xk5BO/6/KpWZVv6Cull0Sk/JY9fRmiO4rkGJsKg2wPNVrQznI k4CQiEF4lvFwfvhxjz0vPkGTOKJjOEV6P9Dur1SkIUr8Bn7580i+NwHtYME4Y8EfrBQm h+kpmlrxpyR03w2js0BMF21pGj58Ny1+hc6NOTpDBMZHMlQfZzbP7JPkz6wHK149ZQUj 9+YXaHsSqVBB9gef+QWR59x4pHLY9fBMLpO1aeR5qY6UMvsfL5FLXhU4x2ngi0lX+68+ oXAw==; 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-109806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z10-20020a17090a1fca00b0029ba2f720b0si3139987pjz.55.2024.03.21.01.54.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 01:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-109806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109806-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 84F71284E9A for ; Thu, 21 Mar 2024 08:45:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 155A220326; Thu, 21 Mar 2024 08:45:01 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D13A1CD1E; Thu, 21 Mar 2024 08:44:57 +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=1711010700; cv=none; b=dPJWc3HhFK/Kch14ebJVvrj3kQt7FnXdwGsRPWg1ngrqY/UbVcFBm8tOxy1zCZiS/dbxUpuUF/JPe/hX2HVjKCMh+OnZRREuxMxh6OEM69d4saBwXwR7aujkY8Y70PoVZo+3NrtcwjZbBY9x04/3CVwG9pZsUFwJfU8sEoykdA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711010700; c=relaxed/simple; bh=5PL0FOqgSLRcQLeMbWOwS8bEyOSQwYf2t/O+B+Vwrb8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=X3NdJqKINmdY5g7zIA0a2qMfkJ6a7YLNawa8kVb2oCJWl0C9EMEmGXyxOhBL5DNI/0LvrXRz0zt4d6VeD9I+8VHvTsQE5qXMc9KJPz/a3CWGrCLzan6gYg9hxiC4it/0T85ORoKf4ros4YuItT5xiAowsxZ/3fxl2IaC9K7EI70= 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 284091007; Thu, 21 Mar 2024 01:45:26 -0700 (PDT) Received: from [10.57.72.138] (unknown [10.57.72.138]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1BC9F3F67D; Thu, 21 Mar 2024 01:44:49 -0700 (PDT) Message-ID: <3afdba54-2a85-46a6-a0f1-a61b4d0d8930@arm.com> Date: Thu, 21 Mar 2024 08:44:46 +0000 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 v1] thermal: devfreq_cooling: Fix perf state when calculate dfc res_util Content-Language: en-US To: =?UTF-8?B?5byg54Oo?= Cc: "tao.huang" , heiko , "rui.zhang" , "finley.xiao" , linux-rockchip , linux-pm , linux-kernel , "daniel.lezcano" , rafael References: From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/21/24 08:37, 张烨 wrote: > > Hi Lukasz, > > Regarding your question about how I triggered the issue andifI have a > driver that provides the get_real_power() callback: > > I encountered thisissue whilecalculating the GPU power consumption onthe > Rockchip RK3399 platform. The GPU model isMali T860, which isan ARM > Midgard GPU. The driver version isr18p0-01rel0, andit provides the > get_real_power() callback.Best regards, Ye Zhang Yes that would trigger the issue. Thank you Ye for sharing that. BTW, I also use RK3399 for my mainline kernel development. I use the Rock Pi 4SE with the mainline GPU driver 'panfrost'. That GPU driver doesn't support the get_real_power() callback, but maybe it would be worth to add it... Please send the v2 and I will add my reviewed-by tag for it. Regards, Lukasz