From mboxrd@z Thu Jan 1 00:00:00 1970 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