From: "Jan Beulich" Subject: Re: [PATCH] Decouple SandyBridge quirk from VTd timeout Date: Fri, 10 Oct 2014 09:36:44 +0100 Message-ID: <5437B6BC020000780003D8E2@mail.emea.novell.com> References: <20141008163431.GA24157@gimli.n0ano.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141008163431.GA24157@gimli.n0ano.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Dugger Cc: Yang Z Zhang , Kevin Tian , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 08.10.14 at 18:34, wrote: > Currently the quirk code for SandyBridge uses the VTd timeout value > when writing to an IGD register. Since the IGD is not part of the VTd > engine this is the wrong timeout value to use. Change this code to > use a timeout value that is unique to the quirk code. > > Signed-off-by: Don Dugger > Reviewed-by: Allen Kay > Reviewed-by: Eddie Dong > Reviewed-by: Will Auld > > -- > diff -r cf06cdd94296 xen/drivers/passthrough/vtd/quirks.c > --- a/xen/drivers/passthrough/vtd/quirks.c Mon Sep 22 17:02:48 2014 +0100 > +++ b/xen/drivers/passthrough/vtd/quirks.c Mon Oct 06 17:55:54 2014 -0600 > @@ -50,6 +50,8 @@ > #define IS_ILK(id) (id == 0x00408086 || id == 0x00448086 || id== 0x00628086 || id == 0x006A8086) > #define IS_CPT(id) (id == 0x01008086 || id == 0x01048086) > > +#define SNB_IGD_TIMEOUT MILLISECS(1000) I would have expected the value to get shrunk to less than a second at once, without which the change isn't really all that useful. Mind explaining why this isn't being done? Jan