Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1417194ybh; Thu, 23 Jul 2020 08:23:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsRPsrSTSbmYm8A6UsAl/F3QrPV+RMBnyaVjQddimATBfUJNfYfxCbDcnTEa+Fc/6v66v9 X-Received: by 2002:a17:906:6d4d:: with SMTP id a13mr4763444ejt.146.1595517836868; Thu, 23 Jul 2020 08:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595517836; cv=none; d=google.com; s=arc-20160816; b=CJCChq6hz/uVwcpo1zNepczNE4dAQpJM6GkHSFMebw/FyuEuy9WDA5+6KnaEZeX4da ISxlr+DSkOqG7GbGcNtHsAPIWzeF00Ocho5UkJAQA+QbcG8k2ZNxJZvl0xJ6poUeDz1A c+mgE2NHzymKS+hCrzYND39tnBOj3A2E9WGdRLzQ2Ct6QaSL8csE64/JL/hal0gZVsuk XFZMOjBzWQzjmIFm/vzHDjhNN7Op2WFYqkggrvqy6ISoWuRMw4OdRL1nSUY5pQfa6RLH s0/hpGMOD5yNqyyTMi8Cc3z17BeaMDAz9NnDlJDFZT1X4HSIDdIx/zYa8bO5keBTM5/6 5IcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature:dkim-signature; bh=uvamDLmFMG67kHSwtBzzrekOA3Min6/oHJ8rJdAHzuI=; b=Y5Q0pBKClovwu4+1eTNmemvh3XYKdJravlCXnuFKo1ZJRWB2awyF835vv+DV12bZQV 9DGdfIEAC7quPa1YHXinzVErs752Wo5Ol+2BHYpAdq9rpSQnzp+v1pQRZYBt9/09ys/0 MzNdmO1whiZCn7dJhq6u7+1g1Dy1/OM5LoCDswq2yqhAXoMdFcBrfLXCUiimRqInVckH +X04Ykn5lAtoPed4zPTH4bLn4AwbCFa53YJmaqAw9Q8BqeguXgRMklNtbZS7f2txjwqI MnLfjNQO9T0ws2rLHx9eSRbSeqgh23iT2f6s/fuB0SIaF+kqDpQkw+QSrPMSfY3si9aX 4vig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=jRITkwnm; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=IKL4Uzwd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si2017400edv.602.2020.07.23.08.23.33; Thu, 23 Jul 2020 08:23:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=jRITkwnm; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=IKL4Uzwd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729072AbgGWPVB (ORCPT + 99 others); Thu, 23 Jul 2020 11:21:01 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:40871 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbgGWPVA (ORCPT ); Thu, 23 Jul 2020 11:21:00 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id F13195809AD; Thu, 23 Jul 2020 11:20:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 23 Jul 2020 11:20:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm3; bh=u vamDLmFMG67kHSwtBzzrekOA3Min6/oHJ8rJdAHzuI=; b=jRITkwnmyBayVcHM3 JGfBP+XmHcCj6q7MUNHeqxd8aE6zdtnPefyWU4M0KAX07OZlOmtmv4lfIRi3+6oK kUtMOiC1wy+EOMcP5OVgFuoqv+7uu9L6iAE88OFzRsT+IIo7G7qpwPR33zUKil8y SDsGZXsQlcYTyODrLYhobYOZxppi9H0esDahJBESxiG4PKEjteC49FTB0Ri3bzJT VtJAaSRU1Mo4LE7YTpRwKy97iFeUlEG24jneh58mal6b40xtnVemVdd84BBxeub6 BewVDHT05d7p7ElEdfP9/Ot15NwhSxIqiIeOpFfxrZAobaKGHB0x7Ws+nA7hJ7B4 rmwkw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=uvamDLmFMG67kHSwtBzzrekOA3Min6/oHJ8rJdAHz uI=; b=IKL4UzwdZXrOkQmcA3d+TejurpkjNZYXHQXpe3CvmMq5WmIpj6S/ABIQ/ pGUc6SGWmRT7/yqN177HYN+wnqaAeGPmUpTG8Mt4f6jyle/0H0HvJtMAv9+lakSp AAUKOrQWFQZrkmZ5ADIMlSYlEr0fK0aJRli/NoXg1OxP09ZYthWwHzlUHg+teURt PIFG4M5ZX2HPfKUL2EVFsoLjxPkLOeJffD91adXgRAYa2Fxa/IUhpseuyooLokzq j8XCcfm3gZoSF27qyUFvXqBpnAkl1p3KYTtSzOKRYm6ZDWhwHHLXTqJJagEk+WnI Sg1DquwvWiLJTIE8BEfVwJEX370+A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrhedugdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjsehtqhertddttdejnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepgfejjeekjedttdethedtfeelteefffduvdevvdfhtdeiudetleejgeelfeef uedvnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id D43CB3280067; Thu, 23 Jul 2020 11:20:56 -0400 (EDT) Date: Thu, 23 Jul 2020 17:20:54 +0200 From: Maxime Ripard To: =?utf-8?Q?Ond=C5=99ej?= Jirman , linux-sunxi@googlegroups.com, Vasily Khoruzhick , Yangtao Li , Zhang Rui , Daniel Lezcano , Amit Kucheria , Chen-Yu Tsai , "open list:ALLWINNER THERMAL DRIVER" , "moderated list:ARM/Allwinner sunXi SoC support" , open list Subject: Re: [PATCH] thermal: sun8i: Be loud when probe fails Message-ID: <20200723152054.hrtahg77ycg5ovud@gilmour.lan> References: <20200708105527.868987-1-megous@megous.com> <20200708122542.73o3lbhgvbdw5c4z@gilmour.lan> <20200708132924.r6f5id2evprhybec@core.my.home> <20200708133654.fp7k4whl2qmn5ygy@gilmour.lan> <20200708134441.4lfuh7nwtqnkkg2a@core.my.home> <20200708135748.l4zncodhhggurp6s@gilmour.lan> <20200712232942.eecoekr25i3wu2iq@core.my.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200712232942.eecoekr25i3wu2iq@core.my.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 13, 2020 at 01:29:42AM +0200, Ond=C5=99ej Jirman wrote: > Hi Maxime, >=20 > On Wed, Jul 08, 2020 at 03:57:48PM +0200, Maxime Ripard wrote: > > On Wed, Jul 08, 2020 at 03:44:41PM +0200, Ond=C5=99ej Jirman wrote: > > > > >=20 > [...] >=20 > > > > Yeah, but on the other hand, we regularly have people that come up = and > > > > ask if a "legitimate" EPROBE_DEFER error message (as in: the driver > > > > wasn't there on the first attempt but was there on the second) is a > > > > cause of concern or not. > > >=20 > > > That's why I also added a success message, to distinguish this case.= =20 > >=20 > > That doesn't really help though. We have plenty of drivers that have > > some sort of success message and people will still ask about that error > > message earlier. > >=20 > > > > > And people run several distros for 3-4 months without anyone noti= cing any > > > > > issues and that thermal regulation doesn't work. So it seems that= lack of a > > > > > success message is not enough. > > > >=20 > > > > I understand what the issue is, but do you really expect phone user= s to > > > > monitor the kernel logs every time they boot their phone to see if = the > > > > thermal throttling is enabled? > > >=20 > > > Not phone users, but people making their own kernels/distributions. T= hose people > > > monitor dmesg, and out of 4 distros or more nobody noticed there was = an issue > > > (despite the complaints of overheating by their users). > > >=20 > > > So I thought some warning may be in order, so that distro people more= easily > > > notice they have misconfigured the kernel or sometging. > >=20 > > I mean, then there's nothing we can do to properly address that then. > >=20 > > The configuration system is a gun, we can point at the target, but > > anyone is definitely free to shot themself in the foot. > >=20 > > You would have exactly the same result if you left the thermal driver > > disabled, or if you didn't have cpufreq support. >=20 > Right. Though I hope there's some middle ground. I mean all of those dev_= err > in error paths of many drivers are there mostly to help debugging stuff. Adding all the error messages you have in that patch seems like a good middle ground to me, and we could definitely use more of them in some other drivers (like the USB PHY) > And even though I was part of this driver's development, it took me quite > some time to figure out it was the missing sunxi-sid driver causing the i= ssue, > with complete silence from the driver. >=20 > Maybe this can/will be solved at another level entirely, like having a de= vice > core report devices probes that failed with EPROBE_DEFER some time after > the boot finished and modules had a chance to load, instead of immediately > for each probe retry. The thing is that there's never a point in time where "all the modules had a chance to load". If you're loading the modules on demand and have an hotpluggable bus, that might happen after a second or after a year, you can't say. The actual fix for this would be to use the on demand probing that seems to be in the works and avoid EPROBE_DEFER entirely, but that probably won't happen in a near future. Maxime