Skip to content

kmscube: support MSM/freedreno and KGSL/Adreno graphics stacks with debusine #512

Merged
Bhargav-qcom (bhargav0610) merged 3 commits into
qualcomm-linux:mainfrom
smuppand:distro_support
Jul 15, 2026
Merged

kmscube: support MSM/freedreno and KGSL/Adreno graphics stacks with debusine #512
Bhargav-qcom (bhargav0610) merged 3 commits into
qualcomm-linux:mainfrom
smuppand:distro_support

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

Extend the KMSCube testcase to validate both supported Qualcomm graphics configurations on Debian-based systems:

  • Upstream MSM DRM with Mesa/freedreno as the default mode
  • Qualcomm KGSL with proprietary Adreno userspace through --overlay

The testcase now manages the required package stack, validates the active GPU boot ownership, selects the correct EGL vendor, and safely handles DRM ownership before running KMSCube.

Add Debian package mappings for the Qualcomm graphics overlay and
upstream Mesa/freedreno base stack.

Add package-set verification and removal helpers to:
- avoid package-manager work when a set is already complete
- remove installed overlay packages when restoring the base stack
- validate package contents required by graphics backends
- report whether a package transition requires reboot

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add reusable helpers to:
- detect MSM/freedreno and KGSL GPU boot ownership
- identify unsafe KGSL reload failures
- validate the requested GPU boot mode
- remove stale KGSL boot configuration
- select the Mesa or Adreno GLVND EGL vendor
- stop and restore display-manager DRM ownership safely

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Extend the KMSCube test to support both graphics configurations:
- use upstream MSM/freedreno by default
- enable Qualcomm KGSL and Adreno with --overlay
- install or remove the required package sets
- request reboot when GPU ownership changes
- verify the Qualcomm GBM backend
- select the correct EGL vendor
- preserve native graphics handling on Yocto images
- release and restore DRM ownership around KMSCube
- retain modetest output for display diagnostics

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@bhargav0610
Bhargav-qcom (bhargav0610) merged commit f6f2e5a into qualcomm-linux:main Jul 15, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants