Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2212966rwd; Fri, 2 Jun 2023 06:32:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qexYPbk7SLWFc11PH05icl9s4Xa1KuBZkzqL9aHpMp7AUcRapUxwVO46ad/JFR6+EEPIE X-Received: by 2002:a05:6a00:218d:b0:643:53b6:d841 with SMTP id h13-20020a056a00218d00b0064353b6d841mr10261271pfi.2.1685712755048; Fri, 02 Jun 2023 06:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685712755; cv=none; d=google.com; s=arc-20160816; b=zW2k7DXON0oPOvoNfPTND4Nzkp/JHKUgtAyipAey84oSosZQyqDWdg2y1NZRoOGJLd J5ya43BK4LVacuiTUopl5qkvsQJNQt7tCLwrUfR9v1NUS+lx4hAo093lcsNF4bIwvBOT s57pAquvPjbHhfdsSnRllihCEfijLDMX81KL8T/rKqOrp7YJXfmjI8bH6tPNEJFGqXhN uDbajAVLuotC7/GPPZO0sScrtFAL4mdz0zucC6yK9wnEkOicpNApvgm/JlpH5xUOy1Bh u3qaFqtqrVP+5/nvAJqNJZXXTlST2FyqvFIG/U18gYryGXXEKne0WgAyhNc1qqoaFI3l EHuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4eDlE7VsUf+shujEPMAVl+tm2R0mPz8qsAv8B1LJ9ro=; b=JqdP3TUHIH/QvRUIfUZdxM3j1u6TlG3I5/F1R3Snf+/QCRJWkCDC9JVyzCtUXtq9Vr 0hU54+zHLFDj02TqYc/bluf6NwPBx/G5EeNcsa506dnCNYxfes7F3sBEQNPIxipe35UU qecHxIAhw3RJLNV1hwzZ+18/0WnV+T2olzz4OBS+EzdYxL9y9ptakS0FhudxtYdBIJor YcLIM1GLWEoJBLYG4wqe6FWiU29RYSizvTV6LVKCFZJm0EMkyZ9p52aXIuUaIwAetJ6h NQW4eH0haAc5qgijfMXo6K+Ze+JzSDcGGD0MCy22STodUJajE2WACFrA1b1vpB0HxJbi d4jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="oL/F5giq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a056a0000c500b0064f98fbcac8si745287pfj.293.2023.06.02.06.32.22; Fri, 02 Jun 2023 06:32:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="oL/F5giq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235544AbjFBNWl (ORCPT + 99 others); Fri, 2 Jun 2023 09:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234217AbjFBNWk (ORCPT ); Fri, 2 Jun 2023 09:22:40 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24D6EC0; Fri, 2 Jun 2023 06:22:39 -0700 (PDT) Received: from notapiano (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8E8C766056D4; Fri, 2 Jun 2023 14:22:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685712157; bh=9gZsj5IAGBccJ98w1UVTDdhacpAgqlDEC1+urDUBzEs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oL/F5giqODrgUiS/uhsae74g85EyeUwD1ZX68qa1dTMpzQbNImIx5mfhMIZAkafYJ btdZ7ZU85HXvpyOpFHbABF+QEBD19mj7HDOgPCyhZUgU2ROKFNkYM3pGyi9HBYXyW9 QlkHh8Bnb1sQHmFvDm3D9judWVsN00Vo/KfT824aU9eIz1nmBvU+tUxpaK3R0jsfR7 ojy5s8I0VCS+1SqG8vzIeWgjE3VOQhrBAlY+/Yn2QNorF+CmIJDekyxuWHwTfvj1E9 BCKFiyboFStz/PbZGtinebUcJMyoK1JERCftTy5qVJVisvyXSekiAc56TZ5zOzRjDv QvDvPsEWdos8g== Date: Fri, 2 Jun 2023 09:22:31 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Daniel Lezcano Cc: Chen-Yu Tsai , Alexandre Bailon , kernel@collabora.com, Balsam CHIHI , AngeloGioacchino Del Regno , Alexandre Mergnat , Amit Kucheria , Matthias Brugger , "Rafael J. Wysocki" , Zhang Rui , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 0/3] thermal/drivers/mediatek/lvts_thermal: Fixes to the interrupt handling Message-ID: References: <20230428195347.3832687-1-nfraprado@collabora.com> <20230502103344.GA3388518@google.com> <87b0f5cd-67a8-fbd5-5ca7-a286b543d796@linaro.org> <8a38a0da-3a4f-4e39-9f9e-42682edfd9bf@notapiano> <68393044-9d28-8402-e190-7cbb28442f6d@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <68393044-9d28-8402-e190-7cbb28442f6d@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 02, 2023 at 10:07:29AM +0200, Daniel Lezcano wrote: > On 30/05/2023 21:46, N?colas F. R. A. Prado wrote: > > On Tue, May 30, 2023 at 02:27:36PM +0200, Daniel Lezcano wrote: > > > > > > Hi, > > > > > > On 02/05/2023 12:33, Chen-Yu Tsai wrote: > > > > On Fri, Apr 28, 2023 at 03:53:44PM -0400, N?colas F. R. A. Prado wrote: > > > > > > > > > > Fixes in the interrupt handling of the LVTS thermal driver noticed while > > > > > testing it on the Spherion Chromebook (mt8192-asurada-spherion) with the > > > > > MT8192 support series [1]. > > > > > > > > > > These are standalone fixes and don't depend on anything else. > > > > > > > > > > [1] https://lore.kernel.org/all/20230307163413.143334-1-bchihi@baylibre.com/ > > > > > > > > > > Thanks, > > > > > N?colas > > > > > > > > > > > > > > > N?colas F. R. A. Prado (3): > > > > > thermal/drivers/mediatek/lvts_thermal: Handle IRQ on all controllers > > > > > thermal/drivers/mediatek/lvts_thermal: Honor sensors in immediate mode > > > > > thermal/drivers/mediatek/lvts_thermal: Disable undesired interrupts > > > > > > > > This series seems to have solved all interrupt storm issue I ran into, so > > > > > > > > Tested-by: Chen-Yu Tsai > > > > > > I gave a try on a mt8195 board and I don't see any interrupt firing when > > > crossing the temperature thresholds. > > > > > > Did I miss something ? > > > > No, indeed interrupts seem to be completely disabled on mt8195, even after > > setting the controllers to filtered mode (a requirement to get interrupts). > > Really? interrupts work only on filtered mode? That sounds strange Sorry my reply was confusing, let me clarify. What I meant to say is that the threshold interrupts (cold, hot2normal, hot, low offset, high offset) only trigger in filtered mode. AFAICT that's by design, since immediate mode is meant only for one-off temperature readings, and filtered mode is the one meant to be used for temperature monitoring. But in immediate mode you could still get the data ready for immediate mode (bits 16, 17, 18, 27) interrupts triggering. Though note that I have disabled those in my series, since they are triggered constantly. > > What board are you using for testing? I'm testing on the Acer Chromebook 514 (mt8192-asurada-spherion-r0). And noticed the interrupts aren't triggered on Acer Chromebook Spin 513 (mt8195-cherry-tomato-r2). > > > I > > haven't investigated that further yet. This series was validated on mt8192, > > which did have working interrupts, but they were being triggered too often. > > Ok. > > > Also note that I've sent a v2 with even more fixes: > > https://lore.kernel.org/all/20230504004852.627049-1-nfraprado@collabora.com/ > > Yes, I'm reviewing it closely Thanks! N?colas