Repository navigation
watchdog: apple: use WD2 simple-reconfig so expiry and reboot reset the SoC - #3029
Conversation
There was a problem hiding this comment.
Formal adversarial §1–§6 pre-PR review at live head 0b808e1f6e63fa029b30092c849bf231bdd5138e (checked against live integration/aurora 5746ef8a5afd).
Checklist Audit (§1–§4, §6)
- §1 No model gating: Pass. Cleanly DT-driven via optional
"reconfig"regentry andreg-names("wdt","reconfig"), keeping 1-reg boards on legacy WD1 without chip/compatible tables inapple_wdt.c. Confirmedt6050-dieX.dtsiandt6050-ultra.dtsicarry no duplicate watchdog nodes. - §2 Code, locking, lifetime & ordering audit:
- Code blocker — Probe takeover write ordering hazard (
drivers/watchdog/apple_wdt.c, lines 302–316 in patched file): When taking over an already-running WD2 (wdt_ctrl & APPLE_WDT_CTRL_IRQ_ENand!is_kdump_kernel()), probe callsapple_wdt_enable_reconfig(wdt)(routing WD2 bark to cold reset) beforeapple_wdt_set_timeout()resetsWD2_CUR_TIME = 0and programsWD2_BARK_TIME(and without clearing any latchedAPPLE_WDT_CTRL_IRQ_STATUS). If a prior stage leftIRQ_ENset with a small/zeroWD2_BARK_TIME(CUR_TIME >= BARK_TIME) or pendingIRQ_STATUSwhilereconfigwas0, enablingreconfig = 0x10first can immediately trigger a spurious cold reset during probe. ProgramWD2_BITE_TIME = U32_MAX,WD2_CUR_TIME = 0, andWD2_BARK_TIME(or stopWD2_CTRL = 0, programBITE/CUR/BARK, enablereconfig, then re-armIRQ_EN) before routing bark to cold reset. - Non-blocking future-SoC note (
drivers/soc/apple/sleep.c:5261): On T8142 (aon_wdt_sleep = 0x20),apple_sleep_arm_wd2()writess->aon_wdt_saved | s->soc->aon_wdt_sleepwithout clearing bit 4 (0x10). T8142 does not wire"reconfig"in DT today (and T6050 usesapple,seq-commit-wdtwhich writes0x20directly), but if T8142 later adds"reconfig",0x10 | 0x20 = 0x30will corrupt bits 5:4. MaskingGENMASK(5, 4)inapple_sleep_arm_wd2()would prevent that cleanly. - Locking/lifetime check:
devm_add_action_or_reset(apple_wdt_sleep_unregister)is registered afterdevm_watchdog_register_device(), so teardown unregisters fromapple_sleepbefore watchdog/MMIO teardown, serialized underapple_sleep_wdt_lock.apple_sleep_end()keepsapple_sleep_wd2_owned = trueuntil afterapple_sleep_wdt_restore()completes, preventingapple_wdt_ping()from racingapple_wdt_start().
- Code blocker — Probe takeover write ordering hazard (
- §3 Safety: Pass. Reboot bark delay scales from
clk_rate; legacy WD1RESET_ENand stale WD2RESET_ENare disarmed with a warning;get_timeleft()guards against unsigned underflow. - §4 Clean-room & Attribution: Pass. All 4 commits (
36b2fe5830ff,7829e6bd2eed,b36a10c83210,0b808e1f6e63) have human author/committer (Jeff Queisser <funkzy@users.noreply.github.com>) and humanSigned-off-by:only; zero AI commit trailers;Assisted-by:disclosed in PR body. - §6 Naming & CI: Pass. All 9 CI checks (
dt-checks,host-tests, PMGR/SEPkunit,source,rust-build, 3× DWC3/ATC) areSUCCESS.
Blockers (§2, §5)
- §2 Probe takeover ordering (
apple_wdt.c): Fix the WD2 takeover sequence soWD2_CUR_TIME/WD2_BARK_TIME/WD2_BITE_TIMEare safe beforeapple_wdt_enable_reconfig()routes WD2 bark to cold reset. - §5 Commit 2 (
drivers/soc/apple/sleep.cWD2 handoff) has zero hardware verification: J775D has noapple_sleepnode, so the entireapple_sleep_wdt_*handoff is untested on hardware. Please run an exact-head test on a T6050 Mac withapple_sleep(e.g., J716C or J714S) acrossPM_SUSPEND_MEM(mem) — note thatapple_sleep_begin()returns early forstate != PM_SUSPEND_MEM(sleep.c:6446), sos2idlealone does not exercise theapple_sleepWD2 handoff (test boths2idleandmemwith/dev/watchdog0active). - §5 Missing regression Mac for shared code & clean regression counts:
apple_wdt.canddrivers/soc/apple/sleep.care shared across M1–M5 Macs; please add an exact-head regression row on a non-simple-reconfig (1-reg WD1) Mac (M1–M4) with0 AVC denials,0 failed units, and0 new kernel errorson default cmdline (and clarify the2failed units and10 vs 8kernel error count delta on the J775D row, where two extra lines occurred vs one noted USB timeout).
Apple Silicon SoCs with a simple-reconfig watchdog (such as T6050 / M5
Ultra) route WD2's bark interrupt to a cold SoC reset via a separate AON
routing register, rather than resetting through WD1's RESET_EN bit.
Document an optional second reg entry ("reconfig") in apple,wdt.yaml and
require reg-names when both "wdt" and "reconfig" regions are present,
keeping existing single-reg nodes valid without reg-names.
Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
…fig across wake drivers/soc/apple/sleep.c uses WD2 as its suspend/resume safety net between apple_sleep_begin() and apple_sleep_end(). Once apple_wdt also drives WD2 on SoCs with a simple-reconfig routing register, the two drivers must coordinate ownership so apple_wdt_suspend() does not disarm sleep's 120 s safety net and apple_sleep_end() restores an active apple_wdt timer after clearing sleep's WD2 timer. Add a lock-protected WD2 handoff API in include/linux/soc/apple/sleep.h (with inline no-op stubs when CONFIG_APPLE_SOC_SLEEP=n): - apple_sleep_wdt_register(dev, wdt, restore, data) matches @wdt's resource start against available apple_sleep DT nodes' "wdt" regions regardless of probe order; watchdogs without a matching sleep node (such as J775D or a secondary die) return 0 without taking the slot, while a second device claiming the same block returns -EBUSY. - apple_sleep_wdt_active(dev) reports whether sleep currently owns WD2 for @dev so only that watchdog yields during [begin .. end]. - apple_sleep_end() clears WD2_CTL, invokes @restore while holding the handoff lock, and clears ownership. On T6050, apple,seq-commit-wdt writes 0x20 (sleep-commit routing) to wdt-aux + AON_WDT_SLEEP (0x2c) during commit without restoring it on wake. Bracket t6050_seq(T6050_SEQ_WDT) using struct apple_sleep's existing aon_wdt_saved/aon_wdt_marked fields (matching T8142): save wdt-aux + AON_WDT_SLEEP before commit, and in t6050_sleep_wake_regs() stop WD2, W1C-clear IRQ_STATUS with a readl() barrier, restore the saved routing word with a readl() barrier, and re-arm the 120 s wake net. Leave T8142's aon_wdt_sleep OR path unchanged (T8142 has no "reconfig" DT node in this series) and leave shared apple_sleep_set_wd2() unchanged (empirical J775D register checks confirm a stopped WD2 does not latch IRQ_STATUS past bark). Add isolated KUnit coverage for block matching, slot ownership, and .end ordering in sleep-test.c. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
…he SoC On Apple Silicon SoCs whose watchdog DT node provides the optional "reconfig" routing register (such as T6050 / M5 Ultra), legacy WD1 RESET_EN stalls the SoC instead of performing a cold reset. Routing WD2's bark interrupt via bits 5:4 = 01 of the "reconfig" register (with WD2_BITE = U32_MAX and WD2_CTRL = IRQ_EN) triggers a clean cold reset on both watchdog expiry and apple_wdt_restart(). When "reconfig" (>= 4 bytes, mapped non-exclusively via devm_ioremap) is present: - Register the apple_sleep WD2 handoff (matching the watchdog's reg[0] resource) before touching any watchdog registers so a registration error writes zero registers and devm unregisters the watchdog before the sleep handoff. - Unify all four WD2 arming paths (start(), restart(), pre-probe takeover, and apple_wdt_sleep_restore()) into apple_wdt_wd2_arm(): CTRL=0, BITE=U32_MAX, CUR=0, BARK=ticks, W1C clear IRQ_STATUS, a readl(WD2_CTRL) ordering barrier ahead of the separate reconfig mapping, apple_wdt_enable_reconfig() (with readback), and CTRL=IRQ_EN. - Unify pre-probe takeover: always clear WD1_CTRL, and when either a legacy boot-loader WD1 (RESET_EN) or WD2 (IRQ_EN or RESET_EN) was armed before probe (outside kdump), set WDOG_HW_RUNNING before calling apple_wdt_wd2_arm() so a watchdog already armed at probe stays armed and resets cleanly instead of stalling or being dropped. - Derive the 40 ms reboot bark delay from clk_rate and yield WD2 to apple_sleep when apple_sleep_wdt_active(dev) is true. Single-reg DT nodes keep existing WD1 behavior unchanged aside from guarding apple_wdt_get_timeleft() against cur_time >= reset_time underflow on both WD1 and WD2. Add tools/asahi/apple-wdt-tests.py (registered in run-host-tests.py) compiling the real driver body and T6050 commit/wake WDT helpers under ASan/UBSan with --old-ref 70a00e5 and eight negative mutations. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
Add the optional "reconfig" register (<0x2 0x8833002c 0x0 0x4>) and
reg-names ("wdt", "reconfig") to watchdog@28836c000 in t6050-die0.dtsi
so apple_wdt selects WD2 bark-IRQ simple-reconfig mode on T6050 boards
for clean cold resets on watchdog expiry and reboot.
Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
0b808e1 to
67f0883
Compare
|
Thanks for the thorough review — pushed the updated series (
|
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 67f088391002: the code point is fixed; it needs rows at this head.
Blockers: none in the code. Probe now disarms WD2 and programs bite, counter and bark before it routes a bark to cold reset (apple_wdt_wd2_arm()), so a counter the loader left past the bark time can't reset the SoC during probe.
Rows before merging: commit 2 (the WD2 handoff in drivers/soc/apple/sleep.c) hasn't run, since the J775D has no apple_sleep node. It needs a T6050 laptop through a mem sleep and wake at this head, with the watchdog still armed after the wake; we'll run it on our J714s. apple_wdt.c runs on every Mac, so it also needs one boot at this head on another generation with the watchdog as before (armed, and a reboot resets).
Checked: thank you. No Apple material. The reconfig path is chosen by the new optional register in the tree, the binding adds the WD2 register range, and the J775D A/B shows expiry and reboot resetting the SoC through WD2.
Superseded by the review at 67f0883
|
67f0883 (cherry-picked cleanly onto fleet85 2ad96595 for J713 27.2 boot; apple_wdt.c, sleep.c, sleep.h byte-identical to 67f0883) J713 (M4 Air, T8132) PASS: guarded one-shot, default cmdline (systemd.watchdog_sec=60); pre-sleep /sys/class/watchdog/watchdog0 (Apple SoC Watchdog) state=active timeout=60 timeleft=45 status=0x8300; RTC s2idle 1/1 (15.567 s suspended); post-wake watchdog0 remained armed and counting (state=active timeout=60 timeleft=56->53 over 3 s, status=0x8300), 0 watchdog/sleep errors, Enforcing, 0 failed units, 0 AVC, 0 new kernel errors vs saved fleet85; ordinary saved reboot cleanly reset SoC back to saved 7.3.0-aurora-fleet85 (Enforcing, 0 failed, next_entry empty). |
Post-merge J714s hardware rowDeep sleep PASS (2/2) on a 14-inch MacBook Pro (J714s, M5 Pro/T6050, G17S B1), kernel
Earlier pre-merge rowJ714s (M5 Pro / T6050 / G17S B1), exact head Headless RTC0 was set for +28 s. One deep suspend returned on the same boot in 34.04 s with the RTC wake event recorded. Apple WD2 was active and counting before and after, with 29 s remaining at the first sample after resume. There were 0 panics, GPU faults, recoveries, or observed AVC denials (SELinux inactive). The one failed unit, |
What: Add an optional
"reconfig"register to theapple,wdtbinding and T6050 DT soapple_wdtdrives WD2 bark-IRQ with simple-reconfig (making/dev/watchdog0expiry,apple_wdt_restart(), and pre-probe watchdog takeover cold-reset the SoC instead of stalling), coordinated withapple_sleepvia a DT-matched ownership handoff and T6050wdt-aux + 0x2csave/restore across sleep.Tested: J775D (Mac Studio, M5 Ultra, T6050) at
67f088391002onmaina3d477d03f8e(published Auramainf13056d95af6, 27.2 stub, default command line): boots, adopts pre-probe WD1 into WD2 simple-reconfig,WDT_IOCTL_PASS, live 8 s expiry self-reset (47 s), liveapple_wdt_restart()self-reset (40 s), 2/2 baseline failed units, 0 new kernel errors (8 vs 9 baseline; ALARM has no SELinux); KUnitapple-sleep-soc-data13/13, host tests 10/10 (0regressions),dtbs_check11/11t6050-*.dtb,W=1 -WerrorKconfig matrix 10/10.Risk: one-way door (adds optional
"reconfig"DT binding property) · affects T6050 Macs (t6050-die0.dtsi: J714S/C, J716C, J775C/D) and sharedapple_wdt/apple_sleepcode (M1–M5 single-reg nodes keep legacy WD1).Not yet: T6050 Mac with active
apple_sleepnode (J714S/J716C) two back-to-backPM_SUSPEND_MEMcycles +s2idleverifying0x28833002crestore; non-simple-reconfig M1–M4 1-reg regression row.Details
Problem
On Apple Silicon SoCs with a simple-reconfig watchdog (such as T6050 / M5 Ultra, J775D),
apple_wdtcurrently drives WD1 withRESET_EN(0x4). On these parts WD1 expiry stalls the SoC instead of resetting it, leaving/dev/watchdog0expiry,apple_wdt_restart(), and any watchdog already armed before probe unable to recover a hung machine cleanly.Why this shape
The watchdog and routing policy lived in four places that could disagree:
apple_wdthardcoded WD1RESET_ENfor every SoC;drivers/soc/apple/sleep.cindependently armed and cleared WD2 (WD2_BARK,WD2_CTL) across firmware-driven suspend (apple_sleep_begin()/apple_sleep_end()) assuming no other driver used WD2; T8142's sleep path (apple_sleep_arm_wd2()/t8142_wake()) saved and restoredaon-misc + 0x2c(AON_WDT_SLEEP); and T6050's sleep DT sequence (apple,seq-commit-wdt = <0x0 37 0x2c 0x20>on J714S/J716C) wrote0x20towdt-aux + 0x2c(0x28833002c, the same routing word) without saving or restoring it on wake.A narrower change—gating WD2 on a T6050 compatible or chip ID inside
apple_wdt—would violate DT-driven hardware description, require per-SoC lists as more simple-reconfig parts arrive, silently collide withapple_sleepon T6050 boards with an active sleep controller (whereapple_wdt_suspend()would disarm sleep's 120 s WD2 safety net andapple_sleep_end()would clearWD2_CTLon resume), and leave T6050's wake safety net running under sleep-commit routing (0x20) after commit.Instead, this series uses the device tree as the single source of truth: an optional second
regentry named"reconfig"selects WD2 bark-IRQ mode with simple-reconfig (reconfig = 0x10,WD2_BITE = U32_MAX,WD2_CTL = IRQ_EN), while single-reg"wdt"nodes keep existing WD1 behavior unchanged (aside from guardingapple_wdt_get_timeleft()againstcur_time >= reset_timeunderflow on both WD1 and WD2). Every WD2 arming path inapple_wdt(start(),restart(), pre-probe takeover, andapple_wdt_sleep_restore()) runs through oneapple_wdt_wd2_arm()helper (CTRL = 0,BITE = U32_MAX,CUR = 0,BARK = ticks, W1CIRQ_STATUSclear,(void)readl(WD2_CTRL)ordering barrier ahead of the separatereconfigmapping,apple_wdt_enable_reconfig()with readback, andCTRL = IRQ_EN). Any watchdog already armed before probe (legacy WD1RESET_ENor WD2IRQ_EN/RESET_EN) is adopted through one takeover rule withWDOG_HW_RUNNINGset before arming so the boot watchdog stays alive and resets cleanly.To prevent two drivers from fighting over WD2 during suspend,
drivers/soc/apple/sleep.cprovides a lock-protected, DT-matched ownership handoff (apple_sleep_wdt_{register,unregister,active}()) matching the watchdog'sreg[0]start address against availableapple_sleepnodes regardless of probe order (so boards withoutapple_sleep, such as J775D, or secondary dies return 0 without taking the slot). On T6050,t6050_sleep_commit_wdt()/t6050_sleep_wake_wdt()reusestruct apple_sleep's existingaon_wdt_saved/aon_wdt_markedfields to savewdt-aux + AON_WDT_SLEEPbeforet6050_seq(T6050_SEQ_WDT)and restore it on wake after stopping WD2, W1C-clearingIRQ_STATUS, and ordering both cross-mapping transitions withreadl(). T8142'saon_wdt_sleepOR path (no"reconfig"DT node in this series) and sharedapple_sleep_set_wd2()(empirical J775D register checks show a stopped WD2 does not latchIRQ_STATUSpast bark) are left untouched as named follow-ups.Change
dt-bindings: watchdog: apple,wdt: add optional simple-reconfig register(416ba83b2e73): Document the optional secondregentry ("reconfig"), requirereg-nameswhenreghasminItems: 2(withrequired: [reg]inif:), and add a 2-reg example.soc: apple: sleep: hand off WD2 to apple_wdt and preserve T6050 reconfig across wake(9927b97fc390):apple_sleep_wdt_register(dev, wdt, restore, data),apple_sleep_wdt_unregister(dev), and per-deviceapple_sleep_wdt_active(dev)ininclude/linux/soc/apple/sleep.handdrivers/soc/apple/sleep.c(with inline no-op stubs whenCONFIG_APPLE_SOC_SLEEP=n), clearingWD2_CTLand invokingrestoreunder lock inapple_sleep_end().t6050_seq(T6050_SEQ_WDT)indrivers/soc/apple/sleep-t6050.h(t6050_sleep_commit_wdt()/t6050_sleep_wake_wdt()) to savewdt-aux + AON_WDT_SLEEPbefore commit and restore it on wake afterCTL = 0, W1CIRQ_STATUSclear, andreadl()barriers.apple_sleep_test_wdt_handoffindrivers/soc/apple/sleep-test.c) for block matching, slot ownership,-EBUSYcontention, and.endordering.watchdog: apple: use WD2 simple-reconfig so expiry and reboot reset the SoC(0897a4c2b35e):"reconfig"register (>= 4bytes, non-exclusivedevm_ioremap) is present in DT.devmunregisters the watchdog before the sleep handoff.apple_wdt_wd2_arm()with W1CIRQ_STATUSclear and cross-mappingreadl()barriers, unify pre-probe takeover of armed WD1 (RESET_EN) or WD2 (IRQ_EN/RESET_EN) withWDOG_HW_RUNNINGset before arming, derive the 40 ms reboot bark delay fromclk_rate, and guardapple_wdt_get_timeleft()againstcur_time >= reset_timeunderflow.tools/asahi/apple-wdt-tests.py(registered intools/asahi/run-host-tests.py) compiling the realapple_wdt.cbody andt6050_sleep_{commit,wake}_wdt()helpers under ASan/UBSan with--old-ref 70a00e583b032and eight negative mutations.arm64: dts: apple: t6050: add watchdog simple-reconfig register(67f088391002): Add<0x2 0x8833002c 0x0 0x4>(reg-names = "wdt", "reconfig") towatchdog@28836c000inarch/arm64/boot/dts/apple/t6050-die0.dtsi.Named follow-ups (out of scope here)
apple_wdtandsleep.c(plusWDT_TICKS_PER_Svs DT clock and T8132 resume stub), and unifying T6050's commit/wake WDT helpers withapple_sleep_arm_wd2()/t8142_wake().AON_WDT_SLEEPbits 5:4 inapple_sleep_arm_wd2()when T8142 gains a"reconfig"DT node (with a T8142 hardware row).wdt: reset instead of stalling on simple-reconfig watchdogs) once this series lands. This series also carries acur_time >= reset_timeguard inapple_wdt_get_timeleft()overlapping watchdog: apple: report no time left once the counter passed the bite, and add KUnit tests #2919; if watchdog: apple: report no time left once the counter passed the bite, and add KUnit tests #2919 merges first, this series will rebase onto it and extendapple_wdt-test.cwith WD2 simple-reconfig KUnit cases.Evidence
Testing
Own-base J775D (Mac Studio, M5 Ultra, T6050) A/B row
maina3d477d03f8e(no extra PRs needed to boot).main(f13056d95af6,aura-main-f13056d9), 27.2 stub, default command line, read-only root.wdtsr6b(windowwdtsr6@20261124-0144) — barea3d477d03f8e.boot=ok,steps_rc=0,of_node/reg-namesabsent (legacy 1-reg WD1),/dev/watchdog0held bysystemd[1](30s),2failed units (iwd.servicemissing kernel crypto options in default config,systemd-networkd-persistent-storage.serviceon read-only root),9kernel errors (ALARM has no SELinux, so no AVC count).wdtsr6(windowwdtsr6@20261124-0144) —a3d477d03f8e+ this PR at67f088391002.boot=ok,steps_rc=0,of_node/reg-names = wdt,reconfig, adopted pre-probe legacy WD1 directly into WD2 simple-reconfig (apple-watchdog 28836c000.watchdog: taking over legacy WD1 watchdog as WD2 simple-reconfig),systemd[1]handed over cleanly (30s),WDT_IOCTL_PASS(timeout=30stimeleft=29s->SETTIMEOUT(10)timeleft=9s->6safter 3.2 s ->KEEPALIVEback to9s-> 4x 3 s pet loop -> magic close'V'survived 12 s without reset ->systemd[1]re-acquired/dev/watchdog0withEBUSYconfirmed).2failed units (iwd.service,systemd-networkd-persistent-storage.service),8kernel errors (0new kernel errors vs baseline;0watchdog or sleep errors).Live hardware cold-reset proofs on J775D (exact PR head)
On kit
wdtsr6(windowwdtsr6rst@20261124-0149, same basea3d477d03f8e+67f088391002, publishedaura-main-f13056d9, 27.2 stub, default command line):/dev/watchdog08 s expiry (apple_smc/macsmc-rebootactive): armedtimeout=8s timeleft=7swithout petting -> SSH dropped at 14 s -> SoC performed a clean cold self-reset back to Linux in 47 s.apple_wdt_restart()reboot path (macsmc-rebootunbound):reboot -ftriggeredapple_wdt_restart()-> SSH dropped at 10 s -> SoC performed a clean cold self-reset back to Linux in 40 s.IRQ_STATUSlatch check (J775D0x28836c020..0x2cwithRECONFIG=0x0): armed WD2 for 1 s, stopped (CTL=0) at 0.2 s, waited 1.5 s pastBARK(CUR=0x26e4af3 > BARK=0x16e3600) ->WD2_CTL=0x0(bit 1 does not latch while stopped).Automated checks
kunit-vzarm64 guest on67f088391002,CONFIG_KUNIT=y,CONFIG_APPLE_SOC_SLEEP_KUNIT_TEST=y):11suites,55/56cases pass (0fail,1baselineCONFIG_UCLAMP_TASKskip);apple-sleep-soc-data:13/13pass (includingapple_sleep_test_wdt_handoff).tools/asahi/run-host-tests.pyon Ubuntu GCC 15.2 + Clang 21.1 + ASan/LSan/UBSan):500/501passed on basea3d477d03f8e(g15-pb-growth-tests --mutationspre-existingFAILon base);510/511passed on67f088391002(0regressions; all10/10newapple-wdt-testsrunsok: positive run,--old-ref 70a00e583b032, and--mutation {ignore-sleep-handoff,no-bark-in-start,no-status-clear,reconfig-before-bark,register-after-arm,hwrunning-after-arm,no-wd1-adopt,no-t6050-wake-restore}).dt_binding_check&CHECK_DTBS=y(DT_SCHEMA_FILES=watchdog/apple,wdt.yaml):dt_binding_checkrc 0;dtbs_checkrc 0 across all 11t6050-*.dtbfiles;dt-validate: 0 lines, 0 new diagnostics vs base.W=1 KCFLAGS="-Werror"):10/10clean across commits 2 & 3 (CONFIG_APPLE_SOC_SLEEP={y,n}xCONFIG_APPLE_WATCHDOG={m,y}) and final tree (CONFIG_KUNIT={y,m}xCONFIG_APPLE_SOC_SLEEP_KUNIT_TEST=y).Cross-board rows requested
Our lab only has a J775D (Mac Studio, M5 Ultra, no
apple_sleepnode in DT). Because commit 4 enables"reconfig"in sharedt6050-die0.dtsi(affecting J714S/C, J716C, J775C/D), rows from other board owners are needed:apple_sleepnode (e.g., J714S / J716C): verify two back-to-backPM_SUSPEND_MEM(mem) suspend/resume cycles with/dev/watchdog0active and one cycle after magic close (pluss2idle), confirming0x28833002cmatches its pre-entry value after wake,apple_sleepkeeps its WD2 safety net during suspend, andapple_wdtis restored active (reconfig = 0x10,WDIOC_GETTIMELEFTticking againstwdd->timeout) after resume.