Repository navigation
media: gs201-csis: Leave ERR_WRONG_CONFIG out of the link's error interrupt - #120
Conversation
|
Thank you. The numbers explain the change well (about 527 interrupts a frame on the main camera, for packets the image never uses). One thing for when it leaves draft: |
|
Run on the palmtop ( |
|
Thank you for the run. Nine captures across all three cameras in every order, with the main camera down from 2,611 and 3,078 link interrupts to 10 for five frames, is a clear result. The You've taken it out of draft with the default still shared, so I'll treat it as a deliberate change on both phones. The reason holds on the Pixel 7 Pro too: my camera notes record ERR_WRONG_CONFIG as the only link error there, about 180-200 interrupts a frame from the main camera's VC 1 lines and once a frame on the others. Two things before it merges:
The checks pass on today's |
|
A second zumapro data point, from the Pixel 9 Pro Fold (comet,
So the default mask holds on comet's five sensors too. Comet's board DTS will set the LRTE property on the ultrawide's link when it goes up. |
|
@kdegeek, thank you for the comet numbers. The main IMX787 going from about 2,248 of these a frame to a handful per capture, with the other sensors quiet and no WDMA errors, is the same picture as on the 9a, now on five more sensors. I'll note the ultrawide's @W4HO-ham, where this stands. The head hasn't changed since 28 October, and I re-ran our gate on today's Two things are still open from my comment of the 28th:
|
9892d2e to
d57eade
Compare
|
Both wording points are in (d57eade), and the branch is rebased onto #103's current head (1e59669, rebased on 2026-11-24). The commit message now says the default is shared and changes the Pixel 7 Pro too, where the error comes from the main camera's VC 1 lines, about 180 to 200 a frame. The comment above |
derekross
left a comment
There was a problem hiding this comment.
Thank you, @W4HO-ham. Both wording points are in: the message now says the default is shared and what it changes on the Pixel 7 Pro, and the comment names both phones' sensors with the 7 Pro's figure. The code is unchanged since 10-28, so the object comparison from then still holds: one word of data, bit 3 of the default mask.
#63 and #103 landed today, so this needs one rebase: git rebase --onto omamobile 1e596698ac97 leaves your one commit on the new tip. I tried it here: it applies cleanly, the result's tree is 01352fea7a56, the same as the test merge onto today's omamobile, and the checks pass on it (sign-off, checkpatch clean, the W=1 build).
The other open point, the capture on my Pixel 7 Pro, is mine, and I'm sorry it has taken this long. Now that the phone runs #63 and #103, I can run your default there through the int0_mask parameter without a new kernel. I'll post the per-frame interrupt counts here, and merge once they're in and the branch is rebased.
|
I ran the 7 Pro test I owed you. This PR only changes the default of
The On three of the four links, the bit-3 storm drops to about three interrupts per frame. The fourth link was already quiet and stays the same. The frame counts are unchanged, and WDMA errors stay at 0. Bit 3 is still the only error bit counted, as it was on the 9a. There were no oopses or new error bits. No register reads were made: I didn't touch From the 7 Pro's side, this is ready to merge. |
…errupt ERR_WRONG_CONFIG flags a packet that no channel is configured to take. The Pixel 9a's sensors send such packets by design on VC 0: one embedded-data line a frame on the front and ultrawide cameras, and about 527 PDAF packets a frame on the main camera. At 30 fps that is some 16,000 link interrupts a second on the main camera, each a read and two writes of the link's interrupt registers, for an error that never affects the image. The default is shared, so this changes the Pixel 7 Pro too, where the same error comes from the main camera's VC 1 lines, about 180 to 200 a frame. Leave it out of the default INT0 mask; the other link errors still interrupt, and the int0_mask parameter can still take them all for bring-up. Signed-off-by: W4HO <87742609+W4HO-ham@users.noreply.github.com>
d57eade to
1ccc6b7
Compare
|
Rebased as you said ( |
derekross
left a comment
There was a problem hiding this comment.
Thank you, @W4HO-ham, for the quick rebase. It's the same commit as before on today's omamobile, and the checks pass there: sign-off, checkpatch clean, the W=1 build of gs201-csis.c, and CI is green on the new head. With the Pixel 7 Pro run in as well, this is ready, and I'll merge it now.
Draft, stacked on #103 (and #63 under it); only the last commit is new. It waits for one camera run on the palmtop: the nine-switch capture test, plus the link interrupt count per main-camera frame, which should drop from about 530 to about 2.
Every camera stream on the 9a shows link errors, and all of them are INT0 bit 3, ERR_WRONG_CONFIG (the name in Google's
isp_fe.h): a packet on VC 0 with a data type no channel takes. The front and ultrawide cameras send one a frame, an embedded-data line. The main camera sends about 527 a frame, its PDAF data; the link's per-VC counters show frames only on VC 0. At 30 fps that's some 16,000 interrupts a second, each a read and two writes of the link's interrupt registers, for an error that never touches the image.The default INT0 mask now leaves ERR_WRONG_CONFIG out, and the other link errors still interrupt.
int0_maskcan still take them all for bring-up.Checks: checkpatch --strict clean. The module with this change (together with #103's fix) is built for the palmtop's kernel.