Repository navigation
frontend: Say which Quick Sync runtime an Intel GPU is missing (#1925) - #1962
Merged
Merged
Conversation
test_profile_qsv drives profile_qsv_diagnose() through the fake host for each cause: no Intel GPU, a GPU too old for Quick Sync, no render access, the runtime its generation needs is missing (Media SDK for Skylake, oneVPL for Arc, per distribution), and the iHD driver missing. The stub reports every GPU as available, so all but the available cases fail.
profile_qsv_diagnose() finds the first Intel render node and classifies its PCI device id with tables from Mesa's iris/crocus pci_ids lists (f6bda475): Broadwell through Ice Lake need the Media SDK runtime (libmfxhw64.so.1), Tiger Lake and newer the oneVPL GPU runtime (libmfx-gen.so.1.2; Tiger Lake, Rocket Lake and DG1 work with either), and pre-Broadwell GPUs have no Quick Sync on Linux. It then checks render access, the runtime and the iHD driver, and names the package and install command for the distribution (package names checked against the Debian, Fedora and Arch indexes).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1925. This is PR 1 of 2, the diagnosis core. PR 2 wires it into
CheckHardwareEncoder()'s NO_QSV_DEVICE branch, adds theEncoderMissing.QSV.*text and the log line, and includes a run in the real app.profile_qsv_diagnose()sits besideprofile_vaapi_diagnose()and uses the same fake-able host.include/pci_ids/{iris,crocus}_pci_ids.h@ f6bda4756e55:libmfxhw64.so.1).libmfx-gen.so.1.2).Package names were checked against the package indexes: Debian/Ubuntu
libmfx1/libmfx-gen1.2, Fedoraintel-mediasdk/intel-vpl-gpu-rt, Archintel-media-sdk/vpl-gpu-rt. The library SONAMEs were checked against the Debian, Fedora and Arch file lists.One change from the claim: "either runtime counts" applies only to TGL/RKL/DG1. The oneVPL runtime can't drive Skylake, so on a Skylake machine only the Media SDK counts (
test_qsv_skylake_with_only_onevpl).test/cmocka/test_profile_qsv.c(new file;test_profile_activate.cis unchanged). The local Tier 2 lane did not get that far: it stopped on an unrelatedlibobs/obs-encoder.c.hcompile error in my environment. A host build against the stub fails:12 FAILED TEST(S).[ PASSED ] 12 test(s)../lint: ok. PR CI's Tier 2 is the authoritative run.Tier 1 and Tier 3 don't apply (new frontend C code with no Rust port and no C original). Tier 4 waits for PR 2's run in the app. No features.md line until PR 2, which makes the change visible.