{"id":20729,"url":"https://patchwork.libcamera.org/api/1.1/covers/20729/?format=json","web_url":"https://patchwork.libcamera.org/cover/20729/","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":"<20240731135936.2105-1-laurent.pinchart@ideasonboard.com>","date":"2024-07-31T13:59:32","name":"[v2,0/4] libcamera: Address soft ISP file seal TODO item","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/20729/mbox/","series":[{"id":4470,"url":"https://patchwork.libcamera.org/api/1.1/series/4470/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4470","date":"2024-07-31T13:59:32","name":"libcamera: Address soft ISP file seal TODO item","version":2,"mbox":"https://patchwork.libcamera.org/series/4470/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/20729/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 6B3F0BDC71\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 31 Jul 2024 14:00:00 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3DD8D63374;\n\tWed, 31 Jul 2024 15:59:59 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 19BEE6198E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 31 Jul 2024 15:59:58 +0200 (CEST)","from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id F30A3F85\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 31 Jul 2024 15:59:09 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"I7F7U9v5\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1722434350;\n\tbh=5s9hcaU6+q53MjyHNWoMUI+KBVm05RcixgO6viz0J/E=;\n\th=From:To:Subject:Date:From;\n\tb=I7F7U9v5yXnwUr930HKTIuADMkVBuIExWQB/DzcGWtIfTbs5IujfWmPev89exiXV4\n\t9GMHWCUWfjM9Yil98Oc9tjGWQwkgc+kzakOaDGkTlv3/pQw5TtMG41sz1qX0LBab7n\n\t8L2bKawjk7Kpsv7t0hBWX2FsyeojMqfK6+4OpGPs=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH v2 0/4] libcamera: Address soft ISP file seal TODO item","Date":"Wed, 31 Jul 2024 16:59:32 +0300","Message-ID":"<20240731135936.2105-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.44.2","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":"Hello,\n\nThis small series addresses one TODO item of the soft ISP, namely shrink\nand grow sealing of the memfd underlying SharedMem objects.\n\nPatch 1/4 starts by sharing the memfd handling code between the\nDmaBufAllocator and SharedMem classes by moving it to a new MemFd helper\nclass. Patch 2/4 then applies a suggestion from Nicolas to improve code\nreadability. Patch 3/4 addresses the TODO item, and patch 4/4 finally\ndrops it from the TODO file.\n\nCould someone test this with the soft ISP to make sure I haven't broken\nanything ?\n\nLaurent Pinchart (4):\n  libcamera: base: Add MemFd helper class\n  libcamera: base: memfd: Handle uClibc compatibility with function\n    wrapper\n  libcamera: shared_mem_object: Prevent memfd from shrinking or growing\n  libcamera: software_isp: Remove file seal TODO item\n\n include/libcamera/base/memfd.h      |  34 ++++++++\n include/libcamera/base/meson.build  |   1 +\n src/libcamera/base/memfd.cpp        | 123 ++++++++++++++++++++++++++++\n src/libcamera/base/meson.build      |   1 +\n src/libcamera/dma_buf_allocator.cpp |  46 +----------\n src/libcamera/shared_mem_object.cpp |  22 ++---\n src/libcamera/software_isp/TODO     |  19 -----\n 7 files changed, 169 insertions(+), 77 deletions(-)\n create mode 100644 include/libcamera/base/memfd.h\n create mode 100644 src/libcamera/base/memfd.cpp\n\n\nbase-commit: 98b01768397f982bd177b55e9bc67002b645b4d0"}