Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3602104imm; Wed, 5 Sep 2018 02:56:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYMwpi/6L5pa3iwz0FahrC9xjGlyxPD2OxH+SC/wLJQ5I1cTq/NeQgq5xNy7hklnsiekj6R X-Received: by 2002:a17:902:7586:: with SMTP id j6-v6mr37638441pll.295.1536141407508; Wed, 05 Sep 2018 02:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536141407; cv=none; d=google.com; s=arc-20160816; b=qZTh734UL9DpoVpeU3ga2CW434BFggK657B4nQOF5B2MRVbWepZ21TDGA3CkZ21I+A VyA2zMGwtBE8rxG16dKKl5tr7D/fKzI8rzE1tiDRgfIn597fEr3lX/WshE8qbxWc9pxf z0v23UT3z3uQwk0Zosd7u1iHEhAMyMWZ8sjsnR7o58nL6FLxEKKjD7DiMpg2qQnb4JIq MH3amyCFSEe7rKIuClbsHAnFjwnTsVpcmNKRjohRUHiWYknIB0F/vSKKUn0NKgLq7893 zBmS85R44C++3zzwV077TNdDx4z43t/peNAUl6eY/1+8WO6zWkFvoI/nuDRi/Fg9YzKB CJ6Q== 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=A2jQC8HDxe2qZOKWrqItBapk8PMw3ya09oUtxyJnbmM=; b=E15NSHPEuUNE7fYnGtkElcbMRerTwJIOJkmvBBLSKjnY2yrK+ATSmpjPhwCEUgMc3b GkHNAndhspQ5eLCpIn2zy5gEalpQvYgC9PyctWySOGPY3HWAxwskAvmON4RtXI/B96k5 esqg8pPizE6yM+0lV6fONtBxGLDrA0dcV/apaaoMDWm+1O55NDOroDWbLRxeZS64yRQ0 eikSBJ5qI7PxBx1rcD4rmqeNr+LR/tFoYJOO26sJipM4JFlgIfvzEuvegzuespbKWOi7 r1O1ONNf3ExRq36HE/F46nEaDqVF+jT6ujT/y8YQ5cugsEGOTPs+AnoZB5lalTuFJ2Ii iELA== 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 e14-v6si1444775pff.332.2018.09.05.02.56.32; Wed, 05 Sep 2018 02:56:47 -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 S1728208AbeIEOYp (ORCPT + 99 others); Wed, 5 Sep 2018 10:24:45 -0400 Received: from mga06.intel.com ([134.134.136.31]:49140 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728114AbeIEOYp (ORCPT ); Wed, 5 Sep 2018 10:24:45 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2018 02:55:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,333,1531810800"; d="scan'208";a="78123468" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by FMSMGA003.fm.intel.com with SMTP; 05 Sep 2018 02:54:52 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 05 Sep 2018 12:54:51 +0300 Date: Wed, 5 Sep 2018 12:54:51 +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: <20180905095451.GI2283@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180905090510.fvryu6ivxagdzoyx@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 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. > By muting those messages, you're taking away our reverse enginering aids > without having released the spec, which would indeed obviate the need > for them. Please don't do that. Release the spec, *then* you can > mute the messages. Not the other way round. All the possible messages are most likely logged already and available by Googling so even if we mute the driver now, you still can find those messages in the wild. Anything running on Alpine Ridge and higher does not require reverse-engineering (even on Apple systems) because those are already supported in the driver.