Skip to content

Conversation

@smuppand
Copy link
Contributor

Summary

This PR makes the Video_V4L2 runner self-sufficient with local media bundles and
ensures the upstream “base” pass remains clean (no custom .ko), while the
“overlay” pass can opt into downstream modules. The LAVA job is updated to use a
local clips tarball instead of Wi-Fi secrets/network fetches.

What’s changed

Runner (run.sh)

  • New opt-in flags to use locally supplied clips:
    • --clips-tar /path/to/video_clips_iris.tar.gz
    • --clips-dest /path/to/unpack/dir
      The bundle is extracted once (best-effort) and used for test inputs.
  • Preserves existing EXTRACT_INPUT_CLIPS semantics:
    • If --clips-tar is provided, we do not trigger network fetch.
    • If not provided and EXTRACT_INPUT_CLIPS=true, we fall back to fetch (existing behavior).
  • Enforces “base is clean”: no custom .ko arguments are used in the base pass.
  • “overlay” (downstream) may include --ko-dir/--ko-tree/--ko-tar --ko-prefer-custom.
  • Kodiak overlay still requires --downstream-fw (unchanged hard-gate).
  • No breaking changes: default behavior remains identical for existing callers.

LAVA job (Video_V4L2_With_Secrets.yaml)

  • Stop using Wi-Fi/LAVA secrets; pass a local bundle instead:
    • CLIPS_TAR=/data/vendor/iris_test_app/video_clips_iris.tar.gz
    • CLIPS_DEST=/data/vendor/iris_test_app/clips
  • Run base with only --clips-* (no KO flags).
  • Run overlay with --clips-* + --ko-dir /data/vendor/iris_test_app --ko-prefer-custom.
  • On Kodiak overlay add --downstream-fw /data/vendor/iris_test_app/vpu20_p1_gen2.mbn.
  • Keep platform selection (kodiak|lemans|monaco) with autodetect fallback.
  • Preserve result upload via utils/[send-to-lava.sh](http://send-to-lava.sh/) and optional roll-up.

Usage examples

Base (upstream), local clips only:

[run.sh](http://run.sh/) --stack base \
  --clips-tar /data/vendor/iris_test_app/video_clips_iris.tar.gz \
  --clips-dest /data/vendor/iris_test_app/clips

… keep base clean

- Add opt-in local media bundle handling:
  - --clips-tar /path/to/video_clips_iris.tar.gz
  - --clips-dest /path/to/unpack/dir
  If provided, runner extracts once (best-effort) and uses local clips.
- Preserve existing EXTRACT_INPUT_CLIPS semantics; network bring-up only
  happens when fetch is actually needed and no local bundle is supplied.
- Keep “base” (upstream) pass clean of any custom .ko handling; only
  overlay uses ko args when provided.
- Retain Kodiak downstream FW guard (--downstream-fw) and hard-gate
  stack validation (upstream vs downstream).
- No behavior change for existing callers: defaults remain intact.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
…e free of ko args

- Stop relying on Wi-Fi/LAVA secrets for clip fetch; pass local bundle:
  CLIPS_TAR=/data/vendor/iris_test_app/video_clips_iris.tar.gz
  CLIPS_DEST=/data/vendor/iris_test_app/clips
- Invoke run.sh twice:
  - BASE (upstream): add only --clips-* (no ko options)
  - OVERLAY (downstream): add --clips-* plus --ko-dir and --ko-prefer-custom
- On Kodiak overlay, include --downstream-fw to satisfy FW requirement.
- Keep platform flag conditional (kodiak|lemans|monaco) with autodetect fallback.
- Preserve result shipping via send-to-lava.sh and optional roll-up.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand smuppand requested a review from abbajaj806 October 30, 2025 05:06
Copy link

@quic-ggopal quic-ggopal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

Copy link
Contributor

@abbajaj806 abbajaj806 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abbajaj806 abbajaj806 merged commit 7915fd1 into qualcomm-linux:main Oct 30, 2025
8 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.

3 participants