{"id":21245,"url":"https://patchwork.libcamera.org/api/1.1/covers/21245/?format=json","web_url":"https://patchwork.libcamera.org/cover/21245/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240912051409.3495486-1-chenghaoyang@google.com>","date":"2024-09-12T05:09:38","name":"[0/1] Recycle V4L2BufferCache when VIDIOC_QBUF fails","submitter":{"id":117,"url":"https://patchwork.libcamera.org/api/1.1/people/117/?format=json","name":"Cheng-Hao Yang","email":"chenghaoyang@chromium.org"},"mbox":"https://patchwork.libcamera.org/cover/21245/mbox/","series":[{"id":4584,"url":"https://patchwork.libcamera.org/api/1.1/series/4584/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4584","date":"2024-09-12T05:09:38","name":"Recycle V4L2BufferCache when VIDIOC_QBUF fails","version":1,"mbox":"https://patchwork.libcamera.org/series/4584/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/21245/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 938A0BF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 12 Sep 2024 05:14:19 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7D6BC634FB;\n\tThu, 12 Sep 2024 07:14:18 +0200 (CEST)","from mail-pl1-x630.google.com (mail-pl1-x630.google.com\n\t[IPv6:2607:f8b0:4864:20::630])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 4ECD4618F0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 12 Sep 2024 07:14:16 +0200 (CEST)","by mail-pl1-x630.google.com with SMTP id\n\td9443c01a7336-205659dc63aso6620485ad.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 11 Sep 2024 22:14:16 -0700 (PDT)","from chenghaoyang-low.c.googlers.com.com\n\t(208.158.221.35.bc.googleusercontent.com. [35.221.158.208])\n\tby smtp.gmail.com with ESMTPSA id\n\t98e67ed59e1d1-2db0419aab4sm9599977a91.15.2024.09.11.22.14.12\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 11 Sep 2024 22:14:13 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"QX/j4PR5\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=chromium.org; s=google; t=1726118054; x=1726722854;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=pfbZqs8wcK9QeOTTn72BM9jI1oYWp2Qv0vImHR/rLJc=;\n\tb=QX/j4PR5fMtPD8yQ4cIJCdqP0JV/CqMKXiYoJS322ySYLKoxI6citqFSri1pLynjwC\n\tHQDvOv8E+6vGhMN7IEh1XTFHZl13d8YQR/EgYNZvtq6aBoCuxPWa9MSKomOiuImb/d/R\n\tTKrGlo4nqZ9CaLdGGXu9KqRqeN7DT6cGYwGvQ=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1726118054; x=1726722854;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=pfbZqs8wcK9QeOTTn72BM9jI1oYWp2Qv0vImHR/rLJc=;\n\tb=ANsGF5fmFp4R0kjrN/rnZFypS3gWA9aKrZpJkqUvX+Dqpg2F2QASuCCwaXTA7bunts\n\tdKjG4rpnOl/E1PyYI367bsBccSWI68yfz5lq7EvFR82qdPjmu2tA4K1e01OJ909a+LXB\n\tdulMCNLgxTsT35luVAxzapC+qxF5RzYiPdlE1cJpia2exGng158930JIxcLTboRFPp8R\n\tSk3nUhuqpwxDr5NsNFIMK2BtJ+YvswNeybNmPhLZi38K7jrnordjpCvQIUeJhf0PGdmK\n\tgOCz+fLiWPzHehhu1I4SJTzQDZVvaJk57h/WVV1Ugeq6tUjWId0OzB6lGg4ZlNXWoM9U\n\t4cWQ==","X-Gm-Message-State":"AOJu0YwTyiDfQxxzQUEoOrv8z+FYRSdEc7N7D/6rJUOGiJespaHCfDNK\n\tT9CFW8uwBFUAcRMx8AuUFYMWfYdv7ktAGIppyc2eSeoSEeAXYhhucyO7P57IhbjtidwkQ9UdqZM\n\t=","X-Google-Smtp-Source":"AGHT+IG+rpsjJ39eaGwWBct/UCjG+soCxAsJOffFoKZTL1xUf8PXUzmNC6smpjSyQQD2N08TTC75lQ==","X-Received":"by 2002:a17:902:b416:b0:207:3a45:2be1 with SMTP id\n\td9443c01a7336-2076e4854d2mr19280215ad.51.1726118053939; \n\tWed, 11 Sep 2024 22:14:13 -0700 (PDT)","From":"Harvey Yang <chenghaoyang@chromium.org>","X-Google-Original-From":"Harvey Yang <chenghaoyang@google.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Harvey Yang <chenghaoyang@google.com>","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","Content-Transfer-Encoding":"8bit","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi folks,\n\nThis fixes issues in V4L2VideoDevice::queueBuffer of unrecycled buffers\nwhen something goes wrong.\n\nIt passes gitlab pipeline:\nhttps://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1269604\n\n\nBR,\nHarvey\n\n\n\nHan-Lin Chen (1):\n  libcamera: Put buffer back to V4L2BufferCache when VIDIOC_QBUF fails\n\n src/libcamera/v4l2_videodevice.cpp | 8 ++++++++\n 1 file changed, 8 insertions(+)"}