Summary: | multimedia/intel-media-sdk: QSV fails to run since 21.3.1: [hevc_qsv @ 0x806a75e00] Error initializing an internal MFX session: unsupported (-3) | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuichiro NAITO <naito.yuichiro> |
Component: | Individual Port(s) | Assignee: | Jan Beich <jbeich> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | Keywords: | needs-qa, regression |
Priority: | --- | Flags: | jbeich:
maintainer-feedback+
jbeich: merge-quarterly+ |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Yuichiro NAITO
2021-10-07 05:41:57 UTC
Auto-detection fails (MFX_HW_UNKNOWN) because libmfx.so wants to enumerate all Intel GPUs by reading /sys/class/drm/renderD*/device/device, limiting MFX to the legacy GPUs. On FreeBSD neither /sys is mounted by default nor supports render nodes. A proper fix would be to convert the code to libpciaccess or libpci but this is non-trivial, so let's revert to the old behavior for now. oneVPL hasn't been ported yet, anyway. https://github.com/Intel-Media-SDK/MediaSDK/blob/intel-mediasdk-21.3.5/api/mfx_dispatch/linux/device_ids.h#L425 https://github.com/oneapi-src/oneVPL-intel-gpu requires Tiger Lake or newer. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0402cf13b3cc4b3c1fe6bd68b1286c2054f0ee3f commit 0402cf13b3cc4b3c1fe6bd68b1286c2054f0ee3f Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2021-10-07 13:21:34 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2021-10-07 13:35:12 +0000 multimedia/intel-media-sdk: unbreak runtime after f4faca97f05b $ ffmpeg ... -c:v hevc_qsv ... [AVHWDeviceContext @ 0x8062d0140] Error initializing an MFX session: -3. Device creation failed: -1313558101. PR: 258976 Reported by: Yuichiro NAITO multimedia/intel-media-sdk/Makefile | 1 + .../intel-media-sdk/files/patch-msdk-default (new) | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) A commit in branch 2021Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4c4f0e624c8251a9e2eea6e1d912426355b1475e commit 4c4f0e624c8251a9e2eea6e1d912426355b1475e Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2021-10-07 13:21:34 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2021-10-07 13:36:26 +0000 multimedia/intel-media-sdk: unbreak runtime after f4faca97f05b $ ffmpeg ... -c:v hevc_qsv ... [AVHWDeviceContext @ 0x8062d0140] Error initializing an MFX session: -3. Device creation failed: -1313558101. PR: 258976 Reported by: Yuichiro NAITO (cherry picked from commit 0402cf13b3cc4b3c1fe6bd68b1286c2054f0ee3f) multimedia/intel-media-sdk/Makefile | 1 + .../intel-media-sdk/files/patch-msdk-default (new) | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1f08de175960433c739c0c1ae027778b2394475a commit 1f08de175960433c739c0c1ae027778b2394475a Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2021-11-12 11:12:43 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2021-11-12 14:45:28 +0000 multimedia/intel-media-sdk: detect GPU generation for VPL handover PR: 258976 Inspired by: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/201 multimedia/intel-media-sdk/Makefile | 1 + .../intel-media-sdk/files/patch-drm-to-pciid (new) | 86 ++++++++++++++++++++++ .../files/patch-msdk-default (gone) | 28 ------- 3 files changed, 87 insertions(+), 28 deletions(-) |