Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ffmpeg with qsv (target intel arc av1) [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Tue Sep 12, 2023 11:05 am    Post subject: ffmpeg with qsv (target intel arc av1) [solved] Reply with quote

Hi,

i recently got my hands on an ARC card with the intention to encode to av1 using hwacceleration (time and power saving) for use with jellyfin and ffmpeg.
After a first attempt in my homeserver i switched it to my main machine where it is now recognized with current kernel and mesa as well as intel-media.

The planed step was to build ffmpeg with +qsv to get the support in there.

But with current stable ffmpeg-4.4.4-r3 i can't get QSV enabled and i don't understand why. On newer ffmpeg-6 it seems to enable oneVPL but this seems to be not first choice as to many applications still need ffmpeg in version 4.

In the ffmpeg ebuild i see in RDPEPEND
Quote:

qsv? ( media-libs/intel-mediasdk[${MULTILIB_USEDEP}] )

and in
FFMPEG_FLAG_MAP
Quote:
qsv:libmfx

but the emerge preview gives
Quote:

[ebuild R ] media-video/ffmpeg-4.4.4-r3:0/56.58.58::gentoo USE="X alsa bzip2 chromium dav1d encode fdk gnutls gpl iconv jpeg2k libaom mp3 network opengl openssl opus pic postproc rav1e samba sdl svg theora threads truetype vaapi vdpau vorbis vpx vulkan x264 x265 xvid zlib (-amf) -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -codec2 -cpudetection (-cuda) -debug -doc -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -kvazaar -ladspa -libaribb24 -libass -libcaca -libdrm -libilbc -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -openal -opencl -openh264 -oss -pulseaudio (-qsv) -rubberband -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -twolame -v4l -verify-sig -vidstab (-vmaf) -webp -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB


i have installed
Quote:

media-libs/intel-mediasdk
Available versions: (~)23.2.2^t **9999*l^t {X dri test tools wayland ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 23.2.2^t(09:50:37 09/12/23)(X dri -test -tools -wayland ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Homepage: https://github.com/Intel-Media-SDK/MediaSDK
Description: Intel Media SDK

[I] media-libs/libva-intel-media-driver
Available versions: 23.2.4^t ~23.3.0^t ~23.3.1^t ~23.3.2^t **9999*l^t {X +redistributable test ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 23.2.4^t(09:36:18 09/12/23)(X redistributable -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Homepage: https://github.com/intel/media-driver
Description: Intel Media Driver for VA-API (iHD)

[I] media-libs/mesa
Available versions: 23.1.6^t ~23.1.7^t ~23.2.0_rc3^t **9999*l^t {+X d3d9 debug gles1 +gles2 +llvm lm-sensors opencl osmesa +proprietary-codecs selinux test unwind vaapi valgrind vdpau vulkan vulkan-overlay wayland xa zink +zstd ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="sse2" VIDEO_CARDS="d3d12 freedreno intel lavapipe lima nouveau panfrost r300 r600 radeon radeonsi v3d vc4 virgl vivante vmware"}
Installed versions: 23.1.6^t(20:01:07 08/17/23)(X gles2 llvm proprietary-codecs vaapi vdpau vulkan wayland zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa -selinux -test -unwind -valgrind -vulkan-overlay -xa -zink ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2" VIDEO_CARDS="radeonsi -d3d12 -freedreno -intel -lavapipe -lima -nouveau -panfrost -r300 -r600 -radeon -v3d -vc4 -virgl -vivante -vmware")
Homepage: https://www.mesa3d.org/ https://mesa.freedesktop.org/
Description: OpenGL-like graphic library for Linux

on gentoo-sources-6.5.2 with i915 support build in.
Quote:

[ 1.111744] i915 0000:32:00.0: [drm] VT-d active for gfx access
[ 1.111765] i915 0000:32:00.0: [drm] Can't resize LMEM BAR - platform support is missing
[ 1.111795] i915 0000:32:00.0: [drm] Local memory IO size: 0x0000000010000000
[ 1.111804] i915 0000:32:00.0: [drm] Local memory available: 0x000000017c800000
[ 1.111814] i915 0000:32:00.0: [drm] Using a reduced BAR size of 256MiB. Consider enabling 'Resizable BAR' or similar, if available in the BIOS.
[ 1.129021] i915 0000:32:00.0: [drm] Finished loading DMC firmware i915/dg2_dmc_ver2_08.bin (v2.8)
[ 1.133245] i915 0000:32:00.0: [drm] GT0: GuC firmware i915/dg2_guc_70.bin version 70.8.0
[ 1.133256] i915 0000:32:00.0: [drm] GT0: HuC firmware i915/dg2_huc_gsc.bin version 7.10.3
[ 1.145237] i915 0000:32:00.0: [drm] GT0: GUC: submission enabled
[ 1.145246] i915 0000:32:00.0: [drm] GT0: GUC: SLPC enabled
[ 1.145503] i915 0000:32:00.0: [drm] GT0: GUC: RC enabled
[ 1.171190] [drm] Initialized i915 1.6.0 20201103 for 0000:32:00.0 on minor 1
[ 1.172121] i915 0000:32:00.0: [drm] Cannot find any crtc or sizes
[ 1.172210] i915 0000:32:00.0: [drm] Cannot find any crtc or sizes
[ 1.593476] i915 0000:32:00.0: [drm] GT0: HuC: authenticated for all workloads
[ 3959.253611] i915 0000:32:00.0: [drm] GT0: GuC firmware i915/dg2_guc_70.bin version 70.8.0
[ 3959.253616] i915 0000:32:00.0: [drm] GT0: HuC firmware i915/dg2_huc_gsc.bin version 7.10.3
[ 3959.265593] i915 0000:32:00.0: [drm] GT0: GUC: submission enabled
[ 3959.265595] i915 0000:32:00.0: [drm] GT0: GUC: SLPC enabled
[ 3959.265833] i915 0000:32:00.0: [drm] GT0: GUC: RC enabled
[ 3964.265544] i915 0000:32:00.0: [drm] GT0: HuC: timed out waiting for MEI PXP
[ 3964.830434] i915 0000:32:00.0: [drm] GT0: HuC: authenticated for all workloads


which to my understanding looks good.

Any hints why the QSV support can not be enabled (or generic hints what i might need to get the target running, anyone using a ARC on gentoo with ffmpeg?
Thanks


Last edited by s|mon on Wed Oct 11, 2023 12:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
shadowless
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2022
Posts: 101

PostPosted: Tue Sep 12, 2023 12:37 pm    Post subject: Reply with quote

Code:
(-qsv)

The parentheses means the USE flag is masked.

/var/db/repos/gentoo/profiles/arch/base/package.use.mask
Code:
# Andrew Ammerlaan <andrewammerlaan@gentoo.org> (2022-12-06)
# Quick Sync Video (through intel-mediasdk or oneVPL) is
# only keyworded on amd64
media-video/ffmpeg qsv


Possibly to prevent it from being selected on architectures other than amd64? If you're using amd64, you could try to unmask it and see if it works.
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Tue Sep 12, 2023 1:08 pm    Post subject: Reply with quote

Thanks a lot - i was missinterpreting that a precondition was not fulfilled.
Did now modify profile as mentioned in wiki.gentoo.org/wiki//etc/portage/profile/use.mask

Hoping that it already works with that ffmpeg version.
Back to top
View user's profile Send private message
shadowless
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2022
Posts: 101

PostPosted: Tue Sep 12, 2023 3:52 pm    Post subject: Reply with quote

QSV AV1 encoder was added in 6.0

Sorry, should have mentioned that earlier :)
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Tue Sep 12, 2023 6:03 pm    Post subject: Reply with quote

Yes found that out too. But besides that i still fight with proper selection of hardware or some other error in my command line

With ffmeg-4.4.4-r3 and QSV i now get:
Quote:
fmpeg -encoders | grep qsv
ffmpeg version 4.4.4 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Gentoo Hardened 12.3.1_p20230526 p2)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.4.4-r3/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O2 -pipe -w' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --enable-version3 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=oss --disable-outdev=sndio --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --enable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi --enable-vdpau --enable-vulkan --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --enable-libfdk-aac --enable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --enable-libopus --enable-libmfx --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libvmaf --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libtesseract --disable-lv2 --enable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --enable-libaom --enable-libmp3lame --disable-libopenh264 --enable-librav1e --disable-libsnappy --disable-libsvtav1 --enable-libtheora --disable-libtwolame --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --enable-pic --cpu=host --disable-doc --disable-htmlpages --enable-manpages
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
V..... h264_qsv H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
V..... hevc_qsv HEVC (Intel Quick Sync Video acceleration) (codec hevc)
V..... mjpeg_qsv MJPEG (Intel Quick Sync Video acceleration) (codec mjpeg)
V..... mpeg2_qsv MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)
V..... vp9_qsv VP9 video (Intel Quick Sync Video acceleration) (codec vp9)


but the commands fail
Quote:
ffmpeg -i test.mp4 -qsv_device /dev/dri/renderD129 -c:v vp9_qsv -c:v vp9_qsv output.webm

with
Quote:

[libopus @ 0x55fbf2d41400] No bit rate set. Defaulting to 96000 bps.
[vp9_qsv @ 0x55fbf2d3f540] Error initializing an internal MFX session: unsupported (-3)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libopus @ 0x55fbf2d41400] 1 frames left in the queue on closing

or
Quote:

ffmpeg -i test.mp4 -init_hw_device qsv=hw -filter_hw_device hw -qsv_device /dev/dri/renderD129 -c:v vp9_qsv -c:v vp9_qsv output.webm

with
Quote:

DRM_IOCTL_VERSION, unsupported drm device by media driver: amdg
DRM_IOCTL_VERSION, unsupported drm device by media driver: amdg
[AVHWDeviceContext @ 0x564440780b80] libva: /usr/lib64/va/drivers/iHD_drv_video.so init failed
[AVHWDeviceContext @ 0x564440780b80] Failed to initialise VAAPI connection: 18 (invalid parameter).
Device creation failed: -5.
Failed to set value 'qsv=hw' for option 'init_hw_device': Input/output error
Error parsing global options: Input/output error


I try to select the correct device manually as my main card is still an radeon 5700 navi and i want to use arc only for encoding.

Any hints on how i can narrow down the issue or test hw capabilities from ffmpeg pov?


[edit]
Got it working with "VAAPI" - Hints on QSV are still welcome though - Or anyone tried with FFmpeg 6.0 with some details on the results?
Quote:

ffmpeg -init_hw_device vaapi=intel:/dev/dri/renderD130 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device intel -i test.mp5 -global_quality:v 80 -filter_hw_device intel -vf 'format=nv12|vaapi,hwupload' -c:v vp9_vaapi -rc_mode 1 -c:a libopus -b:a 112k test.mkv
Back to top
View user's profile Send private message
shadowless
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2022
Posts: 101

PostPosted: Thu Sep 14, 2023 8:07 pm    Post subject: Reply with quote

Did you try the hwupload and format video filters with the qsv attempts? You usually need to do that to use hardware encoding with ffmpeg.

There are some examples here (with h264/h265 anyways): https://trac.ffmpeg.org/wiki/Hardware/QuickSync

I don't have any qsv capable hardware to test this myself.
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Fri Sep 15, 2023 9:08 am    Post subject: Reply with quote

I used the first example on transcode as a test - extended by setting qsv_device explicitly (which works as it chooses the intel card)
In the meantime i also switched to ffmpeg-6.0-r6

Quote:

ffmpeg -loglevel verbose -i test.mp4 -c:v h264_qsv -global_quality 18 -rdo 1 -preset:v slow -y output.mp4


At last i think from

Quote:

ffmpeg -loglevel verbose -i test.mp4 -qsv_device /dev/dri/card1 -c:v h264_qsv -global_quality 18 -rdo 1 -preset:v slow -y output.mp4
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Gentoo Hardened 12.3.1_p20230526 p2)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-6.0-r6/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O2 -pipe -w' --disable-static --enable-avfilter --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --enable-version3 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=oss --disable-outdev=sndio --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --enable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi --enable-vdpau --enable-vulkan --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --enable-libfdk-aac --enable-libopenjpeg --disable-libjxl --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --enable-libopus --enable-libvpl --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libvmaf --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-lcms2 --disable-libass --disable-libplacebo --disable-libtesseract --disable-lv2 --enable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --enable-libaom --enable-libmp3lame --disable-libopenh264 --enable-librav1e --disable-libsnappy --disable-libsvtav1 --enable-libtheora --disable-libtwolame --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-gnutls --enable-version3 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --enable-pic --cpu=host --disable-doc --disable-htmlpages --enable-manpages
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
[AVHWDeviceContext @ 0x560f934e3d00] libva: VA-API version 1.19.0
[AVHWDeviceContext @ 0x560f934e3d00] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x560f934e3d00] libva: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
[AVHWDeviceContext @ 0x560f934e3d00] libva: Found init function __vaDriverInit_1_19
[AVHWDeviceContext @ 0x560f934e3d00] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x560f934e3d00] Initialised VAAPI connection: version 1.19
[AVHWDeviceContext @ 0x560f934e3d00] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.3.2 ().
[AVHWDeviceContext @ 0x560f934e3d00] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x560f934e3800] Use Intel(R) oneVPL to create MFX session, API version is 2.9, the required implementation version is 1.3
[AVHWDeviceContext @ 0x560f934e3800] Error adding a MFX configurationVendorID property: -9.
Device creation failed: -1313558101.
Failed to set value '/dev/dri/card1' for option 'qsv_device': Unknown error occurred
Error parsing global options: Unknown error occurred



all i found so far was this thread but not sure on the answer with DKMS what i might be missing.
ffmpeg-cant-create-mfx-session-to-use-intel-arc-gpu

latest output from dmesg:
Quote:
dmesg | grep i915
[ 3.278534] i915 0000:32:00.0: [drm] VT-d active for gfx access
[ 3.278557] i915 0000:32:00.0: BAR 0: releasing [mem 0xfa000000-0xfaffffff 64bit]
[ 3.278566] i915 0000:32:00.0: BAR 2: releasing [mem 0x7fc0000000-0x7fcfffffff 64bit pref]
[ 3.278729] i915 0000:32:00.0: BAR 2: no space for [mem size 0x200000000 64bit pref]
[ 3.278739] i915 0000:32:00.0: BAR 2: failed to assign [mem size 0x200000000 64bit pref]
[ 3.278769] i915 0000:32:00.0: BAR 0: assigned [mem 0xfa000000-0xfaffffff 64bit]
[ 3.278892] i915 0000:32:00.0: [drm] Failed to resize BAR2 to 8192M (-ENOSPC)
[ 3.278961] i915 0000:32:00.0: BAR 2: assigned [mem 0x7fc0000000-0x7fcfffffff 64bit pref]
[ 3.279000] i915 0000:32:00.0: [drm] Local memory IO size: 0x0000000010000000
[ 3.279008] i915 0000:32:00.0: [drm] Local memory available: 0x000000017c800000
[ 3.279017] i915 0000:32:00.0: [drm] Using a reduced BAR size of 256MiB. Consider enabling 'Resizable BAR' or similar, if available in the BIOS.
[ 3.293912] i915 0000:32:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 3.294066] Loading firmware: i915/dg2_dmc_ver2_08.bin
[ 3.296215] i915 0000:32:00.0: [drm] Finished loading DMC firmware i915/dg2_dmc_ver2_08.bin (v2.8)
[ 3.296735] Loading firmware: i915/dg2_guc_70.bin
[ 3.297003] Loading firmware: i915/dg2_huc_gsc.bin
[ 3.300559] i915 0000:32:00.0: [drm] GT0: GuC firmware i915/dg2_guc_70.bin version 70.8.0
[ 3.300570] i915 0000:32:00.0: [drm] GT0: HuC firmware i915/dg2_huc_gsc.bin version 7.10.3
[ 3.312554] i915 0000:32:00.0: [drm] GT0: GUC: submission enabled
[ 3.312567] i915 0000:32:00.0: [drm] GT0: GUC: SLPC enabled
[ 3.312829] i915 0000:32:00.0: [drm] GT0: GUC: RC enabled
[ 3.338390] [drm] Initialized i915 1.6.0 20201103 for 0000:32:00.0 on minor 1
[ 3.339363] i915 0000:32:00.0: [drm] Cannot find any crtc or sizes
[ 3.339664] i915 0000:32:00.0: [drm] Cannot find any crtc or sizes
[ 3.355033] mei_gsc i915.mei-gscfi.12800: FW not ready: resetting: dev_state = 2 pxp = 0
[ 3.355821] mei_gsc i915.mei-gsc.12800: FW not ready: resetting: dev_state = 2 pxp = 2
[ 3.356954] mei_gsc i915.mei-gsc.12800: unexpected reset: dev_state = ENABLED fw status = 00000345 84670000 00000000 00000000 E0020002 00000000
[ 3.357928] mei_gsc i915.mei-gscfi.12800: unexpected reset: dev_state = ENABLED fw status = 00000345 84670000 00000000 00000000 E0020002 00000000
[ 3.761408] i915 0000:32:00.0: [drm] GT0: HuC: authenticated for all workloads
[ 3.762156] mei_pxp i915.mei-gsc.12800-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:32:00.0 (ops i915_pxp_tee_component_ops)
[ 6.154843] snd_hda_intel 0000:33:00.0: bound 0000:32:00.0 (ops i915_audio_component_bind_ops)


Also clnfo looks fine:
Quote:
clinfo
Number of platforms 1
Platform Name Intel(R) OpenCL Graphics
Platform Vendor Intel(R) Corporation
Platform Version OpenCL 3.0
Platform Profile FULL_PROFILE
...
Number of devices 1
Device Name Intel(R) Arc(TM) A380 Graphics
...
Back to top
View user's profile Send private message
shadowless
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2022
Posts: 101

PostPosted: Fri Sep 15, 2023 6:19 pm    Post subject: Reply with quote

DKMS modules in this case would be the firmware.

Your dmesg looks like its loading the right modules though.
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 209
Location: Bayern [de]

PostPosted: Wed Oct 11, 2023 12:00 pm    Post subject: Reply with quote

using lavu/hwcontext_qsv: use mfxImplDescription instead of mfxExtendedDevi… #682 to have the fix in libavutil allows propers session creation using QSV for me.

Hope it helps others until it is merged to stable mainlines as information.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum