Bug 98997

Summary: Invalid ioctl during Xorg startup
Product: xorg Reporter: Tad <reptm>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Tad 2016-12-05 12:20:46 UTC
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
Comment 1 Martin Peres 2019-12-04 09:22:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/309.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.