Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp418778imm; Thu, 6 Sep 2018 04:45:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYtRYTOwIY4arYLmEUnlwJNSAtxAaHqBZujlXKkBUtxxQihv5n7HdSouiqddJ71IE5b52f0 X-Received: by 2002:a17:902:6b47:: with SMTP id g7-v6mr2278745plt.128.1536234313861; Thu, 06 Sep 2018 04:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536234313; cv=none; d=google.com; s=arc-20160816; b=Nl3LZT3TWGid4SffZQr/mcIJBZUJi1Z9dLKFKQdjCaKlZNBZEU9zbuegwGdsKq9Lj2 nqSdxc2UUip1z3Zp30rn75j4AMP+UK9U0BCpAbooxn5SLQKAxouvuQaLPvFrwb0eDU/9 Y+N811QuD7Hw4yRnjlUnKUM5PYUBX3RDBl41IFPiH7TH8xJwjcrIZdO9ds/fnEYAi+Qv bDE6IWgcCi0LLFYt8KanTvp77rNbLVRFoL0HElEC51fs1X48lTrSJ1xY21KRlygmsRig wc30cjEgMct0ShgFaVPyQQJau7YAbsCGVxn8aQmF37o9J9B8FFli8qLYeaMo0IcXZTP9 ucgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GM/VjaFU9V/3PEEr8voPD/PfNJkTEhKY4QyelIIYXH0=; b=q2k2OhZ0MB9W3E4cjPN6smNPO2nfkVF5foGJ1mXB+9MUP68hS5xzefRWOx7DAtjF14 OLudS4hQyPOuUf2KAbBq0khzdmS0Z7WA6mRIM+/XmMdPE2bzWFaM1kcZoBwl8rvrGvc1 Yp+o1/1YStMmTICoPBWRUajj9QNFz4a3lGgR3AbdH1ranrCuJuBHnDv4R51Tf/e2ruyl 4kjFUDcD7t9C8ypogUdDUx/q4SDzbH/eRcGaRNV2WriuUUlCQfAEK/lJVw32xOwJz75E YSuu7ZQzopMUuh+qqFbqqhtNHxpAO70QQK7cC1+74gQRtYnhJRWOjHXjObVRHvncsUP/ xRCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7-v6si4538661pgp.411.2018.09.06.04.44.58; Thu, 06 Sep 2018 04:45:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727680AbeIFPWu (ORCPT + 99 others); Thu, 6 Sep 2018 11:22:50 -0400 Received: from mga18.intel.com ([134.134.136.126]:55938 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbeIFPWu (ORCPT ); Thu, 6 Sep 2018 11:22:50 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Sep 2018 03:47:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,337,1531810800"; d="scan'208";a="260329959" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga005.fm.intel.com with SMTP; 06 Sep 2018 03:47:45 -0700 Received: by lahna (sSMTP sendmail emulation); Thu, 06 Sep 2018 13:47:46 +0300 Date: Thu, 6 Sep 2018 13:47:46 +0300 From: Mika Westerberg To: Lukas Wunner Cc: linux-kernel@vger.kernel.org, Andreas Noever , Michael Jamet , Yehezkel Bernat Subject: Re: [PATCH 1/3] thunderbolt: Make the driver less verbose Message-ID: <20180906104746.GW2283@lahna.fi.intel.com> References: <20180903133304.70362-1-mika.westerberg@linux.intel.com> <20180903133304.70362-2-mika.westerberg@linux.intel.com> <20180905090510.fvryu6ivxagdzoyx@wunner.de> <20180905095451.GI2283@lahna.fi.intel.com> <20180906084143.sah4njyft7z5squb@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180906084143.sah4njyft7z5squb@wunner.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 10:41:43AM +0200, Lukas Wunner wrote: > On Wed, Sep 05, 2018 at 12:54:51PM +0300, Mika Westerberg wrote: > > On Wed, Sep 05, 2018 at 11:05:10AM +0200, Lukas Wunner wrote: > > > On Mon, Sep 03, 2018 at 04:33:02PM +0300, Mika Westerberg wrote: > > > > Currently the driver logs quite a lot to the system message buffer even > > > > when doing normal operations. This information is not useful for > > > > ordinary users and might even annoy some. > > > > > > No, the verbose logging is done on purpose to aid us in reverse-engineering > > > the protocol. For example ... > > > > > > > - tb_port_info(port, " Unknown1: %#x Unknown2: %#x Unknown3: %#x\n", > > > > - hop->unknown1, hop->unknown2, hop->unknown3); > > > > > > ... why do you think we're logging these seemingly stupid unknown > > > bitfields? Because whenever someone posts dmesg output they > > > inadvertantly post the contents of those unknown fields and we can > > > then google the value of those fields on various controllers and > > > machines and deduce their possible meaning. > > > > And the majority of people get tons of completely useless messages > > filling their dmesgs? No, I don't think that's a good thing. > > As you know the OS-controlled tunnel manager is far from feature > complete. I think the "majority of people" are perfectly willing > to accept verbose logging if it helps us fill in those gaps. > > You make it sound like logfiles are spammed all the time, but > messages are in fact only logged on driver initialization and hotplug. And every time the controller runtime suspends/resumes. Every suspend/resume. Every time ring gets initialized/teared when you connect cable between computers. It is way too much for a driver that is part of production operating system. > We wouldn't be in this situation if we had a proper Thunderbolt spec. > It wasn't *my* idea to keep it under wraps. Please don't start that again. I can't affect when the spec is released, really. I'm just a poor driver guy trying to get this working as good as possible. > So please leave the messages at info level so as not to hinder our work. > > As for your claim that the "majority of people" find the messages > useless", I rather suspect that you, personally, find them useless > because you complained about noisiness of the driver before: > > "I don't think we want to log anything with info level to be honest. > The driver currently already is pretty noisy so adding even more > information there just makes it worse ;-) > I would rather convert debugging information to use tracepoints and > get rid of the tb_*_info() things completely." > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1401181.html > > And guess what I responded: > > "The noisiness has value in that it helps with reverse-engineering: > Just google for dmesg output and check what other machines are > reporting for unknown registers. :-) > If there was public documentation available or Intel would be okay > with answering specific questions (as you've done with the 0x30 > attribute id), then the value obviously diminishes." It is not just me, see here: https://lkml.org/lkml/2017/10/31/864 And I fully agree. Andreas was fine at the time to silence the driver. I just did not have time to do that until now. Andreas, let me know if you have objections about this patch.