<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<pre style="background:white"><span style="font-size:12.0pt;color:black">Note that this is for all the patches in series, replied only on [1/15].<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">See also <a href="https://bugs.freedesktop.org/show_bug.cgi?id=94001#c45">https://bugs.freedesktop.org/show_bug.cgi?id=94001#c45</a> <o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></pre>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Chris Wilson [mailto:chris@chris-wilson.co.uk]
<br>
<b>Sent:</b> Thursday, March 16, 2017 3:20 PM<br>
<b>To:</b> intel-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Ben Widawsky <ben@bwidawsk.net><br>
<b>Subject:</b> [01/15] drm/i915: Copy user requested buffers into the error state<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Introduce a new execobject.flag (EXEC_OBJECT_CAPTURE) that userspace may<br>
use to indicate that it wants the contents of this buffer preserved in<br>
the error state (/sys/class/drm/cardN/error) following a GPU hang<br>
involving this batch.<br>
<br>
Use this at your discretion, the contents of the error state. although<br>
compressed, are allocated with GFP_ATOMIC (i.e. limited) and kept for all<br>
eternity (until the error state is destroyed).<br>
<br>
Based on an earlier patch by Ben Widawsky <<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>><br>
Signed-off-by: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>><br>
Cc: Ben Widawsky <<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>><br>
Cc: Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>><br>
Acked-by: Ben Widawsky <<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>><br>
Reviewed-by: Joonas Lahtinen <<a href="mailto:joonas.lahtinen@linux.intel.com">joonas.lahtinen@linux.intel.com</a>><br>
<br>
<o:p></o:p></p>
<pre style="background:white"><span lang="FI" style="font-size:12.0pt;color:black">Tested-by: Jari Tahvanainen <jari.tahvanainen@intel.com><o:p></o:p></span></pre>
<pre style="background:white"><span lang="FI" style="font-size:12.0pt;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">for <a href="https://patchwork.freedesktop.org/series/21377"><span style="color:#663366">https://patchwork.freedesktop.org/series/21377</span></a> on my dev-SKL (i5-6600k) by taking all the gem_exec_reloc cases to testlist (151 tests).<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">Executing those as a full set through piglit was not successful due to out-of-memory conditions at the end of the testlist with some (varying) gtt-xx subcases causing "Command terminated by signal 9". cpu-xx did not signal any problems.<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">drm-tip: 2017y-03m-17d-08h-03m-19s without patch series produced:<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">[151/151] skip: 2, pass: 120, fail: 29<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">with patch series applied one gets:<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">[121/151] pass: 121 |<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">running: igt/gem_exec_reloc/gtt-28 - "Command terminated by signal 9"<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">Taking rest as new testlist <o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">[30/30] skip: 2, pass: 30, dmesg-warn: 1<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">having <o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">dmesg-warn: igt/gem_exec_reloc/readonly-32<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">skip: igt/gem_exec_reloc/active-bsd1<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">skip: igt/gem_exec_reloc/active-bsd2<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">When running tests gtt-xx tests individually then result for all is pass.<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">$ sudo ./gem_exec_reloc --run-subtest cpu-31<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">IGT-Version: 1.17-g3e3c1cd (x86_64) (Linux: 4.11.0-rc2-ezbench_cb106cd+ x86_64)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">Subtest cpu-31: SUCCESS (3,760s)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">$ sudo ./gem_exec_reloc --run-subtest gtt-31<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">IGT-Version: 1.17-g3e3c1cd (x86_64) (Linux: 4.11.0-rc2-ezbench_cb106cd+ x86_64)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">Subtest gtt-31: SUCCESS (25,313s)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">$ sudo ./gem_exec_reloc --run-subtest gtt-30<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">IGT-Version: 1.17-g3e3c1cd (x86_64) (Linux: 4.11.0-rc2-ezbench_cb106cd+ x86_64)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">Subtest gtt-30: SUCCESS (11,196s)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">$ sudo ./gem_exec_reloc --run-subtest gtt-29<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">IGT-Version: 1.17-g3e3c1cd (x86_64) (Linux: 4.11.0-rc2-ezbench_cb106cd+ x86_64)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">Subtest gtt-29: SUCCESS (5,198s)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">$ sudo ./gem_exec_reloc --run-subtest gtt-28<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">IGT-Version: 1.17-g3e3c1cd (x86_64) (Linux: 4.11.0-rc2-ezbench_cb106cd+ x86_64)<o:p></o:p></span></pre>
<pre style="background:white"><span style="font-size:12.0pt;color:black">Subtest gtt-28: SUCCESS (2,543s)<o:p></o:p></span></pre>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
</div>
</body>
</html>