From patchwork Wed May 12 00:18:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Connor Davis X-Patchwork-Id: 436087 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90A4EC433B4 for ; Wed, 12 May 2021 00:18:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5072E61285 for ; Wed, 12 May 2021 00:18:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbhELATa (ORCPT ); Tue, 11 May 2021 20:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbhELATa (ORCPT ); Tue, 11 May 2021 20:19:30 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 506A0C061574; Tue, 11 May 2021 17:18:22 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id d24so10069102ios.2; Tue, 11 May 2021 17:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mXSeR9jPw54X42/hzVCKnW9V7a7Fp/RB7jF7rnjCJUw=; b=cPTkppKtPOrkAZ6nQARylT++pk44Lspab5bF4Y1dwmuQBYjN0Y3UuyDtFNRJx0iBpg 9EHv6UTLsMbWxIJN3z9MPof9z9kmZE5mn3oRoU7l/paKObQqQY0DTK3GBr8Ys1CwM52V Ee1MxtvuDQLEH9HCoGgOCOueH024l3lX693zvuJtJeynCSOleAkV6uSYs/nnzUjCTvvU UVxynsT469vDP4YHIsKNmIOYKFSX2A4ZjZDC6OLL49vg2Tz+mQ7gH9GUfIuT5tM+7HqS 4FN/Ba9X3JFWYRvBn6fdHSsH/GGtZjvqJcp/2tekEeP2dLEU4N1oubuqc+iLj+f8Huu6 TCyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mXSeR9jPw54X42/hzVCKnW9V7a7Fp/RB7jF7rnjCJUw=; b=hfs/278XYimdbpxUQtTR+YGGFgKRkZ7Zie0TB8xEvH+XbfYeBmUGVgvBH2uDgwyZRN D8Oy9rd7mKnWkSHllwZuPy8DAyJgIXRNi8FEjkDjqbM0tcbssIImMisfx2fdnMdSKUVN W9adOWrJ6g8knlWVXXcstkQxiBF9v5vTtJGI8k2iFfXSB5e3ugwVvdKAbIEgN4MXSK67 keP7+pBQWMAbKyqQZEDrGsA1phWEHf7wbtVF622P8uhP4PW+KvFOmxNGLjHJOeP7Xdl0 PDnPCrx8nwN6yrLcLG3wCgLNZzLNx0BSIl3VXO0SyEptIj329MRutHB2FQZ6zn8RUrep AWVA== X-Gm-Message-State: AOAM530uaS1B+caBAcusDEcbOI2odzkcIXPf4bVjQNsIILAOSwkIkQng qNSZqk2MrbwgND0l68AedDrP+3ZmtDBsjg== X-Google-Smtp-Source: ABdhPJyGzEtP2429F0wetqYLv9fqk0nL/tFbD9fe/i3vDjKMOECPsuDdTpSelI1bEV3hT45X4JMc9A== X-Received: by 2002:a02:1c81:: with SMTP id c123mr30707808jac.42.1620778702074; Tue, 11 May 2021 17:18:22 -0700 (PDT) Received: from localhost.localdomain (142-79-211-230.starry-inc.net. [142.79.211.230]) by smtp.gmail.com with ESMTPSA id v4sm8241490iol.3.2021.05.11.17.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 17:18:21 -0700 (PDT) From: Connor Davis To: linux-kernel@vger.kernel.org Cc: Connor Davis , linux-usb@vger.kernel.org, xen-devel@lists.xenproject.org, Greg Kroah-Hartman , Lee Jones , Jann Horn , Chunfeng Yun , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Mathias Nyman Subject: [PATCH 0/3] Support xen-driven USB3 debug capability Date: Tue, 11 May 2021 18:18:18 -0600 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi all, This goal of this series is to allow the USB3 debug capability (DbC) to be safely used by xen while linux runs as dom0. The first patch prevents the early DbC driver from using an already-running DbC. The second exports xen_dbgp_reset_prep and xen_dbgp_external_startup functions when CONFIG_XEN_DOM0 is enabled so they may be used by the xHCI driver. The last uses those functions to notify xen of unsafe periods (e.g. reset and D3hot transition). Thanks, Connor --- Connor Davis (3): usb: early: Avoid using DbC if already enabled xen: Export dbgp functions when CONFIG_XEN_DOM0 is enabled usb: xhci: Notify xen when DbC is unsafe to use drivers/usb/early/xhci-dbc.c | 10 ++++++ drivers/usb/host/xhci-dbgcap.h | 6 ++++ drivers/usb/host/xhci.c | 57 ++++++++++++++++++++++++++++++++++ drivers/usb/host/xhci.h | 1 + drivers/xen/dbgp.c | 2 +- 5 files changed, 75 insertions(+), 1 deletion(-) base-commit: 88b06399c9c766c283e070b022b5ceafa4f63f19 -- 2.31.1