Skip to content

weston: backport writeback connector cleanup fix - #3821

Open
shrejadh05 wants to merge 1 commit into
qualcomm-linux:masterfrom
shrejadh05:master
Open

shrejadh05 wants to merge 1 commit into
qualcomm-linux:masterfrom
shrejadh05:master

Conversation

@shrejadh05

Copy link
Copy Markdown
Contributor

On Lemans platforms with Dual DPU, weston can become inactive after a display HPD event when all four eDP interfaces, or four eDP and one DSI interface, are connected.

During connector hotplug handling, writeback connectors are checked against the DRM resource snapshot of the device being updated. The original implementation incorrectly used the backend's primary DRM device for writeback cleanup, causing writeback connectors on another device to be treated as removed. This can leave outputs in an invalid state and prevent weston from recovering after HPD events.

Use the current DRM device's writeback connector list during cleanup so connector ownership and resource checks remain consistent across multiple DRM devices.

Following fix has been merged in the weston upstream: -https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/2298

On Lemans platforms with Dual DPU, weston can become inactive after
a display HPD event when all four eDP interfaces, or four eDP and one
DSI interface, are connected.

During connector hotplug handling, writeback connectors are checked
against the DRM resource snapshot of the device being updated. The
original implementation incorrectly used the backend's primary DRM
device for writeback cleanup, causing writeback connectors on another
device to be treated as removed. This can leave outputs in an invalid
state and prevent weston from recovering after HPD events.

Use the current DRM device's writeback connector list during cleanup so
connector ownership and resource checks remain consistent across
multiple DRM devices.

Signed-off-by: Shreyas Jadhav <[email protected]>
@koenkooi

Copy link
Copy Markdown
Contributor

The patch status says "Submitted", not "Applied" or "Backport", so this isn't a backport.

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 9da9220

nodistro

Pass: 9 | Fail: 1 | Total: 10

qcom-distro

Pass: 12 | Fail: 2 | Total: 14

qcom-distro_kernel-fit

Pass: 1 | Fail: 0 | Total: 1

qcom-distro_linux-qcom-6.18

Pass: 8 | Fail: 1 | Total: 9

qcom-distro_linux-qcom-7.3-es

Pass: 1 | Fail: 0 | Total: 1

@qcomlnxci

Copy link
Copy Markdown

Test Coral run workflow

Test jobs for commit 9da9220

  • qcomdistro: multimedia image-prop
    Pass: 49 | Fail: 0 | Total: 49
  • qcomdistro: multimedia image
    Pass: 6 | Fail: 0 | Total: 6

Iterate the writeback connector list owned by the device being updated,
so it is checked against resources from the same DRM device.

Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/2298]

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.

Patch is already merged, correct status would be backport.

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.

4 participants