Cover Letter Detail
Show a cover letter.
GET /api/1.1/covers/18014/?format=api
{ "id": 18014, "url": "https://patchwork.libcamera.org/api/1.1/covers/18014/?format=api", "web_url": "https://patchwork.libcamera.org/cover/18014/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20221216122939.256534-1-paul.elder@ideasonboard.com>", "date": "2022-12-16T12:29:21", "name": "[libcamera-devel,v9,00/18] lc-compliance: Add test to queue more requests than hardware depth", "submitter": { "id": 17, "url": "https://patchwork.libcamera.org/api/1.1/people/17/?format=api", "name": "Paul Elder", "email": "paul.elder@ideasonboard.com" }, "mbox": "https://patchwork.libcamera.org/cover/18014/mbox/", "series": [ { "id": 3675, "url": "https://patchwork.libcamera.org/api/1.1/series/3675/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3675", "date": "2022-12-16T12:29:21", "name": "lc-compliance: Add test to queue more requests than hardware depth", "version": 9, "mbox": "https://patchwork.libcamera.org/series/3675/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/covers/18014/comments/", "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id A41D0C31E9\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 16 Dec 2022 12:30:03 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D1F726339E;\n\tFri, 16 Dec 2022 13:30:02 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7C526603D0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 16 Dec 2022 13:30:01 +0100 (CET)", "from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp\n\t[175.177.42.159])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 23523A31;\n\tFri, 16 Dec 2022 13:29:59 +0100 (CET)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1671193802;\n\tbh=Sb0VLySHaAlubR7nNoX6DhjZ8f+ZDoQCBi8iq8GlYAk=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=OGX3/Y15tMvSzT4E6wetkwQX/goosg0yg5G1Get+o+v/Bu5/1r00NUH0Utp72ms/P\n\tU29VHdRwnOCzXsRAxVjmb5t9V2HgMbSN9ZViuG0P79oxIGH+1BRwXkB7XJ0F+OGQgU\n\tHuYlJOQEh/ObQ7zfuGLXJTYzu6ZJISJPir5oHVDbcRMjuZkk3meNn70SkcYiZqcRT6\n\tBCJJ29R/xcObXYAtFRyjxt5LfihgyGmgr7xv6KZPVhyDvDY3ELq+jEeqgAMuDxzfk6\n\trI5P/UXMiuBxzXmLCMiNYfADfuNdWdNsWz98scgl0QBMX3gCIN8m9tRpk3wq+ERVPm\n\teG2tKBdEp874w==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1671193801;\n\tbh=Sb0VLySHaAlubR7nNoX6DhjZ8f+ZDoQCBi8iq8GlYAk=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=BMOPN77nfb7727BYOAofxwCGa3iMY3DuM5bu4LpM0SgBkEe2+lBsDis2/LaxpJc0P\n\tPF7I2YR1yF0UuhpV/5O2QO9ngggezv8ZOqDI4LnyA+ssFxRYEOxrGEB+yuoLCjNT7G\n\t97woP+FmuPWdZ9xgoSmCeOAOWOmP7G9UtcQUT/Sg=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"BMOPN77n\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 16 Dec 2022 21:29:21 +0900", "Message-Id": "<20221216122939.256534-1-paul.elder@ideasonboard.com>", "X-Mailer": "git-send-email 2.35.1", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v9 00/18] lc-compliance: Add test to queue\n\tmore requests than hardware depth", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "From": "Paul Elder via libcamera-devel <libcamera-devel@lists.libcamera.org>", "Reply-To": "Paul Elder <paul.elder@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "The purpose of this series is to add a new test to lc-compliance that tests\nqueuing a lot of requests at once in order to ensure that pipeline handlers are\nable to handle more requests than they have resources for (like internal buffers\nand V4L2 buffer slots) [1].\n\n[1] https://bugs.libcamera.org/show_bug.cgi?id=24\n\nIn order to achieve this, the FrameBufferAllocator had to be adapted to allow an\narbitrary number of buffers to be allocated. But there's also the issue of\nreporting the minimum number of requests required by the pipeline handler, which\nwas solved by creating a new MinimumRequests property.\n\nBriefly, patches 2 through 10 rework the core and pipeline handlers to use\nMinimumRequests and remove bufferCount, while patches 10 through 17 rework\nlc-compliance to add the new test and an additional test for MinimumRequests.\n\nPatch 2 adds the new MinimumRequests property to report the minimum number of\nrequests needed by the pipeline handler.\n\nPatch 3 adds a count argument to allocate() so that the number of buffers to\nallocate needs to be specified, as it is no longer assumed through bufferCount.\n\nPatches 4-6 decouple the number of internal buffers and V4L2 buffer slots from\nbufferCount in each pipeline handler.\n\nPatch 9 reworks the V4L2 compatibility layer to not depend on bufferCount.\n\nPatch 10 removes bufferCount from the StreamConfiguration and everywhere it was\nstill used, as it is no longer needed.\n\nPatch 11 fixes a file ordering issue in lc-compliance's meson.build.\n\nPatches 12-13 does some refactoring in lc-compliance in order to reduce code\nduplication.\n\nPatch 16 adds the test to lc-compliance.\n\nPatch 17 adds checks in lc-compliance to ensure that requests which failed to be\nenqueued are reported as test failure.\n\nPatch 18 adds another, very short, test to lc-compliance to make sure that the\nMinimumRequests property is set in the pipeline handler.\n\nNícolas had run v8 of this new lc-compliance test on the raspberrypi,\nrkisp1, uvcvideo and vimc pipelines. raspberrypi already handles it\nwell, while the other three run successfully after applying the series\nin [2]. The ipu3 should run fine as well since the series in [2] was\nbased on the internal queue already present there. A patch for the\nsimple pipeline is still pending.\n\n[2] https://lists.libcamera.org/pipermail/libcamera-devel/2021-July/022508.html\n\nThe number of buffers to allocate in the lc-compliance test (patch 15) was\nhardcoded to 8 since more than that would cause errors when allocating.\n\nv7: https://lists.libcamera.org/pipermail/libcamera-devel/2021-July/022577.html\nv6: https://lists.libcamera.org/pipermail/libcamera-devel/2021-July/022356.html\nv5: https://lists.libcamera.org/pipermail/libcamera-devel/2021-July/022098.html\nv4: https://lists.libcamera.org/pipermail/libcamera-devel/2021-May/020150.html\nv3: https://lists.libcamera.org/pipermail/libcamera-devel/2021-April/019613.html\nv2: https://lists.libcamera.org/pipermail/libcamera-devel/2021-April/019398.html\nv1: https://lists.libcamera.org/pipermail/libcamera-devel/2021-April/019139.html\n\nChanges in v9:\n- picked up and rebased by Paul\n\nChanges in v8:\n(thanks to Laurent and Kieran)\n- Changed internal buffer count constants for pipeline handlers to better values\n- Reordered patches to group non-lc-compliance changes together\n- Split buffer allocation changes into separate commits for each pipeline\n handler (patches 3-7)\n- Changed the MinimumRequests property meaning to require that frames aren't\n dropped\n- Set MinimumRequests on SimplePipeline depending on device and usage of\n converter\n- Undid definition of default MinimumRequests on CameraSensor constructor\n- Updated application-developer and pipeline-handler guides with new allocate()\n API and MinimumRequests property\n- Added handling for when allocate() returns less buffers than needed in cam and\n the capture unit test\n- Reworked buffer allocation handling in the raspberrypi pipeline handler\n- Moved V4L2 compatibility layer changes to separate commit\n- Added patch 10 to fix wrong file order in lc-compliance's meson.build\n- Added requests_ member to SimpleCapture to hold ownership of queued\n requests during capture\n- Moved CameraHolder to new test_base.{cpp,h} files\n- Fixed issue in UnbalancedStop test where requests cancelled due to stop() call\n were failing the test\n- Moved RequiredProperties test to property_test.cpp\n- Moved CameraTests to new test_base.{cpp,h} files\n\nChanges in v7:\n(thanks to Kieran and Jacopo)\n- Renamed property from MinNumRequests to MinimumRequests\n- Changed MinimumRequests property's description\n- Added patch 11 to test if MinimumRequests is valid\n\nChanges in v6:\n(thanks to Naushir)\n- Fixed style issues\n- Changed static_cast to unsigned int when comparing buffer count in\n lc-compliance\n- Added pipeline prefix to INTERNAL_BUFFER_COUNT and BUFFER_SLOT_COUNT constants\n- Removed comment from Raspberrypi MinNumRequests setting\n- Switched queueRequests()'s 'buffers' and 'requests' parameters order, since\n 'requests' is an output variable\n- Added comment to runCaptureSession()\n\nChanges in v5:\n- Rebased on master (now that lc-compliance was refactored to use Googletest)\n- Added patches 3, 5, 6 and 8\n- Fixed qcam to use at least two buffers\n- Made sure that qcam allocates at least 2 buffers\n\nChanges in v4:\n(thanks to Laurent and Niklas)\n- Renamed QueueDepth property to MinNumRequests and better documented it\n- Changed patch 6 to also remove bufferCount from android\n- Added patch 3 to factor common code in lc-compliance\n- Added patch 5 to remove pipeline dependency on bufferCount\n\nChanges in v3:\n- Added patches 1 and 4 to add the QueueDepth property and remove bufferCount\n- Made the count argument required in patch 2\n- Added previously missing changes to the gstreamer and V4L2 compatibility\n layers\n\nChanges in v2:\n- Renamed and reworded commits and series\n- Dropped patches 2 and 3, which were hacks to test, and added patch 1 to add\n count to FrameBufferAllocator\n- Thanks to Niklas:\n - Created new standalone test instead of looping over the other tests\n\nNícolas F. R. A. Prado (17):\n libcamera: property: Add MinimumRequests property\n libcamera: framebuffer_allocator: Make allocate() require count\n libcamera: pipeline: raspberrypi: Don't rely on bufferCount\n libcamera: pipeline: ipu3: Don't rely on bufferCount\n libcamera: pipeline: simple: Don't rely on bufferCount\n libcamera: pipeline: rkisp1: Don't rely on bufferCount\n libcamera: pipeline: vimc, uvcvideo: Don't rely on bufferCount\n v4l2: Allocate buffers based on requested count and MinimumRequests\n libcamera: stream: Remove bufferCount\n lc-compliance: Fix source file ordering in meson.build\n lc-compliance: Move buffer allocation to separate function\n lc-compliance: Factor common capture code into SimpleCapture\n lc-compliance: Move camera setup to CameraHolder class\n lc-compliance: Move role to string conversion to its own function\n lc-compliance: Add test to queue more requests than hardware depth\n lc-compliance: Check that requests complete successfully\n lc-compliance: Add test to ensure MinimumRequests is valid\n\nPaul Elder (1):\n pipeline: rkisp1: Reorder headers to appease the linter\n\n .../guides/application-developer.rst | 9 +-\n Documentation/guides/pipeline-handler.rst | 40 +++--\n include/libcamera/camera.h | 2 +-\n include/libcamera/framebuffer_allocator.h | 2 +-\n include/libcamera/internal/converter.h | 3 +-\n .../internal/converter/converter_v4l2_m2m.h | 9 +-\n include/libcamera/internal/pipeline_handler.h | 2 +-\n include/libcamera/stream.h | 2 -\n src/android/camera_stream.cpp | 2 +-\n src/apps/cam/camera_session.cpp | 13 +-\n src/apps/lc-compliance/capture_test.cpp | 92 ++++++++---\n src/apps/lc-compliance/meson.build | 4 +-\n src/apps/lc-compliance/property_test.cpp | 24 +++\n src/apps/lc-compliance/simple_capture.cpp | 143 ++++++++++++------\n src/apps/lc-compliance/simple_capture.h | 25 ++-\n src/apps/lc-compliance/test_base.cpp | 38 +++++\n src/apps/lc-compliance/test_base.h | 31 ++++\n src/apps/qcam/main_window.cpp | 10 +-\n src/gstreamer/gstlibcameraallocator.cpp | 5 +-\n src/libcamera/camera.cpp | 4 +-\n .../converter/converter_v4l2_m2m.cpp | 15 +-\n src/libcamera/framebuffer_allocator.cpp | 9 +-\n src/libcamera/pipeline/ipu3/cio2.cpp | 5 +-\n src/libcamera/pipeline/ipu3/cio2.h | 16 +-\n src/libcamera/pipeline/ipu3/imgu.cpp | 12 +-\n src/libcamera/pipeline/ipu3/imgu.h | 15 +-\n src/libcamera/pipeline/ipu3/ipu3.cpp | 34 ++---\n .../pipeline/raspberrypi/raspberrypi.cpp | 95 ++++--------\n .../pipeline/raspberrypi/rpi_stream.cpp | 39 ++---\n .../pipeline/raspberrypi/rpi_stream.h | 24 ++-\n src/libcamera/pipeline/rkisp1/rkisp1.cpp | 29 ++--\n src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 5 +-\n src/libcamera/pipeline/rkisp1/rkisp1_path.h | 4 +-\n src/libcamera/pipeline/simple/simple.cpp | 72 +++++++--\n src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 17 ++-\n src/libcamera/pipeline/vimc/vimc.cpp | 17 ++-\n src/libcamera/pipeline_handler.cpp | 1 +\n src/libcamera/property_ids.yaml | 21 +++\n src/libcamera/stream.cpp | 12 +-\n src/v4l2/v4l2_camera.cpp | 22 ++-\n src/v4l2/v4l2_camera.h | 5 +-\n src/v4l2/v4l2_camera_proxy.cpp | 10 +-\n test/camera/buffer_import.cpp | 11 +-\n test/camera/camera_reconfigure.cpp | 5 +-\n test/camera/capture.cpp | 11 +-\n test/camera/statemachine.cpp | 5 +-\n test/fence.cpp | 6 +-\n test/libtest/buffer_source.cpp | 4 +-\n test/libtest/buffer_source.h | 2 +-\n test/mapped-buffer.cpp | 5 +-\n test/v4l2_videodevice/buffer_cache.cpp | 3 +-\n 51 files changed, 667 insertions(+), 324 deletions(-)\n create mode 100644 src/apps/lc-compliance/property_test.cpp\n create mode 100644 src/apps/lc-compliance/test_base.cpp\n create mode 100644 src/apps/lc-compliance/test_base.h" }