<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Invalid ioctl during Xorg startup"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98997">98997</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Invalid ioctl during Xorg startup
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/nouveau
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>nouveau@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>reptm@mail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>OS:    Ubuntu 16.10
Kernel: 4.8.0-28-generic
xorg-server: 1.18.4
cpu: Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz


After connecting UDL device and restarting Xorg, Xorg tries to send invalid
ioctl to that device.

Looks like Xorg enumerates existing drm devices and performs driver's
platformprobe function on them regardless of their type.

syslog:
Dec  5 11:31:55 kernel: [ 1026.543315] [drm:drm_stub_open]
Dec  5 11:31:55 kernel: [ 1026.543317] [drm:drm_open_helper] pid = 4642, minor
= 0
Dec  5 11:31:55 kernel: [ 1026.543341] [drm:drm_setup]
Dec  5 11:31:55 kernel: [ 1026.543349] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, DRM_IOCTL_VERSION
Dec  5 11:31:55 kernel: [ 1026.543351] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, DRM_IOCTL_VERSION
Dec  5 11:31:55 kernel: [ 1026.543355] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, NOUVEAU_GETPARAM
Dec  5 11:31:55 kernel: [ 1026.543357] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, NOUVEAU_GETPARAM
Dec  5 11:31:55 kernel: [ 1026.543358] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, NOUVEAU_GETPARAM
Dec  5 11:31:55 kernel: [ 1026.543359] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, NOUVEAU_GETPARAM
Dec  5 11:31:55 kernel: [ 1026.543362] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, DRM_IOCTL_VERSION
Dec  5 11:31:55 kernel: [ 1026.543364] [drm:drm_ioctl] pid=4642, dev=0xe200,
auth=1, DRM_IOCTL_VERSION
Dec  5 11:31:55 kernel: [ 1026.543393] [drm:drm_release] open_count = 1
Dec  5 11:31:55 kernel: [ 1026.543394] [drm:drm_release] pid = 4642, device =
0xe200, open_count = 1
Dec  5 11:31:55 kernel: [ 1026.543401] [drm:drm_lastclose]
Dec  5 11:31:55 kernel: [ 1026.543401] [drm:drm_lastclose] driver lastclose
completed
Dec  5 11:31:55 kernel: [ 1026.543414] [drm:drm_stub_open]
Dec  5 11:31:55 kernel: [ 1026.543415] [drm:drm_open_helper] pid = 4642, minor
= 2
Dec  5 11:31:55 kernel: [ 1026.543416] [drm:drm_setup]
Dec  5 11:31:55 kernel: [ 1026.543418] [drm:drm_ioctl] pid=4642, dev=0xe202,
auth=1, DRM_IOCTL_VERSION
Dec  5 11:31:55 kernel: [ 1026.543419] [drm:drm_ioctl] pid=4642, dev=0xe202,
auth=1, DRM_IOCTL_VERSION
Dec  5 11:31:55 kernel: [ 1026.543421] [drm:drm_ioctl] invalid ioctl: pid=4642,
dev=0xe202, auth=1, cmd=0xc0106440, nr=0x40
Dec  5 11:31:55 kernel: [ 1026.543422] [drm:drm_ioctl] ret = -22
Dec  5 11:31:55 kernel: [ 1026.543425] [drm:drm_release] open_count = 1
Dec  5 11:31:55 kernel: [ 1026.543426] [drm:drm_release] pid = 4642, device =
0xe202, open_count = 1
Dec  5 11:31:55 kernel: [ 1026.543427] [drm:drm_lastclose]
Dec  5 11:31:55 kernel: [ 1026.543427] [drm:drm_lastclose] driver lastclose
completed</pre>
        </div>
      </p>


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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>