All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <royger@FreeBSD.org>
To: Jan Beulich <jbeulich@suse.com>, editor@callfortesting.org
Cc: yang.z.zhang@intel.com, xen-devel@lists.xenproject.org,
	kevin.tian@intel.com
Subject: Re: FreeBSD Dom0 IOMMU issues
Date: Thu, 07 May 2015 09:27:56 +0200	[thread overview]
Message-ID: <554B13FC.8060907@FreeBSD.org> (raw)
In-Reply-To: <554B161002000078000CEA5D@mail.emea.novell.com>

El 07/05/15 a les 8.36, Jan Beulich ha escrit:
>>>> Michael Dexter <editor@callfortesting.org> 05/06/15 6:29 PM >>>
>> I have been working with Roger Pau Monné to bring FreeBSD Dom0 support 
>> to a production-ready state but we appear to have hit an IOMMU issue.
>>
>> Hardware: Lenovo ThinkPad T420 i7-2640M CPU @ 2.80GHz with 16GB RAM.
>>
>> I am attaching my console logs which first show my loader.conf file the 
>> DomU .cfg file and then DomU boot with Xorg starting.
>>
>> In the end I get:
>>
>> (XEN) ****************************************
>> (XEN) Panic on CPU 2:
>> (XEN) queue invalidate wait descriptor was not executed
>> (XEN) ****************************************
> 
> In the end this may be a secondary issue. Namely looking at the more complete
> log in your resent mail we see a DMA fault before even starting Dom0. Interestingly
> 
> (XEN) [VT-D]dmar.c:807: found ACPI_DMAR_RMRR:
> (XEN) [VT-D]dmar.c:383:  endpoint: 0000:00:1d.0
> (XEN) [VT-D]dmar.c:383:  endpoint: 0000:00:1a.0
> (XEN) [VT-D]dmar.c:676:   RMRR region: base_addr dacd5000 end_address dacebfff
> (XEN) [VT-D]dmar.c:807: found ACPI_DMAR_RMRR:
> (XEN) [VT-D]dmar.c:383:  endpoint: 0000:00:02.0
> (XEN) [VT-D]dmar.c:676:   RMRR region: base_addr db800000 end_address df9fffff
> ...
> (XEN) [VT-D]iommu.c:859: iommu_fault_status: Fault Overflow
> (XEN) [VT-D]iommu.c:861: iommu_fault_status: Primary Pending Fault
> (XEN) [VT-D]iommu.c:839: DMAR:[DMA Read] Request device [0000:00:1a.0] fault addr dae22000, iommu reg = ffff82c000203000
> 
> i.e. the fault address is pretty close the RMRRs, which suggests an issue currently
> being the subject of an in progress patch series by Elena (firmware failing to specify
> all exclusion regions via RMRRs).

I've also seen this faults before Dom0 is started, but at least in my
case they seem to be benign. I think this is what

http://lists.xenproject.org/archives/html/xen-devel/2015-05/msg00117.html

tries to fix?

> The faults during guest startup may - as Yang also said - indicate a deeper problem,
> due to the addresses being clearly out of range. Since you don't seem to be passing
> through 0000:00:02.0 (the graphics card), it ought to be Dom0 that mis-programs
> something, but oddly enough only when a guest is being started. The fact that the
> majority of the fault instances show the same offending address seems to support
> this (or something getting corrupted in the process of creating the guest).

Michael can probably elaborate on this, but if I'm not mistaken he can
use X on the Dom0 without problems, but when he launches a guest all
those IOMMU faults start showing up. Then if the guest is created
without X running everything works as expected (Michael please correct
me if I'm wrong).

Roger.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-05-07  7:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 16:29 FreeBSD Dom0 IOMMU issues Michael Dexter
2015-05-06 16:50 ` Andrew Cooper
2015-05-06 17:10   ` Michael Dexter
2015-05-07  7:14     ` Roger Pau Monné
2015-05-07  1:37 ` Zhang, Yang Z
2015-05-07  6:36 ` Jan Beulich
2015-05-07  7:27   ` Roger Pau Monné [this message]
2015-05-07  8:05     ` Michael Dexter
2015-05-07 11:43       ` Jan Beulich
2015-05-07 19:39         ` Michael Dexter
2015-05-08  8:06           ` Jan Beulich
2015-05-08  8:13             ` Roger Pau Monné
2015-05-07 11:40     ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554B13FC.8060907@FreeBSD.org \
    --to=royger@freebsd.org \
    --cc=editor@callfortesting.org \
    --cc=jbeulich@suse.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=yang.z.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.