From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796154113; b=b17QAechRW/8jTR4IdeeLLLzgSKxo3Y0tsD0+FukYDUSvMaqmQi8CLP8sDhZ7jcu0478 Q4ynlMAaJbbju4frg5wNOKba7GqTVfhpzK5CrwgB70vXbyCvqEcKq9ffIWhE58tz8z44O wY/0Tn1f2CzOfyV5yuxie37WbboshLtamZVvyU+K2WQ89VXrBdEo06lZN307xOaoA2jWY ow2NUe0iyrW3rPMAasxXR4NVQ9d3TSwq0ocbRYdrM75RbWCTvHtLgumvWsQqSEZK/dSVu KXN4tTNNWOq5Ku1DViMeR3JugQaLqgspRVL9+YdcYPsLD/iV1z8D3JfLR4PnXbMDBRw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796154113; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=Iny8SS5j0gio82VWFkT7jvywX7NwErMKhdrdp92iVEU=; b=WWqf67I9vjCsZpqullTwOQMQZT9bBNFTwE1vbkR0kyIyY9S9UEcqKEvUh5PpMbRTLp75 PkXJBNOGTFXnvebIzz1JTVqZZ3CCo6wFBPPg8S239gmiy0kYUgp5Bpo9ktDIfmS2coJYn r3753Gr2QFsI7UxLPyUXqo6+/FtQWEGGLNgDzun7OjdhRprbzPlwdZrzRv4Yh5jHVXye6 ESxhE3/0r8gq0VIs1jJaxuvr3eOX4Bl4ZYEeTiGty/QJPy8XtdxWVnDlPdE6i9JulNthX +iUpz1BPwALpwjosfkYqVLH9RKNo3D7wQCwi6TGhv3J+ZudYLTlQfbLXya2fORNJpdA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=UesiA+8l; arc=none smtp.remote-ip=198.175.65.17 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82BF9606A338 for ; Tue, 1 Dec 2026 19:41:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 82BF9606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=UesiA+8l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796154112; x=1827690112; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Iny8SS5j0gio82VWFkT7jvywX7NwErMKhdrdp92iVEU=; b=UesiA+8lNAF1knoQnmFZFyR1XB9hSqHPbg+9uz5uokSasPnhFempu0+2 +A/P9jvGhJJgtn8SGNxd70jXNAffsxDuJiNZ+0VjX6VFQ7vTQFBw+5utP JDVjf+GL9yezFZ+kdsmhVruea6xKH53AZ/gP0WYqBt79qwNR2V2KDrXMK 9++l556mDaUs0uYpcIMqehRmbUHmifnUjOAAZ3VY8Eqikf5tpwxqyUqzR u/6cha8dLHlv2BxB1pH4zqgN5i34Y4IdAnZhkVoSYjhWjN/6qPQBy1yGM /tLnTk+z1V8ToiX7Vl/GERyeT1SRV4GBF8OsZyvbp/Hpo19i7AlT/niTq g==; X-CSE-ConnectionGUID: BYSrIkDVTKW8pSNhRaZkKQ== X-CSE-MsgGUID: GxdCw1j2RDeNg0MmMKt3Jg== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="5048980" X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="5048980" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 11:41:52 -0800 X-CSE-ConnectionGUID: 63xxdGLmTCCauZuW8st5xg== X-CSE-MsgGUID: QU4p7+M2SOWAiccTslQn4g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="13818599" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa001.fm.intel.com with ESMTP; 01 Dec 2026 11:41:51 -0800 Received: by black.igk.intel.com (Postfix, from userid 1058) id B9B9698; Tue, 01 Dec 2026 20:41:49 +0100 (CET) From: Niklas Neronin To: mathias.nyman@linux.intel.com Cc: linux-usb@vger.kernel.org, Niklas Neronin Subject: [PATCH 0/7] usb: xhci: command queueing cleanups Date: Tue, 1 Dec 2026 20:41:27 +0100 Message-ID: <20261201194134.265480-1-niklas.neronin@linux.intel.com> X-Mailer: git-send-email 2.50.1 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series cleans up xHCI command construction and queueing, removes some command-specific special cases, and simplifies the Configure Endpoint / Evaluate Context paths. The final patch removes the command ring reservation for so-called "must succeed" commands. There does not appear to be a documented requirement for reserving command ring space for these commands, and a full command ring already prevents further command progress. Removing the reservation also eliminates the stream allocation limit that depended on it. Niklas Neronin (7): usb: xhci: simplify xhci_get_input_control_ctx() usb: xhci: add xhci_queue_set_deq() helper usb: xhci: simplify prepare_ring() usb: xhci: split Configure Endpoint and Evaluate Context handling usb: xhci: clear EP_GETTING_NO_STREAMS when freeing streams fails usb: xhci: remove pre-allocated free streams command usb: xhci: remove command ring TRB reservation drivers/usb/host/xhci-mem.c | 28 +-- drivers/usb/host/xhci-ring.c | 98 ++++----- drivers/usb/host/xhci-trace.h | 10 + drivers/usb/host/xhci.c | 387 +++++++++++++--------------------- drivers/usb/host/xhci.h | 14 +- 5 files changed, 202 insertions(+), 335 deletions(-) -- 2.50.1