From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 01E0421A00AD9 for ; Wed, 28 Jun 2017 03:38:36 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2017 03:40:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,275,1496127600"; d="scan'208";a="279555673" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.28]) by fmsmga004.fm.intel.com with ESMTP; 28 Jun 2017 03:40:07 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Wed, 28 Jun 2017 18:39:56 +0800 Message-Id: <20170628103959.397244-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 Subject: [PATCH 0/3] Check timeout URB again after stopping endpoint X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2017 10:38:37 -0000 This fixes BULK data loss when transfer is detected as timeout but finished just before stopping endpoint. Ruiyu Ni (3): MdeModulePkg/XhciDxe: Refine IsTransferRingTrb and IsAsyncIntTrb MdeModulePkg/XhciDxe: Dump the CMD/EVENT/INT/BULK ring information MdeModulePkg/XhciDxe: Check timeout URB again after stopping endpoint MdeModulePkg/Bus/Pci/XhciDxe/Xhci.c | 31 +++-- MdeModulePkg/Bus/Pci/XhciDxe/Xhci.h | 3 +- MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 190 +++++++++++++++++++++---------- MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.h | 9 +- 4 files changed, 159 insertions(+), 74 deletions(-) -- 2.12.2.windows.2