Skip to content

device/tegu SLEEP-PLAN: the 9a's power domains are all on, and the unused ones cost about 30 mA - #926

Open
W4HO-ham wants to merge 1 commit into
derekross:mainfrom
W4HO-ham:tegu-sleep-power-domains
Open

W4HO-ham wants to merge 1 commit into
derekross:mainfrom
W4HO-ham:tegu-sleep-power-domains

Conversation

@W4HO-ham

Copy link
Copy Markdown
Contributor

Notes for the 9a's drain, from 2026-11-18, for SLEEP-PLAN's "What's measured" and "Candidates". No package changes.

All 26 power domains are on, the unused ones too. Nothing in Linux manages the 9a's power domains (pm_genpd_summary is empty), so each stays as ABL leaves it. A read-only bring-up module read each <NAME>_STATUS word at the offsets Google's GPL flexpmu_cal_local_zuma.h reads, and all 26 were on, among them TPU, AUR, EH, BW, MFC, G2D, the six camera stages and DPUF1.

Switching unused ones off saves about 30 mA. A second bring-up module switched them off from the boot state with Google's own off sequence: the CMU controller option bit 24 cleared, CONFIGURATION bit 0 cleared through the PMU register-write SMC, then a wait on STATUS. Both modules are out of tree and not published.

Measured with the cable in and the charger's buck off, the screen off and the modem off, as 90 s means of current_now:

domains off drain
none 284 mA
TPU, AUR, EH, BW, MFC and G2D 261 and 273 mA
those six and the camera stages 253, 256 and 252 mA

With the modem up, the first six alone gave about 20 mA. The cameras still worked and those six stayed off through a 42-minute sleep.

Two cautions, written down so nobody repeats them:

  • A domain powered back on by hand comes up with its DTZPC at the secure default. The next non-secure access to its CMU took a synchronous external abort, and the palmtop reset. The gs101 driver's TZ-config SMC is what a power-on needs.
  • With the camera stages off, libcamera lists no cameras.

The candidate. It is a genpd provider for zumapro's domains, as the gs101 driver does it, with two things checked first:

  • Each SoC's status bit: the Pixel 8 Pro's notes say the gs101 driver's bit doesn't mean powered on zuma.
  • The Pixel 8 Pro's own attempt, which reset the phone together with an idle-state overlay, cause not established.

…used ones cost about 30 mA

Nothing in Linux manages the 9a's power domains, so all 26 stay as ABL leaves them, the unused ones too. Switched off from the boot state with Google's own sequence by an out-of-tree module, TPU, AUR, EH, BW, MFC, G2D and the camera stages saved about 30 mA, with two cautions: a domain powered back on by hand aborts at the next access, and the cameras need their stages. A genpd provider is the way to ship it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant