Skip to content

Support BGGR/RGGB/GBRG bayer orders in the PSYS pipeline - #182

Open
dmanresa-saes wants to merge 1 commit into
intel:mainfrom
dmanresa-saes:bggr-support
Open

Support BGGR/RGGB/GBRG bayer orders in the PSYS pipeline#182
dmanresa-saes wants to merge 1 commit into
intel:mainfrom
dmanresa-saes:bggr-support

Conversation

@dmanresa-saes

Copy link
Copy Markdown

The HAL currently only handles GRBG bayer input in three spots, which breaks any sensor advertising another bayer order. We hit this bringing up the Surface Pro 7+ front camera (OV5693, SBGGR10 in its 2x2-binned mode) on the mainline intel-ipu6 ISYS:

  1. PGUtils::getStride() — unknown bayer formats fall through to an unaligned stride and the PG aborts with a firmware assert in dma_nci_io (stride % 64).
  2. CameraUtils::getBpl()BG10/RG10/GB10 fourccs missing → wrong bytes-per-line → vertically striped image.
  3. PipeLiteExecutor::isSameStreamConfig() — the SBGGR external stream never matches the internal SGRBG one, so input ports fail to bind.

This adds the missing bayer orders alongside the existing GRBG cases (no behavior change for currently supported sensors). Verified end-to-end on a Surface Pro 7+ (IPU6 Tiger Lake): with these three changes the full sensor → ISYS → PSYS pipeline runs at 30 fps with correct output. Full bring-up documented at https://github.com/dmanresa-saes/surface-ipu6-cameras.

The HAL only handles GRBG (and bare RAW) bayer input in three places,
which breaks any sensor whose readout produces another bayer order:

- PGUtils::getStride() falls through to a stride that violates the
  terminal requirements for 10-bit bayer, and the program group aborts
  with a firmware assert in dma_nci_io (stride % 64).
- CameraUtils::getBpl() does not know the BG10/RG10/GB10 fourccs and
  returns a wrong bytes-per-line, producing a vertically striped image.
- PipeLiteExecutor::isSameStreamConfig() rejects the external SBGGR10/12
  stream against the internal SGRBG10/12 one, so the input ports never
  bind ("Failed to bind input ports").

Add the missing bayer orders next to the existing GRBG cases. Verified
on a Surface Pro 7+ (IPU6 Tiger Lake) front OV5693, which advertises
SBGGR10 in its 2x2-binned mode: with these three changes the full
sensor -> ISYS -> PSYS pipeline runs at 30 fps.

Signed-off-by: D. Manresa <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
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.

1 participant