[libcamera-devel,v2,0/2] ipu3: Enable to handle a number of concurrent requests
mbox series

Message ID 20210406085153.3818580-1-hiroh@chromium.org
Headers show
Series
  • ipu3: Enable to handle a number of concurrent requests
Related show

Message

Hirokazu Honda April 6, 2021, 8:51 a.m. UTC
PipelineHandler originally discards a request with ENOBUFS or
ENOMEM when a buffer is not available. The request will be
successful if enough buffers are available. This patch series
enables to process requests even if no buffer is available then
by storing the requests and retry queuing later.

Change in v2:
- Move a queue of pending requests to IPU3CameraData
- Pass queuePendingRequests() as signal to CIO2Device and
  IPU3Frame and invoke it from them.

Hirokazu Honda (2):
  pipeline: ipu3: Store requests in the case a buffer shortage
  libcamera: ipu3: Try queuing pending requests if a buffer is available

 src/libcamera/pipeline/ipu3/cio2.cpp   |  4 +-
 src/libcamera/pipeline/ipu3/cio2.h     |  3 ++
 src/libcamera/pipeline/ipu3/frames.cpp |  6 ++-
 src/libcamera/pipeline/ipu3/frames.h   |  5 +++
 src/libcamera/pipeline/ipu3/ipu3.cpp   | 62 +++++++++++++++++---------
 5 files changed, 56 insertions(+), 24 deletions(-)

--
2.31.0.208.g409f899ff0-goog