Skip to content

comma: release GBM scanout buffers on close#29

Open
adeebshihadeh wants to merge 1 commit intomasterfrom
fix-comma-gbm-teardown
Open

comma: release GBM scanout buffers on close#29
adeebshihadeh wants to merge 1 commit intomasterfrom
fix-comma-gbm-teardown

Conversation

@adeebshihadeh
Copy link
Copy Markdown

Fixes a COMMA platform teardown leak where UI process exits leave mdss-backed dma-bufs pinned. The close path now releases the active GBM BO, destroys the GBM surface before destroying the device, closes the DRM fd, and clears tracked BO/FB state after swaps.

Validated on tizi with a UI-only pyray probe: the mdss 9400320-byte dma-buf count stays flat across repeated gui_app.close() cycles with this patch; the old build leaked three such buffers per UI process restart.

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.

1 participant