Skip to content

REFPLTV-3174: wpeframework crash happens when rebooted the device without HDMI.#375

Open
smuthu065 wants to merge 1 commit into
developfrom
feature/REFPLTV-3174
Open

REFPLTV-3174: wpeframework crash happens when rebooted the device without HDMI.#375
smuthu065 wants to merge 1 commit into
developfrom
feature/REFPLTV-3174

Conversation

@smuthu065

Copy link
Copy Markdown
Contributor

Reason for change: WpeFramework Crash issue fix on Westeros-soc-drm component.
Test Procedure: Build and verify.
Risks: High.
Signed-off-by: sundaramuneeswaran_muthuraj@comcast.com

…hout HDMI.

Reason for change: WpeFramework Crash issue fix on Westeros-soc-drm component.
Test Procedure: Build and verify.
Risks: High.
Signed-off-by: sundaramuneeswaran_muthuraj@comcast.com
Copilot AI review requested due to automatic review settings July 16, 2026 05:25

Copilot AI left a comment

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.

Pull request overview

This PR updates the Yocto westeros-soc-drm recipe to apply an additional downstream patch intended to prevent a WpeFramework crash when rebooting a device without HDMI, by adjusting DRM encoder/CRTC selection logic in westeros-gl.c.

Changes:

  • Add a new patch to westeros-soc-drm.bb to address the “No HDMI” crash scenario.
  • Introduce wstFindEncoderForCrtc() and refactor encoder selection in wstInitCtx() / wstUpdateCtx().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
recipes-graphics/westeros-soc/westeros-soc-drm.bb Adds the new patch to SRC_URI so it is applied during the build.
recipes-graphics/westeros-soc/files/0001-REFPLTV-3174-NoHDMI-WpeFramework-crash-issue-fix.patch Refactors DRM encoder selection and adds logging to mitigate encoder/CRTC mismatches.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment on lines +65 to +67
uint32_t crtcId= 0;
bool found= false;
ctx->enc= drmModeGetEncoder(ctx->drmFd, res->encoders[i]);
Comment on lines +35 to +40
+ if ( encoder )
+ {
+ if ( encoder->possible_crtcs & (1 << crtcIndex) )
+ {
+ encoder->crtc_id= crtcId;
+ break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants