Repository navigation
media: apple: isp: select sensor setfiles by platform ID - #3928
Conversation
The driver loads the first setfile release for every sensor. On the M2 Air (platform 0x0e) and the M5 Pro (0xba) a later setfile release for the same sensor gives a visibly more neutral picture in our own identical-scene captures, so select it there by the platform ID the device tree already provides: - IMX558 on 0x0e: isp_1922_02XX.dat, with the temporal filter off like isp_1921_01XX.dat. - IMX958 on 0xba: isp_2226_01XX.dat. Other platforms keep their current setfile. If the newer file is missing from an older firmware extraction (-ENOENT), fall back once to the base setfile so existing installs keep streaming. Add a KUnit test for the platform selection. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at c15fc56
Blockers:
- CI at head
c15fc569938ais still pending (host-testsin progress;apple-build,KUnit plan, andreadinessqueued). Ready to approve as soon as CI finishes green.
Checked:
- Full 203-line diff across
isp-drv.h,isp-cam.c, andisp-cam-test.c— no code blockers found. - Platform selection is scoped strictly to the measured platforms (
0x0e->ISP_IMX558_1922_02on legacy ABI,0xba->ISP_IMX958_2226_01on0x958), leaving all other platforms on their existing setfiles. -ENOENTfallback inisp_ch_load_setfile()cleanly falls back once to the base setfile (1922_02 -> 1921_01,2226_01 -> 2224_01), checkssetfile->size > isp->data_surf->sizeafter fallback, and releasesfwon-ENOSPC. (Non-blocking note: both fallback pairs currently share the sametemporal_filtervalue, soisp_setfiles[fmt->id].temporal_filtermatches either way; settingfmt->id = fbon fallback would keep it future-proof if a later pair ever differs.)isp_test_setfile_platform_selectcovers legacy and H17 sensors plus non-matching platform IDs; exact-head K114s (c15fc569938a) hardware row with identical-scene A/B metrics and clean stock restore is in the PR body.
Evidence
- Diff reviewed:
aurora-silicon/linux#3928@c15fc569938a9d7a237b2d5a015c6f71dd95cdcb(3 files, +90/-12). - CI status checked:
pr-textSUCCESS;host-testsIN_PROGRESS;apple-build,KUnit plan,readinessQUEUED. - Exact-head hardware row in PR body: K114s T6050 at
c15fc569938aPASS (isp_2226_01XX.datloaded, 40/40 1920x1080 NV12 frames, 0 firmware errors).
|
Local CI at
The hardware row in the body (K114s, exact head) stands. |
|
J413 (M2 Air) hardware row for |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: MERGE at c15fc56 (once queued Actions apple-build and KUnit finish green)
Full diff audited earlier with no code blockers; Actions host-tests is green, local arm64 KUnit (60/60) and W=1 build receipts are posted, and exact-head hardware rows now cover both measured platforms (K114s isp_2226_01XX.dat and J413 isp_1922_02XX.dat). Clearing the review gate now so merge can proceed as soon as the queued Actions build/KUnit jobs complete.
|
Local PC qualification for
The J413 exact-head result confirms |
|
Merged exact head
Local build and KUnit receipts cover the queued hosted jobs under the 12-02 CI override. |
What
The driver loads the first setfile release for every sensor. On the M2 Air (platform
0x0e) and the M5 Pro (0xba) a later release for the same sensor gives a clearly more neutral picture in our own identical-scene captures, so select it there by the device-tree platform ID:0x0e:isp_1922_02XX.dat(temporal filter off, like1921_01).0xba:isp_2226_01XX.dat.Every other platform keeps its current setfile. If the newer file is missing from an older firmware extraction (
-ENOENT), the driver falls back once to the base setfile, so existing installs keep streaming.Replaces #3900, trimmed to the platforms we measured.
Tested: K114s T6050 (
7.3.0-k114sstack9) at c15fc56 pass:isp_2226_01XX.datloaded, 40/40 1920x1080 NV12 frames, 0 firmware errors, stock module restored (zero-reboot module swap, silent, SELinux Enforcing, 0 failed units). ARM64 KUnitapple-isp*62/62 pass withCONFIG_WERROR=yon the combined tree with the two follow-ups; ISP host tests 5/5 pass;checkpatch --strictclean.Risk: two-way · J413 (0x0e) and K114s (0xba) only; other Macs load the same setfile as today.
Identical-scene numbers (K114s, same scene, stock vs this PR)
Night room scene, so absolute values move between runs; the direction is the same in all four runs.
J413 (0x0e): the replaced PR's head
ea4d2987, with the same0x0eselection, measured neutral_dev 3.69 -> 2.61 on the same kind of A/B.Not yet