Repository navigation
arm64: dts: apple: t8142-j815: Use the shared T8142 SMC hwmon sensors - #4042
Conversation
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at 291647b
Failure: The compiled J815 DTB arms 18 new critical shutdown trips using the J813 ADT limit. Three successive samples at the copied threshold on any of the 18 sensors take the thermal core's critical shutdown path. There is no check that J815 supplies that limit. The J815 base delegates those limits to its PMP and has no such shutdown trips. This is the exact J815 case left open when the sensor-provider support landed in #1908.
Keep the hwmon sharing, and leave the J815 software shutdown trips disabled until they can use J815's own limit. I built the three DTBs and verified that J813 and J704 stay byte-identical, all 18 new J815 zone phandles resolve to the intended hwmon indices, and the targeted schemas pass.
DjDeveloperr
left a comment
There was a problem hiding this comment.
The ARM64 W=1 and CHECK_DTBS builds match main's schema diagnostics. J813 and J704 are byte-identical. On J815, though, the compiled tree adds 18 CPU critical shutdown trips at 125 °C, each with critical-samples = <3>. Those limits come from J813. The J815 receipt verifies the sensor keys and readouts across sleep, but gives no J815 source for the shutdown policy.
Please split the hwmon sharing from the thermal policy. Keep J815's existing policy in the hwmon change, or document J815's own thresholds and justify the new trip settings before adding them. On the revised head, the J815 owner can repeat sensor reads and one deep wake. The unchanged J813 and J704 binaries need no new rows.
291647b to
b408c50
Compare
b408c50 to
cd35c55
Compare
|
J815's own ADT has the same limits. Its PMP So the trips use J815's own limit, not a copied one. At |
DjDeveloperr
left a comment
There was a problem hiding this comment.
The J815 PMP table values you posted address my threshold objection. The 110 °C control and 125 °C critical thresholds match the values reported for J815 itself.
I compared cd35c5502647 with the reviewed 291647b4dc06. The only source change is the comment citing the J815 table. The previous DTB checks and J815 sensor reads and four clean deep wakes still apply. The earlier J813 and J704 DTBs were byte-identical to main. Approving this head and starting Host tests, Device tree checks, and PR text.
There was a problem hiding this comment.
Verdict: MERGE at cd35c55
Checked: The author confirmed the critical limit against J815's own PMP sensor descriptions in the linked evidence. The shared DT therefore uses the confirmed limit for both machines. The revision changes the source citation and leaves the compiled behavior unchanged. I matched the touched source blobs to this head, rebuilt the J815, J813 and J704 DTBs byte-for-byte against the prior review, and reran the J815 thermal-zone and SMC hwmon schema checks without diagnostics. This resolves my prior change request.
All 6 hwmon-common, 6 hwmon-laptop and 29 t8142-hwmon SMC keys are present in the live J815 SMC key table, including all 26 SoC die keys and mTPL. Include t8142-hwmon.dtsi in t8142-j815.dts in place of the inline apple,discover-temperatures block that duplicated them, and drop the note in t8142-hwmon.dtsi that kept J815 out until it was verified. J815's thermal policy is unchanged: no thermal zones are added, and the PMP keeps die temperature control. The J813 and J704 DTBs are unchanged. Signed-off-by: Nick <nekreshen@yandex.ru>
cd35c55 to
0044dad
Compare
|
Split as suggested. At |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Approved at 0044dad36b9b. This revision gives J815 the shared hwmon description and leaves its thermal policy with PMP. The two touched files merge cleanly with 35ddf947b124, retaining #4041's MagSafe sleep property.
The exact-head J815 run reports 66 hwmon inputs and 20/20 sensor reads in range before and after one successful deep wake. The J813 and J704 DTBs are byte-identical to the base. The three hosted checks for this head are authorized.
What: Switch
t8142-j815.dtsfrom its inlineapple,discover-temperaturesSMC hwmon block to the sharedt8142-hwmon.dtsi, now that every key in it is verified on J815. J815's thermal policy is unchanged (no thermal zones added; the PMP keeps die temperature control);t8142-j813.dtsis untouched.Tested: J815 (MacBook Air 15" M5), nightly13: main
59c55677a7a8+ the other open J815 PRs, with this PR's J815 DTB at0044dad36b9b(the nightly's J815 tree without the CPU thermal zones;dtcdiff against it: only the 18 zones and#thermal-sensor-cellsremoved), Stage 21.0.0b19-38-g024add0c; 1 boot. 2 thermal zones (macsmc_soc_die, battery) x 10 reads in 10 s: 20/20 in range, 0 read errors, 31-46 C;macsmc_hwmon66 inputs. One timed deep sleep (rc 0, S3 on every SSPS controller in 10-11 ms), then the same reads again: 20/20, 0 errors, 66 inputs. Regression: 0 failed units, 0 WARN/BUG/Oops, no SELinux on this install (0 denials); 3 new kernel lines vs the previous boot, all from a first sleep attempt that our test hook started while the camera driver was still loading (the sleep controller refused it with the ISP still running); the retry above was clean. Build-tested at0044dad36b9b(ARCH=arm64 LLVM=1 W=1;t8142-j813.dtbandt8142-j704.dtbbyte-identical to the base5f32aa72fa7e;CHECK_DTBS=yont8142-j815.dtb: no diagnostics, the same as the base).Risk: Two-way door · J815 (MacBook Air 15-inch, M5) only; the J813 and J704 DTBs are byte-identical.
Not yet: J815 CPU die thermal zones: a follow-up after a sustained J815 soak, since the switch-on, sustainable power and controller terms were measured on J813.
Details
t8142-hwmon.dtsicarried a note that J815 kept an inlineapple,discover-temperaturescopy until its SMC keys were verified on hardware. Live J815 SMC key dumps confirm 6/6hwmon-common, 6/6hwmon-laptop, and 29/29t8142-hwmonkeys (including all 26apple,soc-die-keysandmTPL).Evidence
make ARCH=arm64 LLVM=1 W=1 apple/t8142-j815.dtb apple/t8142-j813.dtb apple/t8142-j704.dtbat0044dad36b9band at the base: no warnings in the changed files;t8142-j813.dtbandt8142-j704.dtbare byte-identical.make ARCH=arm64 LLVM=1 CHECK_DTBS=y apple/t8142-j815.dtb: no diagnostics at the head or the base.temp-sensortable: all 24 CPU die sensors (Ta000..Ta007,Tp000..Tp00r,Te001..Te007) give a 110 C target and 125 C maximum (redacted in live/27.2: add live device tree for J815 (M5 MacBook Air 15-inch) adt-collection#10).