Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SeongHun_P_
Beginner
76 Views

va_getDriverName() fails if vaapi already in use

Good Day
 
After downloading the mediasdk-tutorials-0.0.3, I modified the simple_1_session source as shown below.
 
    int main()
    {
        ....
    
        MFXVideoSession session;
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        sts = Initialize(impl, ver, &session, NULL);
        ....
    }
 
iHD_drv_video.so is loaded from root account, but why is it failing to find i965 in video group account?
my environment CentOS, MSS SDK 2015 R4..
 
// root
# ./simple_session
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
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
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
# ./simple_session
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
Abort (core dumped)
0 Kudos
6 Replies
Mark_L_Intel1
Moderator
76 Views

Hi HeongHun,

You are using a very old SDK version, could you use a new SDK version to re-check?

Also it would be a lot of issues if you run it under root, we recommend to run as the normal user privilege.

About tutorial, there is a new release 0.0.4, could you use that, I don't think this would cause any difference in your case so just FYI.

Also, there is a mistake in your description about the driver, media SDK uses i915 not i965, we used to support both but we only support i915 now.

Mark

SeongHun_P_
Beginner
76 Views

Thank you for your reply.
 
 
The hardware currently in use is available up to MSS 2016 version.
 
If so, use the new SDK version If you run the sample above as a video group user
 
Are you sure you want to load only the iHD_drv_video.so library?
 
 
Thank you..
Mark_L_Intel1
Moderator
76 Views

Could you tell me what is your hardware?

For our release support, we support N and N-1, where N to be the current processor version.

no, i915 is in kernel, iHD file is the UMD module to hook it up.

Mark

SeongHun_P_
Beginner
76 Views

Thank you for your reply.

 

hardware is 'Intel(R) Xeon(R) CPU E3-1286 v3 @ 3.70GHz'

what is mean support N and N-1?

Does the video group user load only the iHD_drv_video.so library when set with a kernel mode driver?

 

Thank you..

Mark_L_Intel1
Moderator
76 Views

Hi SeongHun,

From the log of your first post, the problem is the initialization of UMD which could be caused by multiple issues but we should first check the system environment. Your code was loading i965 driver which is not correct, it should load i915 KMD.

I also assumed you have installed the Media Server Studio based on our getting started guide and rebuilt the kernel which should have i915 KMD.

For platform support, the processor is Haswell, our current release support Skylake and above which means you have to use a very old Media SDK release. We don't support these release, means we don't fix the bug unless you can prove it can be reproduced in new hardware.

Mark. 

SeongHun_P_
Beginner
76 Views

Thank you for your reply.

 

I will buy Skalake hardware and use Media SDK 2018
 
I'd appreciate it if you could just make one thing.
 
If install Media Server Studio based on the Intel Getting Started Guide and reconfigure the i915 KMD kernel
 
If run the sample in the first post in your video group account, Only load iHD_drv_video.so?
 
 
Thank you for your help.
Reply