Patch Detail
Show a patch.
GET /api/1.1/patches/9405/?format=api
{ "id": 9405, "url": "https://patchwork.libcamera.org/api/1.1/patches/9405/?format=api", "web_url": "https://patchwork.libcamera.org/patch/9405/", "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": "<20200827082038.40758-3-jacopo@jmondi.org>", "date": "2020-08-27T08:20:37", "name": "[libcamera-devel,2/3] libcamera: raspberrypi: dma_heaps: Be verbose on errors", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "54bcf671afcd92f5341cb7b6483d9e2a3a84a2fe", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "delegate": { "id": 15, "url": "https://patchwork.libcamera.org/api/1.1/users/15/?format=api", "username": "jmondi", "first_name": "Jacopo", "last_name": "Mondi", "email": "jacopo@jmondi.org" }, "mbox": "https://patchwork.libcamera.org/patch/9405/mbox/", "series": [ { "id": 1245, "url": "https://patchwork.libcamera.org/api/1.1/series/1245/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1245", "date": "2020-08-27T08:20:35", "name": "libcamera: raspberrypi: Fail early when opening dma heaps", "version": 1, "mbox": "https://patchwork.libcamera.org/series/1245/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/9405/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/9405/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 7A575BDC71\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 27 Aug 2020 08:17:02 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 58BCE62901;\n\tThu, 27 Aug 2020 10:17:02 +0200 (CEST)", "from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net\n\t[217.70.183.193])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F18E060379\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 27 Aug 2020 10:16:59 +0200 (CEST)", "from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 41B6E24000A;\n\tThu, 27 Aug 2020 08:16:59 +0000 (UTC)" ], "X-Originating-IP": "93.34.118.233", "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org,\n\tDave Stevenson <dave.stevenson@raspberrypi.com>,\n\tNaushir Patuck <naush@raspberrypi.com>", "Date": "Thu, 27 Aug 2020 10:20:37 +0200", "Message-Id": "<20200827082038.40758-3-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.28.0", "In-Reply-To": "<20200827082038.40758-1-jacopo@jmondi.org>", "References": "<20200827082038.40758-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH 2/3] libcamera: raspberrypi: dma_heaps: Be\n\tverbose on errors", "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>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Be a tad more verbose on failures in opening the dma_heaps allocator\ndevices.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/pipeline/raspberrypi/dma_heaps.cpp | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/src/libcamera/pipeline/raspberrypi/dma_heaps.cpp b/src/libcamera/pipeline/raspberrypi/dma_heaps.cpp\nindex 739f05d3d4d8..500f1eac2eb8 100644\n--- a/src/libcamera/pipeline/raspberrypi/dma_heaps.cpp\n+++ b/src/libcamera/pipeline/raspberrypi/dma_heaps.cpp\n@@ -45,9 +45,14 @@ int DmaHeap::open()\n {\n \tdmaHeapHandle_ = ::open(DMA_HEAP_CMA_NAME, O_RDWR, 0);\n \tif (dmaHeapHandle_ == -1) {\n+\t\tLOG(RPI, Error) << \"Could not open dmaHeap device \"\n+\t\t\t\t<< DMA_HEAP_CMA_NAME << \": \"\n+\t\t\t\t<< strerror(errno);\n \t\tdmaHeapHandle_ = ::open(DMA_HEAP_CMA_ALT_NAME, O_RDWR, 0);\n \t\tif (dmaHeapHandle_ == -1) {\n-\t\t\tLOG(RPI, Error) << \"Could not open dmaHeap device\";\n+\t\t\tLOG(RPI, Error) << \"Could not open dmaHeap device \"\n+\t\t\t\t\t<< DMA_HEAP_CMA_ALT_NAME << \": \"\n+\t\t\t\t\t<< strerror(errno);\n \t\t\treturn dmaHeapHandle_;\n \t\t}\n \t}\n", "prefixes": [ "libcamera-devel", "2/3" ] }