From patchwork Mon Mar 14 07:16:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quan Xu X-Patchwork-Id: 8576841 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 729929F6E1 for ; Mon, 14 Mar 2016 07:21:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9AA512045E for ; Mon, 14 Mar 2016 07:21:45 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C89F720454 for ; Mon, 14 Mar 2016 07:21:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xen.org with esmtp (Exim 4.84) (envelope-from ) id 1afMmE-0004Cg-9E; Mon, 14 Mar 2016 07:18:54 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.84) (envelope-from ) id 1afMmC-0004Ca-WA for xen-devel@lists.xen.org; Mon, 14 Mar 2016 07:18:53 +0000 Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id B7/9E-04065-CD566E65; Mon, 14 Mar 2016 07:18:52 +0000 X-Env-Sender: quan.xu@intel.com X-Msg-Ref: server-7.tower-27.messagelabs.com!1457939930!30877403!1 X-Originating-IP: [134.134.136.20] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTM0LjEzNC4xMzYuMjAgPT4gMzU1MzU4\n X-StarScan-Received: X-StarScan-Version: 8.11; banners=-,-,- X-VirusChecked: Checked Received: (qmail 889 invoked from network); 14 Mar 2016 07:18:51 -0000 Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by server-7.tower-27.messagelabs.com with SMTP; 14 Mar 2016 07:18:51 -0000 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 14 Mar 2016 00:18:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,334,1455004800"; d="scan'208";a="669095102" Received: from xen-commits.sh.intel.com ([10.239.82.178]) by FMSMGA003.fm.intel.com with ESMTP; 14 Mar 2016 00:18:49 -0700 From: Quan Xu To: xen-devel@lists.xen.org Date: Mon, 14 Mar 2016 15:16:26 +0800 Message-Id: <1457939786-52431-1-git-send-email-quan.xu@intel.com> X-Mailer: git-send-email 1.8.3.2 Cc: Andrew Cooper , Kevin Tian , Feng Wu , Jan Beulich , Quan Xu Subject: [Xen-devel] [PATCH] VT-d: Chop down the DMAR_OPERATION_TIMEOUT to a low number of milliseconds. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We confirmed with VT-d hardware team that 1ms is large enough for IOMMU internal flush. So We can change the DMAR_OPERATION_TIMEOUT from 1000 ms to 1 ms. Signed-off-by: Quan Xu CC: Jan Beulich CC: Andrew Cooper CC: Feng Wu CC: Kevin Tian Acked-by: Kevin Tian --- xen/drivers/passthrough/vtd/dmar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/vtd/dmar.h b/xen/drivers/passthrough/vtd/dmar.h index 729b603..4b14368 100644 --- a/xen/drivers/passthrough/vtd/dmar.h +++ b/xen/drivers/passthrough/vtd/dmar.h @@ -106,7 +106,7 @@ struct acpi_atsr_unit *acpi_find_matched_atsr_unit(const struct pci_dev *); #define RMRR_TYPE 2 #define ATSR_TYPE 3 -#define DMAR_OPERATION_TIMEOUT MILLISECS(1000) +#define DMAR_OPERATION_TIMEOUT MILLISECS(1) #define IOMMU_WAIT_OP(iommu, offset, op, cond, sts) \ do { \