Community
cancel
Showing results for 
Search instead for 
Did you mean: 
dingding_h_
Beginner
57 Views

MSS Demon Error

hardware:E3-1276 v3,

[root@localhost _build]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 60
model name      : Intel(R) Xeon(R) CPU E3-1276 v3 @ 3.60GHz
stepping        : 3
microcode       : 0x1d
cpu MHz         : 823.500
cache size      : 8192 KB

system:CentOS7.1,

[root@localhost _build]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.1.1503 (Core) 
Release:        7.1.1503
Codename:       Core
[root@localhost _build]# 

MSS Version:/MediaServerStudioEssentials2016

Install MSS sucefflly.

[root@localhost _build]# lsmod | grep 'i915'
i915                  842643  3 
drm_kms_helper         52812  2 i915,mgag200
drm                   298090  7 ttm,i915,drm_kms_helper,mgag200
i2c_algo_bit           13413  3 igb,i915,mgag200
i2c_core               40469  7 drm,igb,i915,i2c_i801,drm_kms_helper,mgag200,i2c_algo_bit
video                  19476  1 i915
[root@localhost _build]# 

[root@localhost _build]# pwd
/home/mediasdk-tutorials-0.0.3/_build
[root@localhost _build]# 

 

[root@localhost _build]# ./simple_decode_vmem  ./sintel0.h264 
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
已放弃(吐核)

Is the CPU support MSS2016 for linux, or other reasons ?

Thx for any response !

 

0 Kudos
9 Replies
dingding_h_
Beginner
57 Views

[root@localhost ~]# rpm -qa|grep drm libdrm-2.4.56-47109.el7.x86_64 libdrm-devel-2.4.56-47109.el7.x86_64 drm-utils-2.4.56-47109.el7.x86_64 [root@localhost ~]# rpm -qa |grep libva libva-utils-1.67.0.pre1-47109.el7.x86_64 libva-1.67.0.pre1-47109.el7.x86_64 libva-devel-1.67.0.pre1-47109.el7.x86_64 [root@localhost ~]# uname -r 3.10.0-229.1.2.47109.MSSr1.el7.centos.x86_64 [root@localhost ~]# rpm -qa|grep intel intel-opencl-1.2-16.4-47109.el7.x86_64 xorg-x11-drv-intel-2.99.916-5.el7.x86_64 intel-opencl-1.2-devel-16.4-47109.el7.x86_64 intel-linux-media-devel-16.4.4-47109.el7.x86_64 intel-linux-media-16.4.4-47109.el7.x86_64 [root@localhost ~]#
Anna_B_Intel
Employee
57 Views

Hi Dingding,

Did you pass all installation steps according to the "Getting Started Guide - Linux* Installation" including custom patching and compilation of the Linux kernel? Did you reboot the system after building the kernel?  

Could you please provide me an information about installed media stack (output of "vainfo" command) and kernel version after rebooting (command "uname -a").

Best wishes, Anna

dingding_h_
Beginner
57 Views

Anna B. (Intel) wrote:

Hi Dingding,

Did you pass all installation steps according to the "Getting Started Guide - Linux* Installation" including custom patching and compilation of the Linux kernel? Did you reboot the system after building the kernel?  

Could you please provide me an information about installed media stack (output of "vainfo" command) and kernel version after rebooting (command "uname -a").

Best wishes, Anna

That's all my installation steps according to the "Getting Started Guide - Linux* Installation":

[before my installaiton: Os  has been CentOS 7.1]

=============== CentOS 7.1 Step==================

usermod -a -G video hedd

lscpci -nn

tar -xvzf  MediaServerStudioEssentials2016.tar.gz 

cd MediaServerStudioEssentials2016

tar -xvzf SDK2016Production16.4.4.tar.gz

cd SDK2016Production16.4.4/

cd CentOS

tar -xvzf install_scripts_centos_16.4.4-47109.tar.gz

(as root)

./install_sdk_UMD_CentOS.sh 

mkdir /MSS

chown hedd:video /MSS

(as regular user) 

cp build_kernel_rpm_CentOS.sh /MSS

cd /MSS

./build_kernel_rpm_CentOS.sh

(as root)

cd /MSS/rpmbuild/RPMS/x86_64

rpm -Uvh kernel-3.10.*.rpm

reboot

[when rebooting, make sure to start with 3.10.*kernel]

=============Generic Steps ========================

ldd --version

cd /home/hedd/MediaServerStudioEssentials2016/SDK2016Production16.4.4/Generic

tar xvf intel-linux-media-ocl_generic_16.4.4-47109_64bit.tar.gz 

sudo rm -rf /opt/intel/mediasdk

sudo rm -rf /opt/intel/common

sudo rm -rf /opt/intel/opencl

find /usr -name "libdrm*" | xargs sudo rm -rf 

find /usr -name "libva*"  | xargs sudo rm -rf 

sudo cp -rdf opt/* /opt/

sudo cp -rdf etc/* /etc/

sudo cp -rdf usr/bin/* /usr/bin/

sudo cp -rdf usr/include/* /usr/include/

sudo cp -rdf usr/lib64/* /usr/lib64/

sudo cp -rdf usr/share/* /usr/share

cd /opt/intel/mediasdk/opensource/libdrm/2.4.54-47109/

tar xvf libdrm-2.4.54.tar.bz2

cd libdrm-2.4.54/

yum install libpciaccess-devel 

./configure --prefix=/usr/ --libdir=/usr/lib64/

make;make isntall

cd /opt/intel/mediasdk/opensource/libva/1.67.0.pre1-47109/

tar xvf libva-1.67.0.pre1.tar.bz2

cd libva-1.67.0.pre1/

./configure --prefix=/usr/ --libdir=/usr/lib64/

make; make install

#set /etc/environment

LD_LIBRARY_PATH="/usr/local/lib;/usr/lib64"

LIBVA_DRIVER_NAME=iHD

LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64

wget *************/linux-3.14.5.tar.xz

tar -xJf linux-3.14.5.tar.xz

cp /opt/intel/mediasdk/opensource/patches/kmd/3.14.5/intel-kernel-patches.tar.bz2 .

tar -xvjf intel-kernel-patches.tar.bz2

cd linux-3.14.5

for i in ../intel-kernel-patches/*.patch; do patch -p1 < $i; done

make olddefconfig

make CONFIG_MMU_NOTIFIERS=y -j 8

make modules_install

make install

reboot

==================================end installation

 

[root@localhost hedd]# vainfo
error: can't connect to X server!
libva info: VA-API version 0.99.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.99 (libva 1.67.0.pre1)
vainfo: Driver version: 16.4.4.47109-ubit
vainfo: Supported profile and entrypoints
      VAProfileH264Baseline           : VAEntrypointEncSlice
      VAProfileH264Baseline           : <unknown entrypoint>
      VAProfileH264Baseline           : <unknown entrypoint>
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : <unknown entrypoint>
      VAProfileH264High               : <unknown entrypoint>
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : <unknown entrypoint>
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : <unknown entrypoint>
      <unknown profile>               : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : <unknown entrypoint>
[root@localhost hedd]# uname -a
Linux localhost 3.10.0-229.1.2.47109.MSSr1.el7.centos.x86_64 #1 SMP Tue Mar 22 19:16:42 CST 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost hedd]# 

I found an error:

"error: can't connect to X server!"

when call vainfo, where is wrong when in my installation ?  

Again, is the E3-1276 v3 CPU support MSS for linux ?

Alexander_K_5
Beginner
57 Views

Hi Dingding,

You dont't need to perform "Generic Steps". It's intended for use in non-CentOS systems.

dingding_h_
Beginner
57 Views

 

              thx, i did it again as below, no  perform "Generic Steps :

 

[before my installaiton: Os  has been CentOS 7.1]

=============== CentOS 7.1 Step==================

usermod -a -G video hedd

lscpci -nn

tar -xvzf  MediaServerStudioEssentials2016.tar.gz 

cd MediaServerStudioEssentials2016

tar -xvzf SDK2016Production16.4.4.tar.gz

cd SDK2016Production16.4.4/

cd CentOS

tar -xvzf install_scripts_centos_16.4.4-47109.tar.gz

(as root)

./install_sdk_UMD_CentOS.sh 

mkdir /MSS

chown hedd:video /MSS

(as regular user) 

cp build_kernel_rpm_CentOS.sh /MSS

cd /MSS

./build_kernel_rpm_CentOS.sh

(as root)

cd /MSS/rpmbuild/RPMS/x86_64

rpm -Uvh kernel-3.10.*.rpm

reboot

[when rebooting, make sure to start with 3.10.*kernel]

 

but still got the same error:

[root@localhost _build]# ./simple_decode_vmem  ./sintel0.h264 
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
已放弃(吐核)

Alexander_K_5
Beginner
57 Views

Hi Dingding,

If you are not using "Development and Creative Workstation" CentOS environment, check some additional packages:

rpmquery -qa | grep mesa-dri-drivers

rpmquery -qa | grep mesa-libGL

rpmquery -qa | grep libX11

and install it if these packages are missing:

yum install mesa-dri-drivers mesa-libGL libX11

dingding_h_
Beginner
57 Views

Hi Alexander:

      i had installed these packages, it is still the same error.

I found the reason,  i run the sample from mediasdk-tutorials-0.0.3, 

it's not supported by E3 CPU.

other samples from /MediaSamples_Linux_2016/samples is OK.

Anyway, thanks all.

Jiandong_Z_Intel
Employee
57 Views

Hi Dingding,

Maybe you want to try following - in  mediasdk-tutorials-0.0.3

common/common_vaapi.cpp:    m_fd = open("/dev/dri/card0", O_RDWR);

 

change "card0"  to "renderD128"

 

rebuild tutorials

 

$ make clean

$ make

 

 

 

Thanks,

Zachary

 

dingding_h_
Beginner
57 Views

Jiandong Z. (Intel) wrote:

Hi Dingding,

Maybe you want to try following - in  mediasdk-tutorials-0.0.3

common/common_vaapi.cpp:    m_fd = open("/dev/dri/card0", O_RDWR);

 

change "card0"  to "renderD128",

 

rebuild tutorials

 

$ make clean

$ make

 

 

 

Thanks,

Zachary

 

 

Thanks Jiandong, i got it from u at CCBN 2016.

Reply