Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp579732ybh; Sun, 12 Jul 2020 16:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVXuN41xGMwenB6/ZOow/M5gFMgexpZ4F27Qum+ZVPJqpxLyaZmFjvzzYKd2UZdEkAcI0l X-Received: by 2002:a05:6402:1614:: with SMTP id f20mr85309998edv.129.1594596621220; Sun, 12 Jul 2020 16:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594596621; cv=none; d=google.com; s=arc-20160816; b=ELCacKVPsuyGBW1VERl+RO1U0xQFRK9zTP9ekUAHvH1C39EL1YVHAMwKbWwbVaUeLN x7n5yL9bWAaYBte91BBQOvGYBk28fh8Wo5hx6+fJ8fveeG3Ir6eBeshO+kZm19pWON5Q ZTXUSkbExzcwa7ufoo8wO0QSMltEZDmw90nE+X1Crzr6eImd5IXoAwx3kSFON36kO8zf ftq6bH4jLfqAh4UY1OVontL49rDFoxIkiq7AMj/YQmXckA2KPHLe8UamjwtzXeApxEIz 97DqIctU0PrBy4x6Nu6uP/4m5JFUNitX32FIOynyJbkIBy6xGDoXoFc2yFhn2o8qGY3V hcvQ== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=e/Fwt+7p4+irRkfUo9iglDEWBKwHDeJN2IQvNA/qYBU=; b=wystVrZagTqJmN/pZDki7V4ARLf6K9XfdL3KyXQTCAKdvD0KOHPFPdmMw7c8ogok1z Bu8JfUWg3M+z0V1EpekJs6MFmv9ZFUnZF7M5Q/+3R7d+5uLZFKD+xS1Jn3tlsvi1Ay5F CaupV7FY4sJA0+pq7sBrVkBVBCnLdl13Y0+hzaDKvpZI8ZMoZIoLiWTSewEmVE8fj9x0 wDHAGzAPVccn16aQhpwIcMBCQVUskYBZo38FdUgQ9GLCLyYFAUGvFFLPbrImA5S7VGPF tcrWOjEo05PRo6uFZU4+LoXlUw1ku8AOu+LNYXyc3MTJViJkNxuOlGPa7bXr3lLmIszr dLjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=a8UcIIWV; 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=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si8015046ejh.403.2020.07.12.16.29.56; Sun, 12 Jul 2020 16:30:21 -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=@megous.com header.s=mail header.b=a8UcIIWV; 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=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728209AbgGLX3p (ORCPT + 99 others); Sun, 12 Jul 2020 19:29:45 -0400 Received: from vps.xff.cz ([195.181.215.36]:60550 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbgGLX3p (ORCPT ); Sun, 12 Jul 2020 19:29:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1594596583; bh=mGpvPO69Sq3uBZZ4LMIGshZ9SukFLv4L6UJ+xxlTBSs=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=a8UcIIWVw0DeoiZqCVzEexyC+8qr0JumbaFjRMx1OAOluKaCH3YxXBxasO+UaKMU8 ty8DKLtX58uRK4+W5Zm3Gupkk/v/MT+stUCSjl2ykbPH0bw8U1MUhTufgu/Lz4Y1ER 5tZPLXAvIOIWqbEbF4N6Q7wcAtxSsgV0NMYKAJfo= Date: Mon, 13 Jul 2020 01:29:42 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Maxime Ripard Cc: 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: <20200712232942.eecoekr25i3wu2iq@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Maxime Ripard , 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200708135748.l4zncodhhggurp6s@gilmour.lan> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, On Wed, Jul 08, 2020 at 03:57:48PM +0200, Maxime Ripard wrote: > On Wed, Jul 08, 2020 at 03:44:41PM +0200, Ondřej Jirman wrote: > > > [...] > > > 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. > > > > That's why I also added a success message, to distinguish this case. > > 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. > > > > > And people run several distros for 3-4 months without anyone noticing any > > > > issues and that thermal regulation doesn't work. So it seems that lack of a > > > > success message is not enough. > > > > > > I understand what the issue is, but do you really expect phone users to > > > monitor the kernel logs every time they boot their phone to see if the > > > thermal throttling is enabled? > > > > Not phone users, but people making their own kernels/distributions. Those people > > monitor dmesg, and out of 4 distros or more nobody noticed there was an issue > > (despite the complaints of overheating by their users). > > > > So I thought some warning may be in order, so that distro people more easily > > notice they have misconfigured the kernel or sometging. > > I mean, then there's nothing we can do to properly address that then. > > The configuration system is a gun, we can point at the target, but > anyone is definitely free to shot themself in the foot. > > You would have exactly the same result if you left the thermal driver > disabled, or if you didn't have cpufreq support. 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. 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 issue, with complete silence from the driver. Maybe this can/will be solved at another level entirely, like having a device 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. regards, o. > Maxime