Repository navigation
media: apple: isp: select sensor setfiles by platform ID - #3900
RyanTheTide wants to merge 1 commit into
Conversation
Select platform-specific ISP sensor tuning setfiles using the platform ID from the device tree rather than defaulting every board to the earliest setfile variant for a sensor: - IMX558 (legacy ABI): select isp_1922_02XX.dat on platforms 0x0e, 0x0f, and 0x12 (with temporal filter off), keeping isp_1921_01XX.dat on older platforms and isp_1925_03XX.dat on H17. - IMX958: add isp_2226_01XX.dat (platforms 0xb9..0xbc) and isp_2226_02XX.dat (platforms 0x78, 0x85, 0x86), keeping isp_2224_01XX.dat for earlier platforms. - IMX364: select isp_8723_01XX.dat on platform 0x0a. - IMX248: select isp_1822_02XX.dat on platform 0x06. If a platform-specific setfile is absent from an older firmware extraction on disk (-ENOENT), fall back once to the base sensor setfile so existing installations keep streaming. Add a KUnit test covering platform-ID setfile selection across legacy and H17 firmware ABIs.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Additional exact-head hardware row at
|
satchlj
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at ea4d29879826
Blockers:
- CI still pending at
ea4d29879826:apple-build,host-tests, andKUnit planare still queued (andpr-readinessstill reflects the earlier failedpr-textrun before the body edit). Code and exact-head hardware rows look ready to approve as soon as CI completes green.
Checked: Audited isp-drv.h, isp-cam.c, and isp-cam-test.c. Selecting platform-specific setfiles via device-tree apple,platform-id (IMX558 1922_02, IMX958 2226_01/2226_02, IMX364 8723_01, IMX248 1822_02) with a single -ENOENT fallback to the base sensor setfile is clean: every fallback pair shares identical temporal_filter and snf_centre_dy, the data_surf->size check is moved after fallback with proper release_firmware(fw) on -ENOSPC, and isp_ch_load_setfile() consistently uses the local setfile pointer throughout. Exact-head hardware rows at ea4d29879826 are present on K114s M5 Pro, J713 M4 Air, and J413 M2 Air (#issuecomment-7341434846) alongside ARM64 KUnit 54/54 PASS.
Evidence
- Checked every field of
isp_setfiles[]used afterisp_ch_load_setfile()fallback (path,file_size,size,magic,snf_centre_dy,temporal_filter): all fallback targets match the variant'stemporal_filterandsnf_centre_dy. - KUnit
isp_test_setfile_platform_selectcovers all 14 legacy and H17 platform mappings. - Pending checks on
ea4d29879826:apple-build,host-tests,KUnit plan(queued).
|
Local CI receipt (hosted CI still queued):
This PR and #3901 conflict textually. In |
|
Replaced by #3928 (same work, cleaned up: Signed-off-by on every commit, host-test fix, values limited to what our own measurements support). Closing this one. |
Replaced by #3928 (same work, cleaned up: Signed-off-by on every commit, host-test fix, values limited to what our own measurements support). Closing this one.