Skip to content

Conversation

@smuppand
Copy link
Contributor

@smuppand smuppand commented Dec 8, 2025

Summary

  • Extend WiFi_Firmware_Driver test to support ath10k in addition to ath11k.
  • Detect SoC from /proc/device-tree/model and pick appropriate firmware path dynamically.
  • Scan firmware under /lib/firmware/ath11k/ and /lib/firmware/ath10k/ and verify presence/size.
  • Check active ath10k/ath11k kernel modules via lsmod for stronger driver validation.
  • Use log_info / log_fail / log_pass flow for consistent functestlib-style logging and exits.

Testing

  • RB1 core kit: ath10k (WCN3990) – firmware detection and module checks PASS.
  • RB3/RB5 platforms: ath11k – regression check for existing ath11k flow PASS.

Extend firmware scan and driver checks to handle ath10k in addition to ath11k.
Detect SoC from DT model and choose appropriate firmware path dynamically.
Verify active ath10k/ath11k kernel modules via lsmod for stronger validation.
Switch to log_info/log_fail/log_pass flow for consistent functestlib usage.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

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

LGTM. I tested on all devices in the lab and all tests pass.

The only issue is the problem with functestlib.sh which wasn't changed here. Maybe it's a good idea to fix?

case "$basename" in
wpss.mbn)
log_info "Platform using wpss.mbn firmware (e.g., Kodiak - WPSS via remoteproc)"
if validate_remoteproc_running "wpss"; then
Copy link
Contributor

Choose a reason for hiding this comment

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

/lava-123035/0/tests/0_WiFi_Firmware_Driver/Runner/utils/functestlib.sh: line 1905: idx: command not found
https://lava.infra.foundries.io/scheduler/job/123035#L1948

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/lava-123035/0/tests/0_WiFi_Firmware_Driver/Runner/utils/functestlib.sh: line 1905: idx: command not found https://lava.infra.foundries.io/scheduler/job/123035#L1948

3bfcc6a This commit addresses the missing idx by moving to the self-index logic.

Rework get_remoteproc_path_by_firmware() to iterate firmware files
directly and read them without using cat. This avoids the bogus idx
arithmetic that caused "operand expected" errors while still allowing
callers to derive the remoteproc index from the returned path.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand smuppand requested a review from mwasilew December 8, 2025 12:32
@mwasilew mwasilew merged commit d7f9247 into qualcomm-linux:main Dec 8, 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.

2 participants