Patch Detail
Show a patch.
GET /api/patches/17485/?format=api
{ "id": 17485, "url": "https://patchwork.libcamera.org/api/patches/17485/?format=api", "web_url": "https://patchwork.libcamera.org/patch/17485/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/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": "<20221002003612.13603-4-laurent.pinchart@ideasonboard.com>", "date": "2022-10-02T00:36:11", "name": "[libcamera-devel,3/4] pipeline: ipu3: Set bytesused before queuing parameters buffer", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "3027397abe4c907ab390baa87e5891ffe217db28", "submitter": { "id": 2, "url": "https://patchwork.libcamera.org/api/people/2/?format=api", "name": "Laurent Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/17485/mbox/", "series": [ { "id": 3522, "url": "https://patchwork.libcamera.org/api/series/3522/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3522", "date": "2022-10-02T00:36:08", "name": "libcamera: Fix kernel deprecation warning with output buffers", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3522/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/17485/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/17485/checks/", "tags": {}, "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 5A208BD16B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun, 2 Oct 2022 00:36:21 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0838562CC0;\n\tSun, 2 Oct 2022 02:36:21 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 27B8B62CB2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 2 Oct 2022 02:36:18 +0200 (CEST)", "from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi\n\t[62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9E4C2517\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 2 Oct 2022 02:36:17 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664670981;\n\tbh=lNmBj/hq6wT2f5i5/WjoHWz3vFp6YEGUENmrDVivnRQ=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=pMHMbqHsj5kzoGG1OUImruHlsk0rfkROKyuwwDHLyjeYxvx1mL2Ey60nAy6RkvjlA\n\t7cxceiKMohKCUv277pfxIPt4W114dz4kx573kmQanZE/CFNYkmSJ1jGQE1VIo99CXk\n\tRq/Au7aAwSF4WO0AMk5+cq2P8Lse8KMmUWNkNKL1xHZ+dNIDLhek/k4AwoDB3f2OAu\n\t8//YMm3Q2D7oKl93KeN6x+dGyjceTFkKxf2Ru52LaLu9QKK2mjeOO9dkLaGw4Dz2ad\n\taM0zqWHH5kEJrj0n3XHerLxFvrmABYvFJ0mpVNcSfS/A+2x7mu3nH6WKLMv7aw12Fw\n\tQFtLJsVoGbL1A==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1664670977;\n\tbh=lNmBj/hq6wT2f5i5/WjoHWz3vFp6YEGUENmrDVivnRQ=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=SNMTBD5jdTvXrDNcUtS9ljCyeZIOmGhS0P2QdiZDP1XK+jTr8YWuGm2Uof8MI44J5\n\t/LYRt2dzXNvj8g8dV+WDEk0hzRK8bIsQWK0RwUD7IM1sc/VF0rBz5121M0ZW8t4aMl\n\tr8v0l95awpYkICv5G+qc8800273OW6JwXT3DBLuA=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"SNMTBD5j\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Sun, 2 Oct 2022 03:36:11 +0300", "Message-Id": "<20221002003612.13603-4-laurent.pinchart@ideasonboard.com>", "X-Mailer": "git-send-email 2.35.1", "In-Reply-To": "<20221002003612.13603-1-laurent.pinchart@ideasonboard.com>", "References": "<20221002003612.13603-1-laurent.pinchart@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH 3/4] pipeline: ipu3: Set bytesused before\n\tqueuing parameters buffer", "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": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "The bytesused value for the parameters buffer is initialized to 0 and\nnever set. The V4L2 API specification indicates that, for an output\nvideo device, the driver will set the bytesused value to the size of the\nplane in that case. The videobuf2 framework does so, but considers this\nas deprecated and prints a warning:\n\n[ 54.375534] use of bytesused == 0 is deprecated and will be removed in the future,\n[ 54.388026] use the actual size instead.\n\nFix it by setting bytesused to the correct value before queuing the\nparameters buffer.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/pipeline/ipu3/ipu3.cpp | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex 93219a6c1134..3b892d9671c5 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -11,6 +11,8 @@\n #include <queue>\n #include <vector>\n \n+#include <linux/intel-ipu3.h>\n+\n #include <libcamera/base/log.h>\n #include <libcamera/base/utils.h>\n \n@@ -1298,6 +1300,8 @@ void IPU3CameraData::paramsBufferReady(unsigned int id)\n \t\t\timgu_->viewfinder_->queueBuffer(outbuffer);\n \t}\n \n+\tinfo->paramBuffer->_d()->metadata().planes()[0].bytesused =\n+\t\tsizeof(struct ipu3_uapi_params);\n \timgu_->param_->queueBuffer(info->paramBuffer);\n \timgu_->stat_->queueBuffer(info->statBuffer);\n \timgu_->input_->queueBuffer(info->rawBuffer);\n", "prefixes": [ "libcamera-devel", "3/4" ] }