Skip to content

Fixes the issue that cannot reopen wlan0 on ap6398s and ap6236. - #131

Merged
RadxaStephen merged 1 commit into
radxa:linux-5.10-gen-rkr3.4from
Ken-Vamrs:linux-5.10-gen-rkr3.4
Jun 6, 2023
Merged

RadxaStephen merged 1 commit into
radxa:linux-5.10-gen-rkr3.4from
Ken-Vamrs:linux-5.10-gen-rkr3.4

Conversation

@Ken-Vamrs

Copy link
Copy Markdown

No description provided.

…r load

Fixes the issue that cannot reopen wlan0 on ap6398s and ap6236.

Signed-off-by: Ken Wang <ken@radxa.com>
@RadxaStephen
RadxaStephen merged commit dc49558 into radxa:linux-5.10-gen-rkr3.4 Jun 6, 2023
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
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