Repository navigation
accel/ane: t6021: bind quietly when firmware is absent for sync_state - #3606
Conversation
When the Apple Neural Engine firmware blob has not yet been installed,
ane_t6021_fwload_check() logs an informational notice and returns
-ENODEV. ane_rtclient_probe_inner() currently passes that -ENODEV to
dev_err_probe() and fails probe(), which emits a spurious KERN_ERR boot
message ("error -ENODEV: firmware preflight failed") and leaves the
platform device unbound.
Because the unbound device remains an unsatisfied fw_devlink consumer of
its seven apple-pmgr-pwrstate power-domain suppliers, those domains stay
stuck in "sync_state() pending due to 284000000.ane" indefinitely and
keep boot-on domains pinned on.
Return 0 from ane_rtclient_probe_inner() with drvdata left NULL when
ane_t6021_fwload_check() reports -ENODEV, without touching hardware or
registering /dev/accel, and guard NULL drvdata in the sleep PM, remove,
and sysfs visibility callbacks.
Signed-off-by: Marcelo Alcantara <[email protected]>
There was a problem hiding this comment.
Verdict: MERGE at 4551c626
Blockers: none (await queued CI completion before merge).
Checked:
- Audited
drivers/accel/ane/ane_t6021_rtclient_main.c(+16/-1) anddrivers/accel/ane/ane_t6021_fwload.c(ane_t6021_fwload_check()). ane_t6021_fwload_check()returns-ENODEVexclusively on-ENOENTfromfirmware_request_nowarn()after logging its informational notice and before touching hardware or power domains; all other load/validation failures still return non--ENODEVerrors todev_err_probe().- Returning
0withdrvdata == NULLbinds the platform device sofw_devlinkallows theapple-pmgr-pwrstatesuppliers to reachsync_state(), while leavingane_rtclient_active == NULL, registering no/dev/accelnode, and guardingNULLdrvdataacross all driver callbacks (ane_rtclient_sleep_pm_suspend,ane_rtclient_sleep_pm_resume,ane_rtclient_remove, andane_t6021_stats_is_visible, which hides all three sysfs attributesane_stats,wedged, andreset). - J416 (M2 Max,
284000000.ane) hardware verification confirms zerofirmware preflight failederrors, info notice preserved,/dev/accelabsent, sysfs attributes hidden, and all ANE PMGR domains reachingstate_synced=1, withboot-healthandomarchy-m-testpassing. - DCO
Signed-off-by:present; no Apple material or policy issues.
Evidence
- Diff:
drivers/accel/ane/ane_t6021_rtclient_main.c(+16/-1). - Audited all
dev_get_drvdata/platform_get_drvdatausers andane_rtclient_driverops (.probe,.remove,.pm,.dev_groups; no.shutdownor runtime PM callbacks). - CI at review time: 20 queued, 1 pending, 3 skipped (
0failures).
Carry four Omarchy 4.6 RC kernel fixes for J416 / Apple Silicon 7.3 until upstream merges and retires them: - aurora-silicon/linux#3605 (222e0e6): downgrade repeated ACIO Phase 3 AT register read timeout RTKit syslogs to dev_dbg() - aurora-silicon/linux#3606 (4551c62): bind ane_t6021 quietly when firmware is absent so the 7 PMGR domains reach sync_state() - aurora-silicon/linux#3607 (40936f1, runtime commits 21bf1ba and aa3002f): fix BCM4388 codecs_v2 SoA layout and -EINVAL SCO caps - aurora-silicon/linux#3608 (8783076): honor fault_log_ratelimit() in asahi mark_pending_events() All five carried commits cherry-pick cleanly onto carry/aurora-7.3 (3058cc5) with zero conflicts and passed hardware verification on m2-max (lab build b1129-174341-04de, jobs j1129-174818-e436 and j1129-175551-7b35). Signed-off-by: Marcelo Alcantara <[email protected]>
|
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.
Checked the paths that read drvdata. Probe returns before platform_set_drvdata(), so it stays NULL. Runtime PM isn't enabled yet on that path. The stats group hides every attribute, and sleep PM and remove are guarded. Thanks.
|
J416c (16-inch M2 Max, T6021) at EvidenceBatched carry kernel
|
What: When ANE firmware has not yet been installed,
ane_t6021_fwload_check()already logs an info message and returns-ENODEVwithout touching hardware. Return0fromane_rtclient_probe_inner()withdrvdata == NULL(and guardNULLdrvdatain sleep PM,remove(), and sysfsis_visible()) instead of failing probe withdev_err_probe(). This eliminates the spuriouserror -ENODEV: firmware preflight failedboot error and allows the sevenapple-pmgr-pwrstatesuppliers to reachsync_state()instead of remaining stuck insync_state() pending due to 284000000.aneforever.Tested: J416 (MacBook Pro 16" M2 Max,
284000000.ane) on 7.3 carry build7.3.0-lab3ceda392-11ed(lab jobsj1129-174818-e436andj1129-175551-7b35,b1129-174341-04de, clang 19.1.7 + lld):7.3.0-1-1-ARCH):ane_t6021 284000000.ane: error -ENODEV: firmware preflight failed, 7apple-pmgr-pwrstatedomains stuck insync_state() pending due to 284000000.ane,omarchy-m-testfailedhardware.drivers:apple,t6021-ane.7.3.0-lab3ceda392-11ed): zerofirmware preflight failederrors, info notice preserved (firmware apple/ane/t602x_ane0_fw_selene_rc4x.macho is not installed, so the ANE stays off),284000000.anebound toane_t6021,/dev/accelabsent,ane_stats/wedged/resetsysfs attributes hidden, zerosync_state() pendingmessages, all ANE PMGR domainsstate_synced=1.boot-healthpass (0 failed units, 0 kernel errors on clean bootj1129-174818-e436),omarchy-m-test 0.2.0pass (hardware.drivers:apple,t6021-anefixed, 0 regressions);checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.Risk: two-way door · affects only H14 (
t6020/t6021/t6022/t8112) systems without installed ANE firmware;/dev/accelremains absent and no ANE hardware or power domain is touched. H16/H17 and systems with firmware installed follow the existing path unchanged.