Pi 5: onboard Ethernet (RP1/macb/BCM54213PE) drops with "Link is Down" and never recovers; second incident froze the whole system in rp1_adc_read
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 32/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- c, linux, raspberry-pi
調査の方向性
Start with the attached incident logs and the named kernel entry points: macb, rp1_adc_read, and the RP1 clock messages. Compare behavior on the reported 6.12.109 kernel and current firmware, then determine whether the link drop, unreadable GEM statistics, and rp1_adc stall share a confirmed cause. Done means a reproducible diagnosis or a tested kernel/firmware fix is documented.
索引モデルが issue の本文から書いたものです。
説明
Summary
Two incidents in ~13 hours on the same Raspberry Pi 5. Both began with macb ... end0: Link is Down after hours of healthy operation. Both left the driver's hardware statistics returning garbage. Only a reboot recovered. Incident 1 affected Ethernet only (WiFi kept working). Incident 2 froze the whole machine, with a CPU stuck spinning in rp1_adc_read.
This looks like the RP1 chip (or the PCIe path to it) wedging, with Ethernet as one symptom. Possibly related to raspberrypi/linux#7345 and #6948, and the forum thread "Pi 5 kernel oops at xhci_halt, intermittent FC0 timeouts on pll_sys_sec/clk_eth, RP1 defect" (forums.raspberrypi.com, p=2375780). I have not confirmed the root cause.
Environment
- Raspberry Pi 5 Model B Rev 1.0 (
Revision: d04170), 64-bit Raspberry Pi OS (Debian 12 bookworm) - Incidents on kernel
6.12.96+rpt-rpi-2712(1:6.12.96-1+rpt1); now running6.12.109+rpt-rpi-2712(not yet observed long enough to say whether it helps) - Bootloader EEPROM 2026-05-26 (1779807685), up to date per
rpi-eeprom-update; firmware086b83e3(2026/05/26);raspi-firmware1.20260907 (now 1.20260915) - Power:
vcgencmd get_throttled=0x0when checked after the fact; no undervoltage messages found in the kernel journal - Cmdline includes
pci=pcie_bus_safe;arm_boost=1; no Ethernet-related overlays or dtparams - The Ethernet link has negotiated 100 Mbps/Full on every boot observed (2026-09-26, 09-27, 09-28), never 1000, although the PHY advertises 1000baseT
- Workload: Docker (about 16 containers) incl. Jellyfin and a Netdata container with
/sysmounted read-only from the host (pid: host); this is a home server - WiFi (
wlan0) is on1001100000.mmc(SoC SDIO), not behind RP1
Incident 1: 2026-09-27 17:38, Ethernet only
Sep 26 19:28:42 kernel: macb 1f00100000.ethernet end0: Link is Up - 100Mbps/Full - flow control off
Sep 27 17:38:01 kernel: macb 1f00100000.ethernet end0: Link is Down
- Roughly 22 h of clean operation before (0 rx/tx errors, gateway ping ~0.5 ms; a watcher script logged snapshots every 5 min).
- No kernel warning before the drop; only unrelated Docker veth churn earlier at 17:02 and 17:10. SoC temperature 56-58 C.
- Immediately after the drop the counters were nonsense, e.g.
ip -s linkRX errors4294967208and, five minutes later,ethtool -S end0tx_frames: 609886253403whileq0_tx_packetsstayed at the pre-drop value (855376). ethtool end0:Link detected: no,master-slave status: resolution error.- NetworkManager later moved the device to
unavailable. WiFi stayed up and the Pi remained reachable over it. - Cable re-seated (by the owner): no effect.
ip link set end0 down/up: no effect.- Unbind/rebind of the driver made it worse:
echo 1f00100000.ethernet > /sys/bus/platform/drivers/macb/unbind (ok)
echo 1f00100000.ethernet > /sys/bus/platform/drivers/macb/bind (Invalid argument)
macb 1f00100000.ethernet: gem-ptp-timer ptp clock unregistered.
rp1-clk 1f00018000.clocks: pll_sys_sec: FC0 busy timeout
rp1-clk 1f00018000.clocks: clk_eth: FC0 busy timeout
rp1-clk 1f00018000.clocks: clk_eth_tsu: FC0 busy timeout
macb 1f00100000.ethernet end0: PHY [...] driver [Broadcom BCM54213PE] (irq=POLL)
macb 1f00100000.ethernet: gem-ptp-timer ptp clock registered.
macb 1f00100000.ethernet: gem-ptp-timer ptp clock unregistered.
macb 1f00100000.ethernet: error -ENXIO: IRQ index 1 not found
macb 1f00100000.ethernet: Unable to request IRQ -6 (error -22)
macb 1f00100000.ethernet: probe with driver macb failed with error -22
end0 no longer existed after this. A reboot restored it (link up, 100 Mbps).
Incident 2: 2026-09-28 02:44, whole-system freeze
Healthy until 02:40 (gateway ping 0.5 ms via end0, zero errors). Then:
02:44:10 kernel: macb 1f00100000.ethernet end0: Link is Down
02:44:11 (watcher) ping via end0 FAILED; rx_err=4294967288 tx_err=4294967288 <- same garbage counters
02:44:31 kernel: rcu: INFO: rcu_preempt self-detected stall on CPU
CPU: 1 UID: 0 PID: 79872 Comm: LIBSENSORS Not tainted 6.12.96+rpt-rpi-2712 #1
pc : queued_spin_lock_slowpath+0x78/0x448
lr : _raw_spin_lock+0x64/0x78
Call trace:
queued_spin_lock_slowpath
_raw_spin_lock
rp1_adc_read+0x34/0x108 [rp1_adc]
rp1_adc_show+0x44/0xc0 [rp1_adc]
dev_attr_show
sysfs_kf_seq_show
kernfs_seq_show / seq_read_iter / kernfs_fop_read_iter / vfs_read / ksys_read
- The stall was detected 21 s after the link drop (the default RCU stall timeout), which puts the start of the stall at about the time of the link drop.
LIBSENSORSis presumably the Netdata sensors collector reading/sys/class/hwmon/hwmon1(rp1_adc). I could not confirm the thread name after the reboot.- The lock holder is unknown. My hypothesis is that another context was blocked in an MMIO access to an unresponsive RP1, but I have not verified this.
- The system stayed wedged: the same stall backtrace was still being printed at 06:14, with timestamps stretching apart (minutes between consecutive lines of one backtrace), and a bash watcher loop (ethtool/ip/ping every 15 s) wrote nothing after 02:44:11. Rebooted manually at ~06:20.
- No AER/PCIe error lines were seen in the previous boot's kernel log around the event (only the normal boot-time messages; I did not search exhaustively).
What I am asking
- Is this a known RP1 hang (clock/IRQ/PCIe) with a fix in a newer kernel or firmware? Is there a debug parameter or trace that would show whether RP1 stops responding on PCIe when this happens?
- Is the
rp1_adchwmon read path expected to spin on a lock indefinitely when RP1 is unresponsive? If so, can polling hwmon during an RP1 hang take the whole system down? - Should the link-down path in
macbon RP1 reset anything else? Garbage statistics right after "Link is Down" suggest the GEM registers are already unreadable at that point. - The link negotiating only 100 Mbps on a gigabit-capable port may point to a marginal cable or a 100 Mbps-only switch port. Could a flapping physical link be what triggers the wedge?
What has been tried
- Re-seated the cable,
ip linktoggle, driver unbind/rebind (all failed, see above); reboot fixes it - Kernel/firmware update
6.12.96to6.12.109and raspi-firmware1.20260907to1.20260915(result pending) - Enabled the 15 s hardware watchdog via systemd and an automatic reboot after 5 min of unhealthy
end0, as a workaround
Attachments available
/var/log/end0-watch.log: fullethtool/ethtool -S/ip -s -d link/nmcli/dmesgdumps at each state change and every 5 min, covering both incidentsjournalctl -b -1 -kfor the incident-2 boot (contains the full RCU stall traces)
- 主要言語
- C
- スター
- 13.3k
- フォーク
- 5.5k
- 平均マージ
- 3日 20時間
- マージ済み PR(30日)
- 27
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
raspberrypi/linux のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
raspberrypi/linux#7718 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
raspberrypi/linux#7415 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace appオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
raspberrypi/linux#7399 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
raspberrypi/linux#7357 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
raspberrypi/linux#7054 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
raspberrypi/linux の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
SPIDevice selects an active-high device as soon as it is created対応中かも @mikeysklar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
adafruit/circuitpython#11869 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
gnif/LookingGlass#1352 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kovidgoyal/kitty#10862 ·
メンテナーはふだん 1 日以内に返信