Repository navigation
media: gs201-csis, s5kgn1, MAINTAINERS: follow-ups to #63 - #103
Conversation
|
Added 9a0f19a: the camera-switch bug from #63 (the first capture after switching away from the ultrawide or front camera came back empty). The LoCH stays bound to its last link after a clean stop (EN_STATUS 0x0a8 reads 0x106 or 0x101), and it ignores an abort while disabled, so route now enables it for the abort when it's still active. Nine captures switching between all three cameras in every order all write frames on the palmtop. |
|
Thank you for these follow-ups, and for the camera-switch fix on top. Each one is what I asked for: the event-info citation for the LoCH offsets, the S5KGN8 source with its ldo4/ldo5 roles, The branch merges cleanly onto today's One small thing about Once #63 is merged, please rebase this onto |
…s#63) into tegu-dt-cameras Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
9a0f19a to
1e59669
Compare
derekross
left a comment
There was a problem hiding this comment.
Thank you, @W4HO-ham. The rebase is clean: all four commits are the same patches as before, the gate passes on today's base and CI is green.
One thing from my 10-28 comment that's still open, and I think it got lost: the message of "Abort a LoCH left bound to its last link" says EN_STATUS (0x0a8) is "named in the camera HAL's register table". Could you say instead how you found it, for example that you read the register on the phone after clean stops (your 0x106 and 0x101), or cite zuma-isp-event-info.dtsi or the LWIS headers if they name it? Message only.
Once #63 is merged, its commits get new ids, so please do that edit together with git rebase --onto omamobile 37d58b17bf80 <your branch>, and I'll merge this straight after. The Pixel 7 Pro capture I owe you on #63 covers this one too.
|
Sorry, I lost that one. I have no citable source that names the register, so the message will say I found it by reading the LoCH's registers on the palmtop around clean stops, and give the 0x106 and 0x101 reads. I'll push the reworded message with the |
1e59669 to
83a3d7b
Compare
|
The message is reworded (83a3d7b; the tree is the same as 1e59669). The paragraph no longer cites the camera HAL. It now says the reading came from the LoCH's registers on the palmtop around clean stops, with bit 8 and the 0x106 and 0x101 reads. I did it now rather than wait for #63, so this point is closed. When #63 merges, I'll rebase |
…used define The LoCH interrupt registers' offsets are also in Google's GPL zuma-isp-event-info.dtsi, not only their bits: say so. ZP_STRIDE_ALIGN was never used (CSIS_STRIDE_ALIGN, 64, already covers it). Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
…roles The GN8's power-up order is rear_main_camera_power_seq in Google's GPL zuma-tegu-camera.dtsi, which also names ldo5 and ldo4 as the actuator's and OIS's AVDD and AF_VM (the sensor's own being ldo1 and vdig). Replace the open question with that; both stay required, as the module's sequence powers them before the sensor. Link: https://android.googlesource.com/kernel/devices/google/tegu/+/6276884d9940694b25a6934671918ec8ac412ee8/dts/zuma-tegu-camera.dtsi Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
None of gs201-csis, the MIPI DC-PHY receiver or the S5KGN1 and IMX386 sensor drivers had an entry. Add one block for the four and their bindings. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
On the Pixel 9a the first capture after switching cameras came back empty whenever the previous stream ran on a D-PHY link (the ultrawide or the front camera) and worked: the new link received its frames, but the LoCH raised no interrupt and wrote nothing. The next capture on the same link worked. The LoCH's status register at 0x0a8 (EN_STATUS here) shows why. Reading the LoCH's registers on the palmtop around clean stops, it still reads active (bit 8) with the old link in its low bits after a stream that stopped cleanly (0x106 after link 6, 0x101 after link 1), and every failing start began that way, every good start with it clear. The abort at route time didn't clear it, because the LoCH ignores an abort while it is disabled. So when the LoCH is still active, enable it (its DMA is already off) for the abort, and disable it afterwards. Nine captures in a row, switching between all three cameras in every order, now all write frames; before, about half of the switches failed. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
83a3d7b to
8bfb2ec
Compare
This is on top of #63; its first 14 commits are #63's. It covers the small things from your review there:
zumapro-csis-core.hnow citeszuma-isp-event-info.dtsifor the LoCH interrupt registers' offsets, not only their bits.rear_main_camera_power_seqinzuma-tegu-camera.dtsi, and that sequence answers the open question: ldo5 and ldo4 are the actuator's and OIS's AVDD and AF_VM, and the sensor's own supplies are ldo1 and vdig. Both stay required, since the module powers them first.ZP_STRIDE_ALIGNis gone.On
google,wdma-input: this series' binding has no such property, neither at #63's head nor inomamobile. The zumapro branch already sets the WDMA ones it has (wdma-context,csis-sysreg,ebuf) to false. If you meant one of those, it's there; if it's a property from your tree, tell me which and I'll add it.checkpatch --strict on the three new commits is clean, and the W=1 build of gs201-csis and s5kgn1 with the whole stack on today's
omamobileis clean.