<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Everything using GPU gets stuck after running+killing parallel Media loads (after running 3D benchmarks)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110848#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Everything using GPU gets stuck after running+killing parallel Media loads (after running 3D benchmarks)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110848">bug 110848</a>
              from <span class="vcard"><a class="email" href="mailto:eero.t.tamminen@intel.com" title="Eero Tamminen <eero.t.tamminen@intel.com>"> <span class="fn">Eero Tamminen</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=144476" name="attach_144476" title="Kernel stacks for all tasks when the problem happens">attachment 144476</a> <a href="attachment.cgi?id=144476&action=edit" title="Kernel stacks for all tasks when the problem happens">[details]</a></span>
Kernel stacks for all tasks when the problem happens

# for i in /proc/[0-9]*; do
    egrep '^(Name|State|Pid)' $i/status; cat $i/stack;
  done | grep -B1 -A4 "disk sleep"

Name:   khugepaged
State:  D (disk sleep)
Pid:    38
[<0>] kthread+0x113/0x130
[<0>] ret_from_fork+0x35/0x40
--
Name:   kworker/u8:0+i915
State:  D (disk sleep)
Pid:    7274
[<0>] __i915_gem_free_work+0x5f/0x90 [i915]
[<0>] process_one_work+0x1e9/0x410
[<0>] worker_thread+0x2d/0x3d0
--
Name:   ffmpeg
State:  D (disk sleep)
Pid:    7293
[<0>] __fput+0xae/0x200
[<0>] task_work_run+0x84/0xa0
[<0>] do_exit+0x308/0xba0

--- lots of similar ffmpeg tasks ---

Name:   ffmpeg
State:  D (disk sleep)
Pid:    8606
[<0>] chrdev_open+0xa3/0x1b0
[<0>] do_dentry_open+0x1c4/0x380
[<0>] path_openat+0x564/0x11f0

--- lots of similar ffmpeg tasks ---

Name:   ps
State:  D (disk sleep)
Pid:    8751
[<0>] proc_pid_cmdline_read+0x1e3/0x330
[<0>] vfs_read+0x91/0x140
[<0>] ksys_read+0x91/0xe0


I guess the ffmpeg processes in exit stage are ones from previous test, and the
ones trying to open device file ffmpeg processes from the next test.

To me it looks like kworker doing __i915_gem_free_work() stuff would be
blocking khugepaged task and everything else.


PS. Freeze when "ps" reads PID command lines seems to happen for running
processes:
$ for i in /proc/[0-9]*; do
    egrep '^(Name|State|Pid)' $i/status; cat $i/cmdline;
  done
...
Name:   ffmpeg
State:  Z (zombie)
Pid:    7937
Name:   ffmpeg
State:  Z (zombie)
Pid:    7977
Name:   ffmpeg
State:  R (running)
Pid:    8008
<freeze></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>