Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp153826lqo; Thu, 16 May 2024 02:08:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlrdSPCJ0KGAoelU/TZtOiF80+qEIxb8Q1vfUUw+jZfYgZiqOP6/5YCIkTIJzAlDoWJBRwTZnZpPWMfDYsY5TraKwZ24iUN0f5n7lYnw== X-Google-Smtp-Source: AGHT+IHl4TzRPMN+OEN91oG+e3yrhkXg1L0Rz9yF3gNipyp2lU0ItVtrBK1qALZ4orgZx9eWVNTx X-Received: by 2002:a17:906:f296:b0:a59:c833:d272 with SMTP id a640c23a62f3a-a5a2d5356eamr1296573066b.13.1715850531910; Thu, 16 May 2024 02:08:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715850531; cv=pass; d=google.com; s=arc-20160816; b=YJZ/YbsvkQ3z/TrWGbms+U8d9PfeVGBIrTyr69l1rMpliSNqsjF+Aw5pFDOFR07uHc iaF+LQLK6FCqFWdiPeV6AP9VgCWr63cr8lO0jL4UYj2tGbvuCurEDzkHn6AQGKTF4pTG 06IRvSW6qEyMCd+s1/b7uXJXcObMstOvU+ZrK9eKRdywzVlLCPaJwbckkG3iMIJV3chP COtISJklv8QZckMoJkShr7JYKVFU5DjhdAAA/9NyvOENcTjLwDOA44JOPkKPyPnDZvxy GzekuDAs3To+c53Myr3esAup4OwcbocVmSLTcK9Vy+B8bX9wKropgOffwm2MYE+1H7/U YjaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CPaLwBA3pYm8v6QU7KqOj6WBMgQZi+fj1uTzlIRRqXw=; fh=XxPj6EUffmtyB0m/avOH5OIwEuli9lUQclpK3AOSwHI=; b=olWZUAmSlvenpK9KVg8IvXv6a7AmLf4EtCY+fgw9TwErtRuTTZ1xs1UyIhEdC8Pfov JmRIG+wdpfR3ty0MZHZfI9TcevhEQ41FYqD3+JIkcH4Zo6iTCMYU4EcAjKQ0OWlc143y cHUL36TFGzsqXbE+ho+7i6XbJEa7/TJKTUj3tchjTLqj+WChK1Prnns9q6GvcDAm+GyB VQsXbqnxQdH5M1DjQobvYiFKmEYKPrVYdOcDLO0AfM6FiZ0UATAI3oHWDsG2OhdBcidn bnl818weHJP2yv86QC6tPdCQPv8di+Fpr0D+J4ocwwX5sIfTTj0TbgryAYxCISvSUB54 maLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=1qmPN4MS; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-180815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17945edesi853321566b.89.2024.05.16.02.08.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 02:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=1qmPN4MS; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-180815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A4ACD1F215FE for ; Thu, 16 May 2024 09:08:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BB6C143725; Thu, 16 May 2024 09:08:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="1qmPN4MS" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 CED062576F; Thu, 16 May 2024 09:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715850523; cv=none; b=g+mouDPfWYj2WyjO8CwkHDDffhCEhChbH9dzaBkFjvrxhZeK5oYwnbmYlbO7tDc3b947xqOoV7oz3I5+R3IhSw0n75MyZyBAkCQnqaMVJiKeKAYhMDgOiDG+0KNFaBSyuKL7GX6zuVOLGDXHcx/R4tQDuVKUBlcZPxiIq47/C10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715850523; c=relaxed/simple; bh=vAvIJTNsbVbIUiKWdSGN2T4HDQRkXCi7vBZQDlnrV20=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WB1a6v4y441n+7NSV8dFQu+QQJQmfbjGKqM+6DEfIhswwApvmAUuy+Z8dLshLhnoZLl2aK55fefDg0BzFYOPhiUfogOolOVb7Na+3ha2q8dYejDSShxAagUMg3G2hzNdkdaX5Bg+TX6rtsl1KNitUWEV3SUo2oXjiueM95Tmyas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=1qmPN4MS; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1715850519; bh=vAvIJTNsbVbIUiKWdSGN2T4HDQRkXCi7vBZQDlnrV20=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=1qmPN4MSogKM726TEtrCF4Tayjl4D9lGv8cUo9U3gjtBt4iuHPC4vUOcHtcVtC7LL kZ2tPsVVIjSqzQMLT+QkQPfI6+vPhn41A+iKsCfqm3PVa62heoQ/5xCzeu6jHJ6y3G xDopWBQ/hLf/EAD4n6TM+jLLuPAxs19y3tKU86/FFeJe7g8q7Z5DH5NZAQ+T2/Gal+ VHs+vNfktYstW1sLm9wglPx1XzgUY0ffpKw12A5apzywF5U+UWLyC50QxeWF9M2AHe KE1gjqOyoCVi20JlkHRQTxkCk8HktQYfhVqRxyRb1BHAmM3Hsaxz0gMlBGFSdjHCDH 5NKeFVye9ny3Q== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 3FD18378218B; Thu, 16 May 2024 09:08:39 +0000 (UTC) Message-ID: Date: Thu, 16 May 2024 11:08:38 +0200 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] thermal/drivers/mediatek/lvts_thermal: Remove filtered mode for mt8188 To: Julien Panis , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Matthias Brugger , Nicolas Pitre Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240515-mtk-thermal-mt8188-mode-fix-v1-1-e656b310b67f@baylibre.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20240515-mtk-thermal-mt8188-mode-fix-v1-1-e656b310b67f@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 15/05/24 17:03, Julien Panis ha scritto: > Filtered mode is not supported on mt8188 SoC and is the source of bad > results. Move to immediate mode which provides good temperatures. > > Signed-off-by: Julien Panis Please add the relevant Fixes tag, after which: Reviewed-by: AngeloGioacchino Del Regno > --- > Filtered mode was set by mistake and difficulties with the test setup > prevented from catching this earlier. Use default mode (immediate mode) > instead. > --- > drivers/thermal/mediatek/lvts_thermal.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c > index 0bb3a495b56e..82c355c466cf 100644 > --- a/drivers/thermal/mediatek/lvts_thermal.c > +++ b/drivers/thermal/mediatek/lvts_thermal.c > @@ -1458,7 +1458,6 @@ static const struct lvts_ctrl_data mt8188_lvts_mcu_data_ctrl[] = { > }, > VALID_SENSOR_MAP(1, 1, 1, 1), > .offset = 0x0, > - .mode = LVTS_MSR_FILTERED_MODE, > }, > { > .lvts_sensor = { > @@ -1469,7 +1468,6 @@ static const struct lvts_ctrl_data mt8188_lvts_mcu_data_ctrl[] = { > }, > VALID_SENSOR_MAP(1, 1, 0, 0), > .offset = 0x100, > - .mode = LVTS_MSR_FILTERED_MODE, > } > }; > > @@ -1483,7 +1481,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = { > }, > VALID_SENSOR_MAP(0, 1, 0, 0), > .offset = 0x0, > - .mode = LVTS_MSR_FILTERED_MODE, > }, > { > .lvts_sensor = { > @@ -1496,7 +1493,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = { > }, > VALID_SENSOR_MAP(1, 1, 1, 0), > .offset = 0x100, > - .mode = LVTS_MSR_FILTERED_MODE, > }, > { > .lvts_sensor = { > @@ -1507,7 +1503,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = { > }, > VALID_SENSOR_MAP(1, 1, 0, 0), > .offset = 0x200, > - .mode = LVTS_MSR_FILTERED_MODE, > }, > { > .lvts_sensor = { > @@ -1518,7 +1513,6 @@ static const struct lvts_ctrl_data mt8188_lvts_ap_data_ctrl[] = { > }, > VALID_SENSOR_MAP(1, 1, 0, 0), > .offset = 0x300, > - .mode = LVTS_MSR_FILTERED_MODE, > } > }; > > > --- > base-commit: 82d92a9a1b9ea0ea52aff27cddd05009b4edad49 > change-id: 20240515-mtk-thermal-mt8188-mode-fix-e583d9a31da1 > > Best regards,