From patchwork Thu Sep 12 05:09:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 21245 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 938A0BF415 for ; Thu, 12 Sep 2024 05:14:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7D6BC634FB; Thu, 12 Sep 2024 07:14:18 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="QX/j4PR5"; dkim-atps=neutral Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4ECD4618F0 for ; Thu, 12 Sep 2024 07:14:16 +0200 (CEST) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-205659dc63aso6620485ad.1 for ; Wed, 11 Sep 2024 22:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726118054; x=1726722854; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pfbZqs8wcK9QeOTTn72BM9jI1oYWp2Qv0vImHR/rLJc=; b=QX/j4PR5fMtPD8yQ4cIJCdqP0JV/CqMKXiYoJS322ySYLKoxI6citqFSri1pLynjwC HQDvOv8E+6vGhMN7IEh1XTFHZl13d8YQR/EgYNZvtq6aBoCuxPWa9MSKomOiuImb/d/R TKrGlo4nqZ9CaLdGGXu9KqRqeN7DT6cGYwGvQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726118054; x=1726722854; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pfbZqs8wcK9QeOTTn72BM9jI1oYWp2Qv0vImHR/rLJc=; b=ANsGF5fmFp4R0kjrN/rnZFypS3gWA9aKrZpJkqUvX+Dqpg2F2QASuCCwaXTA7bunts dKjG4rpnOl/E1PyYI367bsBccSWI68yfz5lq7EvFR82qdPjmu2tA4K1e01OJ909a+LXB dulMCNLgxTsT35luVAxzapC+qxF5RzYiPdlE1cJpia2exGng158930JIxcLTboRFPp8R Sk3nUhuqpwxDr5NsNFIMK2BtJ+YvswNeybNmPhLZi38K7jrnordjpCvQIUeJhf0PGdmK gOCz+fLiWPzHehhu1I4SJTzQDZVvaJk57h/WVV1Ugeq6tUjWId0OzB6lGg4ZlNXWoM9U 4cWQ== X-Gm-Message-State: AOJu0YwTyiDfQxxzQUEoOrv8z+FYRSdEc7N7D/6rJUOGiJespaHCfDNK T9CFW8uwBFUAcRMx8AuUFYMWfYdv7ktAGIppyc2eSeoSEeAXYhhucyO7P57IhbjtidwkQ9UdqZM = X-Google-Smtp-Source: AGHT+IG+rpsjJ39eaGwWBct/UCjG+soCxAsJOffFoKZTL1xUf8PXUzmNC6smpjSyQQD2N08TTC75lQ== X-Received: by 2002:a17:902:b416:b0:207:3a45:2be1 with SMTP id d9443c01a7336-2076e4854d2mr19280215ad.51.1726118053939; Wed, 11 Sep 2024 22:14:13 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (208.158.221.35.bc.googleusercontent.com. [35.221.158.208]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2db0419aab4sm9599977a91.15.2024.09.11.22.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 22:14:13 -0700 (PDT) From: Harvey Yang X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH 0/1] Recycle V4L2BufferCache when VIDIOC_QBUF fails Date: Thu, 12 Sep 2024 05:09:38 +0000 Message-ID: <20240912051409.3495486-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog MIME-Version: 1.0 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" Hi folks, This fixes issues in V4L2VideoDevice::queueBuffer of unrecycled buffers when something goes wrong. It passes gitlab pipeline: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1269604 BR, Harvey Han-Lin Chen (1): libcamera: Put buffer back to V4L2BufferCache when VIDIOC_QBUF fails src/libcamera/v4l2_videodevice.cpp | 8 ++++++++ 1 file changed, 8 insertions(+)