Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8448300ybn; Tue, 1 Oct 2019 08:15:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+zevpeLTyuElJluCCgT1qC7KhkCJhQGs3ynqC3QJf/DA9ep1VsZj1Y4K6SD+Bsa4SOXqP X-Received: by 2002:a17:906:5295:: with SMTP id c21mr15542856ejm.80.1569942913282; Tue, 01 Oct 2019 08:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569942913; cv=none; d=google.com; s=arc-20160816; b=yE+PQ2S/l7RZreldkx1e/Sahy49E0D1rKuDVbqoRq7oyVSDS7z18HBfWCyPRsJUmOz DKNzMcVm/ukJHc+5fuj2ji1RfdQGP0iV1UeScd4+xZrU/FKO8ogyh6NNp048Wj77+vZe ee+R8bh7LWR1utlKajeTreHzNUvXLDJeDW8pX7fkCK1kWrg7tKoJfeHJ3PJzJEZAnXFF iB7CVUqSK9Q0Y/BpngaoXXgegcEDS3cpadk9eAv66MTnp4HlJgzlkMhhkLSGIt7D1oIX /2rMHFQwx08BXCbLx+adEHhRXImnJL4OSC+1emh7r4S31MjLsakyveJSm8srib9whhNF mroA== 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=PzXZaXOhD75tvG4G3d3o0EDD7U5qd0wcPiYqOyVO+6w=; b=dNbPx7OKxc4Zc0OJdahb4g4etzrvbGv/4XbG1hf7sDpyoKX1CILgVrCTYauDUex574 saKlnXECbj7cotbakFYwY+Bmkfmkr54H/K1n9ld9lKs2hzwLAfq6b0kl3v4/Pjuupytm l/WezNB8T9M/EgE9fx3/n7GtJXC3ltRt1fGfUY57O9JaJvBcehDxCz8XDl5WT8NovhFo JbsuWIBqohNqfhqsfvlX3jC4YFSd2gHF7tz+3jw1fHKty7gHAswB2BlZM+apzjs7dh1N J/3iiGoqqSbfyG72xiWHWQEuaTWOTEtoFX2ZnrtRmBJyqLAuS5a1zMVWnFpx2WIHo3xi E//w== 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 z10si8651103edd.140.2019.10.01.08.14.48; Tue, 01 Oct 2019 08:15: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 S2389495AbfJAPNm (ORCPT + 99 others); Tue, 1 Oct 2019 11:13:42 -0400 Received: from mga02.intel.com ([134.134.136.20]:60254 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389129AbfJAPNm (ORCPT ); Tue, 1 Oct 2019 11:13:42 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2019 08:13:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,571,1559545200"; d="scan'208";a="205082435" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 01 Oct 2019 08:13:26 -0700 Received: by lahna (sSMTP sendmail emulation); Tue, 01 Oct 2019 18:13:26 +0300 Date: Tue, 1 Oct 2019 18:13:26 +0300 From: Mika Westerberg To: Mario.Limonciello@dell.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, andreas.noever@gmail.com, michael.jamet@intel.com, YehezkelShB@gmail.com, rajmohan.mani@intel.com, nicholas.johnson-opensource@outlook.com.au, lukas@wunner.de, stern@rowland.harvard.edu, anthony.wong@canonical.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 17/22] thunderbolt: Add initial support for USB4 Message-ID: <20191001151326.GB2714@lahna.fi.intel.com> References: <20191001113830.13028-1-mika.westerberg@linux.intel.com> <20191001113830.13028-18-mika.westerberg@linux.intel.com> <20191001124748.GH2954373@kroah.com> <20191001130905.GO2714@lahna.fi.intel.com> <20191001145354.GA3366714@kroah.com> <924ce4d5862c4d859e238c0e706a3d5b@AUSX13MPC105.AMER.DELL.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <924ce4d5862c4d859e238c0e706a3d5b@AUSX13MPC105.AMER.DELL.COM> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 01, 2019 at 02:59:06PM +0000, Mario.Limonciello@dell.com wrote: > > > > -----Original Message----- > > From: Greg Kroah-Hartman > > Sent: Tuesday, October 1, 2019 9:54 AM > > To: Mika Westerberg > > Cc: linux-usb@vger.kernel.org; Andreas Noever; Michael Jamet; Yehezkel Bernat; > > Rajmohan Mani; Nicholas Johnson; Lukas Wunner; Alan Stern; Limonciello, Mario; > > Anthony Wong; linux-kernel@vger.kernel.org > > Subject: Re: [RFC PATCH 17/22] thunderbolt: Add initial support for USB4 > > > > > > [EXTERNAL EMAIL] > > > > On Tue, Oct 01, 2019 at 04:09:05PM +0300, Mika Westerberg wrote: > > > On Tue, Oct 01, 2019 at 02:47:48PM +0200, Greg Kroah-Hartman wrote: > > > > > - Thunderbolt Controller driver. This driver is required if you > > > > > - want to hotplug Thunderbolt devices on Apple hardware or on PCs > > > > > - with Intel Falcon Ridge or newer. > > > > > + USB4 (Thunderbolt) driver. USB4 is the public spec based on > > > > > + Thunderbolt 3 protocol. This driver is required if you want to > > > > > + hotplug Thunderbolt and USB4 compliant devices on Apple > > > > > + hardware or on PCs with Intel Falcon Ridge or newer. > > > > > > > > Wait, did "old" thunderbolt just get re-branded as USB4? > > > > > > Not but the driver started supporting USB4 as well :) > > > > > > USB4 is pretty much public spec of Thunderbolt 3 but with some > > > differences in register layouts (this is because Thunderbolt uses some > > > vendor specific capabilities which are now moved to more "standard" > > > places). > > > > Ok, then we need to rename the Kconfig option as well, otherwise no one > > will "know" that this changed, so they will not be prompted for it. > > > > > > Because if I have an "old" laptop that needs Thunderbolt support, how am > > > > I going to know it is now called USB4 instead? > > > > > > Well the Kconfig option tries to have both names there: > > > > > > tristate "USB4 (Thunderbolt) support" > > > > > > and then > > > > > > USB4 (Thunderbolt) driver. USB4 is the public spec based on > > > Thunderbolt 3 protocol. This driver is required if you want to hotplug > > > Thunderbolt and USB4 compliant devices on Apple hardware or on PCs > > > with Intel Falcon Ridge or newer. > > > > > > and the Kconfig option is still CONFIG_THUNDERBOLT. I know this is > > > confusing but I don't have better ideas how we can advertise both. I > > > borrowed this "format" from firewire. > > > > CONFIG_USB4 instead? > > How about CONFIG_USB4_PCIE? > > I think that will help align that certain aspects of USB4 can be built optionally. But this is not about PCIe - it is just one type of a tunnel that is optional with USB4. > > > > Shouldn't there just be a new USB4 option that only enables/builds the > > > > USB4 stuff if selected? Why would I want all of this additional code on > > > > my old system if it's not going to do anything at all? > > > > > > USB4 devices are backward compatible with Thunderbolt 3 so you should be > > > able to plug in USB4 device to your old Thunderbolt 3 laptop for > > > example. It goes the other way as well. Some things are optional but for > > > example USB4 hubs must support also Thunderbolt 3. > > > > > If PCIe tunnels are an optional feature in USB4, how can it be mandatory to support > Thunderbolt 3? It is mandatory for USB4 hubs. For peripheral devices and hosts Thunderbolt 3 support is optional. So for example you could have USB4 host that does not enter Thunderbolt 3 alternate mode at all so it only supports USB4 devices.