From: Tim Deegan Subject: Re: [PATCH] IOMMU: don't disable bus mastering on faults for devices used by Xen or Dom0 Date: Thu, 8 Nov 2012 12:42:50 +0000 Message-ID: <20121108124250.GE76638@ocelot.phlegethon.org> References: <5097FD2902000078000A66BF@nat28.tlf.novell.com> <5098E19D02000078000A697A@nat28.tlf.novell.com> <20121106094456.GA45690@ocelot.phlegethon.org> <1352203585.505.5.camel@Solace> <509915CD02000078000A6ABF@nat28.tlf.novell.com> <20121106135842.GB45690@ocelot.phlegethon.org> <50992A2302000078000A6B78@nat28.tlf.novell.com> <1352212160.2155.18.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1352212160.2155.18.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: "Keir (Xen.org)" , "wei.huang2@amd.com" , xen-devel , Jan Beulich , "weiwang.dd@gmail.com" , "xiantao.zhang@intel.com" List-Id: xen-devel@lists.xenproject.org At 15:29 +0100 on 06 Nov (1352215760), Dario Faggioli wrote: > On Tue, 2012-11-06 at 14:17 +0000, Jan Beulich wrote: > > > Indeed. (Intel) IOMMU interrupts are suppressed until the softirq > > > handler acknowledges the error, but if the softirq handler doesn't > > > disable the device, it will take another IOMMU interrupt immediately. > > > I thought the AMD side behaved eth same but clearly not -- I'll try to > > > take a look at that later in the week. > > > > I don't think AMD's behaves much different, it's just that for the > > PPR case nothing is being done in that regard (and it's unclear > > whether or under what circumstances a high rate of these could > > occur). > > > Indeed. I just double checked the code and yes, both faults and PPRs are > handled that way, and new interrupts are disabled until the tasklet > handles the request and re-enables them. > > The difference, as Jan is saying, is there is no PPR equivalent of > disabling bus mastering that can ensure livelock safeness when it comes > to them. Right, I see. We could always disable the card entirely. Tim.