Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp512040ybt; Wed, 1 Jul 2020 03:58:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIcjmgQQ+F+G2jI22aNmjxCw54VnPu5lq8Z2j760xBd1fQCsf4vQZdYFBDwBM7RKQHFUSO X-Received: by 2002:a50:f149:: with SMTP id z9mr28795234edl.167.1593601098280; Wed, 01 Jul 2020 03:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593601098; cv=none; d=google.com; s=arc-20160816; b=NAgmARNJHUDjZdudfL6q2d1bswPOkQ2lseBMWbaTDSf25PN8EELeqT7DYyyIHjrqnr yta3hJTmkj0gTbapS/3vcaRNiGie+k1J+van2vr+mTOKSkKijBk8yNTGxcYMyHJ7fY1s KmHkmkDBgYs1u3CLipfLnMDm+ScOhMa3gmTTzC7rrt+ShYvExWmqwvUSV5NxjbmqHx78 2a/Xaq7kk292E8LAjV7l7NDcm2+csla6bDNzOpRiniqTsRFMA1p4D42WIKH2JjHF0SES RaviYNOa/IGv2Jj4RFzRKjGHD+cE99554bjzX8PawnpOfQuBwhtgvnf1hfDH3dyhQntm msGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=u3BSvoTrHlS0DRrCYGEq34Y8ytbUDGq0c0u4JPA+ZQ4=; b=f9k9OJoH+ybb7XVO6N136fij/M5rhRGn+yPPBCLANBUCs55GkqQbxh2FnjiNk7jdy+ 7OSrnycDbRrnzkwPcbcCm8OvtSgtDqTlhySFfmM8WlWxuXvMqrO/IJCTBGRLLdCDl86i AD9F6Oz737NkyAzweoUnd8FmjRKpptEk0QFHeEXMtgmGN+KEljJOJtx9/aMyppT3uXMy JVNqOBT763qWMsBhe70RVIyFi1nzYwpmjXvr2EElpvXxI1Bjb7uE+fTwghJnIfthdq06 939LaaTlfwFCtKT6+IRU0nNo/fxdn+UsgrKnVGmnJqsEUsZvfSHj2e/FDlEBr/19fehq mOUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b22si3562159edx.593.2020.07.01.03.57.55; Wed, 01 Jul 2020 03:58:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730103AbgGAKzy (ORCPT + 99 others); Wed, 1 Jul 2020 06:55:54 -0400 Received: from mga02.intel.com ([134.134.136.20]:39960 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729892AbgGAKzy (ORCPT ); Wed, 1 Jul 2020 06:55:54 -0400 IronPort-SDR: Ui6JidojlEaxEVB4wEVJ5O5nnfzSYSiB7JED6GD84NuRieGtnIlbfAvNyIDEJAX8uVrH/g/j06 xF8A6aS/JgbQ== X-IronPort-AV: E=McAfee;i="6000,8403,9668"; a="134808883" X-IronPort-AV: E=Sophos;i="5.75,300,1589266800"; d="scan'208";a="134808883" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 03:55:53 -0700 IronPort-SDR: GXQIRMxbW+ii2kfDZ+sEivb30yP95UR7z9OHM7b228OGe6+c05HjxdSDhQlnkd6DLe1xX2VwP7 ccXct5/T+FQA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,300,1589266800"; d="scan'208";a="386976297" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 01 Jul 2020 03:55:51 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 01 Jul 2020 13:55:50 +0300 Date: Wed, 1 Jul 2020 13:55:50 +0300 From: Mika Westerberg To: Mario Limonciello Cc: Andreas Noever , Michael Jamet , Yehezkel Bernat , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, perry.yuan@dell.com Subject: Re: [PATCH v3 0/2] Allow breaking up Thunderbolt/USB4 updates Message-ID: <20200701105550.GR5180@lahna.fi.intel.com> References: <20200623161429.24214-1-mario.limonciello@dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623161429.24214-1-mario.limonciello@dell.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 11:14:27AM -0500, Mario Limonciello wrote: > Currently updates to Thunderbolt and USB4 controllers are fully atomic > actions. When writing into the non-active NVM nothing gets flushed to > the hardware until authenticate is sent. > > There has been some desire to improve the perceived performance of these > updates, particularly for userland that may perform the update upon > a performance sensitive time like logging out. > > So allow userland to flush the image to hardware at runtime, and then > allow authenticating the image at another time. > > For the Dell WD19TB some specific hardware capability exists that allows > extending this to automatically complete the update when unplugged. > Export that functionality to userspace as well. > > Changes from v2 to v3: > - Correct some whitespace and kernel-doc comments > - Add another missing 'const' > - For a quirk: (1<<1) -> BIT(0) > > Changes from v1 to v2: > - Improve documentation > - Drop tb-quirks.h > - Adjust function and parameter names to Mika's preferences > - Rebase onto thunderbolt.git/bleeding-edge to move on top of retimer work > > Mario Limonciello (2): > thunderbolt: Add support for separating the flush to SPI and > authenticate > thunderbolt: Add support for authenticate on disconnect Both applied to thunderbolt.git/next, thanks Mario!