Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp274988rdb; Mon, 29 Jan 2024 01:38:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmkI4GNOq8+x2HS39P3Pni4TpdAgVEpmmkRwcj36p+cmNGIXvKq44kAlDwL2f+gM2ntvhB X-Received: by 2002:a05:6808:1704:b0:3bd:c121:d430 with SMTP id bc4-20020a056808170400b003bdc121d430mr4402382oib.30.1706521127999; Mon, 29 Jan 2024 01:38:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706521127; cv=pass; d=google.com; s=arc-20160816; b=DfxDueyqOPYhvEDOZ29FvqGhjAAmKtR062Z0aAiDD8pVN7fdWJufvbzG9KfvL3ibG6 BHzsPhTjBxJpyWcDqiFUZl8WdrmH2L05UGhMnqDLuAMH8ybCjh9MhBVszgPSOShXXLq2 zQg9VADK7OstpSTzYINAvXaNZNCvXNpz/5moTS8KksVKSe8hwTe9GHTZ0GJR4eYfO78v PUKJWnUgOT1SNacKzjmAuxWwA5S7FLENmZcuEllU7u1cNpnjYhfv97UYDfm16jHgIAZp EnUbjdggQOxujl/hJuLel2OVZJ7iEyiW1XPUK2QUjmiz7dmEUGqlxfq4M4qRCviQH42y 12jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TwJZef1I3WBQQo7qFLkiLzNYDWjCPdSJRfLk+/Jo15A=; fh=VWJyZ3gWZM+Ljp0bjuUmlr6eE2ckFYCQbTj/C2Vrxkk=; b=JJLeYGrIk10gGCM/QJiPJeuh9k9t4FrF1at/FXheCTw4URcEXDoQMkzLDsA6HpERyg 7CyogYh2kipU/0EhtQ4CVAVG+e8gfagIkr8vvvzqucwHTIkRMU7t1tKPbkOc2UYpv238 VB8i7jeI9AuV2w6y9vJiZIuBbGFZycnTVjGNk0Qm8tUlfAlADLMa1BXYwoxr5Kks92oO 5aF1sjgdWenNmjRk+DomNWmJDZlQcD1TcAqEUGwIyRR/sJm65ibdNaz5L1HCL9EDwr8s vh1PRxxoMkJ3TykFgsCwnFs82ufOX9S644sfStwwiUbYTW5KBaVNFyiLs1n5z9kpX4ri f40g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/A8iDK+"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-42478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id cm10-20020a056a020a0a00b005cdb0622c89si3369927pgb.16.2024.01.29.01.38.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 01:38:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/A8iDK+"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-42478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 AEAF4B20FF0 for ; Mon, 29 Jan 2024 09:38:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E75155E6F; Mon, 29 Jan 2024 09:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R/A8iDK+" 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 BCBAD55765; Mon, 29 Jan 2024 09:38:22 +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=1706521102; cv=none; b=KukQa8jmbjNYvADqoYvW8mZzbljspgKTm/c5ZDNRetNV30PJHvcH5clF/lMyqf4xsB6zPKF9S/VudPjENZNB2iceTZVwp7E0q1fr2dZxkhlmnRc39NRSVh8KIUGhLjBZpzrcSPMgbrc5ezKGpovkAfavOUXzUQrDRghZIDGNN38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706521102; c=relaxed/simple; bh=rhLbs8RDtFB5pDbCrc/ZKmEFvyOrcNyrTDC+mGeGs/Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aHugUOY+B6OGJ8ZeZFrkE7jKxUoJfbiRFhAo3NTCHtzcqD1ykfvXPNleZlftGVMgYBSKMQ28EhzaEG4tCtdv8ijmCtDeTUUvd3RrKy/rEiIyplvbR1mTiEhLi95/QY+mkPU8U/7tToG2uxteGW905/XXfa61pXRqSvamQuvKKCI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R/A8iDK+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BDE6C433F1; Mon, 29 Jan 2024 09:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706521102; bh=rhLbs8RDtFB5pDbCrc/ZKmEFvyOrcNyrTDC+mGeGs/Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R/A8iDK+qvEwZQs2jOfXYFIcUpQQ/XZuYln2omvDlDaFiFFOy/yzYlz2KordHXCDh Zj1TdiiWtfD235gQGah2tV+0Sxg/xDBNEy/iwcL2QXprybV7H0nNFQnEsoTiuzlROF KcPcjXd8fQYU8yUZU2zJwQNH/vttSQB9FAJKiDOL9J3tu3q50LAr2OMO68asc/1bPa lfWeBWaxFR3jwv0xWtlLmsf748j/eDZzdBLIHj2NRs6Jy7gl9g4PV6O6t5vCOQEXCl Mqt3sGrOkb6afAVlF8IP6KJmIbIuGhwORf1387FSgHyNklONGfkfykiSoft9uwXN80 kWmM9t1DqFqNg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rUO5m-000000006fw-2Kvx; Mon, 29 Jan 2024 10:38:15 +0100 Date: Mon, 29 Jan 2024 10:38:14 +0100 From: Johan Hovold To: Konrad Dybcio Cc: Bjorn Andersson , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: dts: qcom: sc8280xp: Introduce additional tsens instances Message-ID: References: <20240126-sc8280xp-tsens2_3-v2-1-8504d18828de@quicinc.com> <20240126165113.GS2936378@hu-bjorande-lv.qualcomm.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 Content-Disposition: inline In-Reply-To: On Fri, Jan 26, 2024 at 10:23:41PM +0100, Konrad Dybcio wrote: > On 26.01.2024 18:00, Johan Hovold wrote: > > On Fri, Jan 26, 2024 at 08:51:13AM -0800, Bjorn Andersson wrote: > >> On Fri, Jan 26, 2024 at 05:36:10PM +0100, Johan Hovold wrote: > > > >>> Shall you submit a follow-on patch to set the polling delays to zero > >>> for the other thermal zones (cpu, cluster, mem) so that we don't poll > >>> for those? > >> > >> I optimistically interpreted Konrad's response as a promise by him to do > >> so ;) > >> > >> I do like his patch which remove the poll-properties for non-polling > >> mode. Would be nice to not first change the values to 0 and then remove > >> the properties... > > That was my intention as well.. > > > > > No, that should not be an issue as it allows us to get rid of the > > polling without waiting for a binding update which may or may not > > materialise in 6.9-rc1. > > If you really insist, I may do that, but if the thermal guys act on it > quickly and we negotiate an immutable branch, we can simply but atop it, > saving the submitter timeof(patchset), the reviewers timeof(verify), the > build bots timeof(builds) and the applier timeof(pick-build-push).. Why would introduce such a dependency for really no good reason? Submit a patch based on the current binding, then when/if your proposed binding update hits mainline, you can send a *single* patch dropping the parameters from all qualcomm dtsi. Updating the binding is a separate and lower priority task. In fact, it may not even be desirable at all as an omission of adding these parameters could then lead to broken thermal management on platforms where the interrupts do not work. Having an explicit poll-delay of zero at least gives people a reason to think about it when merging a new platform. But again, that's a separate discussion. Don't make this patch depend on that. > > But whoever updates those properties need to do some proper testing to > > make sure that those interrupts really work. > > They seem to, check /proc/interrupts before and after adding an e.g. 45degC > trip point on one of the CPU thermal zones, they fire aplenty. That's not proper testing. Add/enable debugging in the thermal driver and make sure that you trigger precisely once when passing the threshold in both directions. Johan