From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: "Zhang, Xiong Y" <xiong.y.zhang@intel.com>,
"Tian, Kevin" <kevin.tian@intel.com>,
"Vetter, Daniel" <daniel.vetter@intel.com>,
"zhenyuw@linux.intel.com" <zhenyuw@linux.intel.com>,
"jani.nikula@linux.intel.com" <jani.nikula@linux.intel.com>,
"alex.williamson@redhat.com" <alex.williamson@redhat.com>,
David Woodhouse <dwmw2@infradead.org>,
"Bloomfield, Jon" <jon.bloomfield@intel.com>
Cc: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"intel-gvt-dev@lists.freedesktop.org"
<intel-gvt-dev@lists.freedesktop.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH V6] drm/i915: Disable stolen memory when i915 runs in guest vm
Date: Mon, 08 May 2017 13:07:10 +0300 [thread overview]
Message-ID: <1494238030.3367.10.camel@linux.intel.com> (raw)
In-Reply-To: <8082FF9BCB2B054996454E47167FF4EC1C4DD744@SHSMSX104.ccr.corp.intel.com>
On la, 2017-05-06 at 02:58 +0000, Zhang, Xiong Y wrote:
> >
> > On ke, 2017-05-03 at 09:22 +0000, Zhang, Xiong Y wrote:
> > >
> > > >
> > > >
> > > > >
> > > > >
> > > > > + David and Jon
> > > > >
> > > > > On ti, 2017-04-25 at 18:34 +0800, Xiong Zhang wrote:
> > > > >
> > > > > The blocking issue I see is that bisecting is still not pointing at
> > > > > relevant commits. Both bisected commits from Bugzilla are not related
> > > > > to changes in stolen memory usage behavior. I'd assume a successful
> > > > > bisect to land at the patches where we start creating kernel internal
> > > > > objects from stolen memory. Otherwise we could be ignoring a bug
> > > > > elsewhere. If it consistently lands on those patches, then there might
> > > > > be something wrong with them, in addition to stolen memory problems.
> > > > [Zhang, Xiong Y] I only try kernel 4.8 and 4.9 above, as the bugzilla
> > descripted,
> > >
> > > >
> > > > guest 4.8 kernel doesn't see gpu hang in guest dmesg, 4.9 kernel has gpu
> > hang
> > >
> > > >
> > > > in guest dmesg. From this point, we could do git bisect.
> > > > But tons of IOMMU DMA R/W exception to stolen memory exist in host
> > dmesg
> > >
> > > >
> > > > when guest kernel is 4.8 and 4.9. This means guest domain iommu table
> > > > doesn't
> > > > have mapping for stolen memory and IGD fail in accessing stolen memory
> > > > from guest kernel 4.8 and 4.9. From this point, this issue isn't a regression
> > and
> > >
> > > >
> > > > shouldn't go git bisect. You could check this host error message from the
> > > > bugzilla
> > > > attachment. And this should be fixed first.
> > > > Anyway, I will try my best to get the ideal commit through git bisect, but
> > I'm
> > >
> > > >
> > > > afraid
> > > > the result is the same as past because we don't have a stable good point to
> > > > start git
> > > > bisect.
> > > [Zhang, Xiong Y] hi, Joonas:
> > > As you said, the gpu hang exist because i915 create ring buffer from stolen
> > memory.
> > >
> > > I did git bisect again, and the following commit is the first bad commit:
> > > commit c58b735fc762e891481e92af7124b85cb0a51fce
> > > > > > Author: Chris Wilson <chris@chris-wilson.co.uk>
> > > Date: Thu Aug 18 17:16:57 2016 +0100
> > >
> > > drm/i915: Allocate rings from stolen
> > >
> > > If we have stolen available, make use of it for ringbuffer allocation.
> > > Previously this was restricted to !llc platforms, as writing to stolen
> > > requires a GGTT mapping - but now that we have partial mappable
> > support,
> > >
> > > the mappable aperture isn't quite so precious so we can use it more
> > > freely and ringbuffers are a good user for the otherwise wasted stolen.
> > >
> > > After reverting this patch from drm-intel-nightly, I didn't see gpu hang during
> > guest boot process.
> > >
> > > So what's our next step ?
> >
> > An appropriate next step would be to evaluate how much work it is to
> > support the RMRR passthrough David mentioned about in his commit.
> [Zhang, Xiong Y] As Kevin explained, KVM community found the disadvantage
> Of RMRR and have decided to not support RMRR passthrough, so it is really hard
> for us to push such solution and isn't related to the workload.
> Except usb and graphic card, all other devices with RMRR couldn't passthrough
> to guest. But the driver of usb and graphic card couldn't access RMRR in such
> environment.
> https://access.redhat.com/sites/default/files/attachments/rmrr-wp1.pdf
Does this patch have the right Cc's from KVM team? I'd like to hear
directly from them that even the usage of RMRRs that follow the
intention of VT-d spec are not going to be supported. That document
predates the patches to add the exclusion for graphics.
> > I'd also go talk with the IGD team, why they refuse to load the driver
> > when stolen memory is correctly reported as zero, and insist on being
> > lied to.
> [Zhang, Xiong Y] thanks a lot for doing so.
I don't have the contacts, so I assume you to pursue that.
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-05-08 10:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-25 10:34 [PATCH V6] drm/i915: Disable stolen memory when i915 runs in guest vm Xiong Zhang
2017-04-25 11:42 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-04-25 12:06 ` [PATCH V6] " Joonas Lahtinen
2017-04-27 5:54 ` Zhang, Xiong Y
2017-05-05 9:14 ` Joonas Lahtinen
[not found] ` <8082FF9BCB2B054996454E47167FF4EC1C4D0CAA@SHSMSX104.ccr.corp.intel.com>
2017-05-03 9:22 ` Zhang, Xiong Y
2017-05-05 9:21 ` Joonas Lahtinen
2017-05-06 2:58 ` Zhang, Xiong Y
2017-05-08 10:07 ` Joonas Lahtinen [this message]
2017-05-08 15:01 ` Alex Williamson
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=1494238030.3367.10.camel@linux.intel.com \
--to=joonas.lahtinen@linux.intel.com \
--cc=alex.williamson@redhat.com \
--cc=daniel.vetter@intel.com \
--cc=dwmw2@infradead.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-gvt-dev@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=jon.bloomfield@intel.com \
--cc=kevin.tian@intel.com \
--cc=stable@vger.kernel.org \
--cc=xiong.y.zhang@intel.com \
--cc=zhenyuw@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox