Repository navigation
media: apple: isp: Load the camera module tuning the DT names (J815: IMX958 2226_02) - #2194
m0d16l14n1 wants to merge 3 commits into
Conversation
|
Thanks for finding the J815's own module tuning; the corner shading improvement is clear. We select hardware differences through the device tree rather than machine checks in the driver. Here the setfile is chosen by Could you describe it in the J815 DT instead, for example a property on the ISP/camera node naming the module tuning ( |
355d6a0 to
3728bcc
Compare
|
@RyanTheTide done, new head 3728bcc, in three commits:
Any other board with that module now only needs the DT line. ISP KUnit 48/48, |
|
Thanks for 3728bcc and the J815 log: the module tuning named in the DT, with the sensor default as fallback and no module parameter, is the shape we were after. |
fd73cb3 to
6988300
Compare
|
Rebased onto current The only conflict was in
Checks
|
|
A note on state: this branch now conflicts with |
6988300 to
70eba1a
Compare
|
@RyanTheTide rebased onto current
|
|
Thanks for the rebase. 70eba1a merges cleanly again, the driver commit is unchanged, and keeping both |
|
Merge-train adversarial review (MERGETRAIN-LINUX2) at 70eba1a: NO BLOCKERS. Code read only, nothing built here. Before the merge it still needs Dj's verdict at this head; the missing rows are listed below. Full review#2194 media: apple: isp: Load the camera module tuning the DT names (J815: IMX958 2226_02) @70eba1a3VERDICT: NO BLOCKERS Code checks out:
Nits:
Missing rows:
|
Some Macs pair a sensor with a camera module that has its own tuning file. Let the ISP node name it, e.g. "2226_02" for the J815's IMX958. Signed-off-by: Nick <[email protected]>
The J813 and the J815 (MacBook Air 13" and 15" M5) both have an IMX958 sensor, and both have run its default 2224_01 setfile. The J815's camera module has its own tunings, 2226_01 and 2226_02, in the H17-native form (lens-shading records without the xx24 stride). With 2224_01 the J815's raw picture is dark in the corners. Corner/centre brightness on one J815, raw camera, same scene, each file loaded into a freshly started firmware: 2224_01 0.50 2226_01 0.63 2226_02 0.85 Load the tuning the ISP node's apple,module-tuning names. A board without the property, or with a name that is not a setfile of its sensor, keeps the sensor's default. The 2226 files are not in every vendor firmware set yet, so a missing one falls back to 2224_01 instead of leaving the camera untuned. Tested on J815, with the file picked by a module parameter at the time: all three files load and stream (no command timeouts), 2226_02 also across several camera restarts. KUnit: isp_test_module_tuning (match, another sensor, unknown names) and isp_test_setfile_fallbacks (each fallback is the same sensor, no larger, and final). Signed-off-by: Nick <[email protected]>
The J815's IMX958 module runs 2226_02: with the sensor's default 2224_01 its corners read half the centre's brightness, with 2226_02 0.85 of it. Signed-off-by: Nick <[email protected]>
70eba1a to
988af2c
Compare
|
@RyanTheTide thanks for the review. I force-pushed
checkpatch |
|
Merge-train re-check at 988af2c: |
|
Closing this: I'm taking the J815 camera work out of the upstream trees for now and continuing it on my own machine. Thanks for the reviews. |
The J813 and the J815 both have an IMX958 front camera, and both run the sensor's default
2224_01setfile. macOS's camera daemon carries two tunings for the J815's camera module,2226_01and2226_02, in the H17-native form (lens-shading records without the xx24 stride). With2224_01, the J815's raw picture is dark in the corners.Corner/centre brightness on one J815, raw camera, same scene, each file loaded into a freshly started firmware:
Change:
apple,module-tuningon the ISP node names the camera module's own setfile, e.g."2226_02".2224_01instead of streaming untuned. Today's vendorfw doesn't have these files; vendor firmware: collect the J815's IMX958 module tunings (2226_01, 2226_02) aurora-installer#151 extracts them fromappleh16camerad.setfilemodule parameter are gone.isp_test_module_tuning(match, another sensor's file, unknown names) andisp_test_setfile_fallbacks(each fallback is the same sensor, no larger, and final).apple,module-tuning = "2226_02".Tested on J815: all three files load and stream with no command timeouts, and
2226_02also across camera restarts. At the time the file was picked by the module parameter. The DT-named run was on 3728bcc, and the driver patch is unchanged since then apart from the comments.Not run yet: J815 with the 2226 files absent (the fallback line, streaming on
2224_01), and J813 at this head (no property:2224_01, no warning).Checks (rebased onto integration/aurora bb9f8ec):
isp_test_sensor_sysfs, also fails on plain bb9f8ec (59 tests, 58 pass).checkpatch --strictclean on all three commits.dt_binding_checkclean onapple,t8140-isp.yaml, and the J704, J813 and J815CHECK_DTBSoutput the same as on integration. Not rerun here; the binding and DTS commits are unchanged.Part of the J815 bring-up; board results are summarised in #135.
Assisted-by: LLM (Claude:Opus 5.5)