Skip to content

media: apple: isp: report and propagate sensor tuning failures - #348

Open
satchlj wants to merge 1 commit into
omacom:integration/aurorafrom
satchlj:port/isp-setfile-errors
Open

satchlj wants to merge 1 commit into
omacom:integration/aurorafrom
satchlj:port/isp-setfile-errors

Conversation

@satchlj

@satchlj satchlj commented Nov 4, 2026

Copy link
Copy Markdown

Port Ryan Murray's merged Aurora change #668
(64357f8873ad).
The current capture path ignores most sensor-tuning failures. Keep a missing
setfile optional, but fail setup on read/validation/upload errors, log failed
uploads, and report successful uploads through dynamic debug.

This is independent of #344 and retains integration's capture sequence.
Adapt the two upstream failure/fallback KUnit cases to the existing IPC
transport; omit unrelated newer H17 tests and document only this base.
Model tuning is distinct from per-module factory calibration and ANE denoise.
Authorship and cherry-pick provenance are retained.

Validation: arm64 module compile/MODPOST/link with Clang 18 and W=1,
KUnit object compilation, and 44 source-extracted host setup/fallback cases pass
under ASan/UBSan. Kernel KUnit runtime is not run (module-only build scope). Also all five #344 host suites and both
preview host checks pass with this port applied (using a no-op KUnit hook shim
for the host extractor). No hardware/quality claim;
J613 26.6.2 still needs owner-approved kit testing.

NV12 setup ignored every setfile error except EINTR, including a bad
header, a short file and a rejected firmware upload. This made an
unusable tuning file look like a stream running with model tuning.

Keep absent tuning optional, but fail setup for other read, validation
and upload errors. Log failed uploads and add a debug message for a
successful upload. Exercise failure propagation and missing-file fallback
at the capture setup boundary with KUnit static stubs.

Distinguish model-wide sensor setfiles from per-module iCCl factory data
in Kconfig and document the existing NR commands, P010 omissions and the
unimplemented factory calibration/ANE interfaces. Do not change the
qualified preview sequence or guess undocumented firmware parameters.

(cherry picked from commit 64357f8)

Port to integration/aurora: retain its capture sequence; adapt the two
setfile KUnit cases to the existing IPC transport. Omit newer H17 preview
tests and documentation that do not describe this base.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Signed-off-by: Satya Benson <satya@benson.earth>
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.

2 participants