Quantcast
Channel: Intel® Software - Media
Viewing all articles
Browse latest Browse all 2185

How can I force the video group user to call only the 'iDH' driver instead of the root account?

$
0
0

Hello?

Installed with reference to Intel documentation and use GPU supported main board.

If the CreateVAAPIDevice() function is called more than once in a process
va_getDriverName() results are different for root account and video group user
Is there a way to force the video group user to call only the iHD driver?

Thank you..

 

 

-- root run result
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0

libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0

-- video group user run result
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0

libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

 

$ uname -a
Linux 3.10.0-123.9.3.32088.MSSr3.el7.x86_64 #1 SMP Tue Apr 28 06:56:44 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)

$ MSDK version 
SDK2015ProductionEvaluation16.4.1

$ grep ^'model name' /proc/cpuinfo
model name      : Intel(R) Xeon(R) CPU E3-1286 v3 @ 3.70GHz

$ lspci -vnn | grep VGA -A 12
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3 Processor Integrated Graphics Controller [8086:041a] (rev 06) (prog-if 00 [VGA controller])
        Subsystem: Super Micro Computer Inc Device [15d9:0805]
        Flags: bus master, fast devsel, latency 0, IRQ 64
        Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915

00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)

$ ll /opt/intel/mediasdk/lib64

drwxr-xr-x  2 root root       76  4월 28  2015 ./
drwxr-xr-x 10 root root     4096  5월 11 01:47 ../
-rwxr-xr-x  1 root root 25162960  2월 17  2015 iHD_drv_video.so*
-rwxr-xr-x  1 root root 10605896  2월 17  2015 libmfxhw64-p.so.1.14*
lrwxrwxrwx  1 root root       20  4월 28  2015 libmfxhw64.so -> libmfxhw64-p.so.1.14*

$ id
uid=201(k3) gid=200(informix) groups=200(informix),39(video)

$ ll /dev/dri

drwxr-xr-x  2 root root       100  5월 28 02:40 ./
drwxr-xr-x 19 root root      3220  5월 28 02:40 ../
crw-rw-rw-  1 root video 226,   0  5월 28 02:40 card0
crw-rw-rw-  1 root video 226,  64  5월 28 02:40 controlD64
crw-rw-rw-  1 root video 226, 128  5월 28 02:40 renderD128

$ lsmod | grep i915
i915                  738957  3
drm_kms_helper         52758  1 i915
drm                   297577  2 i915,drm_kms_helper
i2c_algo_bit           13413  2 igb,i915
i2c_core               40325  6 drm,igb,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
video                  19267  1 i915

$ vainfo
error: can't connect to X server!
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.35 (libva 1.3.1)
vainfo: Driver version: 16.4.32088-ubit
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : <unknown entrypoint>
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG4Simple            : VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    : VAEntrypointVLD
      VAProfileMPEG4Main              : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointEncSlice
      VAProfileH264Baseline           : <unknown entrypoint>
      VAProfileH264Baseline           : <unknown entrypoint>
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : <unknown entrypoint>
      VAProfileH264High               : <unknown entrypoint>
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : <unknown entrypoint>

$ env

LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
LIBVA_DRIVER_NAME=iHD
MFX_HOME=/opt/intel/mediasdk


Viewing all articles
Browse latest Browse all 2185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>