All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chen, Tiejun" <tiejun.chen@intel.com>
To: "Michael Dexter" <editor@callfortesting.org>,
	"Roger Pau Monné" <royger@FreeBSD.org>,
	jbeulich@suse.com, yang.z.zhang@intel.com, kevin.tian@intel.com,
	xen-devel@lists.xenproject.org
Subject: Re: FreeBSD Dom0 IOMMU issues (resent)
Date: Thu, 07 May 2015 10:47:38 +0800	[thread overview]
Message-ID: <554AD24A.2010708@intel.com> (raw)
In-Reply-To: <554A457E.30102@callfortesting.org>

On 2015/5/7 0:46, Michael Dexter wrote:
>
> Hello all,
>
> (Resend: I cropped out too much and have added 'pciconf -lv' output)
>
> I have been working with Roger Pau Monne 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.

I just feel this resembles one known problem but I'm not 100% sure, so 
just please take a try,

#1. Disable interrupt message generation

diff --git a/xen/drivers/passthrough/vtd/iommu.c 
b/xen/drivers/passthrough/vtd/iommu.c
index 1248a17..f0915d7 100644
--- a/xen/drivers/passthrough/vtd/iommu.c
+++ b/xen/drivers/passthrough/vtd/iommu.c
@@ -2018,7 +2018,7 @@ static int init_vtd_hw(void)
          clear_fault_bits(iommu);

          spin_lock_irqsave(&iommu->register_lock, flags);
-        dmar_writel(iommu->reg, DMAR_FECTL_REG, 0);
+        dmar_writel(iommu->reg, DMAR_FECTL_REG, DMA_FECTL_IM);
          spin_unlock_irqrestore(&iommu->register_lock, flags);
      }

>
> In the end I get:
>
> (XEN) ****************************************
> (XEN) Panic on CPU 2:
> (XEN) queue invalidate wait descriptor was not executed
> (XEN) ****************************************
>
> Please let me know if you want me to try any configuration changes.
>

#2.

Please add 'cpuidle=0 msi=1'.

Thanks
Tiejun

  reply	other threads:[~2015-05-07  2:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 16:46 FreeBSD Dom0 IOMMU issues (resent) Michael Dexter
2015-05-07  2:47 ` Chen, Tiejun [this message]
2015-05-07  7:48   ` Michael Dexter
2015-05-07 18:58   ` Michael Dexter
2015-05-08  2:59     ` Chen, Tiejun
2015-05-08  5:21       ` Michael Dexter
2015-05-11  6:01         ` Chen, Tiejun
2015-05-08  7:34       ` Michael Dexter
2015-05-08  7:54         ` Roger Pau Monné
2015-05-08  7:53       ` 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=554AD24A.2010708@intel.com \
    --to=tiejun.chen@intel.com \
    --cc=editor@callfortesting.org \
    --cc=jbeulich@suse.com \
    --cc=kevin.tian@intel.com \
    --cc=royger@FreeBSD.org \
    --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.