Repository navigation
arm64: dts: rockchip: align status(blue) LED behavior - #16
Merged
RadxaStephen merged 1 commit intoAug 8, 2022
Merged
RadxaStephen merged 1 commit into
RadxaStephen merged 1 commit into
Conversation
label is blue:status, default trigger is heartbeat. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
RadxaStephen
pushed a commit
that referenced
this pull request
Oct 27, 2022
Fix error log: 11645.713174][ T2197] mpp_vepu2 fdb50000.vepu: probing finish [11645.713382][ T2197] mpp_vepu2 fdba0000.jpege-core: probing start [11645.713698][ T2197] mpp_vepu2 fdba0000.jpege-core: attach ccu success [11645.714080][ T2197] ------------[ cut here ]------------ [11645.714088][ T2197] proc_dir_entry 'jpege-core0/disable_work' already registered [11645.714115][ T2197] WARNING: CPU: 5 PID: 2197 at fs/proc/generic.c:382 proc_register+0x12c/0x1b0 [11645.714119][ T2197] Modules linked in: rk_vcodec(+) bcmdhd dhd_static_buf r8168 [last unloaded: rk_vcodec] [11645.714136][ T2197] CPU: 5 PID: 2197 Comm: insmod Tainted: G W 5.10.110 #16 [11645.714139][ T2197] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT) [11645.714144][ T2197] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--) [11645.714148][ T2197] pc : proc_register+0x12c/0x1b0 [11645.714152][ T2197] lr : proc_register+0x124/0x1b0 [11645.714156][ T2197] sp : ffffffc01a9c35d0 [11645.714159][ T2197] x29: ffffffc01a9c35d0 x28: ffffffc009520d87 [11645.714164][ T2197] x27: ffffffc01007bf40 x26: ffffff818004f080 [11645.714169][ T2197] x25: ffffff816cada508 x24: ffffff816cada440 [11645.714173][ T2197] x23: 000000000000000c x22: ffffff816cada8ec [11645.714178][ T2197] x21: ffffff816cada440 x20: ffffff816cada3c0 [11645.714182][ T2197] x19: ffffff816cada840 x18: ffffffc0171cd118 [11645.714187][ T2197] x17: 0000000000000000 x16: 00000000000000d8 [11645.714192][ T2197] x15: 0000000000000004 x14: 0000000000003fff [11645.714197][ T2197] x13: ffffffc011fec6c8 x12: 0000000000000003 [11645.714201][ T2197] x11: 00000000ffffbfff x10: 00000000ffffffff [11645.714206][ T2197] x9 : 561644a8ffb72f00 x8 : 561644a8ffb72f00 [11645.714211][ T2197] x7 : 205d373931325420 x6 : ffffffc0121cc740 [11645.714217][ T2197] x5 : ffffffffffffffff x4 : 0000000000000000 [11645.714222][ T2197] x3 : ffffffc011c7fff0 x2 : 0000000000000000 [11645.714226][ T2197] x1 : 0000000000000001 x0 : ffffffc0123d47c8 [11645.714232][ T2197] Call trace: [11645.714236][ T2197] proc_register+0x12c/0x1b0 Fixes: 1f0130b ("video: rockchip: mpp: Add more common procfs") Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: Ifb0031508fb5a0318497597414fb3e4a70bd0972
RadxaStephen
pushed a commit
that referenced
this pull request
Oct 28, 2022
label is blue:status, default trigger is heartbeat. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
stvhay
pushed a commit
to stvhay/kernel
that referenced
this pull request
Feb 1, 2023
label is blue:status, default trigger is heartbeat. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
stvhay
pushed a commit
to stvhay/kernel
that referenced
this pull request
Feb 12, 2023
label is blue:status, default trigger is heartbeat. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
stvhay
pushed a commit
to stvhay/kernel
that referenced
this pull request
Feb 26, 2023
label is blue:status, default trigger is heartbeat. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
RadxaStephen
pushed a commit
to RadxaStephen/kernel
that referenced
this pull request
Mar 3, 2023
label is blue:status, default trigger is heartbeat. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
RadxaStephen
pushed a commit
that referenced
this pull request
Jul 3, 2023
label is blue:status, default trigger is heartbeat. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
chiyuki0325
pushed a commit
to gaokun3/kernel
that referenced
this pull request
Oct 6, 2026
…1k(本地,issue radxa#16) 案卷:docs/TODO.md 的 issue 一节(radxa#16)。**本地补丁**,上游到 v7.3-rc5 都没有对应改动。 现象:s2idle 第二次恢复时 ath11k 重新下载固件,`mhi_alloc_bhie_table()` 要一串 512 KB(order 7)的 GFP_DMA 块(ath11k 的 seg_len = sbl_size = SZ_512K、coherent mask 32 位 ⇒ ZONE_DMA),而挂起/恢复期间 pm_restrict_gfp_mask() 去掉了 __GFP_IO, 不做 compaction ⇒ 碎片一多就失败:`page allocation failure: order:7`、 `failed to power up mhi: -110`,随后 resume 阶段干等 20 秒、DPM 看门狗 panic。 原因:ath11k 在本机只走断电挂起(WoW 只给 ath11k_pm_quirk_table 里的联想机型), ath11k_mhi_stop() → mhi_unprepare_after_power_down() 每次挂起都把 fbc_image (固件,约 11 段)和 rddm_image(RDDM,0x420000 ≈ 10 段)释放掉,恢复时重新抢; SBL 的 BHI 缓冲(512 KB 单块)也是每次现分配现释放。这几块内存在设备运行期间 本来就常驻,挂起时放掉等于白白交出去再赌一次。 改法(给 MHI 控制器加一个 opt-in 开关,只有 ath11k 打开): * struct mhi_controller 加 `reuse_fw_images` 与 `bhi_image`; * reuse_fw_images 时 mhi_unprepare_after_power_down() 不释放 fbc/rddm 表; 三块都在 mhi_unregister_controller() 里释放(非 reuse 时它们此刻已是 NULL); * mhi_prepare_for_power_up():rddm_image 还在就不再分配,照常 mhi_rddm_prepare() 重新编程(它从 mhi_buf 重写整张向量表与 BHIe RX 寄存器);顺带在 prepare 失败时 把指针清 NULL(原来释放后留着悬空指针); * mhi_fw_load_handler():fbc_image 还在、且段数恰好等于这次镜像需要的段数才复用 (设备读整张向量表,不能留多余的旧条目),否则释放重分配; * mhi_load_image_bhi():reuse 时缓存 SBL 缓冲,长度不同才重分配。 非 reuse 的控制器(pci_generic 的调制解调器等)行为不变,只多了"rddm_image 已在 就不重复分配"这一条(原来会泄漏)。 代价:每台机器常驻多 512 KB(SBL 缓冲);fbc/rddm 原本运行时就占着。 ⬜ 实机:多次 s2idle 循环 + 人为制造碎片后恢复;Wi-Fi 崩溃恢复(recovery)路径。 Source-Patch: gaokun-android/patches/0070-bus-mhi-keep-firmware-images-across-power-cycles-for-ath11k.patch
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.
label is blue:status, default trigger is heartbeat.
Signed-off-by: FUKAUMI Naoki naoki@radxa.com