Repository navigation
Fixes the issue that cannot reopen wlan0 on ap6398s and ap6236. - #131
Merged
RadxaStephen merged 1 commit intoJun 6, 2023
Merged
Conversation
…r load Fixes the issue that cannot reopen wlan0 on ap6398s and ap6236. Signed-off-by: Ken Wang <ken@radxa.com>
RadxaStephen
pushed a commit
that referenced
this pull request
Jul 3, 2023
…r load (#131) Fixes the issue that cannot reopen wlan0 on ap6398s and ap6236. Signed-off-by: Ken Wang <ken@radxa.com>
chiyuki0325
pushed a commit
to gaokun3/kernel
that referenced
this pull request
Oct 6, 2026
案卷 docs/stage4-findings.md radxa#131。 gaokun3 的 `linux,cma` 节点(与上游 X13s / CRD 同样写法)只有 size、没有 alloc-ranges, 于是 128 MiB 的默认 CMA 被自顶向下放在物理 0x878000000(34 GiB 处,dmesg "created CMA memory pool at 0x0000000878000000")。ath11k 的 coherent mask 是 32 位, dma-direct 从 CMA 拿到的页过不了 dma_coherent_ok(),只能退回 ZONE_DMA 的伙伴分配器 去找高阶连续块:每次 s2idle 恢复,MHI 约 20 次 order-7、数据通路 3 次 order-9, 而挂起期间不做 compaction —— issue radxa#16 的 `page allocation failure: order:7` 就是这么来的。 加 alloc-ranges = 2–4 GiB 后,实测 CMA 落在 0xf4000000,开机即有约 29 MiB 被 32 位设备用上; ftrace(kmem:mm_page_alloc, order>=7)对照三次恢复:原版 69 次 GFP_DMA 高阶伙伴分配 → 0070 后 9 次(只剩数据通路)→ 再加本补丁 0 次。挂起/恢复 12/12 通过, 硬解 AVC/HEVC/VP9、相机冒烟、GPU 均无回归。代价:ZONE_DMA 里 128 MiB 只能放可迁移页。⚠️ ROM 用的是 prebuilt-boot 里的 dtb —— 发版时要换成带本补丁编出来的那份。 Source-Patch: gaokun-android/patches/0071-arm64-dts-gaokun3-keep-default-cma-below-4g.patch
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.
No description provided.