From owner-freebsd-xen@FreeBSD.ORG Thu Dec 4 20:26:41 2014 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 200D7C39 for ; Thu, 4 Dec 2014 20:26:41 +0000 (UTC) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D8BA7EFC for ; Thu, 4 Dec 2014 20:26:40 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id r10so18423683pdi.13 for ; Thu, 04 Dec 2014 12:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dpdtech.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=INfm0DPlHBCvUpxwivuQL75ss5aEVMBf4Az23eQyXRg=; b=BlMwom96SPtDgD6E5mAIGYhrhlKpuuhlJc5gJtC/vIfXHYplPddjXZCNC/+n1OuoMz dtEAIFI1Iwn5fXo0IUAYTOMpT/ZkjhNAeFDrXbSppsX21qJ3DLle9w0wFmMxzlyV8EAk gua/a+tCJhRArzVC+oIzGiTGH/2qp3v2YPq6k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=INfm0DPlHBCvUpxwivuQL75ss5aEVMBf4Az23eQyXRg=; b=DArBHvLuYpOvyXkxMBGQhWV0c7hg4tnxhRhb0irIPPk8PYIeH/J5Y9+OQm8PMW2Q+U YIjG4z5QEf7YqvQ800GG6rky+5YTB091n3OtF2Jm8ohxeNNWVK+1qAMeiqVTMH2Cbd5i A/EM4ZG44xcwU/78wjwIIETt1NUEbcnp4/Di65slDZxbdx03X1+mV3zZK+UwhQ3PNyUZ 0n4FzTTWuGa7PBM425dtf/69NcfPddstLdVaaQePpX08M7yIIRed7Ndym3YSXlRhdkDM B9GJNqsCyMSZo8G6f6MDGDN6N15Y5CZLMwZ8XZVjcm4KuGOiSHBCRJCLgs96swlNRU9n 6OsQ== X-Gm-Message-State: ALoCoQluH6GK3LY4e2+n3nkQvcleEHP3vjsUoTB9f7/6KZx5mNdb4SbbaS3H8BvNyF9CvIuCn9o4 X-Received: by 10.66.240.71 with SMTP id vy7mr21864213pac.89.1417724800223; Thu, 04 Dec 2014 12:26:40 -0800 (PST) Received: from 173-13-188-41-sfba.hfc.comcastbusiness.net (173-13-188-41-sfba.hfc.comcastbusiness.net. [173.13.188.41]) by mx.google.com with ESMTPSA id ko4sm26924259pdb.31.2014.12.04.12.26.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 12:26:39 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_BB983AE6-9E20-42E0-80EF-26175E3A7F27"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Attempting to Get Xen FreeBSD Dom0 working From: "David P. Discher" In-Reply-To: <54801F77.5050700@citrix.com> Date: Thu, 4 Dec 2014 12:26:37 -0800 Message-Id: References: <481F7D02-BFE9-4E35-A475-5A8A05A801CE@dpdtech.com> <547DFCC0.6030003@citrix.com> <547F1476.8080305@citrix.com> <29437DB9-7DC8-47A8-8FC4-2BFDE736B5BC@dpdtech.com> <547F59B4.1010105@citrix.com> <2DDCAA68-3B11-4E3C-AE61-EAD8CEEF1E2D@dpdtech.com> <547F6AC1.9060709@citrix.com> <7C356027-01D8-4800-B211-282566BC9871@dpdtech.com> <54801F77.5050700@citrix.com> To: =?iso-8859-1?Q?Roger_Pau_Monn=E9?= X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2014 20:26:41 -0000 --Apple-Mail=_BB983AE6-9E20-42E0-80EF-26175E3A7F27 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 4, 2014, at 12:46 AM, Roger Pau Monn=E9 = wrote: > Hello, >=20 > El 04/12/14 a les 3.27, David P. Discher ha escrit: >> So, the =93working=94 part =85 the hypervisor up, and Dom0 running, = is correct. >>=20 >> However, after ~5 minutes, the AHCI buses timeout. This seems to be = constantly=20 >> reproducible via Dom0. FreeBSD on the this bare metal does=92t have = this issue. >=20 > If you boot Xen with iommu=3Ddebug, do you see any messages on the Xen > console? >=20 > My test boxes also use AHCI, but the chipset is not exactly the same > (mine is ICH8, yours is ICH10). Do you do anything specific to trigger > the timeout, or just leaving Dom0 in an idle state also triggers this? >=20 > Could you switch to the Xen console and post the output of the "i" = debug > key when this happens? >=20 > Also, you can try to play with the AHCI driver sysctls, to see if some > of them have any effect. I would recommend trying to disable MSI > interrupts (hint.ahci.X.msi=3D0) and power control = (hint.ahcich.X.pm_level=3D0). Yes, ICH10. I=92m not sure if an idle Dom0 does this, however limited = access to the disks, even just editing things like /boot/loader.conf and = /etc/rc.conf will eventually hang. But I=92m also trying to launch a = DomU, and for the convince of a documented process, I=92m following your = debian steps =85 and the debian installer is running. I=92m running a = zpool mirror across 4k aligned GPT partitions for the root drive. I=92ll = also attempt to break break the mirror, as I don=92t remember this being = a problem with a single drive.=20 As first step last night, I actually moved the msi interrupts to =3D 2, = instead of fully disabled. And this helped a little. It seemed to = allow the AHCI driver to recovered after the first several timeouts. I = will try disabling MSI as well and well as iommu debug. However, I=92m = still without a Xen console. Durning the ACPI/pci probing =85 my console = over SOL com3 cuts out. I haven=92t try to recover it yet. I will see = what I can do. However, from what it looks like, Xen kernel is latching = on the com port, and freebsd sees it as =93busy=94. I=92ll see what I = can figure out. I believe the pm_level is default to 0, but will double = check that. - David P. Discher http://davidpdischer.com/ AIM: DavidDPD | Y!M: daviddpdz=20 --Apple-Mail=_BB983AE6-9E20-42E0-80EF-26175E3A7F27 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUgMN+AAoJEEmwU6XuhYWO87EH/3r3tyXFiZXB7mnc3JLU1T+O UN9M0MCE91sjfJDEoTH+Phh1uY40sRFvChZ3raOl1SWRSZzKQz15pqiOIoSKgBsx kS8GP/7EERxWzYKpipKbh4f78KRvDfq07xdmKomg5gj0jS1rzn9NDhRDdIDgkxi6 NKhkR+An+OnAWM/+Fn8BjxrkP95jD5thBx2/9sCpnrfhr6u5piAgF8pIGkVeKxVb HxKEmbFazl7s2rMWnyhsT3l6NGFBjuVVcF5S6M33fMCkI1b8FSX76EJz0eFZ+muU diEB1m+BmOfrxmNJDH8hsMUBuvDkNG1qkw0obbAPJfoU4BE5h4h5FQz9Qm7lPl8= =S2pq -----END PGP SIGNATURE----- --Apple-Mail=_BB983AE6-9E20-42E0-80EF-26175E3A7F27--