Skip to contentSkip to conversation

New: x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

Bug 118701 [email protected] 1 participant 10 messages May 22, 2016 – Feb 14, 2017

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=118701

Bug ID: 118701
Summary: x86_64 GMA500 reports /dev/dri/card0: failed to set
DRM interface version 1.4: Inappropriate ioctl for device
Product: Drivers
Version: 2.5
Kernel Version: 4.6
Hardware: Intel
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Created attachment 217091
--> https://bugzilla.kernel.org/attachment.cgi?id=217091&action=edit
Xorg.0.log, lspci and dmesg outputs.

MSI U180 atom netbook using gma500 driver works fine if the kernel is build as 32bit however if I build the kernel as 64bit the Xserver fails to start and reports:

[    27.260] (EE) /dev/dri/card0: failed to set DRM interface version 1.4:

Inappropriate ioctl for device

Please find attached Xorg.0.log, lspci and dmesg outputs.

Any suggestions as to what is wrong ?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

https://bugzilla.kernel.org/show_bug.cgi?id=118701

Patrik Jakobsson <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
                   |                            |m

--- Comment #1 from Patrik Jakobsson <[email protected]> --- Hi Stuart

Did you try with a 64-bit userspace? I haven't tried gma500 on a 64-bit system so not sure what the status is. GPU can only address 32-bit so there could be interesting problems.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

--- Comment #2 from Stuart Foster <[email protected]> --- (In reply to Patrik Jakobsson from comment #1)

Quoted 5 lines

Hi Stuart

Did you try with a 64-bit userspace? I haven't tried gma500 on a 64-bit system so not sure what the status is. GPU can only address 32-bit so there could be interesting problems.

Hi Patrik,

No I have not tried a 64-bit userspace. I only planned on using a 32-bit user space. I use LFS/BLFS for my systems so I could try and build a cut down 64-bit user space if you think it will help. These are not the quickest machines so it may take me some time.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

--- Comment #3 from Patrik Jakobsson <[email protected]> --- Created attachment 217321
--> https://bugzilla.kernel.org/attachment.cgi?id=217321&action=edit
Add compat ioctl

Turns out we didn't have compat_ioctl hooked up. Does the patch I attached fix your problem?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

--- Comment #4 from Stuart Foster <[email protected]> --- (In reply to Patrik Jakobsson from comment #3)

Quoted 5 lines

Created attachment 217321 [details]
Add compat ioctl

Turns out we didn't have compat_ioctl hooked up. Does the patch I attached fix your problem?

Hi Patrik,

Just tested your patch and I can report that it solved my problem the xserver starts correctly.

Thank you.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

--- Comment #5 from Patrik Jakobsson <[email protected]> --- Thanks for testing, queued for next and stable

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

Stuart Foster <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX
Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

Stuart Foster <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|CODE_FIX                    |---

--- Comment #6 from Stuart Foster <[email protected]> --- Hi Patrik,

I have checked both linux-4.7 and linux-4.8-rc1 and this fix has not made it through, when do you think it will be included ?

Thanks.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

--- Comment #7 from Patrik Jakobsson ([email protected]) --- Hi Stuart,

The fix is available now in most stable kernels. Can you confirm and close the bug if everything is fine?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 118701] x86_64 GMA500 reports /dev/dri/card0: failed to set DRM interface version 1.4: Inappropriate ioctl for device

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=118701

Stuart Foster ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #8 from Stuart Foster ([email protected]) --- Hi Patrik,

Yes everything is ok now.

Thanks.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel