From: Alexandru Chirvasitu <achirvasub@gmail.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@linux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
intel-gfx@lists.freedesktop.org,
kernel list <linux-kernel@vger.kernel.org>
Subject: Re: PROBLEM: i915 causes complete desktop freezes in 4.15-rc5
Date: Sat, 6 Jan 2018 13:44:29 -0500 [thread overview]
Message-ID: <20180106184429.GA1469@chirva-void> (raw)
In-Reply-To: <151526009137.23681.11777101661125249780@mail.alporthouse.com>
Thanks!
It's also a mystery to me why I never had any crashes on any of the
other systems running on this machine running the same (unpatched)
kernels.
I'm assuming the window manager might have something to do with it:
all of the others are on i3 and the buggy one's openbox, so perhaps
tiling vs. stacking makes a difference?
The one pattern I noticed to the crashes was that they occurred upon
opening a new window.
On Sat, Jan 06, 2018 at 05:34:51PM +0000, Chris Wilson wrote:
> Quoting Alexandru Chirvasitu (2018-01-06 16:38:35)
> > On Sat, Jan 06, 2018 at 08:24:43AM -0500, Alexandru Chirvasitu wrote:
> > > Thank you!
> > >
> > > I'll apply that more elaborate patch you sent in the longer message to
> > > my clone of the repo and see if it still freezes.
> > >
> >
> > I'm on it now with no freezes yet, despite trying my best :).
> >
> > I have a question though:
> >
> > > On Sat, Jan 06, 2018 at 10:43:20AM +0000, Chris Wilson wrote:
> > > > Quoting Alexandru Chirvasitu (2018-01-05 22:05:18)
> > > > > Here we go.
> > > > >
> > > > > I have
> > > > >
> > > > > CONFIG_PAGE_POISONING not set
> > > > > CONFIG_SLUB_STATS=y
> > > > > CONFIG_SLUB_DEBUG not set
> > > > > CONFIG_KASAN=y
> > > > >
> > > > > .config attached along as well for verification, in case I missed
> > > > > anything.
> > > > >
> > > > > Again crashed by an attempt to open a terminal window.
> > > >
> > > > Gotcha,
> > > >
> > > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> > > > index b21322b50419..96cf46a10b4e 100644
> > > > --- a/drivers/gpu/drm/i915/i915_gem.c
> > > > +++ b/drivers/gpu/drm/i915/i915_gem.c
> > > > @@ -472,7 +472,7 @@ static void __fence_set_priority(struct dma_fence *fence, int prio)
> > > > struct drm_i915_gem_request *rq;
> > > > struct intel_engine_cs *engine;
> > > >
> > > > - if (!dma_fence_is_i915(fence))
> > > > + if (dma_fence_is_signaled(fence) || !dma_fence_is_i915(fence))
> > > > return;
> > > >
> > > > rq = to_request(fence);
> >
> > I went back to Linus' tree and compared the respective i915_gem.c
> > files in the 4.14 and 4.15-rc6 commits. The offending piece of code
> > seems to be in both, so I am wondering why I was not getting freezes before 4.15-rc.
>
> Yeah, I debated adding a fixes for commit 6b5e90f58c56
> ("drm/i915/scheduler: Boost priorities for flips") that introduced this
> code, but decided it's just an optimisation at this point and that we
> should only regard commit 1f181225f8ec ("drm/i915/execlists: Keep
> request->priority for its lifetime") for introducing the breakage. Prior
> to commit 1f18122 the guard at the start of execlists_schedule(prio <=
> rq->priotree.priority) is sufficient to avoid manipulating retired
> fences, and so we were avoiding this bug.
> -Chris
next prev parent reply other threads:[~2018-01-06 18:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-30 17:31 PROBLEM: i915 causes complete desktop freezes in 4.15-rc5 Alexandru Chirvasitu
2017-12-31 15:54 ` Chris Wilson
2017-12-31 16:52 ` Alexandru Chirvasitu
[not found] ` <151473925492.2051.3326119747183075981@mail.alporthouse.com>
2017-12-31 23:17 ` Alexandru Chirvasitu
2018-01-01 21:13 ` Alexandru Chirvasitu
[not found] ` <151491202515.21495.4275099714898982160@mail.alporthouse.com>
2018-01-02 21:39 ` Alexandru Chirvasitu
2018-01-03 0:14 ` Alexandru Chirvasitu
[not found] ` <151498375040.21495.10909014868670557680@mail.alporthouse.com>
2018-01-03 13:46 ` Alexandru Chirvasitu
[not found] ` <151498727661.21495.7545852848027242671@mail.alporthouse.com>
2018-01-03 14:03 ` Alexandru Chirvasitu
[not found] ` <151498852791.21495.13313443882665791372@mail.alporthouse.com>
2018-01-03 14:48 ` Alexandru Chirvasitu
[not found] ` <151499122583.21495.1963140337943422469@mail.alporthouse.com>
2018-01-03 16:31 ` Alexandru Chirvasitu
2018-01-03 21:53 ` Alexandru Chirvasitu
[not found] ` <151517474548.6838.1821139419472614998@mail.alporthouse.com>
2018-01-05 19:37 ` Alexandru Chirvasitu
[not found] ` <151518186129.6838.5497512563650996948@mail.alporthouse.com>
2018-01-05 19:58 ` Alexandru Chirvasitu
[not found] ` <151518256891.6838.7870621097092357743@mail.alporthouse.com>
2018-01-05 20:08 ` Alexandru Chirvasitu
2018-01-05 22:05 ` Alexandru Chirvasitu
2018-01-05 22:24 ` Alexandru Chirvasitu
[not found] ` <151523540026.6838.8552050096058843898@mail.alporthouse.com>
2018-01-06 13:24 ` Alexandru Chirvasitu
2018-01-06 16:38 ` Alexandru Chirvasitu
[not found] ` <151526009137.23681.11777101661125249780@mail.alporthouse.com>
2018-01-06 18:44 ` Alexandru Chirvasitu [this message]
[not found] ` <151527210085.23681.13693584447068529774@mail.alporthouse.com>
2018-01-06 21:01 ` Alexandru Chirvasitu
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=20180106184429.GA1469@chirva-void \
--to=achirvasub@gmail.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=joonas.lahtinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rodrigo.vivi@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;
as well as URLs for NNTP newsgroup(s).