From: "Jan Beulich" Subject: Re: dom0 / hypervisor hang on dom0 boot Date: Tue, 21 May 2013 09:03:59 +0100 Message-ID: <519B468F02000078000D7810@nat28.tlf.novell.com> References: <3374329.VOz1gdFjBv@amur.mch.fsc.net> <1801825.vc7PjyMSRn@amur.mch.fsc.net> <5193749902000078000D6569@nat28.tlf.novell.com> <1630888.LbRauWP15S@amur.mch.fsc.net> <5194E8D302000078000D6B5A@nat28.tlf.novell.com> <6AF484C0160C61439DE06F17668F3BCB526C1380@ORSMSX102.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6AF484C0160C61439DE06F17668F3BCB526C1380@ORSMSX102.amr.corp.intel.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: Donald D Dugger , Kevin Tian Cc: Andrew Cooper , Konrad Rzeszutek Wilk , Dietmar Hahn , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 20.05.13 at 16:30, "Dugger, Donald D" wrote: > The only trick for i915 in dom0, in my mind, is to have CONFIG_DMAR enabled in > dom0 although dom0 is not actually exposed with a VT-d engine. This sets need_dmar > flag in i915, ensures i915 to use Xen DMA interface instead of virt_to_phys, so that > MFN is written to GTT entries. Otherwise, having GPFN in GTT entries is bogus, since > GPU will DMA to wrong locations then, and thus cause random issues. Enabling CONFIG_DMAR (or really CONFIG_INTEL_IOMMU in recent kernels) is not an option. However, we patch all respective sites to also take effect on Xen (of course that doesn't help pv-ops, but here we're talking about a forward ported kernel anyway). > Once we also identified a regression in 3.8, where need_dmar is not honored in > i915 driver: Dietmar had already tested with 3.9, so this ought to not affect him. Jan