Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3069 Discussions

MSS 2016 Generic install: /dev/dri/ absent (Core i7-4770)

Konstantin_K_3
Beginner
1,423 Views

Hello.

I've installed sdk (SDK2016Production16.4.4), patched kernel, rebuilt libdrm/libva, but `vainfo` fails and `/dev/dri` is absent. I followed ubuntu installation guide step by step. There were no errors. And after reboot I have kernel 3.14.5 active. But there no `dev/dri` path, `vainfo` shows:

error: failed to initialize display
Aborted

and `lsmod` have no `i915` record.

I can load it with:

# modprobe i915
# lsmod | grep i915
i915                  661290  0
drm_kms_helper         31885  1 i915
drm                   213209  2 i915,drm_kms_helper
i2c_algo_bit           12841  1 i915
i2c_core               24304  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
video                  17804  1 i915
button                 12944  1 i915

But it changes nothing in `vainfo` and `/dev/dri`


CPU: Core(TM) i7-4770 CPU @ 3.40GHz (Cores 8)

`lspci -nn | grep VGA`
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell Integrated Graphics Controller [8086:0412] (rev 06)

`uname-r`:

Linux Debian-78-wheezy-64-minimal 3.14.5 #2 SMP Fri May 27 03:48:48 MSK 2016 x86_64 GNU/Linux

How to fix this issue?

0 Kudos
6 Replies
Jeffrey_M_Intel1
Employee
1,423 Views

Hi Konstantin,

Here is a prototype system analyzer for Linux to help diagnose issues like this:

https://software.intel.com/en-us/articles/mss-sys-analyzer-linux

There are more details on manual diagnostics here:

http://www.intel.com/content/www/us/en/cloud-computing/quicksync-video-ffmpeg-install-valid.html

From your description I suspect that you may have booted with 'nomodeset' or i915.modeset=0, but hopefully these references will help fill in more details.   

0 Kudos
Konstantin_K_3
Beginner
1,423 Views

Hi Jeffrey,

Thank you for reply. You are right, there was `nomodeset` in grub. I've removed it, updated grub, rebooted, but issue is still here.

System Analyzer output: 

--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
 [ INFO ] Intel Processor
 [ INFO ] Processor brand: Core
 [ INFO ] Processor arch: Haswell
--------------------------
OS readiness checks:
--------------------------
 [ INFO ] GPU PCI id     : 0412
 [ INFO ] GPU description: HSW_D GT2 desktop
 [ OK ] GPU visible to OS
 [ INFO ] no nomodeset in GRUB cmdline (good)
 [ INFO ] Linux distro   : debian 7.8
 [ INFO ] Linux kernel   : 3.14.5
 [ INFO ] glibc version  : 2.13
 [ INFO ] Linux distro suitable for Generic install
 [ INFO ] gcc version    : 4.7.2 (>=4.8.2 suggested)
--------------------------
Media Server Studio Install:
--------------------------
 [ OK ] user in video group
 [ OK ] libva.so.1 found
 [ ERROR ] libva not loading Intel iHD
 [ ERROR ] vainfo not reporting codec entry points
 [ ERROR ] Intel video adapter not using i915
 [ ERROR ] no /dev/dri/renderD* interfaces found
--------------------------
Component Smoke Tests:
--------------------------
 [ OK ] Media SDK HW API level:1.17
 [ OK ] Media SDK SW API level:1.17
 [ OK ] OpenCL check:

--------------------------
Media SDK Plugins available:
(for more info see /opt/intel/mediasdk/plugins/plugins.cfg)
--------------------------
    H264LA Encoder 	= 588f1185d47b42968dea377bb5d0dcb4
    VP8 Decoder 	= f622394d8d87452f878c51f2fc9b4131

 

Am I need to do something else in addition to removing `nomodeset`?

Now reading "quicksync-video-ffmpeg-install-valid.pdf" to find more info…

0 Kudos
Konstantin_K_3
Beginner
1,423 Views
# lspci -vv -nn -s 00:02.0
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell Integrated Graphics Controller [8086:0412] (rev 06) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. Device [1462:7816]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
	Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Region 4: I/O ports at f000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
		Address: 00000000  Data: 0000
	Capabilities: [d0] Power Management version 2
		Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [a4] PCI Advanced Features
		AFCap: TP+ FLR+
		AFCtrl: FLR-
		AFStatus: TP-

But "quicksync-video-ffmpeg-install-valid.pdf" says there should be "Kernel driver in use: i915" after Capabilities (who and why disabled Copy to clipboard in that pdf???). So again we see, kernel driver is not used.

Pdf says about `/sys/bus/pci/devices/0000:00:02.0` path, and I checked it. The strange thing is `/sys/bus/pci/devices/0000:00:02.0/enabled` which is `0`. I don't know much about linuxes, but looks like the device is disabled.

At the same time I see the following in dmesg:

[    0.262344] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    0.262414] vgaarb: loaded
[    0.262461] vgaarb: bridge control possible 0000:00:02.0

 

It's remote server, and I can't check BIOS settings. There no X-server or any gui. Can this be a problem?

How can I enable the device?

0 Kudos
Jeffrey_M_Intel1
Employee
1,423 Views

Thanks for gathering the info. No GUI or X Windows is not a problem.  However,  since lspci is not saying the GPU is visible to the OS, there may not be much you can do without access to the system.  Causes could be:

  • BIOS doesn't enable processor graphics
  • Chipset or other HW doesn't enable graphics

There may be an option in your BIOS to enable processor graphics.  For HW, if your processor is a Xeon your chipset should be C226.  If you  don't see the graphics option in your BIOS, your OEM may be better able to help you with next steps.     

0 Kudos
Konstantin_K_3
Beginner
1,423 Views

Jeffrey M. (Intel) wrote:

Thanks for gathering the info. No GUI or X Windows is not a problem.  However,  since lspci is not saying the GPU is visible to the OS, there may not be much you can do without access to the system.  Causes could be:

BIOS doesn't enable processor graphics
Chipset or other HW doesn't enable graphics
There may be an option in your BIOS to enable processor graphics.  For HW, if your processor is a Xeon your chipset should be C226.  If you  don't see the graphics option in your BIOS, your OEM may be better able to help you with next steps.     

Hi Jeffrey,

Thanks for your answer. The server is remote, so I can't access it's BIOS easily.

So I got another server and installed Centos 7.1 on it. The MSS worked fine. `lsmod` showed that `i915` is loaded (even before MSS installation). And after installation I can see device is enabled in `/sys/bus/pci/devices/0000:00:02.0/enable` (there is "1" inside this file).

But I need to run MSS on Debian/Ubuntu. So I've reinstalled Debian 8.5 on the same server.

Now `lsmod` shows no loaded `i915` drivers. And there is "0" inside `/sys/bus/pci/devices/0000:00:02.0/enable`.

What can be the problem?

0 Kudos
Konstantin_K_3
Beginner
1,423 Views

Finally I've solved the issue. It was os pre-configuration.

The i915 module was disabled in `/etc/modprobe.d/` blacklist. I enabled it, and tests passed fine. Sample encoding/decoding works too.

0 Kudos
Reply