From patchwork Mon Mar 29 02:26:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 11754 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 67BFEC32EA for ; Mon, 29 Mar 2021 02:26:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 92A676877D; Mon, 29 Mar 2021 04:26:15 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Woqb7EJN"; dkim-atps=neutral Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6CCEB602D2 for ; Mon, 29 Mar 2021 04:26:13 +0200 (CEST) Received: by mail-pf1-x430.google.com with SMTP id j25so8927337pfe.2 for ; Sun, 28 Mar 2021 19:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JSUyiiqR6F6TxKZwwwD8BxMUs7r861REaSUd4E0PGhU=; b=Woqb7EJNodk+FB/scckTpXUuEnnYhcQITPXArMdO0XH8by53IXQcFpR1S6uwGPfn8E j/UvUwArHIISBXzAg8KALzJO0w7V/r/g4kMyuHxowEW1TSBWa7jnbmizdkMv4LBXCiea CTca2+uTFcTatxBYN1aVa4Z1jNLyxG5VeJ56w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JSUyiiqR6F6TxKZwwwD8BxMUs7r861REaSUd4E0PGhU=; b=UoeclumHrKwZorVMphGxHfmUBceoqCMywHazb7hzoHAXbqf+KTdPk80+qKwmazNOd2 k+ypKvcKklFPDXmx+RCnOohnM9TBOzjBk/ZCITfDDYbbZPMb75LX1szCIhhLlwfSyz0x QHdeXu8lb6RAOlDIdmzmYkvZRdbAD7auwFZH9KHe9IMVVRK4fKqOWo1ZQ/0Tubt8YvOQ ICn/WDC6isdt/XiYEvtQlLb2YX1e3Zvd5yb3rE69Hr/Y8R1wvieaWdl4qvDFjNtZxyUU 31ooLUToz21vP4HnnoDWqK9RzQTNY9r7QR0mTTRO3uqTyqjyEbQg+pxQ8xB9/VuzGs4g aBcA== X-Gm-Message-State: AOAM530PXDQczjcUOfi9q2TMyQucXgkyDCzYMO1cWQKBGxwKKdHI0y5j 6AOFdIPWEm/ErxseZqiOIVPWJOy2SMBymg== X-Google-Smtp-Source: ABdhPJyCDM/SGGADaZuhGOQzEAbeh8rPpS8cXcCIYLmWM52JluPAa7OJwQrHNtGGo7AmHpy1V/6ScQ== X-Received: by 2002:a63:1e02:: with SMTP id e2mr22472929pge.391.1616984771388; Sun, 28 Mar 2021 19:26:11 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:2:1db7:ae60:9288:b906]) by smtp.gmail.com with ESMTPSA id a26sm10537879pff.149.2021.03.28.19.26.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Mar 2021 19:26:10 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Mon, 29 Mar 2021 11:26:02 +0900 Message-Id: <20210329022604.110201-1-hiroh@chromium.org> X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 0/2] Enable handling a number of capture requests X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Originally PipelineHandler discards capture requests if queueing fails with any reason. If a client queues a number of capture requests for short time, queueing tends to fail due to a buffer shortage. In the case PipelineHandler should rather retry to queue capture requests later. This patch series enables PipelineHandler to handle a number of capture requests by storing them on a buffer shortage failure and retrying to queue later. Hirokazu Honda (2): libcamera: CameraData: Change queuedRequests_ type to std::dequeue libcamera: PipelineHandler: Retry queuing a capture request include/libcamera/internal/pipeline_handler.h | 6 +- src/libcamera/pipeline_handler.cpp | 61 ++++++++++++++++--- 2 files changed, 58 insertions(+), 9 deletions(-) --- 2.31.0.291.g576ba9dcdaf-goog