Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp85751lqo; Wed, 15 May 2024 08:23:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvQxOmx+OWqWNdYRCP6OS/J/xJYtxwVVmtpH5cKjRRB4ByW0aaD9gBXJf4+GaUVYXTXyFLVldvYld0wUIvth5KSNwj3OWKyDdl/Ha+Aw== X-Google-Smtp-Source: AGHT+IFi62PlJ+ilrj0CECwPjLe3J/aFrcH6ZC57aIGm7xl7Ea5GLQrJwUqWwOruwdJ4UUsDmQZd X-Received: by 2002:a05:6a20:de91:b0:1af:cc9d:23af with SMTP id adf61e73a8af0-1afde1c5e0emr13256888637.57.1715786587505; Wed, 15 May 2024 08:23:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715786587; cv=pass; d=google.com; s=arc-20160816; b=rTvfbnZuNF25uvOl4/2YIRc59J3b3rsmuzMgnw0jY+1ySOSuVyhLc14139GY19l/y6 tt+ByqYUdABvNTs8DuUZTDkSr1dyOA+PgrOu4gP8pXAEb9qxeXIROgZNySo/SFYQ0cRT Q7LT+rfCJCVd1GH8KGyfXRIp+XKewhAMdYymHrXCqqmUETK2vJgK1pRGuuODnAjZXocY fQkJB4hfQ039tFVUulJJlvvADnFbpZOgdNYsOdt1QSo7w9/6QAc7dIQGowz9DvOxelL/ I+SVZZG3udgIS7EeEGQdrY+asduHl+u2NTdFVB6h7T5qhluDhooabZR83/I4Byoy/2bu iUjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=e7fuG8q4vN8I17KIqwuUEjtG/Vg923yjRqjA4jq2rhI=; fh=VOf74zorp2LbhzJoniGvS/gDSiZb+ZUOcm4vnJfinj8=; b=SL5W6zUu7M/JoSQipLRWh2AUe3KhiwjXl0ig5jpNhvCjyorD7C7PeOWLlA66ydP3eZ 6Q2KPA4jHg73ROdn6BzGyDet3+CbAipbQmBad3ftnPvD3MbnOMaE95T0bvvNKr4WUNZ1 hvCnWOULRuRIyDSmucLSup8zjd/9//lqmkG/PgI23CVIfnNe1XFySh14Dw8yTWr+rTr+ EycoCkGA25UgR8CO5nkGZIkghSarLsi71alg8YvFHsjjOIJx2kCSf9Ldj2tmFf/RnzoL e08ai6TOPjU11vnzP+w6Fywypy4JzBg0qKwWQDPMH0qUFBm11Ubu4ZpbY8zkxSF25Q5p SIVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=OCb7BGKi; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180063-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aeefd0si13467498b3a.198.2024.05.15.08.23.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 08:23:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=OCb7BGKi; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180063-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0F441B21A8C for ; Wed, 15 May 2024 15:23:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C823155A3C; Wed, 15 May 2024 15:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="OCb7BGKi" Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77D51155A26 for ; Wed, 15 May 2024 15:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715786575; cv=none; b=Z+LoIJkM9QYfWMQPXIwQ4FdmseC7BdYTrVsWYF33RqeE3OI1XZqMwsQWRhXIpkCvhRg/29rKjC01jYX5Y7SgDgxiOE28Np8dFaILcBdi/rl5ILk5vwKnx8vXPXENhruz6g0eb/lF0df416C9mKPmrj9yLxEL+bsk9AzfJ/5SDTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715786575; c=relaxed/simple; bh=LZdlNOSTbe6hze4dhwfW5nwE8DrpSomA3jo7BRPo+rs=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=US7bjwyAwvquMlJ7h2lp33yVHBy7TpOo78Y/NlQ91dvzVIqht3IUFUAzoDfhF12si+aJf5yYUzfQ/0y0c+xmapZ3z2ZSC4cRXas3ZmDXbS5hlIvow57vPQxS3nnu2TAlCvqBhH4SC85TINet2oLGsfgpMEIQo5nZ7Mh22y32lIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=OCb7BGKi; arc=none smtp.client-ip=209.85.222.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-792ce7a1fa8so451932385a.1 for ; Wed, 15 May 2024 08:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715786570; x=1716391370; darn=vger.kernel.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=e7fuG8q4vN8I17KIqwuUEjtG/Vg923yjRqjA4jq2rhI=; b=OCb7BGKizVU9isgcKz/8QB2lCIAkV9BxwtIaAfsIc8aGMuuSJFJi57oGk0CfAaeVmg g5xbyu6kbQM/mZqx8CplYUovQzxDZmJeas94S9V9Y7C00wBwg9zqJYfkvdyGCs8CNCtb 21vW3LDAYBe8bAg65yN2matYcQHUueHR2IM6z0kh4SEIrDN0JQjd3AYFuxqx/RjmKmsF lSZR6Wn3icvQwdaxuwFkza4agHNQf9YJynQ0LxQ3I4sZ5lU4RoT4A8LwQ3vegD/Mmt7R RVygSroJS17avJZutb/dlg4SWUhfpcQizdhND3FVTmFAkTSMnbtMb5Em/l+nsyjFO7fU 21BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715786570; x=1716391370; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e7fuG8q4vN8I17KIqwuUEjtG/Vg923yjRqjA4jq2rhI=; b=JLvBkdlgBsnCBZJLgoY3xR/GlFhcgtAf/C7xdRUeoV70Z99ZFwPn+it7F3BmyTAdIV sGEuaYn/j3mWw/TpGdi8ALx4MMpwBS8HFuy/cYpZAmLc0pl1gTkJ0m48HewpsvGCanYA PuPTyBGqEtcOI06bIPT1oJBMhs9KEtEf38lOIoF5oYhBmnrRUO7b1ZQ7qL6DVrMpzffo wuEIKzFhs3bH/NX8+Dh9oIfHJjwmgMueh0QuZ/VtgNBRTsGi8Lp4wnN7mDcgoaPVnXaj GprwJ7grfc/Kl/gtSPuR/yZEjG+ru3HYEcxk9DfYUMcSLQEZUTgmRnImgpE/E9LYcRf2 5o7w== X-Forwarded-Encrypted: i=1; AJvYcCUZ6JLZG1KZ9saodsBR+MIH0TuS0jGmkyVN/qqacyT68tIcRXbXY9SaevxSOBpQeKb9PhgsUbzGBlWXNjV+rKubgbQq0SsNYEnnhwbs X-Gm-Message-State: AOJu0Ywu5NhBc8iCTWC+ujdOAcv+VTKVz4o0WFrbuQ8SCInk+RJRFEN1 V1uuPtrxmnVp/m4DFVWuBEbddX2hAuJLvGT+vsPdT7MW9N4sI72UH9Dyry4fDaGf5ZS8aG6+q4d uVVo= X-Received: by 2002:a05:620a:e14:b0:792:c413:f827 with SMTP id af79cd13be357-792c757412dmr1767831385a.11.1715786570417; Wed, 15 May 2024 08:22:50 -0700 (PDT) Received: from xanadu (modemcable018.15-162-184.mc.videotron.ca. [184.162.15.18]) by smtp.gmail.com with ESMTPSA id af79cd13be357-792e91acc94sm245912185a.26.2024.05.15.08.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 08:22:50 -0700 (PDT) Date: Wed, 15 May 2024 11:22:49 -0400 (EDT) From: Nicolas Pitre To: Julien Panis cc: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Matthias Brugger , AngeloGioacchino Del Regno , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] thermal/drivers/mediatek/lvts_thermal: Remove filtered mode for mt8188 In-Reply-To: <20240515-mtk-thermal-mt8188-mode-fix-v1-1-e656b310b67f@baylibre.com> Message-ID: <06np453s-183n-68qn-o33o-97q4163oro4s@onlyvoer.pbz> References: <20240515-mtk-thermal-mt8188-mode-fix-v1-1-e656b310b67f@baylibre.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=US-ASCII On Wed, 15 May 2024, Julien Panis wrote: > 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 Reviewed-by: Nicolas Pitre > --- > 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, > -- > Julien Panis > >