Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/review/LESSONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ reviews can cite them, and each number is in exactly one file

| Area | Files | Entries | Read for |
| --- | --- | --- | --- |
| Safety model (AGENTS.md section 1) | [`safety.md`](lessons/safety.md), [`safety-2.md`](lessons/safety-2.md), [`safety-3.md`](lessons/safety-3.md), [`safety-4.md`](lessons/safety-4.md) | 159 | every review |
| Safety model (AGENTS.md section 1) | [`safety.md`](lessons/safety.md), [`safety-2.md`](lessons/safety-2.md), [`safety-3.md`](lessons/safety-3.md), [`safety-4.md`](lessons/safety-4.md) | 163 | every review |
| Shared code and the reference device | [`shared-code.md`](lessons/shared-code.md), [`shared-code-2.md`](lessons/shared-code-2.md), [`shared-code-3.md`](lessons/shared-code-3.md) | 131 | omamobile and app pull requests |
| Shell and scripts | [`shell.md`](lessons/shell.md), [`shell-2.md`](lessons/shell-2.md), [`shell-3.md`](lessons/shell-3.md), [`shell-4.md`](lessons/shell-4.md) | 165 | omamobile and app pull requests |
| Kernel (linux-omamobile) | [`kernel.md`](lessons/kernel.md), [`kernel-2.md`](lessons/kernel-2.md), [`kernel-3.md`](lessons/kernel-3.md), [`kernel-4.md`](lessons/kernel-4.md) | 189 | linux-omamobile pull requests |
| Shell and scripts | [`shell.md`](lessons/shell.md), [`shell-2.md`](lessons/shell-2.md), [`shell-3.md`](lessons/shell-3.md), [`shell-4.md`](lessons/shell-4.md) | 166 | omamobile and app pull requests |
| Kernel (linux-omamobile) | [`kernel.md`](lessons/kernel.md), [`kernel-2.md`](lessons/kernel-2.md), [`kernel-3.md`](lessons/kernel-3.md), [`kernel-4.md`](lessons/kernel-4.md) | 190 | linux-omamobile pull requests |
| The gates themselves | [`gates.md`](lessons/gates.md), [`gates-2.md`](lessons/gates-2.md), [`gates-3.md`](lessons/gates-3.md) | 145 | every review |
| Reviews and merging | [`reviews.md`](lessons/reviews.md), [`reviews-2.md`](lessons/reviews-2.md), [`reviews-3.md`](lessons/reviews-3.md), [`reviews-4.md`](lessons/reviews-4.md) | 165 | every review |
| Reviews and merging | [`reviews.md`](lessons/reviews.md), [`reviews-2.md`](lessons/reviews-2.md), [`reviews-3.md`](lessons/reviews-3.md), [`reviews-4.md`](lessons/reviews-4.md) | 168 | every review |
| Claims and evidence | [`claims.md`](lessons/claims.md), [`claims-2.md`](lessons/claims-2.md), [`claims-3.md`](lessons/claims-3.md), [`claims-4.md`](lessons/claims-4.md) | 226 | every review |
| Corrections (where a review was wrong) | [`corrections.md`](lessons/corrections.md), [`corrections-2.md`](lessons/corrections-2.md) | 64 | every review |
| Corrections (where a review was wrong) | [`corrections.md`](lessons/corrections.md), [`corrections-2.md`](lessons/corrections-2.md) | 65 | every review |

A numbered file (`claims-2.md`) continues the one before it; an area's parts
are read together.
Expand Down
19 changes: 9 additions & 10 deletions docs/review/lessons/claims-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow.

- **L-824. A sibling device's plan that explains or contradicts an AGENTS
gotcha about the reference phone is listed for the maintainer, with the run
that would settle it.** #852 traces early RTC wakes to stale S2MPG12 reads
(kernel #201) while AGENTS still calls the 7 Pro's early wakes unexplained,
shows "Wi-Fi stays connected across s2idle" to be a disassociate and rejoin
there, and prices the keep flag at 52 mA. *Check:* `grep -n` AGENTS section
4 for each mechanism a device plan explains (the PMIC, the driver, the flag)
and name the 7 Pro run in the review's notes. Extends L-492 and L-657.
*From:* #852, round 60, 2026-11-17.
- **L-823. A status line that quotes several measured numbers is checked for
the condition each was measured under.** #852's "284 mA at 2028 MHz, 184-200
mA at 1014 MHz, 52 mA more with Wi-Fi kept" set a Wi-Fi-kept figure beside
Expand Down Expand Up @@ -375,13 +384,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho
- **L-107. A plan's claim about the DEVICES.md matrix is checked against
the open PRs that change that row.** Extends L-28 and L-44. *From:* #35
with #34.
- **L-128. Read the host's USB log before interpreting a phone's
"re-enumeration".** The laptop's `journalctl -k` timestamps the gadget
leaving and arriving, and survives a phone whose RAM log is lost: husky
test 23's "re-enumerated after 22 s" was the boot itself. *From:* kernel
#33, round 10.
- **L-129. A CRC "clear" covers only what that register checks.** FTM5's
CRC register is the base check; config and CX errors come as events after a
reset. *Check:* which check covers the calibration area, and whether it
needs a reset, before a plan says a read answers "is it valid". *From:*
#35, round 10.
10 changes: 10 additions & 0 deletions docs/review/lessons/claims-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@

Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow.

- **L-128. Read the host's USB log before interpreting a phone's
"re-enumeration".** The laptop's `journalctl -k` timestamps the gadget
leaving and arriving, and survives a phone whose RAM log is lost: husky
test 23's "re-enumerated after 22 s" was the boot itself. *From:* kernel
#33, round 10.
- **L-129. A CRC "clear" covers only what that register checks.** FTM5's
CRC register is the base check; config and CX errors come as events after a
reset. *Check:* which check covers the calibration area, and whether it
needs a reset, before a plan says a read answers "is it valid". *From:*
#35, round 10.
- **L-130. Before putting a bootloader requirement down to the SoC,
compare the reference phone's stock images.** Cheetah's stock vbmeta chains
`boot` and `init_boot` with the same rollback index and ABL build as lynx,
Expand Down
16 changes: 6 additions & 10 deletions docs/review/lessons/claims.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho
2026.11.08 mask the unit; two releases shipped without it while the PR was
open. *Check:* `git tag -l 'release-*'` and `ls docs/release-notes` against
every release name a diff uses as a boundary. Extends L-774 and L-653.
*From:* #633, round 63, 2026-11-20.
*From:* #633, round 63, 2026-11-20. (Extended 2026-11-25: the mirror case,
kernel tags. #1028 wrote "not in any release tag yet" for its minimum kernel
on 11-24, and `kernel-2026.11.24`, tagged that evening, carries half of it
(#289). Run `git -C <kernel> tag --contains <commit> 'kernel-*'` for each PR
a minimum-kernel line names, at every round the PR stays open. Extends
L-774. *From:* #1028, round 68.)
- **L-1046. A comment or upgrade message that names another package's version
or behaviour goes stale while the PR waits.** #440's "once omamobile-omarchy
0.1.34 is installed: it writes the same line" described a plan for the 4.5
Expand Down Expand Up @@ -406,12 +411,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho
package's `depends=`; if neither brings the package, the notes name it as a
step before the first boot. Extends L-387, L-402 and L-442. *From:* #861,
round 60, 2026-11-17.
- **L-824. A sibling device's plan that explains or contradicts an AGENTS
gotcha about the reference phone is listed for the maintainer, with the run
that would settle it.** #852 traces early RTC wakes to stale S2MPG12 reads
(kernel #201) while AGENTS still calls the 7 Pro's early wakes unexplained,
shows "Wi-Fi stays connected across s2idle" to be a disassociate and rejoin
there, and prices the keep flag at 52 mA. *Check:* `grep -n` AGENTS section
4 for each mechanism a device plan explains (the PMIC, the driver, the flag)
and name the 7 Pro run in the review's notes. Extends L-492 and L-657.
*From:* #852, round 60, 2026-11-17.
9 changes: 9 additions & 0 deletions docs/review/lessons/corrections.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow.

- **C-65 (2026-11-25). Round 67 told #998's maintainer that ten Python
wrappers would cost 80 to 100 MB, from 8 to 10 MB RSS each;** the author's
`RssAnon` and `VmSwap` figures gave about 5 MB each, because the
interpreter's shared pages are counted once. *Lesson:* a memory cost we
estimate for a contributor's design is counted as the private (anonymous)
memory each copy adds, not whole-process RSS: `python3 -c 'import time;
time.sleep(60)' & grep -E 'Rss(Anon|File)|Pss' /proc/$!/status
/proc/$!/smaps_rollup` before writing a figure, and quote `Pss` or
`RssAnon`. Extends C-4. *From:* #998, rounds 67 and 68.
- **C-64 (2026-11-24). Round 66 told #1009's maintainer that there was no
polkit agent on the phone, and offered options on that basis; Omarchy 4.5's
shell has one.** `plugins/polkit/PolkitAgent.qml` ships in the signed
Expand Down
38 changes: 18 additions & 20 deletions docs/review/lessons/kernel-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@

Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow.

- **L-880. "Nothing changes for existing boards" for a media driver is
checked against the reference phone's overlays and its camera start, not the
board DTS's `status`.** Kernel #272 read as a Fold-only PR, but cheetah's
`DTB_OVERLAYS` enable the IMX386 and both ak7375 nodes and
`omamobile-camera-start` loads the modules at every boot, so an ungated 1 ms
wait in `ak7375_vcm_resume()` and a changed endpoint parse were 7 Pro
changes. *Check:* `git grep -n '<compatible>' <base> --
arch/arm64/boot/dts/exynos/google/`, then `grep DTB_OVERLAYS
device/cheetah/device.conf` and the blacklist's comment for who loads the
module. Extends L-49, L-206 and L-348. *From:* kernel #272, round 61,
2026-11-18.
- **L-879. A binding's `then:` is fed the SoC dtsi's own node.** Kernel
#271's schema demanded a clock name the SoC description doesn't use, so the
"one-line board follow-up" would have failed `dtbs_check`; a hand-made node
with the dtsi's names showed it in a minute. *Check:* copy the dtsi node,
change only the compatible, compile it and `dt-validate` it against the PR's
processed schema. Extends L-102 and L-236. *From:* kernel #271, round 61,
2026-11-18.
- **L-878. A dwc3 glue built on `dwc3_core_probe()` is checked for the
runtime PM callbacks the core expects.** The core enables runtime PM itself;
a glue with only sleep callbacks leaves a device that userspace can mark
Expand Down Expand Up @@ -393,23 +411,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho
once came without one, while their bodies said "checkpatch clean": it was
run on a diff, where the sign-off check can't fire. `tools/kernel-pr-check`
checks it now. *From:* kernel #10, #11, #12.
- **L-19. Clock fixes belong in the clock driver's field description, not
in a DT override.** `assigned-clock-parents` on a mux the driver describes
at the wrong bit writes a reserved bit. *Check:* the mux's shift and width
in `clk-gs101.c`/`clk-gs201.c` against Google's CMUCAL `cmucal-sfr.c`
(`SFR_ACCESS(..._SELECT, shift, width, ...)`) for that SoC; CMU_APM is the
ACPM firmware's own clock block, so prefer read-only there. *From:*
kernel #6 (gs101 APM_FUNC: driver bit 4, Google bits [1:0]).
- **L-20. Kconfig `depends on` must cover every bus the driver registers
on.** A driver that calls `spi_register_driver()` unconditionally with
`depends on I2C` fails to link with `CONFIG_SPI=n`; our config has SPI on,
so we'd never see it. *From:* kernel #8.
- **L-21. No wildcard compatibles** (`samsung,s6sy79x`): name the real part.
*From:* kernel #8.
- **L-22. Power domains: follow the upstream series, and leave live
co-processors alone.** A `google,gs101-pd` that differs from André
Draszik's pending upstream series (domains as PMU children,
`domain-supply`, the EL3 DTZPC call around every power change) will
conflict; without the DTZPC call a domain powered back on comes up with
its TrustZone settings reset. Powering off the AoC's domain while the AoC
runs, with no handshake, belongs to the AoC series. *From:* kernel #9.
44 changes: 20 additions & 24 deletions docs/review/lessons/kernel-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@

Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow.

- **L-19. Clock fixes belong in the clock driver's field description, not
in a DT override.** `assigned-clock-parents` on a mux the driver describes
at the wrong bit writes a reserved bit. *Check:* the mux's shift and width
in `clk-gs101.c`/`clk-gs201.c` against Google's CMUCAL `cmucal-sfr.c`
(`SFR_ACCESS(..._SELECT, shift, width, ...)`) for that SoC; CMU_APM is the
ACPM firmware's own clock block, so prefer read-only there. *From:*
kernel #6 (gs101 APM_FUNC: driver bit 4, Google bits [1:0]).
- **L-20. Kconfig `depends on` must cover every bus the driver registers
on.** A driver that calls `spi_register_driver()` unconditionally with
`depends on I2C` fails to link with `CONFIG_SPI=n`; our config has SPI on,
so we'd never see it. *From:* kernel #8.
- **L-21. No wildcard compatibles** (`samsung,s6sy79x`): name the real part.
*From:* kernel #8.
- **L-22. Power domains: follow the upstream series, and leave live
co-processors alone.** A `google,gs101-pd` that differs from André
Draszik's pending upstream series (domains as PMU children,
`domain-supply`, the EL3 DTZPC call around every power change) will
conflict; without the DTZPC call a domain powered back on comes up with
its TrustZone settings reset. Powering off the AoC's domain while the AoC
runs, with no handshake, belongs to the AoC series. *From:* kernel #9.
- **L-23. Thermal: the hardware trip is the last line of defence.** A driver
that sends ACPM's TMU init must show the firmware's hardware thermal trip
survives it; blocks with only a 110 °C critical trip need a reason.
Expand Down Expand Up @@ -411,27 +431,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho
arch/arm64/boot/dts` for boards including a touched dtsi; `dt-validate` each
on the merge. Extends L-195 and L-309. *From:* kernel #187, round 42,
2026-11-07.
- **L-542. "As Google's driver does" is traced to the end of the vendor
function, including what it does with the answer.** Kernel #194's fallback
follows `syna_tcm_v1_detect()` up to the `IDENTIFY`/`RESET` order, but
`syna_tcm_v1_parse_idinfo()` rejects a zero-length record, so on the unit
that needed the fix the stock driver would fail too: the empty-record path
is our own, and the real difference is probably earlier, in stock's
power-up. *Check:* follow the vendor function past the cited step to its
parse and error returns, and ask which branch the contributor's unit would
take under stock. Extends L-61 and L-77. *From:* kernel #194, round 44,
2026-11-08.
- **L-543. A panel-ID guard relaxed for a new ID is checked against the byte
the vendor driver keys its commands on, and tested with the commands the
guard blocked.** Google's `tg4c_get_panel_rev()` reads only 0xDB, so kernel
#212's new ID3 gets the same command set; the guard existed for the rate
switch, which the PR hadn't run. *Check:* the vendor driver's
`get_panel_rev`/`read_id` for which ID bytes select commands, then ask for
the guarded paths (rate switch, DPMS) on the new panel. Extends L-117 and
L-211. *From:* kernel #212, round 44, 2026-11-08.
- **L-544. A register map with no public source gets its provenance in the
commit message.** LWIS DTs give a part's address and widths but leave
register sequences to the HAL, so a driver whose registers can't be cited
says how they were found. *Check:* grep Google's GPL tree for each register;
if one is absent, ask. Extends L-61 and L-177. *From:* kernel #213, round
44, 2026-11-08.
24 changes: 24 additions & 0 deletions docs/review/lessons/kernel-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@

Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow.

- **L-542. "As Google's driver does" is traced to the end of the vendor
function, including what it does with the answer.** Kernel #194's fallback
follows `syna_tcm_v1_detect()` up to the `IDENTIFY`/`RESET` order, but
`syna_tcm_v1_parse_idinfo()` rejects a zero-length record, so on the unit
that needed the fix the stock driver would fail too: the empty-record path
is our own, and the real difference is probably earlier, in stock's
power-up. *Check:* follow the vendor function past the cited step to its
parse and error returns, and ask which branch the contributor's unit would
take under stock. Extends L-61 and L-77. *From:* kernel #194, round 44,
2026-11-08.
- **L-543. A panel-ID guard relaxed for a new ID is checked against the byte
the vendor driver keys its commands on, and tested with the commands the
guard blocked.** Google's `tg4c_get_panel_rev()` reads only 0xDB, so kernel
#212's new ID3 gets the same command set; the guard existed for the rate
switch, which the PR hadn't run. *Check:* the vendor driver's
`get_panel_rev`/`read_id` for which ID bytes select commands, then ask for
the guarded paths (rate switch, DPMS) on the new panel. Extends L-117 and
L-211. *From:* kernel #212, round 44, 2026-11-08.
- **L-544. A register map with no public source gets its provenance in the
commit message.** LWIS DTs give a part's address and widths but leave
register sequences to the HAL, so a driver whose registers can't be cited
says how they were found. *Check:* grep Google's GPL tree for each register;
if one is absent, ask. Extends L-61 and L-177. *From:* kernel #213, round
44, 2026-11-08.
- **L-545. A sentence corrected on one board is grepped across every board
that copied it.** Kernel #214 fixes akita's "the guard runs before the disks
appear" (L-528). The same words are in `zuma-husky.dts` and
Expand Down
28 changes: 10 additions & 18 deletions docs/review/lessons/kernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@

Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow.

- **L-1189. A firmware-written address read through a sliding BAR window is
range-checked before it is read.** Kernel #295 read a trap record at the
address the BCM4389 left in its shared area; `brcmf_pcie_tcm_addr()` moves
the BAR1 window to any address it is given, so an unwritten or corrupt
pointer reaches an arbitrary backplane address, where a powered-down domain
faults, on the reference phone's Wi-Fi. *Check:* for each new
`read_tcm*`/`copy_dev_tomem` whose address came from the device, look for
`brcmf_pcie_valid_ram_range()` (or the bus's equivalent) before it, and read
`tcm_addr()` for whether the window follows the address. Extends L-542 and
L-875. *From:* kernel #295, round 68, 2026-11-25.
- **L-1173. A retry loop whose first step is "nothing to do if the state is
already good" can skip the cleanup a failed previous attempt left undone.**
In kernel #294, an attempt that loaded the model but failed to lock is
Expand Down Expand Up @@ -399,21 +409,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho
with a 7 Pro reason, while the review laptop's logs had no such line; read
`git log --format=%B -3 -- <file>` or `git log -L` for the touched function
before writing "another phone's fix". *From:* kernel #290, round 66.)
- **L-880. "Nothing changes for existing boards" for a media driver is
checked against the reference phone's overlays and its camera start, not the
board DTS's `status`.** Kernel #272 read as a Fold-only PR, but cheetah's
`DTB_OVERLAYS` enable the IMX386 and both ak7375 nodes and
`omamobile-camera-start` loads the modules at every boot, so an ungated 1 ms
wait in `ak7375_vcm_resume()` and a changed endpoint parse were 7 Pro
changes. *Check:* `git grep -n '<compatible>' <base> --
arch/arm64/boot/dts/exynos/google/`, then `grep DTB_OVERLAYS
device/cheetah/device.conf` and the blacklist's comment for who loads the
module. Extends L-49, L-206 and L-348. *From:* kernel #272, round 61,
2026-11-18.
- **L-879. A binding's `then:` is fed the SoC dtsi's own node.** Kernel
#271's schema demanded a clock name the SoC description doesn't use, so the
"one-line board follow-up" would have failed `dtbs_check`; a hand-made node
with the dtsi's names showed it in a minute. *Check:* copy the dtsi node,
change only the compatible, compile it and `dt-validate` it against the PR's
processed schema. Extends L-102 and L-236. *From:* kernel #271, round 61,
2026-11-18.
Loading