Skip to content

RTC_Validation: prevent DRM CRTC warnings from failing RTC checks - #722

Merged
Bhargav-qcom (bhargav0610) merged 2 commits into
qualcomm-linux:mainfrom
smuppand:rtc-kernel-fault-matching
Dec 1, 2026
Merged

Bhargav-qcom (bhargav0610) merged 2 commits into
qualcomm-linux:mainfrom
smuppand:rtc-kernel-fault-matching

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

RTC validation can fail when a DRM warning contains drm_crtc_*, because its log pattern matches the embedded rtc_ substring. Bound RTC identifiers in fault headers and stack frames while retaining PMIC and GLINK RTC faults.

Add an optional fault-attribution pattern to the shared scanner, preserving existing callers, ordinary error selection, and functional PASS/FAIL/SKIP behavior.

Fixes #721.

The ordinary error-line selector matches driver prefixes, while fault
attribution searches headers and stack symbols. Callers that need token
boundaries cannot safely use the same expression for both contracts.

Accept an optional fourth scan_dmesg_errors argument for fault attribution.
Default it to the existing module expression so current callers retain
their captured errors, statuses and diagnostics.

The following RTC runner change uses this optional argument. Revert that
consumer before reverting this helper extension.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
The rtc_ substring in drm_crtc_wait_one_vblank currently attributes DRM
warnings to RTC and fails otherwise successful RTC validation.

Use the preceding scanner extension to require RTC identifier boundaries
in fault headers and stack frames. Retain PMIC and GLINK RTC symbols,
including __pm8xxx_rtc_set_time and qcom_rtc_glink_read_time, without
excluding whole DRM blocks that may also contain genuine RTC evidence.
Preserve ordinary error selection, log capture and functional verdicts.

Fixes qualcomm-linux#721.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 37c14fee812a580d0dc22075881a6eb40c65f578

Result: Needs attention

PR tests only

Validation

Unique PR tests: 0 | Targets: 0 | Testcase results: 0

Pass: 0 | Fail: 0 | Skip: 0

No hardware jobs were submitted. Validation stopped before a submission request was saved.
Workflow did not complete successfully. See the workflow artifacts.

No functional test results are available.

Setup or workflow errors are recorded in diagnostics.md in the workflow artifacts.

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 37c14fee812a580d0dc22075881a6eb40c65f578

Result: Needs attention

PR tests only

Validation

Unique PR tests: 0 | Targets: 0 | Testcase results: 0

Pass: 0 | Fail: 0 | Skip: 0

No hardware jobs were submitted. Validation stopped before a submission request was saved.
Workflow did not complete successfully. See the workflow artifacts.

No functional test results are available.

Setup or workflow errors are recorded in diagnostics.md in the workflow artifacts.

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 37c14fee812a580d0dc22075881a6eb40c65f578

PR tests only

meta-qcom-main (base)

Unique PR tests: 1 | Targets: 11 | Testcase results: 11

Pass: 11 | Fail: 0 | Skip: 0

Test glymur-crd iq-8275-evk iq-9075-evk iq-x7181-evk kaanapali-mtp qcs8300-ride-sx qcs9100-ride-sx rb1-core-kit rb3gen2-core-kit shikra-evk sm8750-mtp
RTC_Validation 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS 🟢 PASS

@bhargav0610
Bhargav-qcom (bhargav0610) merged commit 0760aba into qualcomm-linux:main Dec 1, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RTC_Validation: dmesg scan matches drm_crtc_* and fails the test

2 participants