<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=us-ascii">
<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;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-IN" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<div style="mso-element:para-border-div;border:solid #CCCCCC 1.0pt;padding:12.0pt 12.0pt 12.0pt 12.0pt;background:white">
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">index 3afca3dd9657..2c3ffa1db74e 100644</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">--- a/drivers/gpu/drm/xe/xe_gt.c</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">+++ b/drivers/gpu/drm/xe/xe_gt.c</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -8,6 +8,7 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> #include <linux/minmax.h><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> #include <drm/drm_managed.h><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+#include <drm/xe_drm.h></span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> #include "regs/xe_gt_regs.h"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">#include "xe_bb.h"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -590,6 +591,20 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#A020F0;mso-fareast-language:EN-IN"> static int do_gt_restart(struct xe_gt *gt)</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> return 0;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+static void xe_uevent_gt_reset_failure(struct xe_device *xe, u8 id)</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+{</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ char *reset_event[5];</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[0] = XE_RESET_FAILED_UEVENT "=1";</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[1] = "RESET_ENABLED=1";</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[2] = "RESET_UNIT=gt";</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[3] = kasprintf(GFP_KERNEL, "RESET_ID=%d", id);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[4] = NULL;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ kobject_uevent_env(&xe->drm.primary->kdev->kobj, KOBJ_CHANGE, reset_event);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ kfree(reset_event[3]);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+}</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">static int gt_reset(struct xe_gt *gt)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> struct xe_device *xe = gt_to_xe(gt);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -639,6 +654,9 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#A020F0;mso-fareast-language:EN-IN"> static int gt_reset(struct xe_gt *gt)</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> xe_device_mem_access_put(gt_to_xe(gt));<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> drm_err(&xe->drm, "GT reset failed, err=%d\n", err);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">The codebase here looks like moved on, in current code there is no drm_err logged it seems,
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">Though should not be this under if(err) ?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ /* Notify userspace about gt reset failure */</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ xe_uevent_gt_reset_failure(xe, gt->info.id);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> return err;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">diff --git a/drivers/gpu/drm/xe/xe_guc.h b/drivers/gpu/drm/xe/xe_guc.h</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">index 74a74051f354..845c57b95562 100644</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">--- a/drivers/gpu/drm/xe/xe_guc.h</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">+++ b/drivers/gpu/drm/xe/xe_guc.h</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -56,4 +56,22 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#A020F0;mso-fareast-language:EN-IN"> static inline u16 xe_engine_class_to_guc_class(enum xe_engine_class class)</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+static inline u16 xe_guc_class_to_engine_class(u8 guc_class)</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+{</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ switch (guc_class) {</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ case GUC_RENDER_CLASS:</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ return XE_ENGINE_CLASS_RENDER;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ case GUC_VIDEO_CLASS:</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ return XE_ENGINE_CLASS_VIDEO_DECODE;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ case GUC_VIDEOENHANCE_CLASS:</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ return XE_ENGINE_CLASS_VIDEO_ENHANCE;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ case GUC_BLITTER_CLASS:</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ return XE_ENGINE_CLASS_COPY;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ case GUC_COMPUTE_CLASS:</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ return XE_ENGINE_CLASS_COMPUTE;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">Should you check GUC_GSC_OTHER_CLASS to return default here?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ default:</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ XE_WARN_ON(guc_class);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ return -1;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ }</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+}</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">#endif<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">index e857013070b9..663908573d5c 100644</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">--- a/drivers/gpu/drm/xe/xe_guc_submit.c</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">+++ b/drivers/gpu/drm/xe/xe_guc_submit.c</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -12,6 +12,7 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> #include <linux/dma-fence-array.h><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> #include <drm/drm_managed.h><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+#include <drm/xe_drm.h></span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> #include "regs/xe_lrc_layout.h"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">#include "xe_device.h"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -1589,9 +1590,25 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#A020F0;mso-fareast-language:EN-IN"> int xe_guc_engine_memory_cat_error_handler(struct xe_guc *guc, u32 *msg,</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> return 0;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+static void xe_uevent_engine_reset_failure(struct xe_device *xe, const char *name)</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+{</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ char *reset_event[5];</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[0] = XE_RESET_FAILED_UEVENT "=1";</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[1] = "RESET_ENABLED=1";</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[2] = "RESET_UNIT=engine";</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[3] = kasprintf(GFP_KERNEL, "RESET_ID=%s", name);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ reset_event[4] = NULL;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ kobject_uevent_env(&xe->drm.primary->kdev->kobj, KOBJ_CHANGE, reset_event);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ kfree(reset_event[3]);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+}</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">int xe_guc_engine_reset_failure_handler(struct xe_guc *guc, u32 *msg, u32 len)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> struct xe_device *xe = guc_to_xe(guc);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ struct xe_hw_engine *hwe;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ u16 engine_class;</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> u8 guc_class, instance;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> u32 reason;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">On upstream last time I got review comment from Andi saying this should be in Christmas tree
order, something you might want to consider.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -1608,6 +1625,12 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#A020F0;mso-fareast-language:EN-IN"> int xe_guc_engine_reset_failure_handler(struct xe_guc *guc, u32 *msg, u32 len)</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> drm_err(&xe->drm, "GuC engine reset request failed on %d:%d because 0x%08X",<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> guc_class, instance, reason);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ engine_class = xe_guc_class_to_engine_class(guc_class);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ hwe = xe_gt_hw_engine(guc_to_gt(guc), engine_class, instance, false);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ /* Notify userspace about engine reset failure */</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ xe_uevent_engine_reset_failure(xe, hwe->name);</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> xe_gt_reset_async(guc_to_gt(guc));<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> return 0;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">index b0b80aae3ee8..79ef5947c172 100644</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">--- a/include/uapi/drm/xe_drm.h</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:seagreen;mso-fareast-language:EN-IN">+++ b/include/uapi/drm/xe_drm.h</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<b><span style="font-size:10.0pt;font-family:Consolas;color:brown;mso-fareast-language:EN-IN">@@ -36,6 +36,14 @@</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#A020F0;mso-fareast-language:EN-IN"> extern "C" {</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> * subject to backwards-compatibility constraints.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> */<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+/*</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ * Uevents generated by xe on it's device node.</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ *</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ * XE_RESET_FAILED_UEVENT - Event is generated when attempt to reset engine</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ * or gt fails. The value supplied with the event is always 1.</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+ */</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+#define XE_RESET_FAILED_UEVENT "RESET_FAILED"</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:darkcyan;mso-fareast-language:EN-IN">+</span><span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN">/**<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> * struct xe_user_extension - Base class for defining a chain of extensions<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:EN-IN"> *<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">xe_uevent_engine_reset_failure/xe_uevent_gt_reset_failure can they be clubbed as one, up
to you but most part looks same so though of this. You can ignore.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">Please include me in cc next time, somehow I am not getting email for xe patches.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:7.5pt;line-height:10.75pt;background:white;word-break:break-all;border:none;padding:0in">
<span style="font-size:10.0pt;font-family:Consolas;color:#C55A11;mso-style-textfill-fill-color:#C55A11;mso-style-textfill-fill-alpha:100.0%;mso-fareast-language:EN-IN">Tejas<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>