Repository navigation
Conversation
The unified Wi-Fi offload support added by e1c3250 calls zx279133_wifi_hw_reprogram_locked() unconditionally from the shared hardware-prepare path on every board. Boards without WiFi hardware (e.g. STAR SG350H, DTB keeps pcie@/woe@ disabled) never initialise the NPU WLTBL/SDT 0x64..0x68 tables, so the first netdev up branches through uninitialised NPU state and panics: Uni SerDes 2500base-x profile ready, status 0xf80007/0x1000706 Unable to handle kernel paging request at virtual address 000812eb0e040520 EC = 0x21: IABT (current EL), pc : 0x812eb0e040520, Comm: ip Kernel panic - not syncing: Oops: Fatal exception Gate the reprogram on actual WiFi hardware presence (WOE platform device registered, or at least one Wi-Fi vport already bound). WiFi boards keep the previous behaviour; non-WiFi boards boot normally. Signed-off-by: 39moe <39moe@users.noreply.github.com>
Owner
|
感谢快速排查并提交 PR! 这个 panic( 根因说明崩溃并非无 Wi-Fi 硬件时 WLTBL/SDT 未初始化导致,而是
为何不额外合并本 PR 的跳过逻辑
麻烦拉取最新 |
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.
STAR SG350H(无 WiFi,DTB 中 pcie@/woe@ 为 disabled)在 e1c3250 之后
首次开机内核 panic 无限重启。
WiFi offload 支持在共用 hardware prepare 路径里无条件调用
zx279133_wifi_hw_reprogram_locked(),对 NPU WLTBL/SDT 0x64..0x68 编程,
无 WiFi 硬件时这些表从未初始化,首个 netdev up 时跳到非法地址:
修复:在 zx279133_wifi_hw_reprogram_locked() 入口判断
zte_woe_available() 或已有 WiFi vport 绑定,否则直接返回;
WiFi 机型行为不变。