Giter Club home page Giter Club logo

Comments (8)

Jexu avatar Jexu commented on August 16, 2024

Please try to install latest version of libva firstly

from media-driver.

js333031 avatar js333031 commented on August 16, 2024

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.

Sherry-Lin avatar Sherry-Lin commented on August 16, 2024

What's the libva version you installed in your environment? Could you try to re-build again latest Libva version?

from media-driver.

js333031 avatar js333031 commented on August 16, 2024

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.

Sherry-Lin avatar Sherry-Lin commented on August 16, 2024

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.

js333031 avatar js333031 commented on August 16, 2024

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.

Sherry-Lin avatar Sherry-Lin commented on August 16, 2024

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.

Sherry-Lin avatar Sherry-Lin commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.