Repository navigation
fix(linux-mt6858): let the display address 34 bits (r26) - #110
Open
patrickjquinn wants to merge 1 commit into
Open
patrickjquinn wants to merge 1 commit into
patrickjquinn wants to merge 1 commit into
Conversation
The display imported every dma-buf through SWIOTLB ("mediatek-disp-ovl
14003000.ovl: swiotlb buffer is full", about 700 a boot): the DRM
device's DMA device is the first OVL, which mainline gave the default
32-bit mask, while the Jolla's 12 GiB of RAM is nearly all above
4 GiB and SWIOTLB bounces at most 256 KiB at a time.
r26 adds 0292 (jp2601/devfix-ovl34): the MT6858 OVLs get their own
data, which writes each layer's upper address bits to
DISP_REG_OVL_ADDR_MSB, as MediaTek's driver does on its recent SoCs,
and a 34-bit DMA mask (the stock device tree gives the OVLs 16 GiB of
DMA range). Putting the OVLs behind the MM IOMMU instead broke the
panel's picture and warm reboots, so the display stays on physical
addresses.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jolla e2e 2026-11-28, P2:
mediatek-disp-ovl 14003000.ovl: swiotlb buffer is full (sz: 2097152 bytes), about 700 a boot. Stacked on #105 (r25).Root cause. The DRM device's DMA device is the first OVL. Mainline used the MT8192 data for it, so it got the default 32-bit mask, while the Jolla's 12 GiB of RAM is nearly all above 4 GiB. Every dma-buf the display imported went through SWIOTLB, which bounces at most 256 KiB at a time, and failed.
Fix. Kernel patch 0292 (jp2601/devfix-ovl34) gives the MT6858 OVL its own data:
is_support_34bits);Physically contiguous buffers anywhere in RAM can be scanned out, and the GEM import's contiguity check refuses scattered ones instead of SWIOTLB.
Not done: putting the OVLs behind the MM IOMMU. It removed the messages but broke the panel's picture (garbled, then black) and hung 2 of 3 warm reboots, so the display stays on physical addresses.
On the phone (test kernel built from this series, as a counted boot entry):
checkpatch is clean apart from the series' missing Signed-off-by, and the W=1 build is clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_01BrjN1gf1Fu2w5MqXBmEowh