Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1515563rwb; Sun, 2 Oct 2022 02:36:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jbSLYXZaJ+YfKUd6/szgL49/vBojKszBKJxKCywr64tYRC91fe7DCKEbfME38ISQT9oeu X-Received: by 2002:a17:90a:71c9:b0:203:c9b0:3722 with SMTP id m9-20020a17090a71c900b00203c9b03722mr6807665pjs.119.1664703402671; Sun, 02 Oct 2022 02:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664703402; cv=none; d=google.com; s=arc-20160816; b=rRiEJtyJbulPIwpCwCuazY+Uh2JF6f5gxzM0KrPacLLzKkfYFv5Y9aTNn8Tybq8P0r 5a7Ypwj1Ekwe18bBfkuHVic7uXcG1UoIxGAYLApm1bEbG6QZzc5lgTTyuvRicvBWjl4K Db4tUkru/rXmFbaD4NO5iwOdtmiIUmIG4y/ZBWzknq1y8rNstNL/3TeebI2UlaHrlNE6 58qaJ01LDzsQRBtqW6PcbG1fGUyzmIpNlv1PiiCo4ZwVuLdeVuGekwFmOYyele1IIq+B GsFNJyalssuvRSik6HQZZ4TRPY6XrgkmtptqIozCwS5csK67UdYD36HmobT03jFLPOg7 scWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=odn8KQneE0kpASZK9Ha3Rs5F6ddhOuSQVljDpnP08Qc=; b=RJ/QLWPQWgoTEXmY7mdcJ+FQ8/S+3ldv6RgwDY4J4O9zwPP1/tQm2eMqFbmCCwRsi5 8qXYJsYVRtqFeWY0nu4KsvQxPXjqNxWhSmCj/50olYdcyPMQqkKZBQTPZz6dgO52bWcL PtnmAbJpUOCNTeSMYD/Dd5W+GiD1rKnCJxuhWEJs3esULVoBU3e20jOQ+5xxCCfuc+xj UBBMNwS3MGOhrOcuOpGGMuOp77Dqofk+rG7Ls/CuBpamZqKe0QxL/SV3gZLk0xl0QyDF +1wmINzXF2iwTkWg5aHzeAl/F9EtUed2NUk6PvAgEbgG5t/wqEJ6ol4M/SBdSn4F/0rx vpmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=lITgmIrQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls15-20020a17090b350f00b001f541fc751fsi6887512pjb.190.2022.10.02.02.36.31; Sun, 02 Oct 2022 02:36:42 -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=@suse.de header.s=susede2_rsa header.b=lITgmIrQ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbiJBJOd (ORCPT + 99 others); Sun, 2 Oct 2022 05:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiJBJO3 (ORCPT ); Sun, 2 Oct 2022 05:14:29 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C3FF31ECB; Sun, 2 Oct 2022 02:14:25 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9642721991; Sun, 2 Oct 2022 09:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664702063; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=odn8KQneE0kpASZK9Ha3Rs5F6ddhOuSQVljDpnP08Qc=; b=lITgmIrQDrZBn6sOI2UmxEiebHqFZGC4CXlFVmN50TPM8FGkiYBPS+ToCD/FH7vHcQ8458 bWkqmIgAzEEwlChybftPeoO59qXOkmUdvPPKRW7GPZkUfgk34JlRmwCwxkj3BfLlnYjC3V lnz7Cw++0RbTReGcN0cBhfvrqJ8iWKQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664702063; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=odn8KQneE0kpASZK9Ha3Rs5F6ddhOuSQVljDpnP08Qc=; b=u9SU1g4HohgDeNbzWEXnAcXmLM/WXOUbYR1zepxWHCX0yNLDMG21bUAFnoWFJIvw0PLZQv VuMhnWqwCGrRPyBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 53F6313AA3; Sun, 2 Oct 2022 09:14:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id E02BE29WOWO9SAAAMHmgww (envelope-from ); Sun, 02 Oct 2022 09:14:23 +0000 Date: Sun, 02 Oct 2022 11:14:22 +0200 Message-ID: <87h70mvb81.wl-tiwai@suse.de> From: Takashi Iwai To: "Artem S. Tashkinov" Cc: Takashi Iwai , Thorsten Leemhuis , Konstantin Ryabitsev , workflows@vger.kernel.org, LKML , Greg KH , Linus Torvalds , "regressions@lists.linux.dev" , ksummit@lists.linux.dev Subject: Re: Planned changes for bugzilla.kernel.org to reduce the "Bugzilla blues" In-Reply-To: <56a04cae-7240-9005-4931-5b3e9f598ffb@gmx.com> References: <05d149a0-e3de-8b09-ecc0-3ea73e080be3@leemhuis.info> <9a2fdff8-d0d3-ebba-d344-3c1016237fe5@gmx.com> <87pmfavfpt.wl-tiwai@suse.de> <56a04cae-7240-9005-4931-5b3e9f598ffb@gmx.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Sun, 02 Oct 2022 10:23:07 +0200, Artem S. Tashkinov wrote: > > > > On 10/2/22 07:37, Takashi Iwai wrote: > > On Sat, 01 Oct 2022 12:30:22 +0200, > > Artem S. Tashkinov wrote: > >> - 2 - > >> > >> Here's another one which is outright puzzling: > >> > >> You run: dmesg -t --level=emerg,crit,err > >> > >> And you see some non-descript errors of some kernel subsystems seemingly > >> failing or being unhappy about your hardware. Errors are as cryptic as > >> humanly possible, you don't even know what part of kernel has produced them. > >> > >> OK, as a "power" user I download the kernel source, run `grep -R message > >> /tmp/linux-5.19` and there are _multiple_ different modules and places > >> which contain this message. > >> > >> I'm lost. Send this to LKML? Did that in the long past, no one cared, I > >> stopped. > >> > >> Here's what I'm getting with Linux 5.19.12: > >> > >> platform wdat_wdt: failed to claim resource 5: [mem > >> 0x00000000-0xffffffff7fffffff] > >> ACPI: watchdog: Device creation failed: -16 > >> ACPI BIOS Error (bug): Could not resolve symbol > >> [\_SB.PCI0.XHC.RHUB.TPLD], AE_NOT_FOUND (20220331/psargs-330) > >> ACPI Error: Aborting method \_SB.UBTC.CR01._PLD due to previous error > >> (AE_NOT_FOUND) (20220331/psparse-529) > >> platform MSFT0101:00: failed to claim resource 1: [mem > >> 0xfed40000-0xfed40fff] > >> acpi MSFT0101:00: platform device creation failed: -16 > >> lis3lv02d: unknown sensor type 0x0 > >> > >> Are they serious? Should they be reported or not? Is my laptop properly > >> working? I have no clue at all. > > > > That's a dilemma. The kernel can't know whether it's "properly" > > working, either -- that is, whether the lack of some functions matters > > for you or not. In your case above, it's about a watchdog, something > > related with USB, TPM, and acceleration sensor, all of which likely > > come from a buggy BIOS. Would you mind if those features are missing? > > Or even whether your device has a correct hardware implementation? > > Kernel doesn't know, hence it complains as an error. > > > > In many drivers, there are mechanisms to shut off superfluous error > > messages for known devices. So it's case-by-case solutions. > > > > Or you can completely hide those errors at boot by a boot option > > (e.g. loglevel=2). > > The problem is some of such messages are indeed indicative of certain > real issues which result in HW not working properly, including: > > 1) missing/incorrect firmware > 2) most importantly: not enabled power saving modes > 3) not enabled high performance modes > 4) not enabled devices > 5) not enabled devices' functions > 6) drivers conflicts (i.e. the wrong module gets loaded for the device) > 7) physically failing hardware > > I'm quite sure you don't really know what half of those messages > actually mean. Of course: not because those messages are hardly understandable but because those messages indicate only the cause, and the exact end result can't be always known from the kernel at that point. A lack of physical failing hardware? Not enabled devices? Who knows. There might be some alternative, even a user-space driver. > Speaking of 7. Various kernel subsystems/drivers deal with e.g. mass > storage which is known to fail quite often. There's not a single driver > in the kernel which is actually brave enough to spew something like this: > > "/dev/xxxx might be failing, please RMA or seek help online" > > instead you get a dmesg choke full of "unable to read sector XXX" or > something like that. Oh you suggest that we should put "please RMA or seek help online" to each printk of KERN_ERR level, if it saves the world? ;) IMO, what matters for users is whether the system works or not. It's not how the kernel message appears. A kernel message may help for diagnose, but the message itself is no solution; that is, the most importance of a kernel message is that it indicates a real error that can be diagnosed by developers. If the end effect is pretty sure, a message may be more chatty. OTOH, people are annoyed by such too verbosity, too. So it needs a sensible choice. > To return to the previous errors: it's impossible for the user to assess > their severity and that sucks. Right, that's why I wrote it's a dilemma. > What is "platform device creation > failed"? What is "unknown sensor type"? What am I missing? Who's > responsible? The kernel? My HW vendor? Are those errors actionable? All those depend on the driver implementation and the hardware implementation. There is no general answer at all, unfortunately. > In > my understanding a properly working computer must not produce > "emerg,crit,err" errors. I'm not even talking about "warn,info" and such. Yes, some errors can be downgraded to warn or even to info. I myself find ACPI is way too chatty, too. So I believe something we can improve is to define some more clear guideline for KERN_ERR level errors. Takashi