Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8265973ybn; Tue, 1 Oct 2019 05:51:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGAPSJEQQcEG1Rwyk1Kqf8eDt0n5yeAb0oA37phcr+UTxa/roubAI8VmIRL20pzF3Rtn7g X-Received: by 2002:a17:906:c742:: with SMTP id fk2mr23943865ejb.44.1569934265882; Tue, 01 Oct 2019 05:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569934265; cv=none; d=google.com; s=arc-20160816; b=FzYGQs2cw2wGHtfsbUC44u8/bfK9gGwdRud5jTpvdtTPmS+54Ki7QY8FwicNvrk2If 1lWblndxqs1JZo6+xl/MwGJroISplg5xrmvi8pwd+GzsTDbNyyQM1+G7G+9pHLqsCA9U yjEdA1H11fE+li2U/qKM08GHYdm8B5vTUYfSkqAprpu/pNMJ9IWGa0+ztMnpZJRtWNNc kqmechZGG8sB56wfOM0lUa7KMwjrBJ0EdrjNda/RW+BuazIhwAgibLUSV95ZZrvm1s17 0F7HSUmJRUa5eF4uTfpVxE+GXw37cbEjlIIdcYT0u3/ozuBrLr7aAs7PmEcm0qgv4fsa S7ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NV+d0SKCgImvFWzM7C7VOiFh/pq1trow2M74KGwMhiE=; b=YlyQKohvl8oF8PeyhBg0ZYWLup+DIKoO6GI3pdOV/E6ZrAK7eYa1X3CPfTm/lJSle+ 8vEFfqXsmvQxHMm+ZpqyZArgqoRjrylNSti+OWgfYuguV8wM9Pm3MulJswT31Z1g1/zi to8l1klN1G7+1DB1230nGDBbBTe+jGrc14MY4N0tAaoh41MH/gRWc1IJB/7HeTb19sqw Jk0hyFYZar1kXXOfJTsHpgnXt25OZY2vfD0KLuklPC2NgWfdsLCAtT2KPmQXoEUvyPTf ddnQJTVcZn9DaFECuLdA/dESl7Ej1xFjMot9mfnwJMq07CtQxVlEL/yuTBNXUmhvg4YZ 95Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qMuMSnOF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si8551731eda.300.2019.10.01.05.50.41; Tue, 01 Oct 2019 05:51:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=qMuMSnOF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387999AbfJAMt6 (ORCPT + 99 others); Tue, 1 Oct 2019 08:49:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:42196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfJAMt5 (ORCPT ); Tue, 1 Oct 2019 08:49:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7160C21872; Tue, 1 Oct 2019 12:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569934197; bh=tGW212EaZmrIn29aaNmsRxwukQPltuKjXALvxdLiSqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qMuMSnOFckB43S5qaHlnoK/36P6/h3jdTZTwaFWd3frHjaQGai/xTS/gzELxjtUk2 Rpu1UjpzbrecweumHflFu49IPS6+ih3Xnjkdt4mK9lJHvkbCkvMl2QRxd/ldD1kmef 7OCHDEgtKzSsCuItX8L5/YHlSEPeygv67jfLkQRE= Date: Tue, 1 Oct 2019 14:49:54 +0200 From: Greg Kroah-Hartman To: Mika Westerberg Cc: linux-usb@vger.kernel.org, Andreas Noever , Michael Jamet , Yehezkel Bernat , Rajmohan Mani , Nicholas Johnson , Lukas Wunner , Alan Stern , Mario.Limonciello@dell.com, Anthony Wong , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 00/22] thunderbolt: Add support for USB4 Message-ID: <20191001124954.GI2954373@kroah.com> References: <20191001113830.13028-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191001113830.13028-1-mika.westerberg@linux.intel.com> User-Agent: Mutt/1.12.2 (2019-09-21) 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:38:08PM +0300, Mika Westerberg wrote: > Hi all, > > I'm sending this as RFC because the series is still missing important > features such as power management so not ready for merging. However, I > think it is good to get any early feedback from the community. We are > working to add support for the missing features. > > USB4 is the public specification of Thunderbolt 3 protocol and can be > downloaded here: > > https://www.usb.org/sites/default/files/USB4%20Specification_1.zip > > USB4 is about tunneling different protocols over a single cable (in the > same way as Thunderbolt). The current USB4 spec supports PCIe, Display Port > and USB 3.x, and also software based protocols such as networking between > domains (hosts). > > So far PCs have been using firmware based Connection Manager and Apple > systems have been using software based one. A Connection Manager is the > entity that handles creation of different tunnel types through the USB4 > (and Thunderbolt) fabric. With USB4 the plan is to have software based > Connection Manager everywhere but some early systems will also support > firmware to allow OS downgrade for example. > > Current Linux Thunderbolt driver supports both "modes" and can detect which > one to use dynamically. > > This series first adds support for Thunderbolt 3 devices to the software > connection manager and then extends that to support USB4 compliant hosts > and devices (this applies to both firmware and software based connection > managers). With this series the following features are supported also for > USB4 compliant devices: > > - PCIe tunneling > - Display Port tunneling > - USB 3.x tunneling > - P2P networking (implemented in drivers/net/thunderbolt.c) > - Host and device NVM firmware upgrade > > We also add two new sysfs attributes under each device that expose link > speed and width to userspace. The rest of the userspace ABI stays the same. > > I'm including Linux USB folks as well because USB4 is officially coming > from USB-IF which puts us on same boat now. > > While I changed the user visible Kconfig string to mention "USB4" (the > Kconfig option is still CONFIG_THUNDERBOLT), I'm wondering whether we > should move the whole Thunderbolt driver under drivers/usb/thunderbolt as > well? Looks "interesting", nice work! I stopped at patch "Add initial support for USB4" as I don't think we want to add USB4 code to a system that we know does not have it, right? Everything up to then is just "normal" thunderbolt, and with the exception of a few minor comments, all look fine to me. I didn't actually read the USB4 patch just yet, as I figured we needed to argue about that some more :) thanks, greg k-h