<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [BAT] IGT gem_exec_parallel hangs half of the time on BDW+ testhosts"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100232">bug 100232</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [BAT] IGT gem_exec_parallel hangs half of the time on BDW+ testhosts"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100232#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [BAT] IGT gem_exec_parallel hangs half of the time on BDW+ testhosts"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100232">bug 100232</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>commit 3fc03069bc6e6c316f19bb526e3c8ce784677477
Author: Changbin Du <<a href="mailto:changbin.du@intel.com">changbin.du@intel.com</a>>
Date:   Mon Mar 13 10:47:11 2017 +0800

    drm/i915: make context status notifier head be per engine

    GVTg has introduced the context status notifier to schedule the GVTg
    workload. At that time, the notifier is bound to GVTg context only,
    so GVTg is not aware of host workloads.

    Now we are going to improve GVTg's guest workload scheduler policy,
    and add Guc emulation support for new Gen graphics. Both these two
    features require acknowledgment for all contexts running on hardware.
    (But will not alter host workload.) So here try to make some change.

    The change is simple:
      1. Move the context status notifier head from i915_gem_context to
         intel_engine_cs. Which means there is a notifier head per engine
         instead of per context. Execlist driver still call notifier for
         each context sched-in/out events of current engine.
      2. At GVTg side, it binds a notifier_block for each physical engine
         at GVTg initialization period. Then GVTg can hear all context
         status events.

    In this patch, GVTg do nothing for host context event, but later
    will add a function there. But in any case, the notifier callback is
    a noop if this is no active vGPU.

    Since intel_gvt_init() is called at early initialization stage and
    require the status notifier head has been initiated, I initiate it in
    intel_engine_setup().

    v2: remove a redundant newline. (chris)

    Fixes: 3c7ba6359d70 ("drm/i915: Introduce execlist context status change
notification")
    Bugzilla: <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [BAT] IGT gem_exec_parallel hangs half of the time on BDW+ testhosts"
   href="show_bug.cgi?id=100232">https://bugs.freedesktop.org/show_bug.cgi?id=100232</a>
    Signed-off-by: Changbin Du <<a href="mailto:changbin.du@intel.com">changbin.du@intel.com</a>>
    Cc: Joonas Lahtinen <<a href="mailto:joonas.lahtinen@linux.intel.com">joonas.lahtinen@linux.intel.com</a>>
    Cc: Tvrtko Ursulin <<a href="mailto:tvrtko.ursulin@linux.intel.com">tvrtko.ursulin@linux.intel.com</a>>
    Cc: Zhi Wang <<a href="mailto:zhi.a.wang@intel.com">zhi.a.wang@intel.com</a>>
    Reviewed-by: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
    Link:
<a href="http://patchwork.freedesktop.org/patch/msgid/20170313024711.28591-1-changbin.du@intel.com">http://patchwork.freedesktop.org/patch/msgid/20170313024711.28591-1-changbin.du@intel.com</a>
    Acked-by: Zhenyu Wang <<a href="mailto:zhenyuw@linux.intel.com">zhenyuw@linux.intel.com</a>>
    Signed-off-by: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>