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 9DF5814658C; Fri, 5 Apr 2024 09:34:43 +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=1712309685; cv=none; b=H72ZqahUwys601wHEvv9CTea+38LADJvsxwO156iQP605RoK/j1VNc+/QMdbS6BIj3BGI2BFWWO2gSL7rybxUunikmeQF6vExy6TPXFv3f5Fc5U79wVSqeryiVDwooNq1faAgvcPflJhSG1WSPtWYwq+JzYZQ4qbxZvlkTej3RI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712309685; c=relaxed/simple; bh=ahzdwbgj+o5cir41CNjL0fFahwMszfTtje3SqQIi+qQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kCmRoQZBlLcYZtnZGCjm4UOuYgdJEo+k7QkT5sbcJO/8OwR6NitKVKZDqh1Ehv/ByuR42MwqX8zBWhIuxIrLC/k6PkwwfGED0xAtCvkrYDwruAv79igqqSNWfkhAGGFu3gl5Tb2+UJa1mP1lv9HuMDnVnZ4R1xKGhlHSNlylsrM= 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 75228FEC; Fri, 5 Apr 2024 02:35:13 -0700 (PDT) Received: from [10.57.74.176] (unknown [10.57.74.176]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B76E33F64C; Fri, 5 Apr 2024 02:34:41 -0700 (PDT) Message-ID: Date: Fri, 5 Apr 2024 10:34:43 +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: [STABLE 5.15][PATCH] thermal: devfreq_cooling: Fix perf state when calculate dfc res_util Content-Language: en-US To: Greg KH Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, ye.zhang@rock-chips.com, d-gole@ti.com, rafael@kernel.org, "Rafael J . Wysocki" References: <20240404101329.1956664-1-lukasz.luba@arm.com> <2024040558-defection-shadily-1879@gregkh> From: Lukasz Luba In-Reply-To: <2024040558-defection-shadily-1879@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/5/24 10:33, Greg KH wrote: > On Thu, Apr 04, 2024 at 11:13:29AM +0100, Lukasz Luba wrote: >> From: Ye Zhang >> >> The issue occurs when the devfreq cooling device uses the EM power model >> and the get_real_power() callback is provided by the driver. >> >> The EM power table is sorted ascending,can't index the table by cooling >> device state,so convert cooling state to performance state by >> dfc->max_state - dfc->capped_state. >> >> Fixes: 615510fe13bd ("thermal: devfreq_cooling: remove old power model and use EM") >> Cc: 5.11+ # 5.11+ >> Signed-off-by: Ye Zhang >> Reviewed-by: Dhruva Gole >> Reviewed-by: Lukasz Luba >> Signed-off-by: Rafael J. Wysocki >> Signed-off-by: Lukasz Luba >> --- >> >> Hi Greg, >> >> I have solved small backporting conflict to that v5.15. >> The patch is based on tag v5.15.99 and it's for this >> failing backport: >> https://lore.kernel.org/stable/2024033050-imitation-unmixed-ef53@gregkh/ > > Thanks, next time all that I need is the git id of this in Linus's tree, > no need to point to a previous FAILED email. OK, I will remember. Regards, Lukasz