Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp575996lqp; Fri, 5 Apr 2024 02:33:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOQzDKdB/LkrhZaHiYJVhL6ZioPAFuONG70U8CmIiuHUPN5D8z+Rfn1m8trrGLxa0f78xLa/505o2xhY4j0Snf4SgyMaRGWHikIF6dsA== X-Google-Smtp-Source: AGHT+IE4O80p2XQwIU6dKhpTAckSv7Tc0hGlH2PYu8Kj6CRqseakcsteH8iB2RUuwvUZEIeMBmuM X-Received: by 2002:a17:902:ea44:b0:1e2:5237:62df with SMTP id r4-20020a170902ea4400b001e2523762dfmr685854plg.58.1712309614933; Fri, 05 Apr 2024 02:33:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712309614; cv=pass; d=google.com; s=arc-20160816; b=oYpUyZU+22H6J8VjaXjmfWjT6t2VeSmsk9Zy8ptPVIpql57w9h0pt+6JoebjDIk53B v3sTZkYLatcXSD7oi6wiZp9qRGdVRuQTaaHnP3Dhi5lDy7LOYXqiW+JU6aGJgXlwx76w RMuQPJXXc0UNlncNz4RH7JIqVT6gco05zz8qba2iO7vyLy76s0tsWLMR0EQEW7AEQOPx X0zMf1rrVsOFvv6nTjPH0YbiY0GczJnm6d7tDKzd1Ckb61isonCjV+hjTGmjukepAG5u caSnDXi8UBsruYcX+9+hrBIpL+1BAERNhQ8hKoD3uuDw3AYu8c6xgy3Eeq+Vqk6iWMMt KA4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ESWF2aI45389ko8Pze5G4bNqE2ajCvxFgmGNeQmSOaw=; fh=8wZ/i3/GISg3TwGKI4yZPJQ2yePe6qi5Bg8uxbT8DYI=; b=svJZIaWhY0ADmAv4J5AC5g1rxcxuNW0sub8wcHf8b3/FYa30qKnG9TXg8bx+l6VNQG 9/RTSLTtfHNqx/R6ug5BV75NkF1fwInphvBPnYWJ7u0AONgLNDKvUTzM0BPoNMXRdZOC 3sLqJkYta3x/E5PQaEcQu+UxsMq7bA/0rJFb3Rp+wEIXJ+DC3Cr08YCi6KPKuerL1kz7 a7IEZ74ex3Hy6lImxhMxcE8EJ/2hQF/TkCjVFFhzpwhXpOTdmTOm2oengmnm0y3cms0l sdWe8N7tDPuSY3OFG/z/G/RZapAFvLz8NsuuUf+tfpB6aX2DVoGKJueWIoxCmV1rmoFn sFXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f3KxCRgU; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-132744-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z14-20020a170902d54e00b001e09c4eb126si1073917plf.169.2024.04.05.02.33.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 02:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132744-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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f3KxCRgU; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-132744-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7690F2833A6 for ; Fri, 5 Apr 2024 09:33:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55A0E160790; Fri, 5 Apr 2024 09:33:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="f3KxCRgU" 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 7C54F142E73; Fri, 5 Apr 2024 09:33:23 +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=1712309603; cv=none; b=e4LEbAAGjfRCjkYZE66EhCuqfoPS+IKmjJhZjBgsuMslqYIqHZwgh7Up6/Q47xXsMInnWME4KWKx5KSW/Z0UAWAO/vXvdGkSFTyOBdab+/q0NmHEA25fcdYLaLg2nVVAbVYYt3UdyJ68wROzSgJy4jwS7ISLREV6lwhp79qw+gY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712309603; c=relaxed/simple; bh=WTZoAjTOwh9BcVL0bHX8/oS3W4NlAY1M3zbmL2DAUDg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E0lhmq/EB4kbf3v2xDZ0JzS7M6Lv/Y4nRz4JZk0KdsFqChicJxacZIjjlvG1n8KWZ2WSfo18hRvqJ00EEZL7MSAu7kGoEU0mL7a5D7Q/8X2vKrAvy+531Oq0nsVOncY/5vqT/y3CoFEDeINQSQujBgI2v072aUsOUB/4apVfuwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f3KxCRgU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99742C433F1; Fri, 5 Apr 2024 09:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712309603; bh=WTZoAjTOwh9BcVL0bHX8/oS3W4NlAY1M3zbmL2DAUDg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f3KxCRgUhWMWNdsWwsFPC+QAepS8hH1PU3YsLykzXkwKxNTdqG/pL64Oz8aTAb9/n ByaPe+LWd64msgPjQu3Dt/GWeGLOrmQM0z8mzTMc8p0vLN8TOs8zCSzPwp4ZNo59Dd R/0haKU/emEUIawYN/RFmQfeE/zFaIdorr28MR9A= Date: Fri, 5 Apr 2024 11:33:20 +0200 From: Greg KH To: Lukasz Luba 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" Subject: Re: [STABLE 5.15][PATCH] thermal: devfreq_cooling: Fix perf state when calculate dfc res_util Message-ID: <2024040558-defection-shadily-1879@gregkh> References: <20240404101329.1956664-1-lukasz.luba@arm.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240404101329.1956664-1-lukasz.luba@arm.com> 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. now queued up. greg k-h