Skip to content

Conversation

@davidplowman
Copy link
Contributor

The stride value reported for output image buffers should be at least as large as any value that was passed in by the caller (subject to correct alignment for the pixel format). If the value is zero (meaning no value was passed), or is too small, the minimum acceptable value will be substituted.

@davidplowman
Copy link
Contributor Author

@naushir @6by9

@naushir
Copy link
Contributor

naushir commented Feb 15, 2024

LGTM!

@6by9
Copy link
Contributor

6by9 commented Feb 15, 2024

I thought we had this anyway, but I guess not.

Looks fine, although it does give userspace an easy way to allocate masses of memory by artificially inflating the stride. Then again VIDIOC_CREATE_BUFS allows you to do that anyway.

@popcornmix popcornmix force-pushed the rpi-6.6.y branch 2 times, most recently from 6036a96 to aa41065 Compare February 23, 2024 15:19
@popcornmix
Copy link
Collaborator

@davidplowman this needs a rebase before merging.

The stride value reported for output image buffers should be at least
as large as any value that was passed in by the caller (subject to
correct alignment for the pixel format). If the value is zero (meaning
no value was passed), or is too small, the minimum acceptable value
will be substituted.

Signed-off-by: David Plowman <[email protected]>
@davidplowman
Copy link
Contributor Author

Sorry, failed to spot that this wanted a rebase. Hopefully all good now...!

@6by9
Copy link
Contributor

6by9 commented May 21, 2024

Still LGTM

@popcornmix popcornmix merged commit 55faf2e into raspberrypi:rpi-6.6.y May 21, 2024
popcornmix added a commit to raspberrypi/firmware that referenced this pull request May 24, 2024
See: raspberrypi/linux#6180

kernel: drivers: staging: bcm2835-isp: Respect caller's stride value
See: raspberrypi/linux#5960

kernel: drivers: pcie-brcmstb: add best-effort workaround for QoS bug on bcm2712
See: raspberrypi/linux#6183

kernel: ARM: dts: Fix camera sync parameters
See: raspberrypi/linux#6184

kernel: Add association between DRM panels and backlight where defined
See: raspberrypi/linux#6177
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request May 24, 2024
See: raspberrypi/linux#6180

kernel: drivers: staging: bcm2835-isp: Respect caller's stride value
See: raspberrypi/linux#5960

kernel: drivers: pcie-brcmstb: add best-effort workaround for QoS bug on bcm2712
See: raspberrypi/linux#6183

kernel: ARM: dts: Fix camera sync parameters
See: raspberrypi/linux#6184

kernel: Add association between DRM panels and backlight where defined
See: raspberrypi/linux#6177
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.

5 participants