<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [CI][BAT] [byt full-ppgtt] igt@gem_exec* - fail - Failed assertion: !"GPU hung""
href="https://bugs.freedesktop.org/show_bug.cgi?id=107861#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [CI][BAT] [byt full-ppgtt] igt@gem_exec* - fail - Failed assertion: !"GPU hung""
href="https://bugs.freedesktop.org/show_bug.cgi?id=107861">bug 107861</a>
from <span class="vcard"><a class="email" href="mailto:martin.peres@free.fr" title="Martin Peres <martin.peres@free.fr>"> <span class="fn">Martin Peres</span></a>
</span></b>
<pre>(In reply to Chris Wilson from <a href="show_bug.cgi?id=107861#c3">comment #3</a>)
<span class="quote">> The hilarity
>
> diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c
> b/drivers/gpu/drm/i915/intel_ringbuffer.c
> index 472939f5c18f..0f4e6b29c800 100644
> --- a/drivers/gpu/drm/i915/intel_ringbuffer.c
> +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
> @@ -1677,9 +1677,12 @@ static int switch_context(struct i915_request *rq)
> GEM_BUG_ON(HAS_EXECLISTS(rq->i915));
>
> if (ppgtt) {
> + int loops = (engine->id == BCS &&
> IS_VALLEYVIEW(engine->i915)) ? 32 : 1;
> + do {
> ret = load_pd_dir(rq, ppgtt);
> if (ret)
> goto err;
> + } while (--loops);
>
> if (intel_engine_flag(engine) & ppgtt->pd_dirty_rings) {
> unwind_mm = intel_engine_flag(engine);
> @@ -1707,6 +1710,9 @@ static int switch_context(struct i915_request *rq)
>
> is the most effective w/a so far. Pray I don't raise loops further.</span >
Oh my :D</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>