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

Hirokazu Honda hiroh at chromium.org
Tue Apr 6 10:51:51 CEST 2021


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


More information about the libcamera-devel mailing list