From: Christian Tramnitz Subject: Re: [Xen-users] Re: VT-D RMRR is incorrect Date: Wed, 25 Feb 2009 23:26:51 +0100 Message-ID: <49A5C5AB.1010506@gmx.net> References: <48886.5834581249$1234876425@news.gmane.org> <831D55AF5A11D64C9B4B43F59EEBF72023114BB746@FTLPMAILBOX02.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <831D55AF5A11D64C9B4B43F59EEBF72023114BB746@FTLPMAILBOX02.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ross Philipson schrieb: > Hi folks, >=20 > This sounds a lot like an issue I am working on right now. A recent=20 > change to the vtd code changed the way the 1 to 1 page mapping for dom0= =20 > is done (look at intel_iommu_domain_init() for dom0). The change was to= =20 > query the e820 map for memory regions that were usable RAM and only map= =20 > those into the iommus for dom0. Thus reserved regions were no longer=20 > mapped in. When the RMRR values do not report the correct values for=20 > required 1 to 1 reserved memory regions, the needed regions do not get=20 > mapped in. Thus device DMA to these regions causes vtd faults and in ou= t=20 > case a hang. It is indeed a BIOS bug; perhaps this is the same issue yo= u=20 > are seeing? >=20 > Anyway, I am working on a workaround that I will be pushing upstream=20 > this week. A parameter will allow you to include reserved memory region= s=20 > in the mappings. It is not ideal (less secure) but better than hanging=20 > or crashing=85 Hi Ross, I tried your patch from you other post, but even with the new parameter=20 enabled I still get the DMAR error messages and vt-d being disabled: (XEN) Command line: dom0_mem=3D1024M iommu=3D1 iommu_include_reserved=3D1 ... (XEN) [VT-D]dmar.c:473: Host address width 39 (XEN) [VT-D]dmar.c:482: found ACPI_DMAR_DRHD (XEN) [VT-D]dmar.c:337: dmaru->address =3D fbfff000 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1b.0 (XEN) [VT-D]dmar.c:482: found ACPI_DMAR_DRHD (XEN) [VT-D]dmar.c:337: dmaru->address =3D fbffe000 (XEN) [VT-D]dmar.c:294: found IOAPIC: bdf =3D f0:1f.7 (XEN) [VT-D]dmar.c:294: found IOAPIC: bdf =3D 0:13.0 (XEN) [VT-D]dmar.c:346: found INCLUDE_ALL (XEN) [VT-D]dmar.c:486: found ACPI_DMAR_RMRR (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1d.0 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1d.1 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1d.2 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1d.7 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1a.0 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1a.1 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1a.2 (XEN) [VT-D]dmar.c:288: found endpoint: bdf =3D 0:1a.7 (XEN) [VT-D]dmar.c:486: found ACPI_DMAR_RMRR (XEN) [VT-D]dmar.c:376: RMRR error: base_addr bf7dc000 end_address bf7dbf= ff (XEN) Failed to parse ACPI DMAR. Disabling VT-d. Best regards, Christian