<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 NOTOURBUG - [BDW]the monitor cannot display X window after running command "xinit""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79004">bug 79004</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;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

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

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>mika.kuoppala@intel.com
           </td>
           <td>intel-gfx-bugs@lists.freedesktop.org
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - [BDW]the monitor cannot display X window after running command "xinit""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79004#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - [BDW]the monitor cannot display X window after running command "xinit""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79004">bug 79004</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>It's a nasty bug.

diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c
index 2bd78e2ac8ec..a7bdc4b21b49 100644
--- a/drivers/tty/vt/vt_ioctl.c
+++ b/drivers/tty/vt/vt_ioctl.c
@@ -684,7 +684,8 @@ int vt_ioctl(struct tty_struct *tty,
                        console_unlock();
                        if (ret)
                                break;
-                       set_console(arg);
+                       if (set_console(arg))
+                               ret = -EIO;
                }
                break;


Turns the indefinite hang into a detectable error (and prevents X from
starting) when the bug occurs.

This needs to be sent upstream.

Greg Kroah-Hartman <<a href="mailto:gregkh@linuxfoundation.org">gregkh@linuxfoundation.org</a>>
Jiri Slaby <<a href="mailto:jslaby@suse.cz">jslaby@suse.cz</a>>
<a href="mailto:linux-kernel@vger.kernel.org">linux-kernel@vger.kernel.org</a>

and bugzilla.kernel.org</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>