diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2024-10-29 14:47:05 +0200 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-06-17 10:51:35 +0200 |
| commit | 57b5a302b5d529db96ddc52fbccec005092ebb3d (patch) | |
| tree | cc6686092a8e6959675d33acc394ca615e92d593 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 5211354f2cc081c236dc0c21d04d09c1ccb48b88 (diff) | |
| download | linux-57b5a302b5d529db96ddc52fbccec005092ebb3d.tar.gz linux-57b5a302b5d529db96ddc52fbccec005092ebb3d.zip | |
media: raspberrypi: cfe: Fix min_reqbufs_allocation
The driver checks if "vq->max_num_buffers + *nbuffers < 3", but
vq->max_num_buffers is (by default) 32, so the check is never true. Nor
does the check make sense.
The original code in the BSP kernel was "vq->num_buffers + *nbuffers <
3", but got mangled along the way to upstream. The intention was to make
sure that at least 3 buffers are allocated.
Fix this by removing the bad lines and setting q->min_reqbufs_allocation
to three.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
