Project

General

Profile

Bug #5637

New xorg-video-intel driver doesn't work

Added by Alexander Pyhalov almost 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XNV (X Window System)
Target version:
Start date:
2015-02-18
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
gfx-drm

Description

Tried versions:
2.99 - can't detect device
2.18 - detects device, tries to do something, but dies with "ioctl unknown" kernel error
2.9 - doesn't compile with new Xorg...


Files

Xorg.0.log (33.6 KB) Xorg.0.log XServer 1.15 testing Ken Mays, 2015-02-18 10:02 PM
drm.bz2 (110 KB) drm.bz2 New test DRM 2015-04-10 Ken Mays, 2015-04-10 11:30 PM
i915.bz2 (271 KB) i915.bz2 New test i1915 kernel driver Ken Mays, 2015-04-10 11:31 PM

Related issues

Related to OpenIndiana Distribution - Feature #5670: Intel DRM updateResolvedKen Mays2015-02-27

Actions
#1

Updated by Ken Mays almost 6 years ago

  • Assignee set to Ken Mays

Default to VESA for now. Test your hardware on Solaris 11.2 and provide feedback.

#2

Updated by Ken Mays almost 6 years ago

Working model. Intel 2.99.910/XServer 1.15 setup.
Dell Latitude E4310

#3

Updated by Alexander Pyhalov almost 6 years ago

I've tested driver on current Hipster with libdrm 2.4.37 and libdrm 2.4.59.
With libdrm 2.4.37 I get
genunix: WARNING: Unknown get parameter 9
genunix: WARNING: Unknown get parameter 10
genunix: WARNING: Unknown get parameter 11
genunix: WARNING: Unknown get parameter 12
genunix: WARNING: Unknown get parameter 19
genunix: WARNING: Unknown get parameter 17
genunix: WARNING: Unknown get parameter 11
genunix: WARNING: Unknown get parameter 12
genunix: WARNING Bad driver ioctl number, 0x60 (of 0x24)

Wit libdrm 2.4.59 additionally I got:
genunix: WARNING: Unknown get parameter 9
genunix: WARNING: Unknown get parameter 10
genunix: WARNING: Unknown get parameter 11
genunix: WARNING: Unknown get parameter 12
genunix: WARNING Bad driver ioctl number, 0x33 (of 0x24)

0x60 seems to be DRM_I915_GEM_SW_FINISH (0x20) + DRM_COMMAND_BASE, and it seems to be not implementd in illumos drm code.

0x33 is more strange - it's DRM_IOCTL_AGP_INFO and it is present. I wonder if it could really be reference to DRM_I915_GEM_USERPTR - i.e. 0x33 + DRM_COMMAND_BASE...

#4

Updated by Alexander Pyhalov almost 6 years ago

0x60 comes from DRM_IOCTL_MODE_GETRESOURCES:

libdrm-2.4.59/include/drm/drm.h:#define DRM_IOCTL_MODE_GETRESOURCES DRM_IOWR(0xA0, struct drm_mode_card_res)

It is not implemented in illumos, but we have https://github.com/raichoo/illumos-gate/commit/4e516b4b54544dc7ba23c578f5908e0fd593e3d6. Need to look at it further.

0x33 from DRM_IOCTL_I915_GEM_USERPTR:

#define DRM_IOCTL_I915_GEM_USERPTR DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_USERPTR, struct drm_i915_gem_userptr)

#5

Updated by Ken Mays almost 6 years ago

  • Status changed from New to In Progress
#6

Updated by Nikola M. over 5 years ago

I have tested with Solaris 11.2 LiveDVD as requested and it boots very slow on my hardware (C2Duo,2.5G,i945), waits for a long time and it does display desktop at the end, that seems to work, but cursor has problems, it takes a long time to do anything and I waited for a very long time for picture to re-appear from black, not actually starting any app etc.

I am using workaround of freezing consolidation/X/X-incorporation and x11/server/xorg/driver/xorg-video-intel with 'pkg freeze' in a working state from 20141010, before update, and it stays like that, working after updating to hipster-2015 for new bugs testing.

#7

Updated by Ken Mays over 5 years ago

Well, thanks to Oracle Solaris X11 Engineering and Intel...
Upstream Intel DRM code now provided and suggested by alanc:
https://hg.java.net/hg/solaris-x11~x-s11-update-clone/file/d9d14c815e25/open-src/kernel
Test platform: OI-Hipster 2015.03.30

Test new DRM module for: kernel/misc/amd64/drm

Excludes current linux support for Intel Gen 8/9 GPUs, but not a major issue at the moment.

#8

Updated by Ken Mays over 5 years ago

  • Assignee changed from Ken Mays to OI Userland
#9

Updated by Ken Mays over 5 years ago

#10

Updated by Ken Mays over 5 years ago

#11

Updated by Nikola M. over 4 years ago

Is this bug fixed and Intel driver works on your hardware for newest OI hipster?
If yes, let's resolve this as fixed.

#12

Updated by Alexander Pyhalov over 4 years ago

No, it can't be fixed properly until someone makes some work on illumos drm...

#13

Updated by Aurélien Larcher over 3 years ago

  • Category set to XNV (X Window System)
  • Status changed from In Progress to Closed
  • Target version set to Hipster
  • % Done changed from 0 to 100
  • Tags changed from needs-triage to gfx-drm

Also available in: Atom PDF