From patchwork Thu Sep 10 03:45:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koba Ko X-Patchwork-Id: 1361187 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bn4Xw6yJyz9sTd; Thu, 10 Sep 2020 13:45:36 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1kGDWe-0003Pd-8S; Thu, 10 Sep 2020 03:45:32 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kGDWc-0003PE-Sv for kernel-team@lists.ubuntu.com; Thu, 10 Sep 2020 03:45:30 +0000 Received: from mail-pj1-f70.google.com ([209.85.216.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kGDWc-0004LO-I8 for kernel-team@lists.ubuntu.com; Thu, 10 Sep 2020 03:45:30 +0000 Received: by mail-pj1-f70.google.com with SMTP id fy7so2978645pjb.6 for ; Wed, 09 Sep 2020 20:45:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=VgcAWgMGeNNidw+jrhFC1SHH+5WdBML5wivQzKgtYeA=; b=BKrVD8frB0mQ4hRuOTXdCRCSNMDnrRAwROeYI2xYbefWjVfl+R8pA3l4fWSItNm+A8 FzaZLvQX97ExgzgaCObVLAbUV9c9J1fCFHKO9Q48wo1HCDxHKr5EiltYusxlPtDkE+9L CqW5k3A0uZ6E2D+yPxkBqr7scvdlk8bqA3A9ccDMExpZrV64rwjeaNOf4ks6gqhh7uY5 oJuxS5A8Ssxu11KUc1eOpGvom8R3g52cJrHJE6Xi5PX8I4BxLxJkK/OjH1X/QzRGryx7 /wFhxSvP0mrHluV9ZpwPx7p37Hsek5oQjEcRrOENu9ba5sm/2+KK8iRej12f5ujyU2Hc AYig== X-Gm-Message-State: AOAM531GGv91pAwqkkwgXOWX1H8mnxPDXh6/Egy7VfHT4tLDMXoYt/uC 7FpurBfFzrhGIpVPFMk+qvpwqJXZsf2QfCaHPJ6o+qHutUJRaxceHFfdzCZK7s6zrO+uaP3ZsmQ fWvX9OCIkcyOWA+sU8nki7Tnw+lPeDUeWzFrLPr7+5g== X-Received: by 2002:a63:2055:: with SMTP id r21mr2964920pgm.118.1599709528901; Wed, 09 Sep 2020 20:45:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb3XaiedtMAKQXnXeYwEyq3FySukVr2HC27/Mkx7VPfrTDvHtxu6oKwDRP45OGEk8EbatIxA== X-Received: by 2002:a63:2055:: with SMTP id r21mr2964904pgm.118.1599709528541; Wed, 09 Sep 2020 20:45:28 -0700 (PDT) Received: from canonical.com (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id kt18sm495615pjb.56.2020.09.09.20.45.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Sep 2020 20:45:28 -0700 (PDT) From: Koba Ko To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/8][SRU][G] Thunderbolt Authenticate on disconnect patches Date: Thu, 10 Sep 2020 11:45:18 +0800 Message-Id: <20200910034526.12438-1-koba.ko@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1895073 [Impact] These two patches is provided by Mario Limonciello and have landed in 5.9-rc1. Support a better flow for authenticate of TBT dock on disconnect. *thunderbolt: Add support for separating the flush to SPI and authenticate *thunderbolt: Add support for authenticate on disconnect Also need the following patches. thunderbolt: Ensure left shift of 512 does not overflow a 32 bit int thunderbolt: Add support for on-board retimers thunderbolt: Implement USB3 bandwidth negotiation routines thunderbolt: Split common NVM functionality into a separate file thunderbolt: Generalize usb4_switch_do_[read|write]_data() thunderbolt: Implement USB4 port sideband operations for retimer access [Fix] [Test] [Regression] Low, the patches have landed in 5.9-rc1. Colin Ian King (1): thunderbolt: Ensure left shift of 512 does not overflow a 32 bit int Kranthi Kuntala (1): thunderbolt: Add support for on-board retimers Mario Limonciello (2): thunderbolt: Add support for separating the flush to SPI and authenticate thunderbolt: Add support for authenticate on disconnect Mika Westerberg (3): thunderbolt: Implement USB3 bandwidth negotiation routines thunderbolt: Split common NVM functionality into a separate file thunderbolt: Generalize usb4_switch_do_[read|write]_data() Rajmohan Mani (1): thunderbolt: Implement USB4 port sideband operations for retimer access .../ABI/testing/sysfs-bus-thunderbolt | 57 +- Documentation/admin-guide/thunderbolt.rst | 11 +- drivers/thunderbolt/Makefile | 3 + drivers/thunderbolt/domain.c | 2 +- drivers/thunderbolt/eeprom.c | 1 + drivers/thunderbolt/lc.c | 14 + drivers/thunderbolt/nvm.c | 170 ++++ drivers/thunderbolt/quirks.c | 42 + drivers/thunderbolt/retimer.c | 485 ++++++++++ drivers/thunderbolt/sb_regs.h | 33 + drivers/thunderbolt/switch.c | 197 ++-- drivers/thunderbolt/tb.c | 10 + drivers/thunderbolt/tb.h | 105 ++- drivers/thunderbolt/tb_regs.h | 30 + drivers/thunderbolt/usb4.c | 839 +++++++++++++++++- 15 files changed, 1858 insertions(+), 141 deletions(-) create mode 100644 drivers/thunderbolt/nvm.c create mode 100644 drivers/thunderbolt/quirks.c create mode 100644 drivers/thunderbolt/retimer.c create mode 100644 drivers/thunderbolt/sb_regs.h