Skip to content

FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check - #1535

Open
Mohis-12 wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
Mohis-12:Soundwire-port-exhaustion-fix
Open

Mohis-12 wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
Mohis-12:Soundwire-port-exhaustion-fix

Conversation

@Mohis-12

@Mohis-12 Mohis-12 commented Nov 25, 2026 •

Copy link
Copy Markdown

Qualcomm SoundWire master ports are indexed from 1, with bit 0 reserved. Commit 6ccec91 changed the exhaustion check from pn > maxport to pn >= maxport, incorrectly rejecting the last valid port. On RB3Gen2, the right WSA883x VISENSE port maps to master port 8, causing speaker playback to fail with -EBUSY. This change includes bit 0 in the bitmap search and restores the correct bounds check.
Lore: https://lore.kernel.org/linux-arm-msm/20261012-wip-obbardc-soundwire-qcom-fix-port-off-by-one-v1-1-81f1a4c9c73a@oss.qualcomm.com/
CRs-Fixed: 4759091

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

4 similar comments
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qlijarvis

Copy link
Copy Markdown

PR #1535 — validate-patch

PR: #1535

Verdict Issues Detailed Report
⚠️ 2 Full report

Final Summary

  1. Lore link present: Yes - https://lore.kernel.org/linux-arm-msm/20261012-wip-obbardc-soundwire-qcom-fix-port-off-by-one-v1-1-81f1a4c9c73a@oss.qualcomm.com/
  2. Lore link matches PR commits: Yes - diff content faithful to lore; context difference (ret/goto vs return) is legitimate adaptation to different base
  3. Upstream patch status: ⏳ In review - Reviewed-by from Srinivas Kandagatla (Oct 19, 2026) conditional on adding missing tags (Cc: stable, Reported-by:) and fixing incorrect speaker protection comment; no v2 posted yet
  4. PR present in qcom-next/topics: Yes - all 1 commit(s) are present in qcom-next or topics
Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #1535 - FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check
Upstream commit: https://lore.kernel.org/linux-arm-msm/20261012-wip-obbardc-soundwire-qcom-fix-port-off-by-one-v1-1-81f1a4c9c73a@oss.qualcomm.com/
Verdict: ⚠️ PARTIAL

Commit Message

Check Status Note
Subject matches upstream ✅ FROMLIST: prefix added correctly; base subject identical
Body preserves rationale ✅ Full commit message preserved verbatim
Fixes tag present/correct ✅ Fixes: 6ccec91c3535 matches lore patch exactly
Authorship preserved ✅ From: matches lore author (Christopher Obbard) - correct for FROMLIST:
Backport note (if applicable) N/A Not a backport; FROMLIST: patch
Link tag present ✅ Correct lore.kernel.org link added

Diff

File Status Notes
drivers/soundwire/qcom.c ✅ Changed lines identical; context differs (ret = -EBUSY; goto out; vs return -EBUSY;) due to different base commit - legitimate adaptation

Issues

  • ⚠️ Missing tags identified by upstream reviewer: Srinivas Kandagatla's review (Oct 19, 2026) noted that Cc: stable@vger.kernel.org and Reported-by: tags are missing. The reviewer granted Reviewed-by: conditional on fixing these.
  • ⚠️ Reviewer comment not addressed: The review also noted "This comment is incorrect, we do not have speaker protection enabled on any of the devices" regarding the commit message statement about speaker protection. The PR commit message was not updated to address this feedback.

Verdict

The patch faithfully represents the lore upstream diff. The commit message and authorship are correct. However, the PR was merged without addressing the reviewer's feedback: missing Cc: stable@vger.kernel.org and Reported-by: tags, and an incorrect statement about speaker protection. These should be addressed before the patch is sent upstream in a v2 revision.

Final Summary

  1. Lore link present: Yes - https://lore.kernel.org/linux-arm-msm/20261012-wip-obbardc-soundwire-qcom-fix-port-off-by-one-v1-1-81f1a4c9c73a@oss.qualcomm.com/
  2. Lore link matches PR commits: Yes - diff content faithful to lore; context difference (ret/goto vs return) is legitimate adaptation to different base
  3. Upstream patch status: ⏳ In review - Reviewed-by from Srinivas Kandagatla (Oct 19, 2026) conditional on adding missing tags (Cc: stable, Reported-by:) and fixing incorrect speaker protection comment; no v2 posted yet
  4. PR present in qcom-next/topics: Yes - present in topics (all added lines found); not yet in qcom-next

Deterministic Integration Presence

Integration Presence Report

This report is generated by Jarvis before validate-patch runs.
It is the authoritative source for whether PR changes are already present
in qcom-next or in the kernel topic branches.

Kernel repo: /local/mnt/workspace/sgaud/Qgenie/image_pipeline/kernel
qcom-next ref: 1843874b4356d1203ebd83d5ebfc24d45aa35f1d
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/1 [PATCH] FROMLIST: soundwire: qcom: Fix off-by-one error in port missing - no subject, patch-id, or full tree-content match found present - all checked added lines are present present

Final Status

overall_status: PASS
present_commits: 1/1
partial_commits: 0/1
missing_commits: 0/1
topics_checked_for_commits: 1/1
final_summary: PR present in qcom-next/topics: Yes - all 1 commit(s) are present in qcom-next or topics

@qlijarvis

Copy link
Copy Markdown

PR #1535 — checker-log-analyzer

PR: #1535
Checker run: https://github.com/qualcomm-linux/kernel-config/actions/runs/45583434078

Checker Result Summary
Checker Result Summary
checkpatch ❌ 2 warnings: unknown commit ID in commit body and Fixes tag
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ✅ Passed (valid FROMLIST prefix and Link tag)
tag-check ✅ Passed (commit has valid FROMLIST: prefix)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1535 - FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/45583434078

Checker Result Summary
checkpatch ❌ 2 warnings: unknown commit ID in commit body and Fixes tag
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed (no UAPI changes)
check-patch-compliance ✅ Passed (valid FROMLIST prefix and Link tag)
tag-check ✅ Passed (commit has valid FROMLIST: prefix)

❌ checkpatch

Root cause: The commit references an upstream commit SHA 6ccec91c3535 that doesn't exist in the current tree (qcom-6.18.y branch).

Failure details:

WARNING: Unknown commit id '6ccec91c3535', maybe rebased or not pulled?
#11: 
Commit 6ccec91c3535 ("soundwire: qcom: Fix port exhaustion check in

WARNING: Unknown commit id '6ccec91c3535', maybe rebased or not pulled?
#36: 
Fixes: 6ccec91c3535 ("soundwire: qcom: Fix port exhaustion check in stream_alloc_ports")

26ce6cc7843fa97dea25724750a847d40b23376a total: 0 errors, 2 warnings, 0 checks, 11 lines checked

Analysis:
This is a false positive — the commit 6ccec91c3535 exists in the upstream mainline tree but not in the qcom-6.18.y branch. This is expected behavior for FROMLIST: patches that reference upstream commits not yet merged into the vendor tree. The warnings appear because:

  1. The commit body mentions the upstream commit SHA in line ci : Dry run topic branch merge #11
  2. The Fixes: tag references the upstream commit SHA in line Qcom next #36

Fix: No action required. This is an acceptable warning for FROMLIST: patches that reference upstream commits. The commit SHA is valid in the upstream context where this patch will be applied.

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git 5dc357c152011cb06352e9dcd15b21f5bf1af578..26ce6cc7843fa97dea25724750a847d40b23376a

Verdict

Ready to merge. The checkpatch warnings are false positives expected for FROMLIST patches that reference upstream commits not yet in the vendor tree. All other checkers passed cleanly.

Qualcomm SoundWire master ports are indexed from 1, with bit 0 of
port_mask reserved. Valid port numbers therefore range from 1 to
maxport.

Commit 69f73ad ("soundwire: qcom: Fix port exhaustion check in
stream_alloc_ports") changed the port exhaustion check from
pn > maxport to pn >= maxport which rejects the last valid port.

On RB3gen2 (QCS6490), two WSA883x speaker amplifiers are connected
to swr2, which has 8 ports. Each amplifier uses one port for playback
and another for voltage and current sensing. The right amplifier's
VISENSE port is mapped to master port 8, which is rejected by the new
check.

Since all ports in a SoundWire stream are allocated together during
hw_params, this causes the stream to fail with:

    qcom-soundwire 3250000.soundwire: All ports busy

The codec DMA backend then returns -EBUSY, preventing speaker playback.
Disabling VISENSE works around the issue but also disables speaker
protection.

The original fix addressed an exhaustion check that could never
trigger because find_first_zero_bit() returns maxport when all
searched bits are set. Include the reserved bit 0 in the search so
exhaustion returns maxport + 1 and restore the pn > maxport check.

Link: https://lore.kernel.org/linux-arm-msm/20261012-wip-obbardc-soundwire-qcom-fix-port-off-by-one-v1-1-81f1a4c9c73a@oss.qualcomm.com/
Fixes: 69f73ad ("soundwire: qcom: Fix port exhaustion check in stream_alloc_ports")
Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
@Mohis-12
Mohis-12 force-pushed the Soundwire-port-exhaustion-fix branch from 26ce6cc to 607de7f Compare November 26, 2026 09:42
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No CR Numbers Found

Error: No Change Request numbers were found.

Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No Change Task Found

No associated change tasks found for CR 4759091 on any of the following entities:

Entities:

  • kernel.qli.2.0

CR: 4759091

Please ensure the CR has a change task associated with at least one of the entities for this branch.

@qcomlnxci

Copy link
Copy Markdown

Test results

Workflow run: 45845280911 attempt 1

Known failures configured: 54

Target Pass Non-pass Total
kbdev-hamoa-iot-evk-multimedia 29 7 36
kbdev-lemans-evk-multimedia 34 2 36
kbdev-monaco-evk-multimedia 33 3 36
kbdev-purwa-iot-evk-multimedia 29 7 36
kbdev-qcs615-ride-multimedia 28 8 36
kbdev-qcs6490-rb3gen2-multimedia 32 4 36
kbdev-qcs8300-ride-multimedia 30 6 36
kbdev-qcs9100-ride-r3-multimedia 29 7 36
kbdev-shikra-iqs-evk-multimedia 21 15 36

Test Matrix

Test Case kbdev-hamoa-iot-evk-multimedia kbdev-lemans-evk-multimedia kbdev-monaco-evk-multimedia kbdev-purwa-iot-evk-multimedia kbdev-qcs615-ride-multimedia kbdev-qcs6490-rb3gen2-multimedia kbdev-qcs8300-ride-multimedia kbdev-qcs9100-ride-r3-multimedia kbdev-shikra-iqs-evk-multimedia
LAVA result ✅ Results ✅ Results ✅ Results ✅ Results ✅ Results ✅ Results ✅ Results ✅ Results ✅ Results
Audio_Card_Registration ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip ✅ Pass ⚠️ skip ⚠️ skip ⚠️ skip
BT_FW_KMD_Service ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
BT_ON_OFF ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
BT_SCAN ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ❌ Fail
CPUFreq_Validation ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
CPU_affinity ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
DSP_AudioPD ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
Ethernet_Basic_Validation ⚠️ skip ✅ Pass ✅ Pass ⚠️ skip ⚠️ skip ⚠️ skip ⚠️ skip ❌ Fail ❌ Fail
Freq_Scaling ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
GIC ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ❌ Fail
IPA ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
Interrupts ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
KVM_Driver ❌ Fail ✅ Pass ✅ Pass ❌ Fail ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
KVM_EL2_DTB ❌ Fail ✅ Pass ✅ Pass ❌ Fail ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
KVM_Infra ❌ Fail ✅ Pass ✅ Pass ❌ Fail ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
OpenCV ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
PCIe ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ❌ Fail
Probe_Failure_Check ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail
RMNET ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
UFS_Validation ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
USBHost ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip ✅ Pass ✅ Pass ❌ Fail
WiFi_Firmware_Driver ✅ Pass ✅ Pass ❌ Fail ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
WiFi_OnOff ✅ Pass ✅ Pass ❌ Fail ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
adsp_remoteproc ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
cdsp_remoteproc ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
gpdsp_remoteproc ⚠️ skip ✅ Pass ✅ Pass ⚠️ skip ⚠️ skip ⚠️ skip ✅ Pass ✅ Pass ⚠️ skip
hotplug ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
irq ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
kaslr ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
pinctrl ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
qcom_hwrng ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
rngtest ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
shmbridge ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
smmu ❌ Fail ❌ Fail ✅ Pass ❌ Fail ❌ Fail ✅ Pass ✅ Pass ❌ Fail ✅ Pass
watchdog ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
wpss_remoteproc ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
Failure summary

Known failures

  • kbdev-hamoa-iot-evk-multimedia: gpdsp_remoteproc => skip.
  • kbdev-hamoa-iot-evk-multimedia: Probe_Failure_Check => fail.
  • kbdev-hamoa-iot-evk-multimedia: smmu => fail.
  • kbdev-hamoa-iot-evk-multimedia: Ethernet_Basic_Validation => skip.
  • kbdev-hamoa-iot-evk-multimedia: KVM_Driver => fail.
  • kbdev-hamoa-iot-evk-multimedia: KVM_EL2_DTB => fail.
  • kbdev-hamoa-iot-evk-multimedia: KVM_Infra => fail.
  • kbdev-lemans-evk-multimedia: Probe_Failure_Check => fail.
  • kbdev-lemans-evk-multimedia: smmu => fail.
  • kbdev-monaco-evk-multimedia: Probe_Failure_Check => fail.
  • kbdev-monaco-evk-multimedia: WiFi_Firmware_Driver => fail.
  • kbdev-monaco-evk-multimedia: WiFi_OnOff => fail.
  • kbdev-purwa-iot-evk-multimedia: gpdsp_remoteproc => skip.
  • kbdev-purwa-iot-evk-multimedia: Probe_Failure_Check => fail.
  • kbdev-purwa-iot-evk-multimedia: smmu => fail.
  • kbdev-purwa-iot-evk-multimedia: Ethernet_Basic_Validation => skip.
  • kbdev-purwa-iot-evk-multimedia: KVM_Driver => fail.
  • kbdev-purwa-iot-evk-multimedia: KVM_EL2_DTB => fail.
  • kbdev-purwa-iot-evk-multimedia: KVM_Infra => fail.
  • kbdev-qcs615-ride-multimedia: gpdsp_remoteproc => skip.
  • kbdev-qcs615-ride-multimedia: Probe_Failure_Check => fail.
  • kbdev-qcs615-ride-multimedia: smmu => fail.
  • kbdev-qcs615-ride-multimedia: Ethernet_Basic_Validation => skip.
  • kbdev-qcs615-ride-multimedia: Audio_Card_Registration => skip.
  • kbdev-qcs615-ride-multimedia: KVM_Driver => fail.
  • kbdev-qcs615-ride-multimedia: KVM_EL2_DTB => fail.
  • kbdev-qcs615-ride-multimedia: KVM_Infra => fail.
  • kbdev-qcs6490-rb3gen2-multimedia: gpdsp_remoteproc => skip.
  • kbdev-qcs6490-rb3gen2-multimedia: Probe_Failure_Check => fail.
  • kbdev-qcs6490-rb3gen2-multimedia: USBHost => skip.
  • kbdev-qcs6490-rb3gen2-multimedia: Ethernet_Basic_Validation => skip.
  • kbdev-qcs8300-ride-multimedia: Probe_Failure_Check => fail.
  • kbdev-qcs8300-ride-multimedia: Ethernet_Basic_Validation => skip.
  • kbdev-qcs8300-ride-multimedia: Audio_Card_Registration => skip.
  • kbdev-qcs8300-ride-multimedia: KVM_Driver => fail.
  • kbdev-qcs8300-ride-multimedia: KVM_EL2_DTB => fail.
  • kbdev-qcs8300-ride-multimedia: KVM_Infra => fail.
  • kbdev-qcs9100-ride-r3-multimedia: Probe_Failure_Check => fail.
  • kbdev-qcs9100-ride-r3-multimedia: smmu => fail.
  • kbdev-qcs9100-ride-r3-multimedia: Ethernet_Basic_Validation => fail.
  • kbdev-qcs9100-ride-r3-multimedia: Audio_Card_Registration => skip.
  • kbdev-qcs9100-ride-r3-multimedia: KVM_Driver => fail.
  • kbdev-qcs9100-ride-r3-multimedia: KVM_EL2_DTB => fail.
  • kbdev-qcs9100-ride-r3-multimedia: KVM_Infra => fail.
  • kbdev-shikra-iqs-evk-multimedia: adsp_remoteproc => skip.
  • kbdev-shikra-iqs-evk-multimedia: gpdsp_remoteproc => skip.
  • kbdev-shikra-iqs-evk-multimedia: GIC => fail.
  • kbdev-shikra-iqs-evk-multimedia: Probe_Failure_Check => fail.
  • kbdev-shikra-iqs-evk-multimedia: UFS_Validation => skip.
  • kbdev-shikra-iqs-evk-multimedia: PCIe => fail.
  • kbdev-shikra-iqs-evk-multimedia: USBHost => fail.
  • kbdev-shikra-iqs-evk-multimedia: Ethernet_Basic_Validation => fail.
  • kbdev-shikra-iqs-evk-multimedia: WiFi_OnOff => skip.
  • kbdev-shikra-iqs-evk-multimedia: DSP_AudioPD => skip.
  • kbdev-shikra-iqs-evk-multimedia: Audio_Card_Registration => skip.
  • kbdev-shikra-iqs-evk-multimedia: KVM_Driver => fail.
  • kbdev-shikra-iqs-evk-multimedia: KVM_EL2_DTB => fail.
  • kbdev-shikra-iqs-evk-multimedia: KVM_Infra => fail.

Unexpected failures

  • kbdev-shikra-iqs-evk-multimedia: BT_SCAN => fail.

Result: blocked because unexpected failures were found.

@qlijarvis

Copy link
Copy Markdown

LAVA Failed Case Triage Summary

PR: #1535

Job 295739 | SoC monaco-evk

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295739

Failed test cases in LAVA job 295739 (SoC: monaco-evk).

  Case 1: Probe_Failure_Check
  1. Failed case: Probe_Failure_Check
  2. Root cause: WiFi ath11k_pci driver probe failed with error -110 (ETIMEDOUT) due to MHI initialization timeout during WCN6855 WiFi chip power-up on monaco-evk; firmware load failures for regulatory.db and WiFi firmware (ath11k/WCN6855/hw2.1/nfa765/amss.bin) are symptoms of the underlying probe failure, not the root cause. BT firmware load failures are suppressed (known benign — BT_ON_OFF test passed).
  3. Possible fix: This is a pre-existing platform/firmware issue on monaco-evk, not introduced by PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 (which only modifies soundwire port allocation logic). The WiFi chip is not responding to MHI initialization within the expected timeout. Recommended actions: (1) Verify WCN6855 WiFi chip power/clock/reset sequencing in monaco-evk device tree; (2) Check if WiFi firmware files are present in rootfs at /lib/firmware/ath11k/WCN6855/hw2.1/nfa765/; (3) Increase MHI timeout if this is a known slow-boot scenario for this board; (4) Check PCIe link training status for 0000:01:00.0 before ath11k probe.
  4. Detail analysis attachment: failed_case_job295739_1_detailed.md
  Case 2: WiFi_Firmware_Driver
  1. Failed case: WiFi_Firmware_Driver
  2. Root cause: Missing WiFi firmware file ath11k/WCN6855/hw2.1/nfa765/amss.bin in rootfs causes MHI power-up timeout (-110) and ath11k_pci probe failure on Monaco EVK (WCN6855 hw2.1).
  3. Possible fix: Add the missing firmware file ath11k/WCN6855/hw2.1/nfa765/amss.bin to the rootfs at /lib/firmware/ and rebuild the test image. Verify firmware is present in linux-firmware package or board-specific firmware repository for Monaco/QCS8275 platform.
  4. Detail analysis attachment: failed_case_job295739_2_detailed.md
  Case 3: ** WiFi_OnOff — ath11k_pci driver probe failure
  1. Failed case: ** WiFi_OnOff — ath11k_pci driver probe failure
  2. Root cause: ** WCN6855 WiFi driver probe failed with -110 (ETIMEDOUT) because the required firmware file ath11k/WCN6855/hw2.1/nfa765/amss.bin is missing from the rootfs (/lib/firmware). The MHI bus controller timed out waiting for the firmware to load, causing the entire ath11k_pci probe sequence to fail. This is a pre-existing platform/image configuration issue on monaco-evk, not introduced by PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 (which modifies only SoundWire port allocation logic).
  3. Possible fix: Add the missing WCN6855 firmware files to the monaco-evk rootfs image. Specifically, ensure /lib/firmware/ath11k/WCN6855/hw2.1/nfa765/amss.bin and related board/regdb files are included in the Yocto build recipe or firmware package for monaco-evk. Verify the firmware package version matches the WCN6855 hw2.1 hardware revision detected on this board.
  4. Detail analysis attachment: failed_case_job295739_3_detailed.md
  Case 4: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: LAVA test suite reported 3 genuine test failures: (1) Probe_Failure_Check detected WiFi/BT firmware load failures and ath11k_pci probe failure with error -110 (ETIMEDOUT); (2) WiFi_Firmware_Driver test failed due to ath11k_pci probe failure; (3) WiFi_OnOff test failed due to the same ath11k_pci probe failure. The root cause is missing WiFi firmware file ath11k/WCN6855/hw2.1/nfa765/amss.bin on the monaco-evk target, causing MHI power-up timeout (-110) during ath11k_pci driver probe. This is a pre-existing board/firmware infrastructure issue, not introduced by PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 (which only modifies soundwire port allocation logic).
  3. Possible fix: Install the missing WiFi firmware file ath11k/WCN6855/hw2.1/nfa765/amss.bin in /lib/firmware/ on the monaco-evk rootfs image. Verify the firmware package version includes support for WCN6855 hw2.1 nfa765 variant. Re-trigger the CI job after updating the rootfs image with the correct firmware files.
  4. Detail analysis attachment: failed_case_job295739_4_detailed.md
Job 295740 | SoC qcs615-ride

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295740

Failed test cases in LAVA job 295740 (SoC: qcs615-ride).

  Case 1: Probe_Failure_Check — cfg80211 regulatory.db firmware load failure (known benign)
  1. Failed case: Probe_Failure_Check — cfg80211 regulatory.db firmware load failure (known benign)
  2. Root cause: The cfg80211 wireless subsystem attempted to load the optional regulatory.db firmware file during initialization and failed with -ENOENT (error -2, file not found). This is a known benign failure because: (1) regulatory.db is optional — cfg80211 falls back to built-in X.509-signed regulatory rules when the file is absent, (2) WiFi functionality is unaffected — both WiFi_Firmware_Driver and WiFi_OnOff tests passed, confirming ath11k WiFi driver loaded successfully and WiFi interface is operational, and (3) the failure is unrelated to PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 which only modifies SoundWire port allocation logic in drivers/soundwire/qcom.c.
  3. Possible fix: Suppress this failure in the Probe_Failure_Check test logic by adding a known-benign pattern for "regulatory: Direct firmware load for regulatory.db failed with error -2" when WiFi functional tests pass. No kernel changes required — this is a test infrastructure false positive that should be filtered at the CI level.
  4. Detail analysis attachment: failed_case_job295740_1_detailed.md
  Case 2: smmu
  1. Failed case: smmu
  2. Root cause: Test validation issue — the smmu test expects video codec child devices (video-decoder, video-encoder) to have individual IOMMU group sysfs entries, but these are virtual devices that inherit IOMMU protection from their parent device (aa00000.video-codec, correctly attached to IOMMU group 7). No actual SMMU/IOMMU kernel errors are present.
  3. Possible fix: Update the smmu test script to recognize that video codec child devices inherit IOMMU protection from their parent and should not be expected to have separate /sys/kernel/iommu_groups entries. The test should validate parent device attachment only for multi-instance codec drivers.
  4. Detail analysis attachment: failed_case_job295740_2_detailed.md
  Case 3: KVM Driver Initialization Failure — Platform Architecture Limitation
  1. Failed case: KVM Driver Initialization Failure — Platform Architecture Limitation
  2. Root cause: QCS615 Ride runs as Primary VM under Gunyah hypervisor at EL1; KVM requires EL2/HYP mode access for nested virtualization which is owned by Gunyah, causing KVM initialization to abort with "HYP mode not available" and preventing /dev/kvm creation.
  3. Possible fix: This is not a kernel bug or PR-introduced regression. The test expectation is incorrect for this platform configuration. Either: (1) Skip KVM tests on Gunyah-based platforms where nested virtualization is not supported, or (2) Update the test to report SKIP instead of FAIL when running under a hypervisor that owns EL2.
  4. Detail analysis attachment: failed_case_job295740_3_detailed.md
  Case 4: ** KVM_EL2_DTB — Platform Configuration Issue (EL1 Boot)
  1. Failed case: ** KVM_EL2_DTB — Platform Configuration Issue (EL1 Boot)
  2. Root cause: ** The QCS615 Ride platform boots Linux at EL1 (kernel mode) instead of EL2 (hypervisor mode), as evidenced by "CPU: All CPU(s) started at EL1" and "kvm [1]: HYP mode not available" at boot time; KVM requires EL2 to create /dev/kvm and function.
  3. Possible fix: This is a pre-existing platform/bootloader configuration limitation on qcs615-ride, not a kernel regression; the test should be skipped on platforms that do not support EL2 boot, or the bootloader/firmware must be reconfigured to boot Linux in EL2 mode if virtualization support is required.
  4. Detail analysis attachment: failed_case_job295740_4_detailed.md
  Case 5: ** KVM_Infra (and related: KVM_Driver, KVM_EL2_DTB)
  1. Failed case: ** KVM_Infra (and related: KVM_Driver, KVM_EL2_DTB)
  2. Root cause: ** The qcs615-ride platform firmware boots the Linux kernel into EL1 (kernel mode) instead of EL2 (hypervisor mode). KVM on ARM64 requires EL2 to initialize and create the /dev/kvm device node. The kernel correctly reports kvm [1]: HYP mode not available at boot (line 3048), and all KVM tests fail with /dev/kvm is not present because the hardware/firmware does not provide hypervisor mode support.
  3. Possible fix: This is a pre-existing platform limitation, not a regression introduced by the PR (which only modifies SoundWire driver code). To enable KVM on qcs615-ride: (1) Update the bootloader/firmware to boot the kernel into EL2, or (2) Use a hypervisor shim (e.g., Xen, KVM-on-KVM) that provides EL2 context, or (3) Mark KVM tests as "not applicable" for qcs615-ride in the LAVA test suite configuration.
  4. Detail analysis attachment: failed_case_job295740_5_detailed.md
  Case 6: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM device node /dev/kvm is not available because the QCS615 platform does not have EL2 hypervisor mode enabled — kernel reports "kvm [1]: HYP mode not available" during boot, preventing KVM initialization.
  3. Possible fix: This is a pre-existing platform limitation, not a PR-introduced regression (PR modifies SoundWire driver only). To enable KVM on QCS615: (1) verify bootloader/firmware supports EL2 mode and has not disabled hypervisor extensions, (2) ensure device tree does not contain properties that disable virtualization, (3) if hardware supports it, update firmware to enable EL2, otherwise mark KVM tests as expected-fail for this platform.
  4. Detail analysis attachment: failed_case_job295740_6_detailed.md
Job 295741 | SoC lemans-evk

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295741

Failed test cases in LAVA job 295741 (SoC: lemans-evk).

  Case 1: Probe_Failure_Check
  1. Failed case: Probe_Failure_Check
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: (1) Add reboot-mode NVMEM cell to lemans-evk device tree PMIC/SRAM NVMEM provider node; (2) Include regulatory.db firmware in rootfs image build recipe (optional, non-critical). Both issues are pre-existing and unrelated to the SoundWire port allocation fix in PR1535.
  4. Detail analysis attachment: failed_case_job295741_1_detailed.md
  Case 2: smmu
  1. Failed case: smmu
  2. Root cause: Video codec device aa00000.video-codec is not attached to any IOMMU group on lemans-evk (SA8775P), failing the SMMU test's critical master protection check. This is a pre-existing platform/device-tree configuration issue unrelated to the PR (which modifies SoundWire audio driver code).
  3. Possible fix: Add IOMMU domain binding for the video codec device in the lemans-evk device tree (arch/arm64/boot/dts/qcom/sa8775p*.dtsi or lemans*.dts), or update the SMMU test to exclude video codec from critical master checks on platforms where it is not IOMMU-protected by design.
  4. Detail analysis attachment: failed_case_job295741_2_detailed.md
  Case 3: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: LAVA test infrastructure issue — the test suite completed all individual test cases successfully (including the 4 tests listed in result_parse.sh: CPU_affinity, Freq_Scaling, irq, smmu), but LAVA marked the overall test definition as failed because the result_parse.sh script listed .res files without sending corresponding LAVA_SIGNAL_TESTCASE signals for them, triggering LAVA's "Marking unfinished test run as failed" logic.
  3. Possible fix: This is a false failure caused by LAVA test harness behavior, not a kernel regression. The PR changes (soundwire port allocation fix) are unrelated to this LAVA infrastructure issue. Re-trigger the CI job; if the issue persists, investigate the result_parse.sh script logic to ensure it either (1) does not list already-completed tests, or (2) sends proper LAVA signals for any tests it lists.
  4. Detail analysis attachment: failed_case_job295741_3_detailed.md
Job 295742 | SoC qcs9100-ride

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295742

Failed test cases in LAVA job 295742 (SoC: qcs9100-ride).

  Case 1: Probe_Failure_Check — Driver probe and firmware load failures
  1. Failed case: Probe_Failure_Check — Driver probe and firmware load failures
  2. Root cause: Three pre-existing platform issues unrelated to the PR: (1) nvmem-reboot-mode driver deferred probe due to missing nvmem cell in device tree, (2) cfg80211 regulatory.db firmware file missing from rootfs (benign — regulatory domain falls back to built-in certs), and (3) Aquantia AQR115C ethernet PHY probe failure due to missing firmware-name property in device tree (error -22 = -EINVAL). None of these failures are introduced by PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535, which only modifies SoundWire port allocation logic in drivers/soundwire/qcom.c.
  3. Possible fix: These are known platform configuration issues on qcs9100-ride, not regressions. No action required for this PR. To silence the test: (1) add the missing nvmem cell reboot-mode to the qcs9100-ride device tree under the nvmem node, (2) ensure regulatory.db is included in the rootfs (or accept the fallback behavior), and (3) add the firmware-name property to the Aquantia PHY node in the device tree or accept that this PHY requires board-specific firmware configuration not yet upstreamed for qcs9100-ride.
  4. Detail analysis attachment: failed_case_job295742_1_detailed.md
  Case 2: smmu
  1. Failed case: smmu
  2. Root cause: Video codec device aa00000.video-codec is missing IOMMU group attachment on qcs9100-ride platform; the device tree node lacks the required iommus property to bind the video codec master to the SMMU, while its child devices (iris_non_pixel.0, iris_pixel.0) are correctly attached to IOMMU groups 28 and 29.
  3. Possible fix: Add the missing iommus property to the aa00000.video-codec device tree node in arch/arm64/boot/dts/qcom/qcs9100.dtsi to bind the video codec to the appropriate SMMU context bank; verify the fix by confirming the device appears in /sys/kernel/iommu_groups after reboot.
  4. Detail analysis attachment: failed_case_job295742_2_detailed.md
  Case 3: Driver Probe Failure — Ethernet_Basic_Validation
  1. Failed case: Driver Probe Failure — Ethernet_Basic_Validation
  2. Root cause: Aquantia AQR115C PHY driver probe fails with -EINVAL during boot because the device tree node for the PHY (stmmac-0:08) is missing the required firmware-name property; when the Ethernet test attempts to bring up interface end0, the qcom-ethqos MAC driver cannot attach to the PHY because the PHY device never successfully probed and is not available in the PHY subsystem.
  3. Possible fix: Add the firmware-name property to the Aquantia AQR115C PHY device tree node in the qcs9100-ride device tree, specifying the correct firmware file path (typically "Rhe-05.06-Candidate9-AQR_Mediatek_23B_P5_ID45824_LCLVER1.cld" or similar for AQR115C); alternatively, if firmware loading is not required for this PHY configuration, modify the PHY driver probe to make the firmware-name property optional rather than mandatory.
  4. Detail analysis attachment: failed_case_job295742_3_detailed.md
  Case 4: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: This is not a kernel bug or test infrastructure issue - it's a platform configuration characteristic. To enable KVM on qcs9100-ride: (1) verify bootloader/firmware configuration to ensure the kernel boots at EL2 or with VHE (Virtualization Host Extensions) enabled, (2) if a hypervisor (e.g., Gunyah) is running at EL2, enable nested virtualization support, or (3) if this platform is not intended to support KVM, mark the KVM_Driver test as "not applicable" for qcs9100-ride in the LAVA test suite configuration to prevent false failures.
  4. Detail analysis attachment: failed_case_job295742_4_detailed.md
  Case 5: KVM_EL2_DTB
  1. Failed case: KVM_EL2_DTB
  2. Root cause: qcs9100-ride platform does not have ARM HYP (EL2) mode available; kernel message kvm [1]: HYP mode not available indicates firmware/bootloader did not enable EL2 before Linux boot, preventing KVM initialization and /dev/kvm creation.
  3. Possible fix: This is a pre-existing platform configuration issue, not a kernel regression. To enable KVM on qcs9100-ride: (1) verify the SoC supports EL2 in hardware, (2) update firmware/bootloader (ABL/XBL) to enable EL2 and boot Linux at EL2 or with EL2 access, (3) confirm device tree does not disable virtualization. If qcs9100 does not support EL2 in hardware, mark KVM tests as "not applicable" for this platform in CI.
  4. Detail analysis attachment: failed_case_job295742_5_detailed.md
  Case 6: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM cannot initialize because the qcs9100-ride platform is running under the Gunyah hypervisor at EL2, leaving the Linux kernel at EL1 without access to HYP mode. The kernel message "kvm [1]: HYP mode not available" confirms EL2 is not accessible to the kernel. CONFIG_KVM is enabled but /dev/kvm cannot be created without EL2 access.
  3. Possible fix: This is not a PR-introduced regression (the PR modifies only SoundWire driver code). KVM tests are not applicable to this platform configuration. Either: (1) exclude KVM tests from the qcs9100-ride LAVA job definition when running under Gunyah hypervisor, or (2) use a bare-metal boot configuration (no Gunyah) if KVM functionality is required for testing.
  4. Detail analysis attachment: failed_case_job295742_6_detailed.md
  Case 7: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM infrastructure test failed because HYP (Hypervisor) mode is not available on the qcs9100-ride platform, preventing /dev/kvm device node creation despite CONFIG_KVM being enabled in the kernel configuration.
  3. Possible fix: This is a pre-existing platform limitation, not a PR-introduced regression. The PR changes only affect SoundWire port allocation logic and are unrelated to KVM/virtualization. Either: (1) skip KVM tests on platforms without HYP mode support, or (2) enable HYP mode in the platform firmware/bootloader configuration if the hardware supports it.
  4. Detail analysis attachment: failed_case_job295742_7_detailed.md
Job 295743 | SoC qcs6490-rb3gen2

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295743

Failed test cases in LAVA job 295743 (SoC: qcs6490-rb3gen2).

  Case 1: Probe_Failure_Check
  1. Failed case: Probe_Failure_Check
  2. Root cause: The test detected a benign firmware load failure for regulatory.db (WiFi regulatory database) during early boot. This is a false positive — WiFi functionality is confirmed working as evidenced by the WiFi_OnOff test passing. The "faux_driver" prefix in the kernel message is a formatting artifact from the firmware loader subsystem when attempting to load the regulatory database file, which is optional and not required for WiFi operation on qcs6490-rb3gen2.
  3. Possible fix: Suppress this failure as a known benign false positive per LAVA suppression Rule 2 (WiFi firmware load failure when WiFi ON/OFF test passes). The Probe_Failure_Check test should be updated to exclude regulatory.db firmware load failures from its failure criteria, or to cross-check with WiFi_OnOff test results before reporting failure.
  4. Detail analysis attachment: failed_case_job295743_1_detailed.md
  Case 2: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: LAVA test framework marked the test run as "unfinished" despite successful completion of all test cases and proper LAVA_TEST_RUNNER EXIT signal, likely due to a race condition or signal parsing issue in the LAVA dispatcher's test completion detection logic.
  3. Possible fix: Re-trigger the CI job; if the issue persists, investigate the LAVA test definition's signal handling and ensure the test runner's exit sequence properly synchronizes with LAVA's completion detection mechanism.
  4. Detail analysis attachment: failed_case_job295743_2_detailed.md
Job 295744 | SoC hamoa-evk

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295744

Failed test cases in LAVA job 295744 (SoC: hamoa-evk).

  Case 1: Probe_Failure_Check
  1. Failed case: Probe_Failure_Check
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Update the Probe_Failure_Check test to suppress known benign failures: add qcom_qseecom_uefisecapp -EBUSY to the platform-specific suppression list for hamoa-evk, and apply the existing WiFi firmware suppression rule (regulatory.db failure is benign when WiFi_OnOff passes). The PR itself (SoundWire port allocation fix) is not related to these failures and should proceed.
  4. Detail analysis attachment: failed_case_job295744_1_detailed.md
  Case 2: smmu (test expectation mismatch — not a kernel issue)
  1. Failed case: smmu (test expectation mismatch — not a kernel issue)
  2. Root cause: The smmu test incorrectly expects the parent video codec device (aa00000.video-codec) to be directly attached to an IOMMU group, but the Iris video driver architecture uses child devices (iris_non_pixel.0, iris_pixel.0) as the actual DMA masters, which ARE correctly attached to IOMMU groups 16 and 17. This is a valid kernel driver pattern. No SMMU or IOMMU errors exist in the kernel log.
  3. Possible fix: Update the smmu test to recognize that some drivers (like qcom-iris) use child devices for DMA operations. The test should check for IOMMU group attachment at the child device level when the parent device is a logical container. Alternatively, mark aa00000.video-codec as a known exception in the test's critical master list since its children handle the actual DMA.
  4. Detail analysis attachment: failed_case_job295744_2_detailed.md
  Case 3: ** KVM_Driver (Platform Hardware Limitation)
  1. Failed case: ** KVM_Driver (Platform Hardware Limitation)
  2. Root cause: ** hamoa-evk platform does not support ARM Virtualization Extensions (EL2/HYP mode). KVM driver initialization failed at boot with "HYP mode not available", preventing /dev/kvm device creation. This is a pre-existing hardware limitation, not a kernel regression or PR-introduced issue.
  3. Possible fix: Mark KVM tests as "not applicable" or "skip" for hamoa-evk platform in the LAVA test suite configuration. Alternatively, exclude hamoa-evk from KVM test runs since the hardware does not support virtualization. This is not a code fix — the platform physically lacks the required CPU feature.
  4. Detail analysis attachment: failed_case_job295744_3_detailed.md
  Case 4: KVM_EL2_DTB
  1. Failed case: KVM_EL2_DTB
  2. Root cause: KVM driver initialization failed because the hamoa-evk platform does not provide EL2 (hypervisor mode) support. The kernel message "kvm [1]: HYP mode not available" at boot (6.625536s) indicates the CPU is running at EL1 without virtualization extensions enabled or available, preventing /dev/kvm device creation.
  3. Possible fix: This is a platform configuration issue, not a kernel regression. The PR (SoundWire audio driver fix) is unrelated. To enable KVM on hamoa-evk: (1) verify the SoC variant supports ARM virtualization extensions, (2) configure the bootloader/firmware to boot the kernel at EL2 or enable VHE (Virtualization Host Extensions), (3) if a proprietary hypervisor is present, KVM cannot be used in the primary kernel. If KVM is not required for this platform's CI testing, mark these tests as expected-fail or skip them in the LAVA job definition for hamoa-evk.
  4. Detail analysis attachment: failed_case_job295744_4_detailed.md
  Case 5: ** KVM Infrastructure Test Failure — Platform Does Not Support Virtualization
  1. Failed case: ** KVM Infrastructure Test Failure — Platform Does Not Support Virtualization
  2. Root cause: ** The hamoa-evk (IQ-X7181) platform does not support ARM virtualization (EL2/HYP mode). KVM initialization at boot detected this and reported "HYP mode not available" (line 3734). CONFIG_KVM is enabled in the kernel, but the hardware/firmware does not provide EL2 hypervisor mode, which is a mandatory prerequisite for KVM on ARM64. This is a platform hardware/firmware limitation, not a kernel bug.
  3. Possible fix: Disable KVM tests for hamoa-evk in the LAVA test suite configuration, as this platform does not support ARM virtualization. Add hamoa-evk to the platform exclusion list for all KVM/virtualization test cases (KVM_Driver, KVM_EL2_DTB, KVM_Infra).
  4. Detail analysis attachment: failed_case_job295744_5_detailed.md
  Case 6: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM subsystem initialization failed because HYP (Hypervisor) mode is not available on the Hamoa IoT EVK platform. The kernel message kvm [1]: HYP mode not available indicates the CPU is not running in EL2 (Exception Level 2) or the firmware/bootloader did not enable virtualization extensions, preventing /dev/kvm device node creation.
  3. Possible fix: This is a platform/firmware limitation, not a kernel regression introduced by the PR (which only modifies SoundWire driver code). The Hamoa IoT EVK board either lacks hardware virtualization support or requires firmware/bootloader configuration to enable EL2/HYP mode. If KVM support is required for this platform, update the bootloader/firmware to boot the kernel in EL2 mode; otherwise, exclude KVM tests from the Hamoa test suite as the platform does not support virtualization.
  4. Detail analysis attachment: failed_case_job295744_6_detailed.md
Job 295745 | SoC shikra-iqs-evk

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295745

Failed test cases in LAVA job 295745 (SoC: shikra-iqs-evk).

  Case 1: GIC
  1. Failed case: GIC
  2. Root cause: Test infrastructure bug — the GIC test script hardcodes an assumption of 8 CPUs and attempts to parse timer interrupt counts for CPUs 4-7 from /proc/interrupts, but shikra-iqs-evk only has 4 CPUs (0-3). When parsing non-existent CPU columns, the script encounters non-numeric fields ("GICv3", "Level", "arch_timer") and fails with bash integer comparison errors at line 75.
  3. Possible fix: Update the GIC test script to dynamically detect the number of online CPUs using nproc or /sys/devices/system/cpu/online instead of hardcoding 8 CPUs. The script should only validate timer counts for CPUs that actually exist on the platform.
  4. Detail analysis attachment: failed_case_job295745_1_detailed.md
  Case 2: Probe_Failure_Check
  1. Failed case: Probe_Failure_Check
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: These are known benign failures for shikra-iqs-evk CI environment. To resolve: (1) Add missing firmware files (ccg_secondary.cyacd2, regulatory.db) to rootfs, (2) Fix tpm_tis_spi DT node or disable if not required, (3) Fix sound DT nodes to provide correct cpu dai name and mclk clock references. However, since these failures are pre-existing and unrelated to the PR, no action required for PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 merge. The PR correctly fixes a SoundWire port allocation bug and does not introduce or worsen these probe failures.
  4. Detail analysis attachment: failed_case_job295745_2_detailed.md
  Case 3: PCIe
  1. Failed case: PCIe
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Add the missing QPS615 dependencies to the shikra-iqs-evk test image: (1) include firmware file TC956X_Firmware_PCIeBridge.bin in the rootfs /lib/firmware directory (source from vendor or linux-firmware repository), and (2) enable CONFIG_TC956X_PCIE_ETH in the kernel config and ensure the module is included in the test image. Re-trigger the CI job after updating the image build recipe.
  4. Detail analysis attachment: failed_case_job295745_3_detailed.md
  Case 4: ** USBHost — USB Host Controller Driver Initialization Failure
  1. Failed case: ** USBHost — USB Host Controller Driver Initialization Failure
  2. Root cause: ** USB host controller drivers (dwc3-qcom, xhci-plat-hcd) and USB PHY drivers never probe on shikra-iqs-evk; no USB root hubs are created; system defaults to USB gadget mode; likely cause is missing Type-C port controller driver (e.g., PTN36502) or USB drivers not built/loaded, preventing USB role configuration and host mode initialization.
  3. Possible fix: Verify kernel config enables CONFIG_USB_DWC3_QCOM=y, CONFIG_USB_XHCI_PLATFORM=y, CONFIG_PHY_QCOM_QUSB2=y, CONFIG_PHY_QCOM_QMP_COMBO=y, and Type-C mux/switch drivers (CONFIG_TYPEC_MUX_PTN36502=y or similar for shikra-iqs-evk); if built as modules, ensure they are loaded in initramfs; check device tree for disabled USB nodes or missing Type-C port controller configuration; this is a board bring-up issue unrelated to the SoundWire patch in PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535.
  4. Detail analysis attachment: failed_case_job295745_4_detailed.md
  Case 5: Ethernet_Basic_Validation
  1. Failed case: Ethernet_Basic_Validation
  2. Root cause: Network infrastructure issue — eth1 interface successfully initialized with link up (1000Mb/s full duplex), obtained IP address 10.143.232.43, but ping to gateway 10.143.232.1 fails with 100% packet loss across 3 attempts (12 packets transmitted, 0 received). The Ethernet driver (qcom-ethqos/st_gmac) initialized correctly with no kernel errors. This is a Layer 3 connectivity failure, not a kernel or driver issue.
  3. Possible fix: Verify LAVA lab network infrastructure for shikra-iqs-evk board — check physical network connectivity to gateway 10.143.232.1, verify switch/router configuration, check for firewall rules blocking ICMP, and confirm the gateway is reachable from the lab network segment. This is a pre-existing infrastructure issue unrelated to PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 (which only modifies SoundWire driver code).
  4. Detail analysis attachment: failed_case_job295745_5_detailed.md
  Case 6: BT_SCAN (Test Infrastructure Limitation)
  1. Failed case: BT_SCAN (Test Infrastructure Limitation)
  2. Root cause: Bluetooth scan test failed because no discoverable Bluetooth devices were present in the LAVA test environment during the 3 scan attempts (15 seconds each). The Bluetooth stack is fully functional (BT_ON_OFF passed), and the PR changes to the SoundWire driver are unrelated to Bluetooth functionality.
  3. Possible fix: This is not a kernel regression. The test requires nearby Bluetooth devices to be discoverable. Options: (1) Add a known Bluetooth beacon/device to the shikra-iqs-evk test environment, (2) Mark BT_SCAN as optional/informational when no target device is configured, or (3) Re-run the test when Bluetooth devices are available in the lab environment.
  4. Detail analysis attachment: failed_case_job295745_6_detailed.md
  Case 7: ** KVM_Driver — Hypervisor Mode Unavailable (Platform Configuration)
  1. Failed case: ** KVM_Driver — Hypervisor Mode Unavailable (Platform Configuration)
  2. Root cause: ** Shikra IQS EVK boots with Gunyah hypervisor occupying EL2, preventing KVM from initializing. KVM requires exclusive EL2 access to create virtual machines, but Gunyah is already running at EL2, causing kvm [1]: HYP mode not available during driver probe. This is a platform firmware/bootloader configuration, not a kernel regression.
  3. Possible fix: This is not a kernel bug. To enable KVM on Shikra IQS EVK, disable Gunyah hypervisor in the bootloader/firmware configuration and reboot. Alternatively, mark KVM tests as "not applicable" for Gunyah-enabled platforms in the CI test matrix, since KVM and Gunyah cannot coexist.
  4. Detail analysis attachment: failed_case_job295745_7_detailed.md
  Case 8: KVM_EL2_DTB (and KVM_Driver, KVM_Infra - same root cause)
  1. Failed case: KVM_EL2_DTB (and KVM_Driver, KVM_Infra - same root cause)
  2. Root cause: KVM subsystem initialization failed during kernel boot because EL2 (Hypervisor mode) is not available on the Shikra IQS EVK platform. The kernel message "kvm [1]: HYP mode not available" at boot time (3.16s) indicates the CPU is not running at EL2 or EL2 access is blocked by firmware/bootloader configuration. Without EL2, /dev/kvm cannot be created and all KVM functionality is unavailable.
  3. Possible fix: This is a platform configuration issue, not a kernel regression. The PR (SoundWire audio driver fix) is unrelated. To enable KVM on Shikra IQS EVK: (1) Verify the bootloader/UEFI firmware is configured to boot Linux at EL2 (not EL1); (2) Check if a hypervisor is already running at EL2 and preventing Linux KVM access; (3) If KVM is not supported on this platform variant, mark these tests as expected-fail or skip them in the CI configuration for shikra-iqs-evk.
  4. Detail analysis attachment: failed_case_job295745_8_detailed.md
  Case 9: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: This is a board/firmware configuration issue, not a kernel regression. The shikra-iqs-evk bootloader must be configured to boot the kernel at EL2. If EL2 boot is not supported by the platform firmware, KVM tests should be skipped for this board in CI. The PR patch (soundwire port allocation fix) is unrelated and does not cause this failure.
  4. Detail analysis attachment: failed_case_job295745_9_detailed.md
  Case 10: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: The shikra-iqs-evk platform does not support EL2 (Hypervisor Exception Level), which is required for KVM on ARM64; kernel logs "kvm [1]: HYP mode not available" at boot, preventing /dev/kvm device creation.
  3. Possible fix: Update the LAVA job definition to skip KVM tests on shikra-iqs-evk, or modify the KVM test scripts to report SKIP (not FAIL) when dmesg contains "HYP mode not available" — this is a hardware platform limitation, not a kernel bug.
  4. Detail analysis attachment: failed_case_job295745_10_detailed.md
Job 295747 | SoC qcs8300-ride

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295747

Failed test cases in LAVA job 295747 (SoC: qcs8300-ride).

  Case 1: Probe_Failure_Check — False Positive (cfg80211 regulatory.db)
  1. Failed case: Probe_Failure_Check — False Positive (cfg80211 regulatory.db)
  2. Root cause: The Probe_Failure_Check test flagged a benign cfg80211 regulatory database firmware load failure message ("faux_driver regulatory: Direct firmware load for regulatory.db failed with error -2"). This is a false positive because: (1) the regulatory.db file is optional for cfg80211 operation and cfg80211 falls back to built-in regulatory rules when the file is absent, (2) WiFi functionality was verified working (WiFi_Firmware_Driver and WiFi_OnOff tests both PASSED), and (3) "faux_driver" appears to be a test artifact or placeholder driver name, not a genuine driver failure.
  3. Possible fix: Update the Probe_Failure_Check test to suppress this known benign failure pattern by adding a suppression rule: if the failure message matches "regulatory: Direct firmware load for regulatory.db failed" AND WiFi functional tests (WiFi_Firmware_Driver, WiFi_OnOff) pass, classify as benign and do not fail the test. Alternatively, ensure regulatory.db is included in the test rootfs if strict firmware presence validation is required.
  4. Detail analysis attachment: failed_case_job295747_1_detailed.md
  Case 2: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: KVM device node /dev/kvm is not present despite CONFIG_KVM being enabled in the kernel configuration. The KVM ARM64 driver failed to initialize or create the /dev/kvm character device during boot on the qcs8300-ride (QCS8300 Monaco) platform, preventing KVM virtualization functionality.
  3. Possible fix: Investigate why KVM ARM64 driver initialization failed on qcs8300-ride by checking boot logs for KVM-related error messages (e.g., "kvm", "arm64", "EL2", "VHE"). Verify that the platform supports EL2/hypervisor mode and that firmware/bootloader has not disabled virtualization extensions. If the platform does not support KVM, mark the KVM test suite as not applicable for qcs8300-ride in the CI test matrix.
  4. Detail analysis attachment: failed_case_job295747_2_detailed.md
  Case 3: KVM_EL2_DTB
  1. Failed case: KVM_EL2_DTB
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Verify QCS8300 hardware supports ARM virtualization extensions and EL2 is enabled in firmware/bootloader. Check for missing KVM driver initialization messages in early boot log (search for "kvm" or "Hyp mode initialized"). If hardware supports virtualization, enable CONFIG_ARM64_VHE=y and CONFIG_KVM_ARM_HOST=y in kernel config. If the platform does not support hardware virtualization, mark KVM tests as expected failures for this SoC in the CI test matrix.
  4. Detail analysis attachment: failed_case_job295747_3_detailed.md
  Case 4: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM device node /dev/kvm is not available because the QCS8300 Ride platform is running Linux as a guest under the Gunyah Type-1 hypervisor (version gunyah-3fe287d48), which does not support nested virtualization. KVM (a Type-2 hypervisor) requires direct access to EL2 hardware virtualization extensions, which are already claimed by Gunyah.
  3. Possible fix: Exclude KVM-related tests (KVM_Driver, KVM_EL2_DTB, KVM_Infra) from the LAVA test suite for QCS8300 Ride and other Gunyah-based platforms, or run these tests only on bare-metal configurations where Linux boots directly at EL1 without a Type-1 hypervisor. Alternatively, if nested virtualization support is added to Gunyah in the future, enable it in the hypervisor configuration.
  4. Detail analysis attachment: failed_case_job295747_4_detailed.md
  Case 5: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: LAVA test definition marked as failed due to 4 individual test failures (Probe_Failure_Check, KVM_Driver, KVM_EL2_DTB, KVM_Infra); the test runner completed successfully but LAVA aggregates individual test results into the overall definition result.
  3. Possible fix: Address the individual test failures: (1) Probe_Failure_Check failed due to missing regulatory.db firmware file (benign - not PR-related); (2) KVM tests failed because /dev/kvm device node is not present despite CONFIG_KVM being enabled (pre-existing platform/hypervisor configuration issue - not PR-related). The PR changes only affect SoundWire driver port allocation and do not impact firmware loading or KVM device node creation. Re-run the test or investigate KVM hypervisor configuration on qcs8300-ride platform.
  4. Detail analysis attachment: failed_case_job295747_5_detailed.md
Job 295748 | SoC purwa-evk

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/295748

Failed test cases in LAVA job 295748 (SoC: purwa-evk).

  Case 1: ** Probe_Failure_Check (pre-existing platform issues)
  1. Failed case: ** Probe_Failure_Check (pre-existing platform issues)
  2. Root cause: ** Four probe failures detected at boot: qcom_qseecom_uefisecapp (-EBUSY), two qcom-pcie instances (-ENODATA due to missing PHY init sequences), and regulatory.db firmware (-ENOENT). All are pre-existing platform/configuration issues on purwa-evk unrelated to the PR, which only modifies SoundWire driver port allocation logic.
  3. Possible fix: Mark this test case as expected-fail for purwa-evk or update the test to exclude known benign probe failures (QSEECOM on platforms without secure app support, PCIe on boards without PHY init sequences in DT, regulatory.db when wireless is not configured). The PR itself is correct and does not introduce these failures.
  4. Detail analysis attachment: failed_case_job295748_1_detailed.md
  Case 2: smmu
  1. Failed case: smmu
  2. Root cause: Video codec parent device aa00000.video-codec is not attached to an IOMMU group, while its child devices (iris_non_pixel.0, iris_pixel.0) are attached to groups 15 and 16; this is a device tree or driver IOMMU configuration gap on purwa-evk, not a kernel crash or functional failure.
  3. Possible fix: Add iommus property to the video-codec device tree node in arch/arm64/boot/dts/qcom/purwa.dtsi (or the appropriate SoC dtsi) to bind the parent device to an IOMMU group, following the pattern used by other critical masters (UFS, GPU, Display, Camera).
  4. Detail analysis attachment: failed_case_job295748_2_detailed.md
  Case 3: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: The Purwa IoT EVK platform (CPU ID 0x512f0011) does not support ARM EL2 (Hypervisor mode). The KVM driver detects this at initialization and prints "kvm [1]: HYP mode not available", preventing /dev/kvm device node creation. This is a platform hardware limitation, not a kernel regression.
  3. Possible fix: This is not a bug introduced by PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 (which fixes a SoundWire port allocation issue). The KVM test failure is expected on this platform. Recommended action: Mark KVM tests as SKIP (not FAIL) for purwa-evk in the LAVA test suite, or exclude purwa-evk from KVM test runs, since the hardware does not support virtualization.
  4. Detail analysis attachment: failed_case_job295748_3_detailed.md
  Case 4: KVM_EL2_DTB — KVM driver initialization failure
  1. Failed case: KVM_EL2_DTB — KVM driver initialization failure
  2. Root cause: KVM driver failed to initialize because HYP mode (EL2) is not available on purwa-evk. The Gunyah hypervisor (gunyah-mobile-1f99e07c2) is already running at EL2, preventing KVM from taking control of the hypervisor exception level. The kernel logged "kvm [1]: HYP mode not available" at boot time [5.960080s], causing /dev/kvm device node creation to be skipped.
  3. Possible fix: This is not a PR-introduced regression — the PR patch modifies only SoundWire driver code (drivers/soundwire/qcom.c) and is unrelated to KVM or virtualization. The failure is a pre-existing platform configuration issue: purwa-evk runs Gunyah hypervisor by default, which is incompatible with KVM. To enable KVM on this platform, either: (1) disable Gunyah hypervisor in the boot configuration and rebuild firmware, or (2) exclude KVM tests from the purwa-evk CI test suite, as KVM and Gunyah cannot coexist.
  4. Detail analysis attachment: failed_case_job295748_4_detailed.md
  Case 5: KVM_Infra — KVM infrastructure test failure
  1. Failed case: KVM_Infra — KVM infrastructure test failure
  2. Root cause: KVM is not available on purwa-evk platform because the hardware does not support EL2/HYP mode. The kernel message "kvm [1]: HYP mode not available" at boot indicates the CPU is not running at EL2 or the hypervisor is not accessible, preventing KVM initialization and /dev/kvm device node creation. This is a platform hardware/firmware limitation, not a kernel regression.
  3. Possible fix: This is not a PR-introduced issue (PR FROMLIST: soundwire: qcom: Fix off-by-one error in port exhaustion check #1535 modifies SoundWire driver only). The KVM tests should be excluded from the purwa-evk test suite, or the test should be marked as expected-fail/skip for platforms without EL2/hypervisor support. To enable KVM on this platform (if hardware supports it), verify: (1) bootloader/firmware boots kernel at EL2, (2) hypervisor firmware (hypvm.mbn) is correctly loaded and functional, (3) device tree does not disable virtualization features.
  4. Detail analysis attachment: failed_case_job295748_5_detailed.md
  Case 6: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM driver initialization failed during kernel boot because the platform (purwa-evk / IQ-X5121) does not support HYP (EL2 hypervisor) mode, as indicated by the kernel message "kvm [1]: HYP mode not available" at boot time.
  3. Possible fix: This is a pre-existing platform limitation unrelated to the PR (which modifies SoundWire driver). The purwa-evk platform does not have EL2/HYP mode enabled in firmware or hardware configuration. To enable KVM on this platform: (1) verify the bootloader/firmware supports EL2 mode and boots the kernel at EL2, (2) check if the SoC hardware supports virtualization extensions, (3) if supported, update firmware/bootloader to enable HYP mode. If the platform fundamentally lacks virtualization support, mark KVM tests as "not applicable" for this board in the CI configuration.
  4. Detail analysis attachment: failed_case_job295748_6_detailed.md

@sgaud-quic

Copy link
Copy Markdown
Contributor

Merge Check Failed: No Change Task Found

No associated change tasks found for CR 4759091 on any of the following entities:

Entities:

  • kernel.qli.2.0

CR: 4759091

Please ensure the CR has a change task associated with at least one of the entities for this branch.

Mohis-12 fix this and add mainline PR to CR

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.

6 participants