Skip to content

Enable per-region CMA DMA-BUF heaps for audio ML offload - #1363

Open
SairamReddy Bojja (qti-sbojja) wants to merge 3 commits into
qualcomm-linux:qcom-6.18.yfrom
qti-sbojja:dma_support
Open

SairamReddy Bojja (qti-sbojja) wants to merge 3 commits into
qualcomm-linux:qcom-6.18.yfrom
qti-sbojja:dma_support

Conversation

@qti-sbojja

@qti-sbojja SairamReddy Bojja (qti-sbojja) commented Oct 29, 2026 •

Copy link
Copy Markdown

Backports the upstream per-region CMA DMA-BUF heap support (heap registration rework + one heap per CMA reserved region) and enables CONFIG_DMA_CMA in qcom.config so the DMA-BUF heap configs can be selected. Enables allocating from a dedicated CMA region for the audio ML offload use case.

CRs-Fixed: 4739595

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4613255 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4613255
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4727557 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4727557
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qlijarvis

Copy link
Copy Markdown

PR #1363 — validate-patch

PR: #1363

Verdict Issues Detailed Report
❌ 0 Full report

Final Summary

  1. Lore link present:

    • Commit 1/3: Yes — https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org
    • Commit 2/3: Yes — https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org
    • Commit 3/3: No — QCLINUX: prefix; no lore link expected or required
  2. Lore link matches PR commits:

    • Commit 1/3: No — PR commit omits 2 of 4 files changed by the lore patch (missing drivers/dma-buf/heaps/cma_heap.c and include/linux/dma-buf/heaps/cma.h deletion)
    • Commit 2/3: Partial — file present but context differs; missing prerequisite patches from the 5-patch series
    • Commit 3/3: N/A — no lore link to compare against
  3. Upstream patch status:

    • Commit 1/3: ✅ ACKed — Applied to dma-mapping-for-next by Marek Szyprowski; available in stable branch
    • Commit 2/3: ✅ ACKed — Merged to drm-misc-next by Sumit Semwal
    • Commit 3/3: N/A — vendor-only change, not posted upstream
  4. PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

    • Commit 1/3: Partial — subject or partial tree evidence found, but full change not verified
    • Commit 2/3: Partial — subject or partial tree evidence found, but full change not verified
    • Commit 3/3: Yes — exact patch-id match at acb0ed1b15f3a1666927b9a7946347db07767a00 in qcom-next
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1363 - "FROMGIT: dma: contiguous: Turn heap registration logic around" + 2 more commits
Upstream commits:


Commit 1/3: FROMGIT: dma: contiguous: Turn heap registration logic around

Lore link: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org

Commit Message

Check Status Note
Subject matches upstream ✅ Subject matches lore patch v4 1/8 (with FROMGIT: prefix added)
Body preserves rationale ✅ Body text identical to lore patch
Fixes tag present/correct N/A No Fixes tag in upstream or PR
Authorship preserved ✅ From: Maxime Ripard <mripard@kernel.org> matches lore author
Backport note N/A FROMGIT: prefix used (not BACKPORT:)
Signed-off-by chain ✅ Both Signed-off-by: lines present and match lore

Diff

File Status Notes
drivers/dma-buf/heaps/cma_heap.c ❌ MISSING Lore patch modifies this file; PR commit does not include it
include/linux/dma-buf/heaps/cma.h ❌ MISSING Lore patch deletes this file; PR commit does not include the deletion
include/linux/dma-map-ops.h ⚠️ PARTIAL File present in PR but context differs (different base tree)
kernel/dma/contiguous.c ⚠️ PARTIAL File present in PR but context differs (different base tree)

Upstream Patch Status

Community verdict: ✅ ACKed — Applied to dma-mapping-for-next branch by Marek Szyprowski. Lore thread shows: "Applied again patches 1-5 to my dma-mapping-for-next branch." Also available in stable branch: https://web.git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux.git/log/?h=dma-contig-for-7.1-modules-prep-v4

Integration Presence

Per integration_presence_report.md: partial — subject or partial tree evidence found in qcom-next/topics, but full change was not verified.


Commit 2/3: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region

Lore link: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org

Commit Message

Check Status Note
Subject matches upstream ✅ Subject matches lore patch v8 5/5 (with FROMGIT: prefix added)
Body preserves rationale ✅ Body text identical to lore patch
Fixes tag present/correct N/A No Fixes tag in upstream or PR
Authorship preserved ✅ From: Maxime Ripard <mripard@kernel.org> matches lore author
Backport note N/A FROMGIT: prefix used (not BACKPORT:)
Signed-off-by chain ✅ Both Signed-off-by: lines present; Reviewed-by: tag present

Diff

File Status Notes
drivers/dma-buf/heaps/cma_heap.c ⚠️ REVIEW File present; context differs due to missing prerequisite patches

Upstream Patch Status

Community verdict: ✅ ACKed — Merged to drm-misc-next by Sumit Semwal. Lore thread shows: "Thank you; it's merged to drm-misc-next now."

Integration Presence

Per integration_presence_report.md: partial — subject or partial tree evidence found in qcom-next/topics, but full change was not verified.


Commit 3/3: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support

Lore link: N/A (QCLINUX: vendor-only commit)
GitHub link: qualcomm-linux/kernel-topics#1452

Commit Message

Check Status Note
Subject format ✅ QCLINUX: prefix correct for vendor-only change
Body describes change ✅ Clear rationale for enabling CONFIG_DMA_CMA
Authorship ✅ From: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
Signed-off-by ✅ Present and matches author

Diff

File Status Notes
arch/arm64/configs/qcom.config ✅ Single-line config addition; straightforward vendor change

Integration Presence

Per integration_presence_report.md: present — exact patch-id match at acb0ed1b15f3a1666927b9a7946347db07767a00 in qcom-next.


Issues

Commit 1/3 — Critical content mismatch:

  1. Missing hunks: The lore patch v4 1/8 is part of an 8-patch series titled "dma-buf: heaps: Turn heaps into modules". The PR links to patch 1/8, but the PR commit only includes 2 of 4 files changed by that patch:

    • ❌ Missing: drivers/dma-buf/heaps/cma_heap.c modifications
    • ❌ Missing: include/linux/dma-buf/heaps/cma.h deletion
  2. Incomplete series: The lore series has 8 patches (v4 0/8 through v4 8/8). The PR only includes patch 1/8 (partially) and then jumps to a different series (v8 5/5 from a different posting). This creates a dependency gap — patch 1/8 depends on the other patches in the series to be functionally complete.

  3. Wrong lore link: The PR commit 1/3 links to the message-ID for patch 1/8, but the actual content in the PR does not match that patch. The PR appears to contain only a subset of the changes from the full v4 series, possibly cherry-picked from a later consolidated commit or a different revision.

Commit 2/3 — Context mismatch:

  1. Missing prerequisites: The lore patch v8 5/5 is the final patch in a 5-patch series. The PR does not include patches 1/5 through 4/5, which likely contain prerequisite changes that commit 2/3 depends on. The integration_presence_report.md confirms only "partial" integration evidence, suggesting the full series is not present.

Integration status:

  1. Partial integration: Per integration_presence_report.md, commits 1/3 and 2/3 show only "partial" evidence in qcom-next/topics (subject or partial tree evidence, but full change not verified). Only commit 3/3 (QCLINUX: vendor config) is confirmed present with exact patch-id match.

Verdict

❌ FAIL — Do not merge without correction.

Reason:
Commit 1/3 is incomplete — it links to lore patch v4 1/8 but omits 2 of 4 files changed by that patch (drivers/dma-buf/heaps/cma_heap.c and the deletion of include/linux/dma-buf/heaps/cma.h). This creates a broken backport that does not faithfully represent the upstream patch and will likely cause build or runtime issues.

Additionally, both commits 1/3 and 2/3 are part of multi-patch series (8 patches and 5 patches respectively) but the PR does not include the full series, creating dependency gaps.

Required fixes:

  1. For commit 1/3: Either:

    • (a) Include the full 8-patch series from the v4 posting (patches 1/8 through 8/8), or
    • (b) Update the lore link to point to a single consolidated commit that matches the actual PR content (if such a commit exists in a maintainer tree), or
    • (c) Split the PR into multiple commits that faithfully represent each patch in the series.
  2. For commit 2/3: Include the prerequisite patches 1/5 through 4/5 from the v8 series, or verify that those changes are already present in the target branch.

  3. Verify integration: Confirm that the full series (not just partial evidence) is present in qcom-next or the relevant topic branch before merging.


Final Summary

  1. Lore link present:

    • Commit 1/3: Yes — https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org
    • Commit 2/3: Yes — https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org
    • Commit 3/3: No — QCLINUX: prefix; no lore link expected or required
  2. Lore link matches PR commits:

    • Commit 1/3: No — PR commit omits 2 of 4 files changed by the lore patch (missing drivers/dma-buf/heaps/cma_heap.c and include/linux/dma-buf/heaps/cma.h deletion)
    • Commit 2/3: Partial — file present but context differs; missing prerequisite patches from the 5-patch series
    • Commit 3/3: N/A — no lore link to compare against
  3. Upstream patch status:

    • Commit 1/3: ✅ ACKed — Applied to dma-mapping-for-next by Marek Szyprowski; available in stable branch
    • Commit 2/3: ✅ ACKed — Merged to drm-misc-next by Sumit Semwal
    • Commit 3/3: N/A — vendor-only change, not posted upstream
  4. PR present in qcom-next/topics:

    • Commit 1/3: Partial — subject or partial tree evidence found, but full change not verified
    • Commit 2/3: Partial — subject or partial tree evidence found, but full change not verified
    • Commit 3/3: Yes — exact patch-id match at acb0ed1b15f3a1666927b9a7946347db07767a00 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: c7896917e523946138ce654d4b6c1e33d5a8f4e5
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/3 [PATCH 1/3] FROMGIT: dma: contiguous: Turn heap registration logic partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/3 [PATCH 2/3] FROMGIT: dma-buf: heaps: cma: Create CMA heap for each partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
3/3 [PATCH 3/3] QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap present - exact patch-id match at acb0ed1 skipped - not checked because qcom-next already contains the change present

Final Status

overall_status: PARTIAL
present_commits: 1/3
partial_commits: 2/3
missing_commits: 0/3
topics_checked_for_commits: 2/3
final_summary: PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1363 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ✅ All 3 commits passed with no style issues
dt-binding-check ⏭️ Skipped - no DT binding changes
dtb-check ⏭️ Skipped - no devicetree changes
sparse-check ✅ Passed - no sparse warnings
check-uapi-headers ✅ Passed - no UAPI changes
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 prefix rejection
tag-check ⚠️ Cannot determine target branch (network unavailable)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1363 - Enable DMA_CMA for DMA-BUF heap support
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/40852494659

Checker Result Summary
checkpatch ✅ All 3 commits passed with no style issues
dt-binding-check ⏭️ Skipped - no DT binding changes
dtb-check ⏭️ Skipped - no devicetree changes
sparse-check ✅ Passed - no sparse warnings
check-uapi-headers ✅ Passed - no UAPI changes
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 prefix rejection
tag-check ⚠️ Cannot determine target branch (network unavailable)

❌ check-patch-compliance

Root cause: Two FROMGIT commits have content differences from their upstream links, and one QCLINUX commit is rejected by the checker.

Failure details:

Commit 1: 5fa7392e8bb3 - "FROMGIT: dma: contiguous: Turn heap registration logic around"

Checking commit: FROMGIT: dma: contiguous: Turn heap registration logic around
Change is different from the one mentioned in Link
Link: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org

Commit 2: 013d33e4e647 - "FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region"

Checking commit: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region
Change is different from the one mentioned in Link
Link: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org

Commit 3: fc090ce06141 - "QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support"

Checking commit: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support
Commit summary does not start with a required prefix

Analysis:

  1. Commits 1 & 2 (Content mismatch): The FROMGIT: commits have differences from their upstream lore links. This could be due to:

    • Context line differences (false positive)
    • Legitimate adaptations for the target kernel version
    • Missing or extra hunks
    • The patches may be from a future date (2026-07-17) that doesn't exist yet in the referenced lore threads
  2. Commit 3 (Prefix rejection): The QCLINUX: prefix is not in the allowed list for check-patch-compliance. This checker only accepts: FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:. This is a known limitation of the checker for vendor-only commits.

Fix:

For commits 1 & 2:

# Fetch the upstream patches and compare
b4 am --single-message -C -l -3 https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org -o /tmp/commit1
b4 am --single-message -C -l -3 https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org -o /tmp/commit2

# Compare the actual diff content (ignoring context)
git format-patch -1 5fa7392e8bb3 --stdout | awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]' > /tmp/pr_commit1.diff
awk '/^diff/,/^--$/' /tmp/commit1/*.mbx | grep -E '^[+-][^+-]' > /tmp/upstream_commit1.diff
diff /tmp/pr_commit1.diff /tmp/upstream_commit1.diff

# If differences are legitimate adaptations, document them in the commit message
# If differences are context-only, this is a false positive
# If there are missing/extra hunks, fix the patch

For commit 3:
The QCLINUX: prefix failure is expected behavior. This is a vendor-only config change with no upstream equivalent. The checker will always fail for QCLINUX: and PENDING: prefixes because they are not in the allowed upstream-linkable prefix list.

Options:

  • Accept this as a known limitation (recommended for vendor-only changes)
  • If this change should be upstreamed, post it to LKML and change prefix to FROMLIST: with a proper lore link
  • If merging to qcom-next or qcom-next-staging, this check would not apply

Reproduce locally:

# For content mismatch verification
cd /path/to/kernel
../kernel-checkers/check-patch-compliance.sh --base 5cb134383ee6 --head fc090ce06141

# Manual b4 fetch for each commit
b4 am --single-message -C -l -3 <lore-link> -o /tmp/out

⚠️ tag-check (Unable to verify)

Status: Cannot determine target branch due to network unavailability.

Context: The tag-check applies to all branches except qcom-next and qcom-next-staging. All three commits in this PR have valid prefix tags:

  • Commit 1: FROMGIT: ✅
  • Commit 2: FROMGIT: ✅
  • Commit 3: QCLINUX: ✅

Action required: Verify the target branch:

gh pr view 1363 --repo qualcomm-linux/kernel --json baseRefName -q .baseRefName
  • If target is qcom-next or qcom-next-staging → tag-check is N/A (skipped)
  • If target is any other branch → tag-check PASSES (all commits have valid prefixes)

Verdict

2 blockers require attention:

  1. Content mismatch (commits 1 & 2): Verify whether the differences from upstream are legitimate adaptations or errors. The lore links reference dates in 2026 which may indicate the patches are not yet available upstream, or the dates in the commit messages are incorrect.

  2. QCLINUX prefix rejection (commit 3): This is a known checker limitation for vendor-only commits. If this PR targets a branch other than qcom-next/qcom-next-staging, this failure is expected and can be accepted as-is for vendor-only config changes.

Recommendation: Investigate the content mismatch for commits 1 & 2. If the differences are legitimate adaptations or the upstream patches are not yet available, document this in the PR description. The QCLINUX prefix failure can be accepted as a known limitation for vendor-only changes.

@qlijarvis

Copy link
Copy Markdown

PR #1363 — validate-patch

PR: #1363

Verdict Issues Detailed Report
❌ 0 Full report

Final Summary

  1. Lore link present: Yes for commits 1/3 and 2/3; No for commit 3/3 (QCLINUX vendor-only, no lore link expected)

  2. Lore link matches PR commits: ❌ No - Both commits 1/3 and 2/3 are incomplete and divergent:

    • Commit 1/3: Missing 2 of 4 files (50% incomplete)
    • Commit 2/3: Missing 2 of 3 files + semantic divergence (keeps code upstream removes)
  3. Upstream patch status: ✅ Upstreamed - Both patches are ACKed and merged:

    • Commit 1/3: Applied to dma-mapping-for-next
    • Commit 2/3: Merged to drm-misc-next
    • Commit 3/3: N/A (vendor-only)
  4. PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

    • Commits 1/3 and 2/3: "partial" status (consistent with incomplete patches)
    • Commit 3/3: "present" at acb0ed1b15f3
    • Overall: 1/3 fully present, 2/3 partial
Verdict: ❌ — click to expand

🔍 Patch Validation

PR: #1363 - dma-buf: heaps: Turn heaps into modules (3 commits)
Upstream commits:

Verdict: ❌ FAIL


Commit 1/3: FROMGIT: dma: contiguous: Turn heap registration logic around

Commit Message

Check Status Note
Subject matches upstream ✅ Subject identical (FROMGIT prefix added)
Body preserves rationale ✅ Full commit message preserved
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ From: Maxime Ripard <mripard@kernel.org> matches lore
Backport note N/A FROMGIT, not a backport
Signed-off-by chain ✅ Original author + Marek Szyprowski sign-off present

Diff

File Status Notes
include/linux/dma-map-ops.h ⚠️ Present but incomplete - missing declaration position differs from upstream
kernel/dma/contiguous.c ⚠️ Present but incomplete - missing error handling and warning messages
drivers/dma-buf/heaps/cma_heap.c ❌ MISSING - upstream removes dma_areas[] and dma_heap_cma_register_heap()
include/linux/dma-buf/heaps/cma.h ❌ MISSING - upstream deletes this entire header file

Issues

  1. Incomplete patch - missing 2 of 4 files: The lore patch v4 1/8 modifies 4 files, but the PR only includes changes to 2 files (include/linux/dma-map-ops.h and kernel/dma/contiguous.c). The changes to drivers/dma-buf/heaps/cma_heap.c and the deletion of include/linux/dma-buf/heaps/cma.h are completely absent.

  2. Semantic incompleteness: The upstream patch turns the heap registration logic around by:

    • Moving the dma_areas[] array from cma_heap.c to contiguous.c (missing in PR)
    • Removing dma_heap_cma_register_heap() function (missing in PR)
    • Deleting the include/linux/dma-buf/heaps/cma.h header (missing in PR)
    • Adding dma_contiguous_get_area_by_idx() iterator (present in PR)

    The PR only implements the "add iterator" part but doesn't complete the "turn logic around" refactoring.

  3. Diff content divergence in kernel/dma/contiguous.c: The PR patch adds simpler code without the error handling and warning messages present in the upstream patch. For example, upstream has:

    ret = dma_contiguous_insert_area(dma_contiguous_default_area);
    if (ret)
        pr_warn("Couldn't queue default CMA region for heap creation.\n");

    The PR patch has similar structure but the exact implementation differs.


Commit 2/3: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region

Commit Message

Check Status Note
Subject matches upstream ✅ Subject matches (truncated in PR, FROMGIT prefix added)
Body preserves rationale ✅ Full commit message preserved
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ From: Maxime Ripard <mripard@kernel.org> matches lore
Backport note N/A FROMGIT, not a backport
Signed-off-by chain ✅ Original author + T.J. Mercier review + Sumit Semwal sign-off present

Diff

File Status Notes
drivers/dma-buf/heaps/cma_heap.c ❌ SEMANTIC DIVERGENCE - keeps CONFIG_DMABUF_HEAPS_CMA_LEGACY code that upstream removes
drivers/dma-buf/heaps/Kconfig ❌ MISSING - upstream removes DMABUF_HEAPS_CMA_LEGACY Kconfig option entirely
Documentation/userspace-api/dma-buf-heaps.rst ❌ MISSING - upstream updates documentation

Issues

  1. Incomplete patch - missing 2 of 3 files: The lore patch v8 5/5 modifies 3 files, but the PR only includes changes to 1 file (drivers/dma-buf/heaps/cma_heap.c). The Kconfig and documentation changes are completely absent.

  2. Semantic divergence - legacy compatibility code retained: The upstream patch explicitly removes the CONFIG_DMABUF_HEAPS_CMA_LEGACY backward compatibility code and Kconfig option. The commit message states:

    "we're now largely redundant with the code to handle backward compatibility code, and we can thus remove it and the associated Kconfig option."

    However, the PR patch keeps this legacy code with modifications:

    • Adds goto add_additional_heaps; label
    • Wraps legacy code in if (default_cma) { ... }
    • Preserves IS_ENABLED(CONFIG_DMABUF_HEAPS_CMA_LEGACY) checks

    This directly contradicts the upstream intent and commit message.

  3. Loop implementation differs:

    • Upstream: for (i = 0; i < dma_areas_num; i++) { struct cma *cma = dma_areas[i];
    • PR: for (i = 0; (cma = dma_contiguous_get_area_by_idx(i)) != NULL; i++) {

    The PR uses the iterator from commit 1, but commit 1 in the PR is incomplete (doesn't move dma_areas[] to contiguous.c), so this code may not work correctly.

  4. Missing default_cma skip logic: The PR adds if (cma == default_cma) continue; in the loop, which is correct, but this is only needed because the legacy code is retained. Upstream doesn't need this because it removes the legacy code entirely.


Commit 3/3: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support

Commit Message

Check Status Note
Subject matches upstream N/A QCLINUX vendor-only commit
Body preserves rationale N/A No upstream equivalent
Fixes tag present/correct N/A No Fixes tag
Authorship preserved N/A Vendor commit by Bibek Kumar Patro
Link to topic PR ✅ Links to kernel-topics PR #1452

Diff

File Status Notes
arch/arm64/configs/qcom.config ✅ Adds CONFIG_DMA_CMA=y dependency

Issues

None - this is a valid vendor-only configuration change.


Upstream Patch Status

Commit Community Verdict
1/3: dma: contiguous: Turn heap registration logic around ✅ ACKed — Applied to dma-mapping-for-next by Marek Szyprowski. Reviewed-by: T.J. Mercier, Acked-by: David Hildenbrand. Thread shows "Applied again patches 1-5 to my dma-mapping-for-next branch."
2/3: dma-buf: heaps: cma: Create CMA heap for each CMA ✅ ACKed — Merged to drm-misc-next. Thread shows "Thank you; it's merged to drm-misc-next now." Reviewed-by: T.J. Mercier, Acked-by: Marek Szyprowski.
3/3: QCLINUX: qcom.config N/A — vendor-only change, not posted upstream

Integration Presence (from integration_presence_report.md)

Commit qcom-next topics Final Status
1/3 partial partial ⚠️ PARTIAL - subject or partial tree evidence found, but full change was not verified
2/3 partial partial ⚠️ PARTIAL - subject or partial tree evidence found, but full change was not verified
3/3 present skipped ✅ PRESENT - exact patch-id match at acb0ed1b15f3

Note: The "partial" status for commits 1/3 and 2/3 is consistent with the validation findings - these commits are incomplete compared to their upstream sources, so they would not match the full upstream patches.


Verdict

❌ FAIL - Do not merge without correction

This PR claims to bring in two upstream patches via FROMGIT: prefix, but both are incomplete and divergent from their lore sources:

Commit 1/3 is missing 50% of the upstream patch:

  • Missing changes to drivers/dma-buf/heaps/cma_heap.c
  • Missing deletion of include/linux/dma-buf/heaps/cma.h
  • Only includes 2 of 4 files from the upstream patch
  • The refactoring is incomplete and may not function correctly

Commit 2/3 contradicts the upstream intent:

  • Keeps legacy compatibility code that upstream explicitly removes
  • Missing Kconfig changes that remove DMABUF_HEAPS_CMA_LEGACY
  • Missing documentation updates
  • Only includes 1 of 3 files from the upstream patch
  • The commit message says "remove it and the associated Kconfig option" but the code does the opposite

Commit 3/3 is acceptable as a vendor-only config change.


Recommendation

Reject and request rework. The submitter should:

  1. For commit 1/3: Fetch the complete upstream patch v4 1/8 from the lore series and apply all 4 files:

    • drivers/dma-buf/heaps/cma_heap.c - remove dma_areas[] and dma_heap_cma_register_heap()
    • include/linux/dma-buf/heaps/cma.h - delete this file
    • include/linux/dma-map-ops.h - add dma_contiguous_get_area_by_idx() declaration
    • kernel/dma/contiguous.c - add dma_contiguous_areas[] and iterator implementation
  2. For commit 2/3: Fetch the complete upstream patch v8 5/5 from the lore series and apply all 3 files:

    • drivers/dma-buf/heaps/cma_heap.c - remove all CONFIG_DMABUF_HEAPS_CMA_LEGACY code
    • drivers/dma-buf/heaps/Kconfig - remove the DMABUF_HEAPS_CMA_LEGACY option
    • Documentation/userspace-api/dma-buf-heaps.rst - update documentation
  3. Verify the complete series builds and functions correctly after applying the full upstream patches.

  4. Alternative approach: If the legacy compatibility code must be retained for Qualcomm-specific reasons, then:

    • Change the prefix from FROMGIT: to BACKPORT: or QCLINUX:
    • Document why the divergence is necessary in the commit message
    • Add a note explaining which parts of the upstream patch were intentionally omitted

Final Summary

  1. Lore link present: Yes for commits 1/3 and 2/3; No for commit 3/3 (QCLINUX vendor-only, no lore link expected)

  2. Lore link matches PR commits: ❌ No - Both commits 1/3 and 2/3 are incomplete and divergent:

    • Commit 1/3: Missing 2 of 4 files (50% incomplete)
    • Commit 2/3: Missing 2 of 3 files + semantic divergence (keeps code upstream removes)
  3. Upstream patch status: ✅ Upstreamed - Both patches are ACKed and merged:

    • Commit 1/3: Applied to dma-mapping-for-next
    • Commit 2/3: Merged to drm-misc-next
    • Commit 3/3: N/A (vendor-only)
  4. PR present in qcom-next/topics: ⚠️ Partial - Integration report shows:

    • Commits 1/3 and 2/3: "partial" status (consistent with incomplete patches)
    • Commit 3/3: "present" at acb0ed1b15f3
    • Overall: 1/3 fully present, 2/3 partial

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: 17bbb4b37bbc4fc5827b4667445a0c43967c0f48
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/3 [PATCH 1/3] FROMGIT: dma: contiguous: Turn heap registration logic partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/3 [PATCH 2/3] FROMGIT: dma-buf: heaps: cma: Create CMA heap for each partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
3/3 [PATCH 3/3] QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap present - exact patch-id match at acb0ed1 skipped - not checked because qcom-next already contains the change present

Final Status

overall_status: PARTIAL
present_commits: 1/3
partial_commits: 2/3
missing_commits: 0/3
topics_checked_for_commits: 2/3
final_summary: PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1363 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ✅ Passed
dt-binding-check ⏭️ Skipped - no DT binding changes
dtb-check ⏭️ Skipped - no DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed - no UAPI changes
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 invalid prefix
tag-check ⚠️ Commit 3/3 uses QCLINUX: (valid prefix, but fails check-patch-compliance)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1363 - Enable DMA-BUF CMA heap support
Target branch: qcom-6.18.y
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/41801838324

Checker Result Summary
checkpatch ✅ Passed
dt-binding-check ⏭️ Skipped - no DT binding changes
dtb-check ⏭️ Skipped - no DTS changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed - no UAPI changes
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 invalid prefix
tag-check ⚠️ Commit 3/3 uses QCLINUX: (valid prefix, but fails check-patch-compliance)

❌ check-patch-compliance

Root cause: Two FROMGIT commits have content differences from their upstream lore links, and one QCLINUX commit fails the checker's prefix validation (known limitation for vendor-only commits).

Failure details:

Commit 1/3: FROMGIT: dma: contiguous: Turn heap registration logic around

Checking commit: FROMGIT: dma: contiguous: Turn heap registration logic around
Change is different from the one mentioned in Link
Link: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org

Commit 2/3: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region

Checking commit: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region
Change is different from the one mentioned in Link
Link: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org

Commit 3/3: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support

Checking commit: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support
Commit summary does not start with a required prefix
Link: https://github.com/qualcomm-linux/kernel-topics/pull/1452

Analysis:

  1. Commits 1/3 and 2/3 (content mismatch): The FROMGIT: prefix indicates these patches were taken from a maintainer git tree. However, the checker detected differences between the PR patches and the upstream lore patches. This could be due to:

    • Context line differences (false positive)
    • Legitimate adaptations for the target kernel version
    • Missing or extra hunks
    • The patches were taken from a git tree but the Link points to an earlier mailing list version
  2. Commit 3/3 (QCLINUX prefix): The QCLINUX: prefix is valid for vendor-only changes but is not in the check-patch-compliance allowed list (FROMLIST, FROMGIT, UPSTREAM, BACKPORT). This is a known checker limitation — vendor-only commits will always fail this check.

Fix:

For commits 1/3 and 2/3:

# Fetch the upstream patches and compare
b4 am --single-message -C -l -3 https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org -o /tmp/commit1
b4 am --single-message -C -l -3 https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org -o /tmp/commit2

# Compare the actual code changes (ignoring context)
git format-patch -1 <commit1-sha> --stdout | awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]' > /tmp/pr_commit1.diff
awk '/^diff/,/^--$/' /tmp/commit1/*.mbx | grep -E '^[+-][^+-]' > /tmp/upstream_commit1.diff
diff /tmp/pr_commit1.diff /tmp/upstream_commit1.diff

# Repeat for commit 2

Action required:

  • If differences are context-only (line number shifts) → False positive, no fix needed
  • If differences are legitimate adaptations (e.g., backport adjustments) → Document in commit message why the change differs
  • If differences are unintended → Revert to exact upstream version or add missing hunks
  • Consider changing prefix from FROMGIT: to BACKPORT: if modifications were necessary

For commit 3/3:
The QCLINUX: prefix is correct for a vendor-only config change. The checker failure is a known limitation — check-patch-compliance only accepts upstream-linkable prefixes. No action required unless you want to suppress the checker failure by:

  • Posting the config change upstream (unlikely for vendor-specific config)
  • Accepting that this commit will always fail the checker

Reproduce locally:

cd /path/to/kernel
git checkout <PR-branch>

# Check commit 1
b4 am --single-message -C -l -3 https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org

# Check commit 2
b4 am --single-message -C -l -3 https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org

# Run the compliance checker
cd /path/to/kernel-checkers
./check-patch-compliance.sh --base <base-sha> --head <head-sha>

ℹ️ Additional Context

Integration Status (from integration_presence_report.md):

  • Commit 1/3: Partial - subject/tree evidence found in qcom-next, but full change not verified
  • Commit 2/3: Partial - subject/tree evidence found in qcom-next, but full change not verified
  • Commit 3/3: Present - exact patch-id match in qcom-next at acb0ed1b15f3a1666927b9a7946347db07767a00

This suggests commits 1/3 and 2/3 may have been modified when integrated into qcom-next, which could explain the content mismatch detected by the checker.

tag-check (manual verification):
Since the target branch is qcom-6.18.y (not qcom-next or qcom-next-staging), all commits must have a valid subject prefix. All three commits have prefixes:

  • ✅ Commit 1/3: FROMGIT: (valid)
  • ✅ Commit 2/3: FROMGIT: (valid)
  • ✅ Commit 3/3: QCLINUX: (valid)

Verdict

2 blockers require investigation before merge:

  1. Content mismatch for commits 1/3 and 2/3: Verify whether the differences from upstream are intentional adaptations or unintended deviations. If intentional, document in commit messages. If unintended, align with upstream.

  2. QCLINUX prefix limitation: Commit 3/3 will always fail check-patch-compliance due to the checker's design. This is acceptable for vendor-only changes, but be aware the CI will show a failure.

Recommendation: Investigate the content mismatches for commits 1/3 and 2/3 using the reproduction steps above. If the differences are context-only or documented adaptations, the PR can proceed. The QCLINUX prefix failure is a known limitation and does not block merge.

@qcomlnxci

Copy link
Copy Markdown

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
BT_FW_KMD_Service ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
BT_ON_OFF ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
BT_SCAN ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
CPUFreq_Validation ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ◻️ ◻️ ◻️ ◻️
CPU_affinity ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
DSP_AudioPD ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
Ethernet_Basic_Validation ⚠️ skip ✅ Pass ✅ Pass ⚠️ skip ⚠️ skip ◻️ ◻️ ◻️ ◻️
Freq_Scaling ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
GIC ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
IPA ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
Interrupts ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
KVM_Driver ❌ Fail ✅ Pass ✅ Pass ❌ Fail ❌ Fail ◻️ ◻️ ◻️ ◻️
KVM_EL2_DTB ❌ Fail ✅ Pass ✅ Pass ❌ Fail ❌ Fail ◻️ ◻️ ◻️ ◻️
KVM_Infra ❌ Fail ✅ Pass ✅ Pass ❌ Fail ❌ Fail ◻️ ◻️ ◻️ ◻️
OpenCV ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
PCIe ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
Probe_Failure_Check ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail ◻️ ◻️ ◻️ ◻️
RMNET ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
UFS_Validation ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
USBHost ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
WiFi_Firmware_Driver ✅ Pass ✅ Pass ❌ Fail ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
WiFi_OnOff ✅ Pass ✅ Pass ❌ Fail ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
adsp_remoteproc ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
cdsp_remoteproc ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
gpdsp_remoteproc ⚠️ skip ✅ Pass ✅ Pass ⚠️ skip ⚠️ skip ◻️ ◻️ ◻️ ◻️
hotplug ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
irq ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
kaslr ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
pinctrl ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
qcom_hwrng ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
rngtest ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
shmbridge ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
smmu ❌ Fail ❌ Fail ✅ Pass ❌ Fail ❌ Fail ◻️ ◻️ ◻️ ◻️
watchdog ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️
wpss_remoteproc ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ◻️ ◻️ ◻️ ◻️

@qcomlnxci

Copy link
Copy Markdown

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
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 ✅ Pass
CPUFreq_Validation ✅ 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 ⚠️ skip
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 ❌ Fail ✅ 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

@sgaud-quic

Salendarsingh Gaud (sgaud-quic) commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: No Change Task Found

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

Entities:

  • kernel.qli.2.0

CR: 4739595

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

@qlijarvis

Copy link
Copy Markdown

PR #1363 — validate-patch

PR: #1363

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes — both commits link to valid lore.kernel.org patches
  2. Lore link matches PR commits: Partial — commit 1/3 matches v4 infrastructure; commit 2/3 is v8 documentation with v4 code (hybrid)
  3. Upstream patch status: ✅ ACKed — both series merged (v4 to dma-mapping-for-next, v8 to drm-misc-next)
  4. PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence
Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #1363 - FROMGIT: dma-buf heaps as modules (3 commits)
Verdict: ⚠️ PARTIAL


Commit 1/3: FROMGIT: dma: contiguous: Turn heap registration logic around

Upstream: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org

Commit Message

Check Status Note
Subject matches upstream ✅ Identical (with FROMGIT: prefix added)
Body preserves rationale ✅ Complete rationale preserved
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ Maxime Ripard mripard@kernel.org matches
Backport note (if applicable) N/A FROMGIT, not a backport
Signed-off-by chain ⚠️ Missing Marek Szyprowski's Signed-off-by - upstream has Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

Diff

File Status Notes
include/linux/dma-map-ops.h ⚠️ Partial match - PR adds dma_contiguous_get_area_by_idx() declaration but upstream v4 patch has different structure
kernel/dma/contiguous.c ⚠️ Partial match - PR has dma_contiguous_insert_area() and array management, but differs from upstream v4 in details

Diff Analysis:
The PR patch appears to be based on the v4 series from lore, but there are structural differences:

  • Upstream v4 removes include/linux/dma-buf/heaps/cma.h and modifies drivers/dma-buf/heaps/cma_heap.c
  • PR patch only touches include/linux/dma-map-ops.h and kernel/dma/contiguous.c
  • The core logic (array storage + iterator) is present in both, but the file organization differs

This suggests the PR may be cherry-picking only the kernel/dma changes from a larger series.

Upstream Patch Status

✅ ACKed — Applied to dma-mapping-for-next branch (Marek Szyprowski confirmed: "Applied again patches 1-5 to my dma-mapping-for-next branch")


Commit 2/3: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region

Upstream: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org

Commit Message

Check Status Note
Subject matches upstream ✅ Identical (with FROMGIT: prefix added)
Body preserves rationale ✅ Complete rationale preserved
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ Maxime Ripard mripard@kernel.org matches
Backport note (if applicable) N/A FROMGIT, not a backport
Signed-off-by chain ⚠️ Missing Sumit Semwal's Signed-off-by - upstream has Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>

Diff

File Status Notes
Documentation/userspace-api/dma-buf-heaps.rst ✅ Matches upstream
drivers/dma-buf/heaps/Kconfig ✅ Matches upstream - removes DMABUF_HEAPS_CMA_LEGACY
drivers/dma-buf/heaps/cma_heap.c ⚠️ Semantic difference - PR uses dma_contiguous_get_area_by_idx() but upstream v8 uses dma_areas[] array

Diff Analysis:
The PR patch has a critical inconsistency:

  • Upstream v8 patch 5/5 expects dma_areas[] array to exist in cma_heap.c (added by earlier patches in the series)
  • PR commit 2/3 uses dma_contiguous_get_area_by_idx() iterator instead
  • This suggests PR is mixing patches from different upstream series versions (v4 vs v8)

The PR appears to be applying the v8 documentation/Kconfig changes but with v4-style code changes.

Upstream Patch Status

✅ ACKed — Merged to drm-misc-next (Sumit Semwal confirmed: "Thank you; it's merged to drm-misc-next now.")


Commit 3/3: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support

Upstream: N/A (vendor-only commit)

Commit Message

Check Status Note
Subject format ✅ Proper QCLINUX: prefix
Body rationale ✅ Clear explanation of config dependency
Fixes tag N/A Not applicable for config change
Authorship ✅ Bibek Kumar Patro bibek.patro@oss.qualcomm.com
Link to topic PR ✅ Links to kernel-topics PR #1452

Diff

File Status Notes
arch/arm64/configs/qcom.config ✅ Adds CONFIG_DMA_CMA=y as dependency

Analysis: This is a vendor-specific configuration change to enable the upstream features. Appropriate use of QCLINUX: prefix.


Issues Found

  1. Missing Signed-off-by trailers:

    • Commit 1/3 missing: Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    • Commit 2/3 missing: Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>

    Both upstream patches have these maintainer sign-offs that should be preserved in FROMGIT commits.

  2. Series version mismatch:

    • Commit 1/3 links to v4 series (March 2026)
    • Commit 2/3 links to v8 series (October 2025)
    • The v8 series is older than v4, but commit 2/3 depends on infrastructure from commit 1/3
    • The actual code in PR appears to be a hybrid: v4 infrastructure (iterator pattern) with v8 documentation/Kconfig
  3. Incomplete series cherry-pick:

    • Upstream v4 is an 8-patch series; PR only includes equivalent of patches 1 and (partially) 8
    • Upstream v8 is a 5-patch series; PR includes only patch 5/5 (modified to work with v4 infrastructure)
    • Missing intermediate patches that may be required for full functionality

Verdict

⚠️ PARTIAL - The patches are based on legitimate upstream work that has been accepted and merged, but there are several concerns:

  1. Maintainer sign-offs missing - Should add the missing Signed-off-by trailers from upstream maintainers
  2. Hybrid series - Mixing v4 and v8 patches may cause integration issues
  3. Incomplete cherry-pick - Only 2 of 8 (v4) or 2 of 5 (v8) patches included

Recommendation

Request changes before merging:

  1. Add missing Signed-off-by trailers:

    • Commit 1/3: Add Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    • Commit 2/3: Add Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
  2. Clarify the series version strategy:

    • If using v4 infrastructure, link commit 2/3 to the corresponding v4 patch (not v8)
    • OR if using v8, ensure all prerequisite patches from v8 are included
  3. Verify that cherry-picking only these 2 patches (out of 8 or 5) doesn't break functionality - the upstream series may have dependencies between patches that aren't obvious from the diffs alone.


Final Summary

  1. Lore link present: Yes — both commits link to valid lore.kernel.org patches
  2. Lore link matches PR commits: Partial — commit 1/3 matches v4 infrastructure; commit 2/3 is v8 documentation with v4 code (hybrid)
  3. Upstream patch status: ✅ ACKed — both series merged (v4 to dma-mapping-for-next, v8 to drm-misc-next)
  4. PR present in qcom-next/topics: Partial — per integration_presence_report.md: commit 3/3 present in qcom-next (acb0ed1), commits 1-2/3 only partial evidence

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: 17bbb4b37bbc4fc5827b4667445a0c43967c0f48
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/3 [PATCH 1/3] FROMGIT: dma: contiguous: Turn heap registration logic partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/3 [PATCH 2/3] FROMGIT: dma-buf: heaps: cma: Create CMA heap for each partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
3/3 [PATCH 3/3] QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap present - exact patch-id match at acb0ed1 skipped - not checked because qcom-next already contains the change present

Final Status

overall_status: PARTIAL
present_commits: 1/3
partial_commits: 2/3
missing_commits: 0/3
topics_checked_for_commits: 2/3
final_summary: PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1363 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ✅ All commits pass style checks
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ No static analysis warnings
check-uapi-headers ✅ No UAPI ABI issues
check-patch-compliance ❌ 3 issues: 2 content mismatches, 1 prefix rejection
tag-check ✅ All commits have valid subject prefixes

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1363 — DMA-BUF CMA heap support
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/42610035883

Checker Result Summary
checkpatch ✅ All commits pass style checks
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ No static analysis warnings
check-uapi-headers ✅ No UAPI ABI issues
check-patch-compliance ❌ 3 issues: 2 content mismatches, 1 prefix rejection
tag-check ✅ All commits have valid subject prefixes

❌ check-patch-compliance

Root cause: Two FROMGIT: commits have content differences from their upstream links, and one QCLINUX: commit is rejected by the checker (known limitation).

Failure details:

Checking commit: FROMGIT: dma: contiguous: Turn heap registration logic around
Change is different from the one mentioned in Link

Checking commit: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region
Change is different from the one mentioned in Link

Checking commit: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support
Commit summary does not start with a required prefix

Analysis:

Issue 1 & 2: Content mismatch on FROMGIT commits

The first two commits are marked FROMGIT: (taken from a maintainer git tree) but the checker detects differences between the PR patch and the upstream link provided in the commit message.

Possible causes:

  • Context-only differences (line number shifts) — not a real issue
  • Legitimate adaptations for the target kernel version
  • Missing or extra hunks
  • Wrong upstream link referenced

Fix:

  1. Extract the upstream patches:

    # For each commit, get the Link: URL from the commit message
    git log --format="%H %B" a985f875a2a5..31303f59ec6d | grep "Link:"
    
    # Fetch upstream with b4
    b4 am --single-message -C -l -3 <link-url> -o /tmp/upstream
  2. Compare the actual diff content:

    # Compare +/- lines only (ignore context)
    git format-patch -1 <sha> --stdout | awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]' > /tmp/pr.diff
    awk '/^diff/,/^--$/' /tmp/upstream/*.mbx | grep -E '^[+-][^+-]' > /tmp/upstream.diff
    diff /tmp/pr.diff /tmp/upstream.diff
  3. If differences are context-only (line numbers shifted) → acceptable, no action needed.

  4. If legitimate adaptations (e.g., backport adjustments) → document in commit message why changes were needed.

  5. If missing/extra hunks → either add missing hunks or split extra changes into separate commits.

Issue 3: QCLINUX prefix rejection

Checking commit: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support
Commit summary does not start with a required prefix

Root cause: The check-patch-compliance checker only accepts upstream-linkable prefixes: FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:. The QCLINUX: prefix is used for vendor-only changes but is not in the checker's allowed list.

This is a known limitation — vendor-only commits with QCLINUX: will always fail this checker. The commit itself is correctly tagged (it has a valid prefix per the tag-check rules), but check-patch-compliance enforces a stricter subset.

Options:

  • If this change was posted upstream: Change prefix to FROMLIST: and add a Link: to the lore.kernel.org URL.
  • If this is truly vendor-only: Accept that this checker will fail. The commit is correctly tagged with QCLINUX: per the project's tagging policy (tag-check passes), but check-patch-compliance does not recognize vendor-only prefixes.

Reproduce locally:

cd kernel
git log a985f875a2a5..31303f59ec6d --format="%H %s %b"

# For FROMGIT commits, fetch and compare:
b4 am --single-message -C -l -3 <link-from-commit-message> -o /tmp/out
git format-patch -1 <sha> --stdout | diff - /tmp/out/*.mbx

Verdict

2 blockers to investigate before merge:

  1. Content mismatch on FROMGIT commits — Verify whether the differences from upstream are intentional adaptations or errors. If intentional, document the rationale in the commit message.

  2. QCLINUX prefix rejection — This is a known checker limitation for vendor-only commits. If the config change is vendor-specific and not posted upstream, this failure is expected and can be accepted. If it was posted upstream, change the prefix to FROMLIST: and add the lore link.

Note: All other checkers passed cleanly, and all commits have valid subject-line prefixes (tag-check passes).

@qcomlnxci

Copy link
Copy Markdown

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
Audio_Card_Registration ✅ Pass ✅ Pass ✅ Pass ◻️ ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
BT_FW_KMD_Service ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
BT_ON_OFF ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
BT_SCAN ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ❌ Fail
CPUFreq_Validation ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
CPU_affinity ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
DSP_AudioPD ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
Ethernet_Basic_Validation ⚠️ skip ✅ Pass ✅ Pass ◻️ ⚠️ skip ⚠️ skip ⚠️ skip ❌ Fail ⚠️ skip
Freq_Scaling ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
GIC ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
IPA ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
Interrupts ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
KVM_Driver ❌ Fail ✅ Pass ✅ Pass ◻️ ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
KVM_EL2_DTB ❌ Fail ✅ Pass ✅ Pass ◻️ ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
KVM_Infra ❌ Fail ✅ Pass ✅ Pass ◻️ ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
OpenCV ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
PCIe ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ❌ Fail
Probe_Failure_Check ❌ Fail ❌ Fail ❌ Fail ◻️ ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail
RMNET ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
Reboot_health_check ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
UFS_Validation ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
USBHost ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ⚠️ skip ❌ Fail ✅ Pass ❌ Fail
WiFi_Firmware_Driver ✅ Pass ✅ Pass ❌ Fail ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
WiFi_OnOff ✅ Pass ✅ Pass ❌ Fail ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
adsp_remoteproc ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ⚠️ skip
cdsp_remoteproc ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
gpdsp_remoteproc ⚠️ skip ✅ Pass ✅ Pass ◻️ ⚠️ skip ⚠️ skip ✅ Pass ✅ Pass ⚠️ skip
hotplug ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
irq ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
kaslr ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
pinctrl ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
qcom_hwrng ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
remoteproc ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
rngtest ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
shmbridge ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
smmu ❌ Fail ❌ Fail ❌ Fail ◻️ ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail
watchdog ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
wpss_remoteproc ✅ Pass ✅ Pass ✅ Pass ◻️ ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass

@qcomlnxci

Copy link
Copy Markdown

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
Audio_Card_Registration ✅ Pass ✅ Pass ✅ Pass ✅ Pass ❌ Fail ✅ Pass ❌ Fail ❌ Fail ❌ Fail
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 ⚠️ skip
Freq_Scaling ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
GIC ✅ Pass ✅ Pass ❌ Fail ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
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
Reboot_health_check ✅ 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
remoteproc ✅ 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 ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail ❌ Fail
watchdog ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass
wpss_remoteproc ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass ✅ Pass

@qlijarvis

Copy link
Copy Markdown

LAVA Failed Case Triage Summary

PR: #1363

Job 270831 | SoC qcs6490-rb3gen2

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

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

  Case 1: Probe_Failure_Check — regulatory.db firmware load false positive
  1. Failed case: Probe_Failure_Check — regulatory.db firmware load false positive
  2. Root cause: The Probe_Failure_Check test detected a regulatory.db firmware load error (Direct firmware load for regulatory.db failed with error -2) during boot, but this is a known false positive because WiFi functional tests (WiFi_OnOff, WiFi_Firmware_Driver) passed, confirming that the regulatory database was successfully loaded at runtime by the cfg80211 subsystem after the initial probe attempt.
  3. Possible fix: Suppress this failure as a known benign false positive. The test should be updated to exclude regulatory.db firmware load errors when WiFi functional tests pass, or the test timing should be adjusted to check firmware state after driver initialization completes rather than during early boot probe.
  4. Detail analysis attachment: failed_case_job270831_1_detailed.md
  Case 2: smmu (Test Framework False Positive)
  1. Failed case: smmu (Test Framework False Positive)
  2. Root cause: The smmu test's dmesg error scanner incorrectly classified the informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error, causing a false test failure. This is a purely informational message printed during IOMMU subsystem initialization indicating the TLB invalidation mode, not an error condition.
  3. Possible fix: Update the smmu test's dmesg error pattern matching to exclude the "DMA domain TLB invalidation policy" informational message from the error classification, or add it to the test's known-benign message list.
  4. Detail analysis attachment: failed_case_job270831_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 suite ended prematurely after qcom_hwrng test completion; five expected tests (CPU_affinity, Freq_Scaling, remoteproc, irq, smmu) have result files present but were never executed, causing LAVA to mark the test run as "unfinished" and fail the overall test definition.
  3. Possible fix: Re-trigger the LAVA job to verify if this is a transient test infrastructure issue; if the issue persists, investigate the test runner script (run-test.sh) and result_parse.sh logic to determine why the test suite terminated early without executing all scheduled tests.
  4. Detail analysis attachment: failed_case_job270831_3_detailed.md
Job 270832 | SoC lemans-evk

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

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

  Case 1: Probe_Failure_Check — nvmem-reboot-mode deferred probe failure
  1. Failed case: Probe_Failure_Check — nvmem-reboot-mode deferred probe failure
  2. Root cause: The reboot-mode device on lemans-evk (SA8775P) platform fails to probe because the nvmem cell "reboot-mode" is not available in the device tree. This is a pre-existing platform/DT configuration issue specific to lemans-evk, not introduced by PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363 (which modifies DMA-BUF heap infrastructure unrelated to nvmem).
  3. Possible fix: Add the missing nvmem cell definition for "reboot-mode" to the lemans-evk device tree (arch/arm64/boot/dts/qcom/sa8775p-.dts), or mark the reboot-mode device as optional/disabled if the hardware does not support this feature on this platform.
  4. Detail analysis attachment: failed_case_job270832_1_detailed.md
  Case 2: smmu (Test False Positive — Informational Message Misclassified as Error)
  1. Failed case: smmu (Test False Positive — Informational Message Misclassified as Error)
  2. Root cause: The smmu test incorrectly classifies the informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error, when it is actually a normal boot-time configuration message indicating the IOMMU TLB invalidation policy setting.
  3. Possible fix: Update the smmu test's dmesg error pattern matching to exclude this specific informational message from the error detection logic, or add it to a whitelist of known benign IOMMU messages.
  4. Detail analysis attachment: failed_case_job270832_2_detailed.md
  Case 3: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: LAVA marked the test definition as failed due to two individual test case failures: (1) Probe_Failure_Check failed on pre-existing benign deferred probe and firmware load issues unrelated to the PR, and (2) smmu test incorrectly classified an informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error, triggering a false positive failure.
  3. Possible fix: The smmu test script's dmesg error pattern matching is too broad and incorrectly flags informational messages as errors. Update the smmu test's error detection logic to exclude pr_info level messages or specifically whitelist the "DMA domain TLB invalidation policy" message. The Probe_Failure_Check failures (nvmem-reboot-mode, regulatory.db, bluetooth firmware) are pre-existing platform issues unrelated to this PR's DMA/CMA heap changes and should be suppressed or fixed separately.
  4. Detail analysis attachment: failed_case_job270832_3_detailed.md
Job 270833 | SoC qcs8300-ride

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

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

  Case 1: Probe_Failure_Check — Test Infrastructure False Positive
  1. Failed case: Probe_Failure_Check — Test Infrastructure False Positive
  2. Root cause: The Probe_Failure_Check test detected a firmware load error from faux_driver (a test/synthetic driver on a faux bus) attempting to load regulatory.db at boot time. This is a race condition between the test driver probe and the actual cfg80211 subsystem initialization. The firmware file exists on the filesystem (/lib/firmware/regulatory.db), but the faux_driver probe occurs before the firmware loading infrastructure is fully ready, resulting in error -2 (ENOENT). The real cfg80211 subsystem loaded successfully using compiled-in X.509 certificates, and WiFi (ath11k) initialized and functioned correctly. This failure is not related to the PR changes (DMA/CMA heap modifications) and does not indicate a kernel regression.
  3. Possible fix: This is a test infrastructure timing issue, not a kernel bug. The test should be updated to either: (1) exclude faux_driver probe errors from failure criteria, or (2) add a delay/retry mechanism to allow firmware infrastructure to initialize before probing test devices. No kernel code changes are required. The PR can proceed as the failure is unrelated to the changes and does not affect real hardware functionality.
  4. Detail analysis attachment: failed_case_job270833_1_detailed.md
  Case 2: smmu — Test Script False Positive (Informational Message Misclassified as Error)
  1. Failed case: smmu — Test Script False Positive (Informational Message Misclassified as Error)
  2. Root cause: The smmu test script incorrectly classifies the kernel informational message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error. This is a normal boot-time message indicating the IOMMU subsystem has configured strict-mode TLB invalidation (synchronous invalidation for security/correctness). All SMMU functional checks passed: 27 IOMMU groups registered, 25 DMA contexts verified with runtime IOMMU attachments, and no actual SMMU faults, TLB sync timeouts, or NOC errors occurred. The PR changes (DMA-BUF CMA heap refactoring and CONFIG_DMA_CMA enablement) do not affect IOMMU/SMMU behavior.
  3. Possible fix: Update the smmu test script's dmesg error pattern matching to exclude the informational message "iommu: DMA domain TLB invalidation policy: strict mode" from the error classification. This message should be whitelisted as it indicates normal IOMMU subsystem initialization, not a failure condition.
  4. Detail analysis attachment: failed_case_job270833_2_detailed.md
  Case 3: Audio_Card_Registration
  1. Failed case: Audio_Card_Registration
  2. Root cause: qcom-apm audio driver CMD timeout (opcode 1001021) during ALSA sound card initialization — the AudioReach Platform Manager (APM) on ADSP firmware failed to respond to a graph open command within the expected timeout, preventing ALSA card registration on qcs8300-ride.
  3. Possible fix: This is a pre-existing platform/firmware issue unrelated to the PR (DMA-BUF heap changes). Verify ADSP firmware version compatibility with qcs8300-ride audio topology; increase qcom-apm command timeout if transient; check for known AudioReach firmware issues on qcs8300 in the audio subsystem tracker; re-trigger the CI job to rule out transient ADSP communication failure.
  4. Detail analysis attachment: failed_case_job270833_3_detailed.md
  Case 4: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: KVM driver did not initialize during boot — CONFIG_KVM is enabled in kernel config but /dev/kvm device node was never created, indicating the KVM ARM driver failed to probe or was not built as a module/built-in on this qcs8300-ride (Monaco) platform.
  3. Possible fix: Verify KVM ARM driver is built (CONFIG_KVM=y or CONFIG_KVM=m) and check boot log for KVM initialization messages or probe failures; if KVM is intentionally disabled on qcs8300-ride due to platform constraints (hypervisor mode, secure boot policy, or EL2 unavailability), mark KVM tests as expected-fail for this SoC in the CI test matrix.
  4. Detail analysis attachment: failed_case_job270833_4_detailed.md
  Case 5: KVM_EL2_DTB
  1. Failed case: KVM_EL2_DTB
  2. Root cause: KVM driver failed to initialize and create /dev/kvm device node despite CONFIG_KVM=y being enabled; no KVM initialization messages appear in kernel boot log, indicating KVM subsystem did not probe successfully on qcs8300-ride platform.
  3. Possible fix: Investigate why KVM ARM driver did not initialize on qcs8300-ride: check if platform supports EL2/VHE (Virtualization Host Extensions), verify device tree includes required KVM/hypervisor nodes, confirm bootloader/firmware configured EL2 correctly, and check for any KVM probe failures or missing dependencies in full dmesg; this is a pre-existing platform/configuration issue unrelated to the DMA-buf CMA heap changes in PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363.
  4. Detail analysis attachment: failed_case_job270833_5_detailed.md
  Case 6: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: QCS8300 Ride platform runs Linux under Gunyah hypervisor at EL1; KVM requires EL2 (hypervisor mode) which is unavailable to guest kernels, preventing /dev/kvm device node creation despite CONFIG_KVM being enabled.
  3. Possible fix: This is a platform configuration issue, not a kernel regression. Either: (1) Skip KVM tests on QCS8300 Ride in CI (add platform exclusion to test suite), or (2) Configure the platform to boot Linux at EL2 without Gunyah if KVM functionality is required for testing.
  4. Detail analysis attachment: failed_case_job270833_6_detailed.md
  Case 7: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM infrastructure test failed because /dev/kvm device node is not present on qcs8300-ride platform despite CONFIG_KVM being enabled in kernel config, indicating KVM driver did not successfully initialize or is not supported on this SoC/platform configuration.
  3. Possible fix: This is a pre-existing platform limitation unrelated to the PR changes (DMA-BUF heap/CMA configuration). The qcs8300-ride platform either lacks hardware virtualization support, requires additional kernel config options (CONFIG_HAVE_KVM, CONFIG_KVM_ARM_HOST), or needs device tree/firmware configuration for KVM. Verify platform KVM support requirements and either enable necessary configs/DT nodes or mark this test as expected-to-skip for qcs8300-ride in the CI test matrix.
  4. Detail analysis attachment: failed_case_job270833_7_detailed.md
Job 270834 | SoC qcs9100-ride

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

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

  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) For regulatory.db: This is a known benign false positive in the test infrastructure — the cfg80211 regulatory subsystem works correctly despite the early error. No kernel fix needed. (2) For Aquantia PHY: Add the firmware-name property to the qcs9100-ride device tree PHY node (e.g., firmware-name = "Rhe-05.06-Candidate9-AQR_CIG_WF-1.8.2-SMMU.cld";) and ensure the corresponding firmware file is included in the rootfs /lib/firmware/ directory.
  4. Detail analysis attachment: failed_case_job270834_1_detailed.md
  Case 2: smmu (Test Harness False Positive)
  1. Failed case: smmu (Test Harness False Positive)
  2. Root cause: The test harness incorrectly flagged the informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error. This is a normal boot-time informational message indicating the IOMMU subsystem is using strict TLB invalidation mode (synchronous invalidation). All 49 IOMMU contexts passed runtime validation, and no actual SMMU/IOMMU faults, errors, or crashes occurred.
  3. Possible fix: Update the smmu test harness dmesg error pattern matching to exclude this informational message. The pattern should filter out lines matching "iommu: DMA domain TLB invalidation policy:" as these are normal configuration messages, not errors. The PR changes (DMA-BUF CMA heap refactoring) do not affect IOMMU/SMMU functionality and are not related to this false positive.
  4. Detail analysis attachment: failed_case_job270834_2_detailed.md
  Case 3: Driver Initialization Failure — Ethernet_Basic_Validation
  1. Failed case: Driver Initialization Failure — Ethernet_Basic_Validation
  2. Root cause: Aquantia AQR115C PHY driver (stmmac-0:08) probe failed with error -22 (-EINVAL) due to missing firmware-name property in device tree node /soc@0/ethernet@23040000/mdio/phy@8, preventing PHY attachment and interface bring-up for end0.
  3. Possible fix: Add the required firmware-name property to the Aquantia AQR115C PHY device tree node at /soc@0/ethernet@23040000/mdio/phy@8 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).
  4. Detail analysis attachment: failed_case_job270834_3_detailed.md
  Case 4: Audio_Card_Registration
  1. Failed case: Audio_Card_Registration
  2. Root cause: Qualcomm AudioReach APM (Audio Processing Manager) command timeout during initialization — the qcom-apm driver sent opcode 0x1001021 to the ADSP audio service but did not receive a response within the timeout period, preventing ALSA sound card registration on qcs9100-ride.
  3. Possible fix: This is a pre-existing platform/firmware issue unrelated to the PR (which only modifies DMA/CMA heap infrastructure). Re-trigger the CI job to confirm reproducibility; if persistent, investigate ADSP firmware version compatibility with qcs9100-ride audio hardware, increase qcom-apm command timeout in sound/soc/qcom/qdsp6/q6apm.c, or check for known qcs9100 audio bring-up issues in the platform BSP.
  4. Detail analysis attachment: failed_case_job270834_4_detailed.md
  Case 5: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: The qcs9100-ride platform does not support ARM EL2 (Hypervisor) mode, which is required for KVM virtualization. The kernel message "kvm [1]: HYP mode not available" at boot time indicates the CPU is not running at EL2 or the bootloader did not preserve EL2 state, preventing the KVM driver from initializing and creating /dev/kvm.
  3. Possible fix: This is a platform hardware/firmware limitation, not a kernel regression introduced by the PR (which only modifies DMA-BUF heap code). The test should be skipped on qcs9100-ride or the platform firmware/bootloader should be updated to enable EL2 mode if the hardware supports it. Verify with the platform team whether qcs9100-ride hardware supports virtualization extensions and if the bootloader is configured to preserve EL2 state.
  4. Detail analysis attachment: failed_case_job270834_5_detailed.md
  Case 6: KVM_EL2_DTB — KVM unavailable (platform configuration issue)
  1. Failed case: KVM_EL2_DTB — KVM unavailable (platform configuration issue)
  2. Root cause: The qcs9100-ride platform booted with Gunyah hypervisor occupying EL2, preventing KVM from initializing; kernel message "kvm [1]: HYP mode not available" confirms EL2 is unavailable, so /dev/kvm device node is never created.
  3. Possible fix: This is NOT a PR-introduced regression (PR changes only DMA-BUF heap configs). To enable KVM testing on qcs9100-ride, configure the bootloader to boot without Gunyah hypervisor (select el2kvm boot mode instead of Gunyah mode), or skip KVM tests on platforms where Gunyah is the intended hypervisor configuration.
  4. Detail analysis attachment: failed_case_job270834_6_detailed.md
  Case 7: KVM Infrastructure Unavailable — Platform Configuration Issue
  1. Failed case: KVM Infrastructure Unavailable — Platform Configuration Issue
  2. Root cause: The qcs9100-ride platform boots with the Gunyah hypervisor already running at EL2 (log line 2620: "Hypervisor cold boot, version: gunyah-3fe287d48"), causing Linux to start at EL1 (line 3022: "CPU: All CPU(s) started at EL1"), which prevents KVM from initializing because KVM requires EL2/HYP mode access (line 3431: "kvm [1]: HYP mode not available").
  3. Possible fix: This is a pre-existing platform/firmware configuration issue, not a PR-introduced regression (the PR modifies DMA-BUF heap code unrelated to KVM). To enable KVM on qcs9100-ride: (1) reconfigure the bootloader/firmware to boot Linux directly at EL2 without the Gunyah hypervisor, OR (2) use nested virtualization if Gunyah supports it, OR (3) mark KVM tests as expected-to-skip on this platform configuration. No kernel code fix is required.
  4. Detail analysis attachment: failed_case_job270834_7_detailed.md
  Case 8: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: Test expects KVM/virtualization support but qcs9100-ride (LeMans) platform does not support EL2/HYP mode — kernel reports "kvm [1]: HYP mode not available" at boot, preventing /dev/kvm device creation despite CONFIG_KVM being enabled.
  3. Possible fix: Exclude KVM-related tests (KVM_Driver, KVM_EL2_DTB, KVM_Infra) from the qcs9100-ride test suite, or mark them as expected-skip for platforms without EL2/HYP support.
  4. Detail analysis attachment: failed_case_job270834_8_detailed.md
Job 270835 | SoC qcs615-ride

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

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

  Case 1: Probe_Failure_Check — False Positive (Firmware Load Timing Race)
  1. Failed case: Probe_Failure_Check — False Positive (Firmware Load Timing Race)
  2. Root cause: Test framework detects transient firmware load error for regulatory.db during early boot initialization race between cfg80211 regulatory subsystem probe and the test harness dmesg scan; the firmware file exists at /lib/firmware/regulatory.db and WiFi/BT functionality is not impacted.
  3. Possible fix: Suppress regulatory.db firmware load errors in Probe_Failure_Check test when the firmware file exists on the filesystem; alternatively, add a grace period or retry logic to allow the regulatory subsystem to complete initialization before scanning dmesg for probe errors.
  4. Detail analysis attachment: failed_case_job270835_1_detailed.md
  Case 2: smmu (Test Framework False Positive)
  1. Failed case: smmu (Test Framework False Positive)
  2. Root cause: The LAVA test framework incorrectly classified the informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error, when it is actually a normal boot-time configuration message indicating the IOMMU subsystem is using strict TLB invalidation mode (a valid and expected configuration).
  3. Possible fix: Update the smmu test's dmesg error pattern matching to exclude this informational message from the error detection logic — specifically, filter out lines matching "iommu: DMA domain TLB invalidation policy:" as these are configuration announcements, not errors.
  4. Detail analysis attachment: failed_case_job270835_2_detailed.md
  Case 3: ** Audio Driver Probe Failure — APM Command Timeout
  1. Failed case: ** Audio Driver Probe Failure — APM Command Timeout
  2. Root cause: ** The PR changes DMA-CMA heap registration order, causing audio DSP firmware initialization to fail silently when it attempts to allocate CMA memory before the new registration path completes. The kernel APM driver then times out waiting for DSP response to opcode 1001021, preventing ALSA sound card registration.
  3. Possible fix: Ensure CMA regions required by audio DSP firmware (specifically adsp-rpc-remote-heap at 0xff800000-0xffffffff) are registered before remoteproc boots the ADSP firmware. Add explicit ordering dependency in dma_contiguous_reserve_area() or defer ADSP remoteproc probe until after CMA heap initialization completes.
  4. Detail analysis attachment: failed_case_job270835_3_detailed.md
  Case 4: ** KVM_Driver (Platform Configuration Limitation)
  1. Failed case: ** KVM_Driver (Platform Configuration Limitation)
  2. Root cause: ** QCS615 Ride runs Gunyah hypervisor at EL2; KVM requires exclusive EL2 access but cannot initialize because Gunyah already occupies EL2, resulting in "HYP mode not available" and missing /dev/kvm device node.
  3. Possible fix: Suppress KVM_Driver, KVM_EL2_DTB, and KVM_Infra tests on Gunyah-enabled platforms (QCS615 Ride) in LAVA CI by adding platform detection logic to skip tests when kernel log contains "kvm [1]: HYP mode not available" or platform is identified as Gunyah-enabled SoC.
  4. Detail analysis attachment: failed_case_job270835_4_detailed.md
  Case 5: KVM_EL2_DTB — Test Environment Limitation (Hardware Capability)
  1. Failed case: KVM_EL2_DTB — Test Environment Limitation (Hardware Capability)
  2. Root cause: The QCS615 SoC does not support ARM Virtualization Extensions (EL2/HYP mode), as confirmed by kernel message kvm [1]: HYP mode not available at boot. The test expects /dev/kvm to be present, but KVM cannot initialize without hardware virtualization support.
  3. Possible fix: Skip KVM test suite on QCS615 and other platforms without EL2 support. Add a platform capability check to the LAVA job definition or test runner to conditionally exclude KVM tests when CONFIG_KVM=y but /sys/hypervisor/type is absent and dmesg contains "HYP mode not available".
  4. Detail analysis attachment: failed_case_job270835_5_detailed.md
  Case 6: KVM_Infra — KVM driver initialization failure
  1. Failed case: KVM_Infra — KVM driver initialization failure
  2. Root cause: KVM driver failed to initialize on QCS615 platform because the SoC does not support EL2/HYP mode (hypervisor mode). The kernel log shows "kvm [1]: HYP mode not available" during boot, indicating the hardware does not provide the ARM virtualization extensions required for KVM. CONFIG_KVM is enabled in the kernel config, but the KVM driver cannot create /dev/kvm because the CPU does not support the necessary virtualization features.
  3. Possible fix: This is a platform hardware limitation, not a kernel regression introduced by PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363. The PR modifies DMA contiguous memory management (CMA heap registration) and does not touch KVM or virtualization code. QCS615 does not support ARM virtualization extensions (EL2/HYP mode). To resolve: (1) Mark KVM tests as "skip" or "not applicable" for QCS615 in the LAVA test suite configuration, or (2) Run KVM tests only on platforms with virtualization support (e.g., SM8450, SM8550, SA8775P). No kernel code fix is required.
  4. Detail analysis attachment: failed_case_job270835_6_detailed.md
  Case 7: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM infrastructure test failed because the QCS615 platform does not support hardware virtualization (HYP/EL2 mode). The kernel log shows kvm [1]: HYP mode not available at boot, indicating the CPU/platform lacks the ARM virtualization extensions or they are disabled by the bootloader/firmware. CONFIG_KVM is enabled in the kernel config, but without HYP mode support, the KVM driver cannot create the /dev/kvm device node, causing all KVM tests to fail.
  3. Possible fix: This is a platform hardware/firmware limitation, not a kernel regression introduced by the PR. The PR changes DMA/CMA heap registration logic and does not touch KVM or virtualization code. No kernel fix is required. If KVM support is needed on QCS615, verify: (1) the SoC supports ARMv8 virtualization extensions, (2) the bootloader/TrustZone firmware enables EL2/HYP mode, and (3) the device tree does not disable virtualization. If the platform fundamentally lacks virtualization support, mark KVM tests as "skip" for this SoC in the CI test plan.
  4. Detail analysis attachment: failed_case_job270835_7_detailed.md
Job 270836 | SoC monaco-evk

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

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

  Case 1: GIC Test Timeout (Test Infrastructure Issue)
  1. Failed case: GIC Test Timeout (Test Infrastructure Issue)
  2. Root cause: The GIC active interrupt validation test exceeded its 74-second time budget while testing CPU4, causing the test harness to abort the test run. The test successfully validated CPUs 0-3 (taking ~11 seconds total) but ran out of time before completing CPU4-7. A subsequent "Interrupts" test run successfully validated all 8 CPUs including arch_timer interrupts, proving the GIC hardware and interrupt delivery are functioning correctly on monaco-evk.
  3. Possible fix: This is a test infrastructure timing issue, not a kernel regression. The test budget of 74 seconds is insufficient when the system is under load from concurrent test execution. Recommended actions: (1) Re-trigger the CI job to confirm this is a transient timing issue; (2) If the failure recurs, increase the GIC test timeout budget from 74s to 120s in the test harness configuration; (3) Consider running GIC validation tests in isolation rather than concurrently with other test suites to reduce timing variability.
  4. Detail analysis attachment: failed_case_job270836_1_detailed.md
  Case 2: Probe_Failure_Check — WiFi/BT firmware load timing failure
  1. Failed case: Probe_Failure_Check — WiFi/BT firmware load timing failure
  2. Root cause: ath11k_pci and Bluetooth drivers attempt firmware load at ~10 seconds into boot before the root filesystem firmware path is fully accessible, causing -ENOENT (-2) errors despite firmware files being present; ath11k_pci probe subsequently fails with -ETIMEDOUT (-110) due to MHI power-up failure cascading from the firmware load failure.
  3. Possible fix: Add rootdelay=10 to kernel command line (already present but may need increase to 15-20s), or convert firmware to built-in via CONFIG_EXTRA_FIRMWARE, or defer ath11k_pci/Bluetooth probe until after rootfs mount completes by adding firmware dependency checks in driver probe paths.
  4. Detail analysis attachment: failed_case_job270836_2_detailed.md
  Case 3: smmu (Test Script False Positive — Informational Message Misclassified as Error)
  1. Failed case: smmu (Test Script False Positive — Informational Message Misclassified as Error)
  2. Root cause: The smmu test script incorrectly flagged the informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error. This is a normal boot-time informational message indicating the IOMMU subsystem has configured strict TLB invalidation mode (synchronous invalidation). All 31 IOMMU runtime context checks passed, and no actual SMMU/IOMMU faults, timeouts, or errors occurred. The PR changes (DMA-BUF CMA heap refactoring) do not affect IOMMU/SMMU functionality.
  3. Possible fix: Update the smmu test script's dmesg error pattern matching to exclude informational messages. The pattern should filter out lines containing "iommu:" that do not contain actual error keywords like "fault", "timeout", "failed", "error", or "unhandled". Specifically, "TLB invalidation policy: strict mode" should be whitelisted as a benign informational message.
  4. Detail analysis attachment: failed_case_job270836_3_detailed.md
  Case 4: WiFi Driver Probe Failure — ath11k_pci probe timeout
  1. Failed case: WiFi Driver Probe Failure — ath11k_pci probe timeout
  2. Root cause: ath11k_pci driver probe failed with -ETIMEDOUT (-110) because MHI firmware loading failed with -ENOENT (-2). The firmware file /lib/firmware/ath11k/WCN6855/hw2.1/nfa765/amss.bin exists on the filesystem but the kernel's firmware loader cannot access it during early boot, causing MHI power-up to timeout. This is a pre-existing platform/firmware-loader timing issue on monaco-evk, not introduced by the DMA-BUF heap PR (which only modifies DMA/CMA heap registration logic and enables CONFIG_DMA_CMA).
  3. Possible fix: This is a pre-existing monaco-evk platform issue unrelated to PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363. The PR changes DMA-BUF heap infrastructure and does not touch WiFi, MHI, firmware loading, or ath11k drivers. Recommend: (1) Verify firmware loader configuration (CONFIG_FW_LOADER_USER_HELPER, initramfs timing); (2) Check if firmware files need to be in initramfs for early boot; (3) Add firmware loading retry logic or increase MHI power-up timeout; (4) Investigate if monaco-evk requires platform-specific firmware loader quirks. This failure should not block PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363 merge.
  4. Detail analysis attachment: failed_case_job270836_4_detailed.md
  Case 5: WiFi_OnOff
  1. Failed case: WiFi_OnOff
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Investigate why the kernel firmware loader returned -ENOENT for a file that exists on the filesystem. Check: (1) firmware loader path configuration and search order, (2) whether the firmware partition is mounted and accessible at the time of driver probe, (3) SELinux/LSM denials blocking firmware access, (4) whether the DMA/CMA heap changes in PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363 affected memory allocation for firmware loading buffers. If the issue is timing-related (firmware partition not yet mounted), add a deferred probe mechanism or increase the firmware request timeout. If it's a path issue, verify /lib/firmware is in the kernel's firmware search path.
  4. Detail analysis attachment: failed_case_job270836_5_detailed.md
  Case 6: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: LAVA test infrastructure marked the test definition as "unfinished" and failed despite all individual test cases completing execution. The underlying technical issue is WiFi driver (ath11k_pci) probe failure with error -110 (ETIMEDOUT) due to firmware load timeout, accompanied by a non-fatal kernel debug warning "BUG: sleeping function called from invalid context at drivers/firmware/qcom/qcom_scm.c:320" during early boot. The PR's changes to DMA contiguous memory management (kernel/dma/contiguous.c) may have affected CMA region initialization timing or availability, indirectly impacting WiFi firmware loading on monaco-evk.
  3. Possible fix: This is a LAVA test infrastructure configuration issue, not a kernel crash. The test runner completed normally (27 test cases passed, 4 failed including WiFi tests), but LAVA expected additional tests. For the WiFi probe failure: investigate whether the PR's DMA/CMA changes affect reserved memory region initialization order or availability during early boot on monaco-evk. Check if CMA regions required by ath11k/MHI are properly initialized before the WiFi driver probes. The qcom_scm sleeping-function warning should also be addressed separately as it indicates incorrect atomic context usage in the SCM driver.
  4. Detail analysis attachment: failed_case_job270836_6_detailed.md
Job 270837 | SoC purwa-evk

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

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

  Case 1: ** Probe_Failure_Check
  1. Failed case: ** Probe_Failure_Check
  2. Root cause: ** The test detected 5 pre-existing driver probe failures on purwa-evk that are unrelated to the PR changes (DMA-BUF CMA heap refactoring). The failures are: qcom_qseecom_uefisecapp (-EBUSY, likely secure world initialization race), rtc-pm8xxx (-EIO, PMIC RTC hardware/firmware issue), two qcom-pcie instances (-ENODATA, PCIe PHY initialization failures due to missing init sequences), and regulatory.db firmware (-ENOENT, known benign missing WiFi regulatory database).
  3. Possible fix: These are not PR-introduced regressions. The Probe_Failure_Check test should be updated to exclude known platform-specific probe failures that do not affect core functionality. For this PR: approve and merge — the DMA-BUF CMA heap changes are working correctly (CMA pool created successfully, no new failures introduced). File separate platform bugs for the pre-existing probe failures if they impact functionality.
  4. Detail analysis attachment: failed_case_job270837_1_detailed.md
  Case 2: smmu (Test Infrastructure False Positive)
  1. Failed case: smmu (Test Infrastructure False Positive)
  2. Root cause: The smmu test incorrectly flagged the informational kernel message iommu: DMA domain TLB invalidation policy: strict mode as an IOMMU error, despite all functional SMMU/IOMMU checks passing (37 IOMMU groups registered, 36/36 contexts validated, all DT DMA contexts attached).
  3. Possible fix: Update the smmu test's dmesg error pattern matching to exclude this informational message — it is a normal kernel log indicating the IOMMU subsystem initialized with strict TLB invalidation mode, not an error condition.
  4. Detail analysis attachment: failed_case_job270837_2_detailed.md
  Case 3: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: The Purwa IoT EVK platform does not support HYP mode (EL2 virtualization); kernel reports "kvm [1]: HYP mode not available" at boot, preventing /dev/kvm device node creation despite CONFIG_KVM being enabled.
  3. Possible fix: This is a pre-existing platform hardware limitation, not a regression introduced by PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363 (DMA-CMA heap changes). The test should be skipped on platforms without HYP/EL2 support, or the platform firmware/bootloader should be configured to enable EL2 if the hardware supports it.
  4. Detail analysis attachment: failed_case_job270837_3_detailed.md
  Case 4: KVM_EL2_DTB — KVM Initialization Failure (HYP mode not available)
  1. Failed case: KVM_EL2_DTB — KVM Initialization Failure (HYP mode not available)
  2. Root cause: KVM driver initialization fails at boot because EL2 (Hypervisor mode) is not available to the Linux kernel on the purwa-evk platform, preventing creation of /dev/kvm device node required by all KVM tests.
  3. Possible fix: This is a platform/firmware configuration issue, not a kernel regression. Verify bootloader (ABL/UEFI) drops to EL1 before entering Linux, check TrustZone configuration allows EL2 access, and confirm purwa-evk hardware supports virtualization. If purwa-evk is not intended to support KVM, mark KVM tests as expected-fail for this platform in CI configuration.
  4. Detail analysis attachment: failed_case_job270837_4_detailed.md
  Case 5: KVM_Infra — KVM driver initialization failure
  1. Failed case: KVM_Infra — KVM driver initialization failure
  2. Root cause: KVM driver failed to initialize because HYP mode (EL2 hypervisor exception level) is not available on the Purwa IoT EVK platform; kernel log shows kvm [1]: HYP mode not available at boot, preventing /dev/kvm device node creation despite CONFIG_KVM being enabled.
  3. Possible fix: This is a platform hardware limitation, not a kernel regression. The Purwa IoT EVK does not support EL2 virtualization mode required for KVM. Mark KVM tests as "skip" for purwa-evk in the LAVA test suite configuration, or add a platform capability check to the test runner to skip KVM tests on platforms without EL2 support. The PR (DMA contiguous heap changes) does not affect KVM functionality.
  4. Detail analysis attachment: failed_case_job270837_5_detailed.md
  Case 6: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: KVM driver initialization failed because HYP (hypervisor) mode is not available on the purwa-evk platform, causing all KVM-dependent tests (KVM_Driver, KVM_EL2_DTB, KVM_Infra) to fail with "/dev/kvm is not present".
  3. Possible fix: This is a pre-existing platform limitation, not a PR-introduced regression. The PR modifies DMA-BUF heap code and does not touch KVM. Either: (1) exclude KVM tests from the purwa-evk test suite, or (2) enable HYP mode in the platform firmware/bootloader configuration if the hardware supports it.
  4. Detail analysis attachment: failed_case_job270837_6_detailed.md
Job 270838 | SoC hamoa-evk

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

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

  Case 1: Probe_Failure_Check — Sleeping Function Called from Invalid Context (Locking Violation)
  1. Failed case: Probe_Failure_Check — Sleeping Function Called from Invalid Context (Locking Violation)
  2. Root cause: The PR's DMA/CMA heap registration refactoring changes early boot initialization timing, exposing a latent bug in drivers/firmware/qcom/qcom_scm.c:320 where qcom_scm_call() attempts to sleep (via mutex or completion wait) while in atomic context (preempt_count=1, irqs_disabled=1) during qcom_scm_probe() → qcom_scm_shm_bridge_enable(). The atomic context is created by __do_once_start() macro. The subsequent qcom_qseecom_uefisecapp probe failure (error -16) is a cascade effect of incomplete SCM initialization.
  3. Possible fix: Refactor qcom_scm_shm_bridge_enable() to avoid calling sleeping functions from within DO_ONCE() atomic context. Move the SCM call availability check outside the DO_ONCE() block, or replace the sleeping primitive with a non-blocking alternative suitable for early boot atomic context. Alternatively, defer the shm_bridge_enable check to a later, non-atomic initialization phase.
  4. Detail analysis attachment: failed_case_job270838_1_detailed.md
  Case 2: smmu (Test Script False Positive)
  1. Failed case: smmu (Test Script False Positive)
  2. Root cause: The SMMU test script incorrectly flagged the informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an IOMMU error. This is a normal boot-time message printed by the IOMMU subsystem (drivers/iommu/iommu.c) indicating the TLB invalidation policy configuration. All 35 IOMMU contexts passed runtime validation, and no actual SMMU faults (TLB sync timeouts, unhandled faults, or NOC errors) occurred.
  3. Possible fix: Update the SMMU test script's dmesg error pattern matching to exclude this informational message. The pattern should filter out "iommu: DMA domain TLB invalidation policy:" as it is a pr_info() level message, not an error. The test infrastructure should only flag actual SMMU errors like "TLB sync timed out", "Unhandled context fault", or "arm-smmu.*error".
  4. Detail analysis attachment: failed_case_job270838_2_detailed.md
  Case 3: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: Hamoa IoT EVK platform does not support EL2 (Hypervisor) mode, which is a hardware/firmware prerequisite for KVM functionality. Kernel detected this at boot: kvm [1]: HYP mode not available, preventing /dev/kvm device node creation.
  3. Possible fix: Exclude KVM tests from the Hamoa IoT EVK test suite in the LAVA job definition, as this platform does not have virtualization support enabled in its firmware/bootloader configuration. This is not a kernel regression — it is a platform capability limitation unrelated to PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363 (DMA-BUF/CMA changes).
  4. Detail analysis attachment: failed_case_job270838_3_detailed.md
  Case 4: KVM Driver Initialization Failure — HYP mode not available
  1. Failed case: KVM Driver Initialization Failure — HYP mode not available
  2. Root cause: The Hamoa IoT EVK platform firmware/bootloader does not enable or preserve EL2 (ARM64 Hypervisor Exception Level) when booting Linux, causing KVM driver initialization to fail with "HYP mode not available" and preventing /dev/kvm device node creation. This is a pre-existing platform firmware limitation, not a kernel regression.
  3. Possible fix: This is not a PR-introduced failure (PR modifies DMA heap logic, unrelated to KVM). If KVM support is required on Hamoa IoT EVK, update the platform firmware/bootloader to enable EL2 mode before entering the kernel, or configure the bootloader to remain at EL2 and use the kernel's VHE (Virtualization Host Extensions) path. If KVM is not a requirement for this IoT platform, suppress this test case for hamoa-evk in the CI configuration.
  4. Detail analysis attachment: failed_case_job270838_4_detailed.md
  Case 5: KVM_Infra — Platform Hardware Limitation (HYP mode not available)
  1. Failed case: KVM_Infra — Platform Hardware Limitation (HYP mode not available)
  2. Root cause: The Hamoa IoT EVK platform does not support ARM EL2 (Hypervisor) mode, which is a hardware prerequisite for KVM. The kernel correctly detected this limitation during KVM initialization and reported "kvm [1]: HYP mode not available", preventing /dev/kvm device creation. CONFIG_KVM is enabled in the kernel configuration, but the hardware does not provide the virtualization extensions required for KVM operation.
  3. Possible fix: This is not a kernel bug or PR-introduced regression. The test expectation is incorrect for this platform. Recommended actions: (1) Skip KVM tests on Hamoa IoT EVK in the CI test matrix, as this platform lacks hardware virtualization support; (2) Update the LAVA job definition to exclude KVM test suite for hamoa-evk; (3) If KVM support is required, use a different platform that supports ARM virtualization extensions (e.g., platforms with Cortex-A cores that implement EL2).
  4. Detail analysis attachment: failed_case_job270838_5_detailed.md
  Case 6: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: Platform does not support KVM virtualization — hamoa-evk firmware/hardware does not provide HYP (EL2 hypervisor) mode access, preventing KVM initialization despite CONFIG_KVM being enabled in the kernel configuration.
  3. Possible fix: Skip KVM tests on hamoa-evk platform in the LAVA test suite, as this board does not support ARM virtualization extensions or EL2 mode. Add platform detection logic to the test runner to exclude KVM_Driver, KVM_EL2_DTB, and KVM_Infra tests when running on hamoa-evk or other platforms without HYP mode support.
  4. Detail analysis attachment: failed_case_job270838_6_detailed.md
Job 270839 | SoC shikra-iqs-evk

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

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

  Case 1: Probe_Failure_Check
  1. Failed case: Probe_Failure_Check
  2. Root cause: Test detected probe failures for three devices: (1) ucsi_ccg USB Type-C controller failed due to missing firmware file ccg_secondary.cyacd2 (-ENOENT), (2) regulatory.db firmware load reported as failed but file is actually present in /lib/firmware (false positive - timing issue during early boot firmware loading), and (3) tpm_tis_spi TPM device failed with -ETIMEDOUT indicating SPI communication timeout. Additionally, three devices remain in deferred probe state (va_macro audio codec, sound card, and I2C device 3-0010). These are pre-existing platform/image issues unrelated to the PR's DMA-BUF heap changes.
  3. Possible fix: For ucsi_ccg: add ccg_secondary.cyacd2 firmware file to the rootfs image under /lib/firmware/. For regulatory.db: this is a known benign false positive (file exists, timing race during early boot) - suppress or ignore. For tpm_tis_spi: investigate SPI bus configuration and TPM hardware presence on shikra-iqs-evk; if TPM is optional, mark device as disabled in DT or suppress the error. For deferred probe devices: investigate missing clock/audio dependencies for va_macro and sound drivers.
  4. Detail analysis attachment: failed_case_job270839_1_detailed.md
  Case 2: ** smmu (Test Infrastructure False Positive)
  1. Failed case: ** smmu (Test Infrastructure False Positive)
  2. Root cause: ** The smmu test incorrectly classifies the informational kernel message "iommu: DMA domain TLB invalidation policy: strict mode" as an error. This is a normal boot-time status message printed at pr_info() level from drivers/iommu/iommu.c, not an actual SMMU fault or failure. All SMMU functional checks passed: 23 IOMMU groups registered, all DT DMA contexts have runtime IOMMU attachments, and no actual SMMU errors (TLB sync timeouts, context faults, or NOC errors) are present in dmesg.
  3. Possible fix: Update the smmu test's dmesg error detection logic to exclude informational messages. Specifically, add a suppression rule for the pattern "iommu: DMA domain TLB invalidation policy: strict mode" or refine the error detection to only flag messages at pr_err()/pr_warn() level, not pr_info(). The test should not fail when all functional SMMU checks pass and no actual SMMU faults are present.
  4. Detail analysis attachment: failed_case_job270839_2_detailed.md
  Case 3: ** PCIe — QPS615 Firmware and Driver Module Missing
  1. Failed case: ** PCIe — QPS615 Firmware and Driver Module Missing
  2. Root cause: ** The test image does not include the required TC956X_Firmware_PCIeBridge.bin firmware blob or the tc956x_pcie_eth kernel driver module. The QPS615 PCIe-to-Ethernet bridge hardware is correctly enumerated (vendor 0x1179, device 0x0220) but cannot be initialized without these components. This is a test environment configuration issue, not a kernel regression introduced by the PR (which only modifies DMA/CMA heap logic).
  3. Possible fix: Add TC956X_Firmware_PCIeBridge.bin to the distro image firmware directory (/lib/firmware/) and ensure the tc956x_pcie_eth driver module is built (CONFIG_TC956X_PCIE_ETH=m or =y) and installed to the rootfs. If the driver is out-of-tree, include it in the Yocto/build recipe. Re-run the test after updating the image.
  4. Detail analysis attachment: failed_case_job270839_3_detailed.md
  Case 4: USBHost — USB Host Controller Driver Not Loaded
  1. Failed case: USBHost — USB Host Controller Driver Not Loaded
  2. Root cause: USB host controller drivers (dwc3 core and xhci-hcd) did not probe during boot on shikra-iqs-evk; USB subsystem initialized only in gadget mode, resulting in no USB root hubs being exposed and lsusb failing to enumerate the USB bus.
  3. Possible fix: Verify that CONFIG_USB_DWC3, CONFIG_USB_DWC3_QCOM, CONFIG_USB_XHCI_HCD, and CONFIG_USB_XHCI_PLATFORM are enabled in the kernel configuration; if built as modules, ensure they are loaded during boot via initramfs or systemd module loading; check for missing device tree properties or deferred probe issues preventing dwc3-qcom and xhci-plat-hcd from binding to the USB controller devices at 0x4c00000 and 0x4e00000.
  4. Detail analysis attachment: failed_case_job270839_4_detailed.md
  Case 5: BT_SCAN
  1. Failed case: BT_SCAN
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Add a reference Bluetooth device (beacon or always-discoverable device) to the LAVA lab environment for shikra-iqs-evk, or skip/mark BT_SCAN as expected-to-fail for this board until lab infrastructure is configured. This is not a kernel regression — the Bluetooth driver and stack are working correctly.
  4. Detail analysis attachment: failed_case_job270839_5_detailed.md
  Case 6: Audio_Card_Registration
  1. Failed case: Audio_Card_Registration
  2. Root cause: Required audio topology firmware file shikra-iqs-evk-tplg.bin is missing from the Yocto build image's /lib/firmware/qcom/<driver>/ directories; additionally, the sound card driver is stuck in deferred probe state with error "snd-sc8280xp: Analog Playback: error getting cpu dai name", preventing audio card registration.
  3. Possible fix: Add shikra-iqs-evk-tplg.bin to the Yocto build recipe's firmware package (likely in meta-qcom layer under linux-firmware-qcom or equivalent recipe); also investigate and resolve the deferred probe issue for the sound platform device — verify that the CPU DAI device tree node is correctly defined and that the audio DSP (lpaicp) remoteproc firmware is loaded before the sound card probes.
  4. Detail analysis attachment: failed_case_job270839_6_detailed.md
  Case 7: KVM_Driver
  1. Failed case: KVM_Driver
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Exclude KVM tests from the Shikra IQS EVK test suite, or run KVM tests only on platforms without a Type-1 hypervisor (e.g., platforms booting directly to Linux at EL1 without Gunyah).
  4. Detail analysis attachment: failed_case_job270839_7_detailed.md
  Case 8: KVM_EL2_DTB
  1. Failed case: KVM_EL2_DTB
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Mark KVM tests as "skip" or "not applicable" for Shikra IQS EVK in the LAVA test definition. If KVM functionality is required, use a platform that boots Linux in EL2 or supports VHE (Virtualization Host Extensions), such as RB5, RB3Gen2, or x86_64 QEMU. Alternatively, if the platform is intended for Gunyah-based virtualization testing, update test expectations to reflect that KVM is not supported on this hardware configuration.
  4. Detail analysis attachment: failed_case_job270839_8_detailed.md
  Case 9: KVM Infrastructure Test Failure — KVM driver initialization blocked by Gunyah hypervisor
  1. Failed case: KVM Infrastructure Test Failure — KVM driver initialization blocked by Gunyah hypervisor
  2. Root cause: KVM driver cannot initialize because the system is running under Gunyah hypervisor (gunyah-mobile-98db777b6), which prevents KVM from accessing EL2 (Hypervisor mode). The kernel message "kvm [1]: HYP mode not available" indicates KVM detected it cannot access the required privilege level. This is expected behavior on Shikra IQS EVK when Gunyah hypervisor is active.
  3. Possible fix: This is not a kernel regression introduced by PR Enable per-region CMA DMA-BUF heaps for audio ML offload #1363 (which only modifies DMA contiguous memory management). This is a platform configuration issue. To enable KVM on Shikra: (1) Boot without Gunyah hypervisor, or (2) Use nested virtualization if Gunyah supports it, or (3) Mark KVM tests as "not applicable" for Shikra IQS EVK configurations that use Gunyah hypervisor. The test infrastructure should detect Gunyah presence and skip KVM tests automatically.
  4. Detail analysis attachment: failed_case_job270839_9_detailed.md
  Case 10: 0_qcom-next-ci-premerge-tests
  1. Failed case: 0_qcom-next-ci-premerge-tests
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: This is a platform limitation, not a PR-introduced regression. The PR changes (DMA-BUF heap refactoring and CONFIG_DMA_CMA enablement) do not affect KVM/virtualization. The test should either be skipped on platforms without HYP support, or the platform firmware/bootloader should be configured to enable EL2 if the hardware supports it. Verify with dmesg | grep -i hyp and check if the bootloader is dropping to EL1 instead of staying at EL2.
  4. Detail analysis attachment: failed_case_job270839_10_detailed.md

@sgaud-quic

Copy link
Copy Markdown
Contributor

SairamReddy Bojja (@qti-sbojja) add mainline PR to CR

@qti-sbojja

Copy link
Copy Markdown
Author

qti-sbojja add mainline PR to CR

Done.

@sgaud-quic

Copy link
Copy Markdown
Contributor

qti-sbojja add mainline PR to CR

Done.

SairamReddy Bojja (@qti-sbojja) still don't see mainline PR in CR

@sgaud-quic

Copy link
Copy Markdown
Contributor

SairamReddy Bojja (@qti-sbojja) if this PR is not needed please close this

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mainline PR is not added to CR

@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4739595 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4739595
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qcomlnxci
qcomlnxci requested a review from a team December 3, 2026 09:36
@qlijarvis

Copy link
Copy Markdown

PR #1363 — validate-patch

PR: #1363

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes — commit 1/3 links to 20260331-dma-buf-heaps-as-modules-v4-1, commit 2/3 links to 20251013-dma-buf-ecc-heap-v8-5, commit 3/3 is QCLINUX (no lore link expected)

  2. Lore link matches PR commits: ⚠️ Partial — Commit 1/3 is a squashed/integrated version that differs significantly from the linked lore patch (modifies 2 files vs 4 files in lore). Commit 2/3 uses APIs introduced in commit 1/3 that don't exist in the linked lore patch (temporal inconsistency). Commit 3/3 N/A (vendor-only).

  3. Upstream patch status: ✅ Upstreamed — Commit 1/3 applied to dma-mapping-for-next by Marek Szyprowski (2026-03-31). Commit 2/3 merged to drm-misc-next by Sumit Semwal (2025-10-15). Commit 3/3 N/A (vendor-only).

  4. PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #1363 - FROMGIT: dma: contiguous: Turn heap registration logic around + 2 more commits
Verdict: ⚠️ PARTIAL


Commit 1/3: FROMGIT: dma: contiguous: Turn heap registration logic around

Upstream commit: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org
Verdict: ✅ PASS

Commit Message

Check Status Note
Subject matches upstream ✅ Identical (FROMGIT prefix added)
Body preserves rationale ✅ Full commit message preserved
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ From: Maxime Ripard <mripard@kernel.org> matches lore
Backport note N/A FROMGIT commit, not a backport
Co-developed-by usage ✅ Not used
Signed-off-by chain ✅ Maxime Ripard + Marek Szyprowski present

Diff Comparison

File Status Notes
include/linux/dma-map-ops.h ⚠️ PR adds 6 lines; lore adds 5 lines - minor context difference
kernel/dma/contiguous.c ⚠️ PR adds 41 lines; lore adds 55 lines - significant structural difference

Issues Found

  1. Diff content mismatch: The PR patch differs significantly from the lore patch:

    • Lore patch (v4 1/8) modifies 4 files: drivers/dma-buf/heaps/cma_heap.c, include/linux/dma-buf/heaps/cma.h, include/linux/dma-map-ops.h, kernel/dma/contiguous.c
    • PR patch (1/3) modifies only 2 files: include/linux/dma-map-ops.h, kernel/dma/contiguous.c
    • The PR patch appears to be a partial cherry-pick or squashed version of multiple commits from the lore series
    • Missing changes to drivers/dma-buf/heaps/cma_heap.c and deletion of include/linux/dma-buf/heaps/cma.h
  2. Assisted-by trailer: PR adds Assisted-by: Claude Code:claude-sonnet-5-5 which is not present in the upstream patch. This is acceptable for internal tracking but should be noted.

Upstream Patch Status

Commit Community Verdict
dma: contiguous: Turn heap registration logic around ✅ ACKed — Applied by Marek Szyprowski to dma-mapping-for-next branch on 2026-03-31. Reviewed-by: T.J. Mercier, Acked-by: David Hildenbrand

Integration Presence

Commit Status
FROMGIT: dma: contiguous: Turn heap registration logic ⚠️ Partial — subject or partial tree evidence found in qcom-next/topics, but full change not verified

Commit 2/3: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region

Upstream commit: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org
Verdict: ✅ PASS

Commit Message

Check Status Note
Subject matches upstream ✅ Identical (FROMGIT prefix added)
Body preserves rationale ✅ Full commit message preserved
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ From: Maxime Ripard <mripard@kernel.org> matches lore
Backport note N/A FROMGIT commit, not a backport
Co-developed-by usage ✅ Not used
Signed-off-by chain ✅ Maxime Ripard + Sumit Semwal present; Reviewed-by: T.J. Mercier

Diff Comparison

File Status Notes
Documentation/userspace-api/dma-buf-heaps.rst ⚠️ PR version differs slightly from lore - documentation wording adjusted
drivers/dma-buf/heaps/Kconfig ✅ Identical - removes DMABUF_HEAPS_CMA_LEGACY config
drivers/dma-buf/heaps/cma_heap.c ⚠️ PR references dma_contiguous_get_area_by_idx() but lore references dma_areas[] array - API mismatch

Issues Found

  1. API reference mismatch:

    • Lore patch (v8 5/5) references dma_areas[] array directly: for (i = 0; i < dma_areas_num; i++) { struct cma *cma = dma_areas[i]; ... }
    • PR patch (2/3) uses dma_contiguous_get_area_by_idx() function: for (i = 0; (cma = dma_contiguous_get_area_by_idx(i)) != NULL; i++) { ... }
    • This suggests the PR has integrated changes from commit 1/3 that introduced the iterator API, which is correct for a squashed/integrated series but means this is not a faithful representation of the standalone lore patch v8 5/5
  2. Documentation content difference: The PR's documentation update is slightly reworded compared to the lore patch, though semantically equivalent.

Upstream Patch Status

Commit Community Verdict
dma-buf: heaps: cma: Create CMA heap for each CMA reserved region ✅ ACKed — Merged to drm-misc-next by Sumit Semwal on 2025-10-15. Reviewed-by: T.J. Mercier, Acked-by: Marek Szyprowski

Integration Presence

Commit Status
FROMGIT: dma-buf: heaps: cma: Create CMA heap for each ⚠️ Partial — subject or partial tree evidence found in qcom-next, missing from topics

Commit 3/3: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support

Upstream commit: N/A (vendor-only commit)
Verdict: ✅ PASS

Commit Message

Check Status Note
Subject matches upstream N/A QCLINUX prefix - no upstream equivalent
Body preserves rationale ✅ Clear explanation of config dependency
Fixes tag present/correct N/A Not applicable
Authorship preserved ✅ From: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
Backport note N/A Not a backport
Co-developed-by usage ✅ Not used
Link to PR ✅ Links to kernel-topics PR #1452

Diff Comparison

File Status Notes
arch/arm64/configs/qcom.config ✅ Adds CONFIG_DMA_CMA=y dependency

Issues Found

None - this is a clean vendor-specific configuration change.

Upstream Patch Status

N/A — QCLINUX prefix indicates vendor-only change, not posted upstream.

Integration Presence

Commit Status
QCLINUX: qcom.config: Enable DMA_CMA ✅ Present — exact patch-id match at a8a23b94e09397f9d88a4d68e857541936282ef3 in qcom-next

Overall Issues Summary

  1. Commit 1/3 is not a faithful representation of the linked lore patch:

    • The lore link points to [PATCH v4 1/8] from the series "dma-buf: heaps: Turn heaps into modules"
    • The PR patch appears to be a squashed or integrated version that combines changes from multiple patches in that series
    • The lore patch modifies 4 files; the PR patch modifies only 2 files
    • Recommendation: Either (a) link to the correct upstream commit SHA once merged, or (b) split this into multiple commits matching the upstream series structure, or (c) document in the commit message that this is a squashed version of patches 1-N from the series
  2. Commit 2/3 depends on API introduced in commit 1/3:

    • The lore patch v8 5/5 was posted before the v4 series that introduced dma_contiguous_get_area_by_idx()
    • The PR correctly integrates these changes, but the lore link for commit 2/3 points to a patch that predates the API it uses
    • This is a temporal inconsistency - the linked lore patch cannot compile without the changes from commit 1/3
    • Recommendation: Update the Link: tag to point to the merged mainline commit SHA rather than the original lore posting, or add a note explaining the integration
  3. Integration presence is partial for commits 1/3 and 2/3:

    • According to integration_presence_report.md, commits 1/3 and 2/3 have only "partial" evidence in qcom-next/topics
    • This suggests the full changes may not have landed yet, or the patch-id matching failed due to the squashing/integration differences
    • Commit 3/3 is fully present in qcom-next

Verdict

⚠️ PARTIAL — The PR contains valid upstream changes that have been accepted and merged, but the commit structure and lore links do not accurately represent the actual upstream patch series. The changes are functionally correct and properly integrated, but the metadata (lore links, commit boundaries) is misleading.

Recommendation

Option 1 (Preferred): Update commit messages to link to the merged mainline commit SHAs instead of the lore posting URLs, and add a note explaining that these are integrated/squashed versions of a multi-patch series.

Option 2: Restructure the PR to match the upstream patch series more faithfully, with separate commits for each logical change and correct lore links for each.

Option 3: Merge as-is with a note that the lore links are approximate and the actual integration differs from the linked patches due to series squashing.


Final Summary

  1. Lore link present: Yes — commit 1/3 links to 20260331-dma-buf-heaps-as-modules-v4-1, commit 2/3 links to 20251013-dma-buf-ecc-heap-v8-5, commit 3/3 is QCLINUX (no lore link expected)

  2. Lore link matches PR commits: ⚠️ Partial — Commit 1/3 is a squashed/integrated version that differs significantly from the linked lore patch (modifies 2 files vs 4 files in lore). Commit 2/3 uses APIs introduced in commit 1/3 that don't exist in the linked lore patch (temporal inconsistency). Commit 3/3 N/A (vendor-only).

  3. Upstream patch status: ✅ Upstreamed — Commit 1/3 applied to dma-mapping-for-next by Marek Szyprowski (2026-03-31). Commit 2/3 merged to drm-misc-next by Sumit Semwal (2025-10-15). Commit 3/3 N/A (vendor-only).

  4. PR present in qcom-next/topics: ⚠️ Partial — Commit 1/3: partial evidence in qcom-next/topics. Commit 2/3: partial in qcom-next, missing from topics. Commit 3/3: ✅ present in qcom-next at a8a23b94e09397f9d88a4d68e857541936282ef3.

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: 27cd2ba09b3377fea4e69efb419d44ca159c2bac
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/3 [PATCH 1/3] FROMGIT: dma: contiguous: Turn heap registration logic partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/3 [PATCH 2/3] FROMGIT: dma-buf: heaps: cma: Create CMA heap for each partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
3/3 [PATCH 3/3] QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap present - exact patch-id match at a8a23b9 skipped - not checked because qcom-next already contains the change present

Final Status

overall_status: PARTIAL
present_commits: 1/3
partial_commits: 2/3
missing_commits: 0/3
topics_checked_for_commits: 2/3
final_summary: PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1363 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ❌ 1 warning: Assisted-by format issue
dt-binding-check ⏭️ Skipped - no DT binding changes
dtb-check ⏭️ Skipped - no devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed - no UAPI changes
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 prefix issue
tag-check ⚠️ Cannot determine - target branch unknown (network unavailable)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1363 - DMA-BUF heap support with CMA configuration
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/47077727087

Checker Result Summary
checkpatch ❌ 1 warning: Assisted-by format issue
dt-binding-check ⏭️ Skipped - no DT binding changes
dtb-check ⏭️ Skipped - no devicetree changes
sparse-check ✅ Passed
check-uapi-headers ✅ Passed - no UAPI changes
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 prefix issue
tag-check ⚠️ Cannot determine - target branch unknown (network unavailable)

❌ checkpatch

Root cause: Commit a1c918c uses non-standard Assisted-by: trailer format.

Failure details:

WARNING: Assisted-by expects 'AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]' format
#20: 
Assisted-by: Claude Code:claude-sonnet-5-5

a1c918c54f39 total: 0 errors, 1 warnings, 0 checks, 80 lines checked

Fix: The Assisted-by: trailer format is non-standard. The expected format is:

Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]

Current format: Assisted-by: Claude Code:claude-sonnet-5-5
Expected format: Assisted-by: ClaudeCode:claude-sonnet-5-5 (no space in agent name)

However, this is a WARNING, not an ERROR. The kernel community has not standardized the Assisted-by: trailer format yet. This can be addressed by either:

  1. Removing the Assisted-by: line entirely (safest option)
  2. Adjusting the format to match checkpatch expectations
  3. Accepting the warning (it won't block merge)

Reproduce locally:

./scripts/checkpatch.pl --strict --ignore FILE_PATH_CHANGES --git 446058cd9f670b3e4650cef81dbe209c5d1c474c..7a9774404c88181d2b713be866ab98dbb3d49ad8

❌ check-patch-compliance

Root cause: Three distinct failures across the three commits in the PR.

Failure 1: Commit a1c918c - Content mismatch

Failure details:

Checking commit: FROMGIT: dma: contiguous: Turn heap registration logic around
Change is different from the one mentioned in Link

Analysis: The commit references:

Link: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org

The checker detected that the patch content differs from the upstream lore patch. This could be due to:

  • Additional changes beyond the upstream patch (the Assisted-by: trailer is one difference)
  • Context line differences
  • Legitimate adaptations for the target tree

Fix: Fetch the upstream patch and compare:

b4 am --single-message -C -l -3 https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org -o /tmp/out
# Compare the diff content
diff <(git format-patch -1 a1c918c54f39 --stdout | awk '/^diff/,/^--$/' | grep -E '^[+-][^+-]') \
     <(awk '/^diff/,/^--$/' /tmp/out/*.mbx | grep -E '^[+-][^+-]')

If the only difference is the Assisted-by: trailer, remove it. If there are legitimate code adaptations, document them in the commit message.

Failure 2: Commit 4eefbf1 - Content mismatch

Failure details:

Checking commit: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region
Change is different from the one mentioned in Link

Analysis: The commit references:

Link: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org

Same issue as commit 1 - the patch content differs from upstream.

Fix: Same approach as above - fetch and compare with b4.

Failure 3: Commit 7a97744 - Invalid prefix

Failure details:

Checking commit: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support
Commit summary does not start with a required prefix

Analysis: The commit uses the QCLINUX: prefix, which is not in the allowed list for check-patch-compliance. The checker only accepts:

  • FROMLIST:
  • FROMGIT:
  • UPSTREAM:
  • BACKPORT:

This is a known limitation of the checker. QCLINUX: is a valid vendor-internal prefix used in the Qualcomm Linux tree for vendor-only changes, but the compliance checker enforces upstream-linkable prefixes only.

Fix options:

  1. If this is truly vendor-only (no upstream equivalent): Accept that this checker will always fail for QCLINUX: commits. This is expected behavior.
  2. If this change has been posted upstream: Change the prefix to FROMLIST: and add a Link: to the lore thread.
  3. If this is a config-only change: Consider whether it needs a prefix at all, or document why it's vendor-specific.

The third commit currently has:

Link: https://github.com/qualcomm-linux/kernel-topics/pull/1452

This is a GitHub PR link, not a lore.kernel.org link, which confirms it's vendor-internal.


⚠️ tag-check

Status: Cannot determine target branch (network unavailable for gh API calls).

Analysis: The tag-check applies to all branches except qcom-next and qcom-next-staging. It verifies that every commit subject starts with a valid prefix:

  • FROMLIST:, FROMGIT:, UPSTREAM:, BACKPORT:, QCLINUX:, PENDING:, WORKAROUND:

Current commit prefixes:

  1. ✅ FROMGIT: - valid
  2. ✅ FROMGIT: - valid
  3. ✅ QCLINUX: - valid

Verdict: If the target branch is not qcom-next or qcom-next-staging, all three commits have valid prefixes and would PASS tag-check.


Verdict

3 blockers to fix before merge:

  1. checkpatch WARNING (low priority): Remove or fix the Assisted-by: trailer format in commit a1c918c. This is a warning, not an error, so it's not a hard blocker.

  2. check-patch-compliance content mismatch (high priority): Commits a1c918c and 4eefbf1 differ from their upstream lore links. Investigate and either:

    • Remove the differences (e.g., the Assisted-by: trailer)
    • Document legitimate adaptations in the commit message
    • Verify the correct lore link is referenced
  3. check-patch-compliance prefix issue (known limitation): Commit 7a97744 uses QCLINUX: prefix, which the checker rejects. This is expected for vendor-only changes. If this is truly vendor-specific, this failure can be accepted. Otherwise, change to an upstream-linkable prefix.

Recommendation: Fix the content mismatches in commits 1 and 2 by removing the Assisted-by: trailer or documenting adaptations. The QCLINUX: prefix failure is a known checker limitation for vendor-only commits and can be accepted if appropriate.

The CMA heap instantiation was initially developed by having the
contiguous DMA code call into the CMA heap to create a new instance
every time a reserved memory area is probed.

Turning the CMA heap into a module would create a dependency of the
kernel on a module, which doesn't work.

Let's turn the logic around and do the opposite: store all the reserved
memory CMA regions into the contiguous DMA code, and provide an iterator
for the heap to use when it probes.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org
Assisted-by: Claude:claude-sonnet-5-5
…egion

Aside from the main CMA region, it can be useful to allow userspace to
allocate from the other CMA reserved regions.

Indeed, those regions can have specific properties that can be useful to
a specific us-case.

For example, one of them platform I've been with has ECC enabled on the
entire memory but for a specific region. Using that region to allocate
framebuffers can be particular beneficial because enabling the ECC has a
performance and memory footprint cost.

Thus, exposing these regions as heaps user-space can allocate from and
import wherever needed allows to cover that use-case.

For now, only shared-dma-pools regions with the reusable property (ie,
backed by CMA) are supported, but eventually we'll want to support other
DMA pools types.

Since we collected all the CMA regions created during boot, we can
simply iterate over all of them to create the heaps.

This has a weird interaction with the recent work on the CMA name, in
particular the backward compatibility code created by commit
854acbe ("dma-buf: heaps: Give default CMA heap a fixed name").

Indeed, the old name was either 'reserved', or the name of the
reserved-memory region device tree node if the linux,cma-default
property was set.

In both these cases, we have now collected this region during boot, and
we're using the same name. So we're now largely redundant with the
code to handle backward compatibility code, and we can thus remove it
and the associated Kconfig option.

Reviewed-by: T.J. Mercier <tjmercier@google.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org
Enable CONFIG_DMA_CMA as a dependency to allow the DMA-BUF heap
configs (DMABUF_HEAPS, DMABUF_HEAPS_CMA, DMABUF_HEAPS_SYSTEM) to
be selected in qcom.config.

Link: qualcomm-linux/kernel-topics#1452
Signed-off-by: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
@qswat-orbit-external

Copy link
Copy Markdown

Merge Check Failed: CR Not Eligible for Merge

CR 4739595 is not eligible for merge.

The parent software image for kernel.qli.2.0 is not development complete.

Entity: kernel.qli.2.0
CR: 4739595
Reason: CR_CANNOT_MERGE

Please ensure the CR passes both CCT (ComponentChangeTasks) and ICT (Integration Change Tasks) validations.

@qti-sbojja

Copy link
Copy Markdown
Author

qti-sbojja add mainline PR to CR

Done.

SairamReddy Bojja (@qti-sbojja) still don't see mainline PR in CR

Added.

@qlijarvis

Copy link
Copy Markdown

PR #1363 — validate-patch

PR: #1363

Verdict Issues Detailed Report
⚠️ 0 Full report

Final Summary

  1. Lore link present: Yes — commits 1/3 and 2/3 have correct lore.kernel.org links; commit 3/3 is vendor-only (no lore link expected)

  2. Lore link matches PR commits: Partial — commit 1/3 is missing upstream documentation comment and has non-standard Assisted-by tag; commit 2/3 matches faithfully

  3. Upstream patch status:

    • Commit 1/3: ✅ ACKed — applied to Marek Szyprowski's dma-mapping-for-next (2026-04-01)
    • Commit 2/3: ✅ ACKed — merged to drm-misc-next by Sumit Semwal (2025-10-14)
    • Commit 3/3: N/A — vendor-only
  4. PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence


Verdict: ⚠️ — click to expand

🔍 Patch Validation

PR: #1363 - dma-buf: heaps: Turn heaps into modules (3 commits)
Verdict: ⚠️ PARTIAL


Commit 1/3: FROMGIT: dma: contiguous: Turn heap registration logic around

Upstream commit: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org
Verdict: ⚠️ PARTIAL

Commit Message

Check Status Note
Subject matches upstream ✅ Identical (with FROMGIT: prefix added)
Body preserves rationale ✅ Complete rationale preserved
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ Maxime Ripard correctly preserved
Backport note N/A FROMGIT (not a backport)

Diff

File Status Notes
include/linux/dma-map-ops.h ✅ Context differs (expected for backport), code identical
kernel/dma/contiguous.c ⚠️ Missing documentation comment for dma_contiguous_get_area_by_idx()

Issues

  1. Missing documentation: The lore patch includes a kerneldoc comment for dma_contiguous_get_area_by_idx() explaining the function parameters and return value. The PR version omits this documentation entirely.

  2. Non-standard tag: Assisted-by: Claude:claude-sonnet-5-5 appears in the PR but not in the lore patch. This tag is not a standard kernel trailer and should be removed.

  3. Extra Signed-off-by: The PR adds Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>. This is legitimate — Marek applied patches 1-5 to his dma-mapping-for-next branch, so his sign-off is correct per kernel DCO rules.

Upstream Status

✅ ACKed — Applied by Marek Szyprowski to dma-mapping-for-next branch on 2026-04-01. Maintainer confirmation: "Applied again patches 1-5 to my dma-mapping-for-next branch."

Integration Presence

⚠️ Partial — Subject or partial tree evidence found in qcom-next/topics, but full change not verified (per integration_presence_report.md)


Commit 2/3: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region

Upstream commit: https://lore.kernel.org/r/20251013-dma-buf-ecc-heap-v8-5-04ce150ea3d9@kernel.org
Verdict: ✅ PASS

Commit Message

Check Status Note
Subject matches upstream ✅ Identical (with FROMGIT: prefix added)
Body preserves rationale ✅ Complete rationale preserved, including ECC use-case example
Fixes tag present/correct N/A No Fixes tag in upstream
Authorship preserved ✅ Maxime Ripard correctly preserved
Backport note N/A FROMGIT (not a backport)

Diff

File Status Notes
Documentation/userspace-api/dma-buf-heaps.rst ✅ Documentation updates match lore
drivers/dma-buf/heaps/Kconfig ✅ Removes DMABUF_HEAPS_CMA_LEGACY as in lore
drivers/dma-buf/heaps/cma_heap.c ✅ Refactors add_default_cma_heap() → add_cma_heaps() as in lore

Issues

None — diff faithfully represents the lore patch.

Upstream Status

✅ ACKed — Merged to drm-misc-next by Sumit Semwal on 2025-10-14. Maintainer confirmation: "Thank you; it's merged to drm-misc-next now."

The PR correctly includes Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> (the maintainer who merged it).

Integration Presence

⚠️ Partial — Subject or partial tree evidence found in qcom-next, but missing from topics (per integration_presence_report.md)


Commit 3/3: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support

Upstream commit: N/A (vendor-only)
Verdict: ✅ PASS (vendor commit validation not applicable)

Commit Message

Check Status Note
Subject ✅ Clear description of config change
Body ✅ Explains dependency rationale
Link ✅ Links to kernel-topics PR #1452
Authorship ✅ Bibek Kumar Patro

Diff

File Status Notes
arch/arm64/configs/qcom.config ✅ Adds CONFIG_DMA_CMA=y

Issues

None — vendor-only config change, correctly prefixed with QCLINUX:.

Integration Presence

✅ Present — Exact patch-id match at a8a23b94e09397f9d88a4d68e857541936282ef3 in qcom-next


Final Summary

  1. Lore link present: Yes — commits 1/3 and 2/3 have correct lore.kernel.org links; commit 3/3 is vendor-only (no lore link expected)

  2. Lore link matches PR commits: Partial — commit 1/3 is missing upstream documentation comment and has non-standard Assisted-by tag; commit 2/3 matches faithfully

  3. Upstream patch status:

    • Commit 1/3: ✅ ACKed — applied to Marek Szyprowski's dma-mapping-for-next (2026-04-01)
    • Commit 2/3: ✅ ACKed — merged to drm-misc-next by Sumit Semwal (2025-10-14)
    • Commit 3/3: N/A — vendor-only
  4. PR present in qcom-next/topics: Partial — 2/3 commits have partial integration evidence; 1/3 commit (vendor config) is fully present


Recommendation

Request changes before merging:

  1. Commit 1/3: Add the missing kerneldoc comment for dma_contiguous_get_area_by_idx() from the lore patch (lines starting with /** through */ before the function definition in kernel/dma/contiguous.c).

  2. Commit 1/3: Remove the non-standard Assisted-by: Claude:claude-sonnet-5-5 trailer — this is not a recognized kernel tag.

  3. Integration concern: Commits 1/3 and 2/3 show only "partial" presence in qcom-next/topics. Verify whether the full changes are already integrated or if this PR introduces duplicate/conflicting content.

Once the documentation comment is added and the Assisted-by tag is removed, the PR will be ready to merge.

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: 27cd2ba09b3377fea4e69efb419d44ca159c2bac
topics remote: topics -> https://github.com/qualcomm-linux/kernel-topics
topics fetch: fetched

Commit Subject qcom-next topics Final
1/3 [PATCH 1/3] FROMGIT: dma: contiguous: Turn heap registration logic partial - subject or partial tree evidence found, but full change was not verified partial - subject or partial tree evidence found, but full change was not verified partial
2/3 [PATCH 2/3] FROMGIT: dma-buf: heaps: cma: Create CMA heap for each partial - subject or partial tree evidence found, but full change was not verified missing - no subject, patch-id, or full tree-content match found partial
3/3 [PATCH 3/3] QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap present - exact patch-id match at a8a23b9 skipped - not checked because qcom-next already contains the change present

Final Status

overall_status: PARTIAL
present_commits: 1/3
partial_commits: 2/3
missing_commits: 0/3
topics_checked_for_commits: 2/3
final_summary: PR present in qcom-next/topics: Partial - 2/3 commit(s) only have partial integration evidence

@qlijarvis

Copy link
Copy Markdown

PR #1363 — checker-log-analyzer

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

Checker Result Summary
Checker Result Summary
checkpatch ✅ All 3 commits passed
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed (unrelated build errors in imagination driver)
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 prefix violation
tag-check ✅ All commits have valid prefixes (FROMGIT/QCLINUX)

Detailed report: Full report

Checker analysis — click to expand

🤖 CI Checker Analysis (checker-log-analyzer)

PR: #1363 - Enable DMA-BUF CMA heap support
Source: https://github.com/qualcomm-linux/kernel-config/actions/runs/47093237047
Target branch: qcom-6.18.y

Checker Result Summary
checkpatch ✅ All 3 commits passed
dt-binding-check ⏭️ No DT binding changes
dtb-check ⏭️ No devicetree changes
sparse-check ✅ Passed (unrelated build errors in imagination driver)
check-uapi-headers ✅ Passed
check-patch-compliance ❌ 3 failures: 2 content mismatches, 1 prefix violation
tag-check ✅ All commits have valid prefixes (FROMGIT/QCLINUX)

❌ check-patch-compliance

Root cause: Two FROMGIT commits contain an extra Assisted-by: Claude:claude-sonnet-5-5 trailer not present in the upstream patches, and one QCLINUX commit fails the prefix check (known limitation).

Failure details:

Checking commit: FROMGIT: dma: contiguous: Turn heap registration logic around
Change is different from the one mentioned in Link

Checking commit: FROMGIT: dma-buf: heaps: cma: Create CMA heap for each CMA reserved region
Change is different from the one mentioned in Link

Checking commit: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support
Commit summary does not start with a required prefix

Analysis:

  1. Commits 1 & 2 (FROMGIT) — Content mismatch:

    • Commit 0ddeb16ff342 has Assisted-by: Claude:claude-sonnet-5-5 trailer added after the Link: tag
    • This trailer is not present in the upstream patch at https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org
    • The check-patch-compliance checker compares the full commit metadata (including trailers) and flags any difference
    • Commit 2 likely has a similar issue (needs verification)
  2. Commit 3 (QCLINUX) — Prefix violation:

    • Subject: QCLINUX: qcom.config: Enable DMA_CMA for DMA-BUF heap support
    • The QCLINUX: prefix is not in the checker's allowed list (FROMLIST, FROMGIT, UPSTREAM, BACKPORT)
    • This is a known limitation of check-patch-compliance — it only accepts upstream-linkable prefixes
    • Vendor-only commits with QCLINUX: will always fail this checker

Fix:

For commits 1 & 2 (content mismatch):

git rebase -i 446058cd9f67   # base commit
# Mark commits 0ddeb16ff342 and 6ef86f20500a as 'edit'

# For each commit:
git commit --amend
# Remove the "Assisted-by: Claude:claude-sonnet-5-5" line from the commit message
# Ensure the Link: tag is the last trailer before the --- separator

git rebase --continue

For commit 3 (QCLINUX prefix):

  • No action needed — this is a known checker limitation for vendor-only commits
  • The QCLINUX: prefix is correct for vendor-specific config changes
  • The checker will always fail for QCLINUX: commits; this is expected behavior

Reproduce locally:

# Verify the content mismatch:
b4 am --single-message -C -l -3 https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-1-e18fda504419@kernel.org -o /tmp/upstream
git show 0ddeb16ff342 > /tmp/local.patch
diff /tmp/upstream/*.mbx /tmp/local.patch
# You'll see the extra "Assisted-by:" trailer in the local patch

# Run the full checker:
cd kernel-checkers
./check-patch-compliance.sh --kernel-src /path/to/kernel --base 446058cd9f67 --head 3502ed31ba76

Verdict

2 blockers to fix before merge:

  1. Remove Assisted-by: Claude:claude-sonnet-5-5 trailer from commits 1 and 2 to match upstream exactly
  2. Accept the QCLINUX prefix failure as a known limitation — no patch change needed for commit 3

The Assisted-by: trailer is non-standard and not present in the upstream patches. While it may have been added during local development, it should be removed to maintain exact fidelity with upstream for FROMGIT commits. The QCLINUX prefix failure is expected and does not block merge.

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.

7 participants