From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Xen 4.0.0-rc7 problem/hang with vt-d DMAR parsing Date: Wed, 24 Mar 2010 10:50:39 +0200 Message-ID: <20100324085039.GG1878@reaktio.net> References: <20100323193748.GW1878@reaktio.net> <20100323200515.GZ1878@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Cui, Dexuan" Cc: "xen-devel@lists.xensource.com" , "Han, Weidong" , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Wed, Mar 24, 2010 at 09:52:45AM +0800, Cui, Dexuan wrote: > Pasi K?rkk?inen wrote: > > On Tue, Mar 23, 2010 at 07:54:33PM +0000, Keir Fraser wrote: > >> On 23/03/2010 19:37, "Pasi K=E4rkk=E4inen" wrote: > >>=20 > >>>> It's not impossible that the BIOS VT-d support is just broken (I > >>>> assume you've never tested VT-d on this particular type of system > >>>> before).=20 > >>>=20 > >>> Yeah, I've never used VT-d on this system earlier, so it could just > >>> be broken BIOS. I guess Xen still shouldn't hang on it? > >>=20 > >> We'd prefer to gracefully disable VT-d. > >>=20 > >=20 > > 4.0.0-rc7 (without any extra cmdline options) does disable vt-d and > > boot ok, after 'hanging' for 30 seconds while parsing the DMAR tables= . > >=20 > > If I add "iommu=3Dverbose" option for Xen, then it'll print huge amou= nt > > of stuff like I pasted earlier.. and it takes forever to print all > > that.=20 > >=20 > > Hmm.. wondering if the patch Jan just sent will help with that. > > Sounds like it might help :) > I guess Jan's patch helps here in a very interesting way: > I suspect your BIOS doesn't construct the DMAR properly, e.g., in acpi_= parse_dmar(), entry_header->length is always 0, so xen'll hang in the wh= ile loop and continue printing the "dmaru->address =3D 0" message when io= mmu=3Dverbose. > Without verbose message outputing, the loop runs even faster and in acp= i_parse_one_drhd(), xmalloc(struct acpi_drhd_unit) would NULL in a short= periof of time and hence VT-d is got disabled... :-) >=20 > Please dump your DMAR table using the 'acpudump' utility in *native Lin= ux*: > # wget http://kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtool= s-20100123.tar.gz > # tar zxf pmtools-20100123.tar.gz > # cd pmtools-20100123/acpidump && make && ./acpidump --table DMAR -b > = dmar.bin > Please attach the dmar.bin so we can double check. >=20 Thanks, I'll provide the dmar table later when I have access to the machi= ne again. -- Pasi