Comments (8)
Please try to install latest version of libva firstly
from media-driver.
I tried to build but media-driver after building libva, but get following error:
[ 18%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/linux/common/ddi/media_libva.cpp.o
/home/ats/media-driver/media_driver/linux/common/ddi/media_libva.cpp: In function ‘VAStatus DdiMedia_CreateSurfaces2(VADriverContextP, uint32_t, uint32_t, uint32_t, VASurfaceID*, uint32_t, VASurfaceAttrib*, uint32_t)’:
/home/ats/media-driver/media_driver/linux/common/ddi/media_libva.cpp:2747:5: error: ‘VADRMPRIME3SurfaceDescriptor’ was not declared in this scope
VADRMPRIME3SurfaceDescriptor drmPrime3SurfaceDescriptor;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ats/media-driver/media_driver/linux/common/ddi/media_libva.cpp:2747:5: note: suggested alternative: ‘VADRMPRIMESurfaceDescriptor’
VADRMPRIME3SurfaceDescriptor drmPrime3SurfaceDescriptor;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
VADRMPRIMESurfaceDescriptor
In file included from /home/ats/media-driver/media_common/agnostic/common/os/mos_os.h:31:0,
from /home/ats/media-driver/media_softlet/agnostic/common/codec/hal/codechal_common.h:29,
from media-driver.
What's the libva version you installed in your environment? Could you try to re-build again latest Libva version?
from media-driver.
I installed fresh openSUSE 15.5 Leap (not Tumbleweed).
vainfo still gave errors so I updated to following versions by downloading src code and building locally:
libva-2.20.0
intel-gmmlib-22.3.15
intel-media-23.4.3
vainfo gives following error with updated SW:
ats@localhost:~/media-driver-work/media-driver> vainfo
Trying display: wayland
Trying display: x11
libva info: Open new log file /tmp/libva_trace.log.220404.thd-0x0000b5cb for the thread 0x0000b5cb
libva info: LIBVA_TRACE is on, save log into /tmp/libva_trace.log.220404.thd-0x0000b5cb
libva info: VA-API version 1.20.0
Segmentation fault (core dumped)
ats@localhost:~/media-driver-work/media-driver>
Attaching strace output of running vainfo.
clinfo:
ats@localhost:~/media-driver-work/media-driver> clinfo | head -n 5
Number of platforms 1
Platform Name Intel(R) OpenCL Graphics
Platform Vendor Intel(R) Corporation
Platform Version OpenCL 3.0
Platform Profile FULL_PROFILE
ats@localhost:~/media-driver-work/media-driver>
kernel info:
ats@localhost:~/media-driver-work/media-driver> uname -a
Linux localhost.localdomain 5.14.21-150500.55.39-default #1 SMP PREEMPT_DYNAMIC Tue Dec 5 10:06:35 UTC 2023 (2e4092e) x86_64 x86_64 x86_64 GNU/Linux
ats@localhost:~/media-driver-work/media-driver>
dmesg log:
[69762.276812] show_signal_msg: 45 callbacks suppressed
[69762.276823] vainfo[21714]: segfault at 0 ip 0000000000000000 sp 00007ffeb62ec3a8 error 14 in vainfo[400000+6000]
[69762.276864] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[70172.542884] vainfo[24700]: segfault at 0 ip 0000000000000000 sp 00007ffc6df0ae38 error 14 in vainfo[400000+6000]
[70172.542924] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[72310.624800] vainfo[25243]: segfault at 0 ip 0000000000000000 sp 00007ffd85396168 error 14 in vainfo[400000+6000]
[72310.624832] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[72832.979817] vainfo[35212]: segfault at 0 ip 0000000000000000 sp 00007fff1aed3648 error 14 in vainfo[400000+6000]
[72832.979860] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[72989.818334] vainfo[35258]: segfault at 0 ip 0000000000000000 sp 00007ffec66e53a8 error 14 in vainfo[400000+6000]
[72989.818361] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[73022.231658] vainfo[35264]: segfault at 0 ip 0000000000000000 sp 00007ffcdff83e78 error 14 in vainfo[400000+6000]
[73022.231686] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[73057.598953] vainfo[35272]: segfault at 0 ip 0000000000000000 sp 00007fffd3c94be8 error 14 in vainfo[400000+6000]
[73057.598981] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[87075.334540] BTRFS info (device nvme0n1p2): qgroup scan completed (inconsistency flag cleared)
[103312.128786] vainfo[46483]: segfault at 0 ip 0000000000000000 sp 00007ffe83129108 error 14 in vainfo[400000+6000]
[103312.128817] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[103643.439025] vainfo[46539]: segfault at 0 ip 0000000000000000 sp 00007ffc5723c088 error 14 in vainfo[400000+6000]
[103643.439052] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
ats@localhost:~/media-driver-work/media-driver>
[vainfo_error.txt](https://github.com/intel/media-driver/files/13969242/vainfo_error.txt)
devices:
ats@localhost:~/media-driver-work/media-driver> ls -l /dev/dri/
total 0
drwxr-xr-x 2 root root 100 Jan 16 17:16 by-path
crw-rw----+ 1 root video 226, 0 Jan 16 17:16 card0
crw-rw----+ 1 root video 226, 1 Jan 16 17:16 card1
crw-rw-rw- 1 root render 226, 128 Jan 16 17:16 renderD128
ats@localhost:~/media-driver-work/media-driver>
from media-driver.
Good to know building pass after libva upgrade.
Your device is Xeon 4th Gen, Flex 170
and the official support kernel is intel-gpu/intel-gpu-i915-backports. You could get the pre-built package from Agama(refer to Install from Agama).
If you still want to try upstream kernel, I'd suggest to upgrade to >6.2 at least, however there are some known patches yet upstream, so some failures may be expected.
from media-driver.
It did not pass unfortunately. Please have a look at my earlier response. vainfo now core-dumps (dmesg). clinfo has always worked.
from media-driver.
5.14 kernel is too old, could you try >6.2 kernel?
Your device is Xeon 4th Gen, Flex 170 and the official support kernel is intel-gpu/intel-gpu-i915-backports. You could get the pre-built package from Agama(refer to Install from Agama).
If you still want to try upstream kernel, I'd suggest to upgrade to >6.2 at least, however there are some known patches yet upstream, so some failures may be expected.
from media-driver.
As no further feedback in recent 1 month, I'm going to close this issue. Please feel free to re-open it if any concerns. Thanks.
from media-driver.
Related Issues (20)
- [Bug]: Gstreamer vaapipostproc element converts ARGB format incorrectly HOT 1
- [Bug]: media-driver 24.2.2 fails to compile with gcc-14.1 HOT 3
- [Bug]: compile 23.2.4 in ubuntu 16.04 failed HOT 2
- [Bug]: 10bit RT_FORMAT are contains in VP9 profile 0 and 1 encoding HOT 2
- [Bug]: Arc A750 (DG2) shows segfault or bus error with raw video from GStreamer ximagesrc (works fine with AMD) HOT 8
- [Bug]: vainfo shows iHD_drv_video init failed HOT 4
- [Bug]: h264Encode sample test from libra-utils uses IDR frame as ref picture all the time HOT 1
- [Bug]: musl build fails HOT 3
- [Bug]: VAAPI in Container with WSL2 Windows not working
- [Bug]: Unable to use EncTools on DG1 HOT 7
- `master` build + gcc14.1 FAILs @ undecl syms `VPHAL_VEBOX_{RGB32,AYUV,RGB64`; tag `intel-media-24.2.4` OK HOT 9
- [Bug]: Build failure on Synology DSM 7.1 using spksrc HOT 1
- [Feature]: support I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC
- [Bug]: GPU Hang on decoding stream HOT 4
- [Bug]: gstreamer plugin vapostproc produces tiled output HOT 4
- [Bug]: Transcoding HDR video failed with GPU HANG HOT 5
- [Bug]: encoder vah264enc failed HOT 1
- [Bug]: vaGetImage takes 90ms on each FullHD frame HOT 8
- [Bug]: Raptor lake 13500H crash HOT 5
- [Bug]: Wsl2 Ubuntu '-make j8' not responding (I think) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from media-driver.