All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ting-Wei Lan <lantw44@gmail.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	yang.z.zhang@intel.com, kevin.tian@intel.com
Cc: Juergen Gross <jgross@suse.com>, xen-devel@lists.xen.org
Subject: Re: Work-arounds in Xen code for Intel GFX?Re: Is: graphics corruption with 'xen: Support Xen pv-domains using PAT." Was:Re: [BUG] Characters on the screen are broken on Linux >= 3.19 with VT-d enabled
Date: Thu, 16 Jul 2015 23:35:34 +0800	[thread overview]
Message-ID: <1437060934.9049.10.camel@gmail.com> (raw)
In-Reply-To: <20150629142037.GD23317@l.oracle.com>

> > > > But Linux provides 'intel_iommu=igfx_off' to workaround the 
> > > > problem.
> > > > Does Xen provide similar things?
> > > 
> > > Not that I know of. The question is whether you really need VT-d, 
> > > and 
> > > if
> > > yes, why. You could still switch the iommu off for dom0 by 
> > > setting
> > > iommu=dom0-passthrough in the Xen command line (your hardware 
> > > might 
> > > not
> > > support it, though).
> > 
> > iommu=dom0-passthrough doesn't work on my hardware.
> > 
> > I found a workaround for my hardware:
> > 
> > diff --git a/xen/drivers/passthrough/vtd/quirks.c
> > b/xen/drivers/passthrough/vtd/quirks.c
> > index 69d29ab..b937ad0 100644
> > --- a/xen/drivers/passthrough/vtd/quirks.c
> > +++ b/xen/drivers/passthrough/vtd/quirks.c
> > @@ -74,6 +74,7 @@ int is_igd_vt_enabled_quirk(void)
> >  
> >      if ( !IS_ILK(ioh_id) )
> >          return 1;
> > +    return 0;
> >  
> >      /* integrated graphics on Intel platforms is located at 0:2.0 
> > */
> >      ggc = pci_conf_read16(0, 0, IGD_DEV, 0, GGC);
> 
> Lets CC the maintaners of said code.
> > 
> > 
> > This workaround is silimar to intel_iommu=igfx_off in Linux. I 
> > found
> > silimar code in function quirk_calpella_no_shadow_gtt in
> > drivers/iommu/intel-iommu.c.

As I don't know how to properly fix the problem, I made a patch to add
iommu=igfx_off option to workaround the issue in Xen.

https://gist.github.com/lantw44/9f8a94d2eeb846889a5a

Is this patch acceptable, or we should wait for a fix instead?


> > 
> > 
> > I reported the graphics corruption problems on Linux >= 3.7 here:
> > https://bugs.freedesktop.org/show_bug.cgi?id=91127

It was partially fixed by this commit (available in Linux 4.2-rc2):
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/
?id=8b572a4

But it seems it cannot be ported to Xen.


> > 
> > And here is the bug link of Xen and Linux >= 3.19 (the bug we are
> > discussing here):
> > https://bugs.freedesktop.org/show_bug.cgi?id=90037
> > 
> > I hope we can get a real fix.
> > 
> > 
> > > 
> > > 
> > > Juergen

  reply	other threads:[~2015-07-16 15:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-12 16:43 [BUG] Characters on the screen are broken on Linux >= 3.19 with VT-d enabled Ting-Wei Lan
2015-06-15 18:55 ` Is: graphics corruption with 'xen: Support Xen pv-domains using PAT." Was:Re: " Konrad Rzeszutek Wilk
2015-06-15 19:03   ` Ting-Wei Lan
2015-06-16  4:30     ` Juergen Gross
2015-06-16  8:55       ` Ting-Wei Lan
2015-06-16  9:06         ` Juergen Gross
2015-06-16  9:32           ` 藍挺瑋
2015-06-16  9:58             ` Juergen Gross
2015-06-27 21:15               ` Ting-Wei Lan
2015-06-29 14:20                 ` Work-arounds in Xen code for Intel GFX?Re: " Konrad Rzeszutek Wilk
2015-07-16 15:35                   ` Ting-Wei Lan [this message]
2015-07-16 18:24                     ` Konrad Rzeszutek Wilk

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=1437060934.9049.10.camel@gmail.com \
    --to=lantw44@gmail.com \
    --cc=jgross@suse.com \
    --cc=kevin.tian@intel.com \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xen.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.