[{"id":2398,"web_url":"https://patchwork.libcamera.org/comment/2398/","msgid":"<27b7e4e7-9139-5f29-4fda-22196a5f6785@ideasonboard.com>","date":"2019-08-13T14:44:05","subject":"Re: [libcamera-devel] [PATCH v3 0/6] V4L2 M2M Support (+RPi PoC)","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Thanks,\n\nThis series is now pushed to master excluding the 6/6 proof of concept.\n\n--\nKieran\n\n\nOn 13/08/2019 10:40, Kieran Bingham wrote:\n> The RaspberryPi pipeline handler will require a Memory2Memory device to support\n> it's ISP processing. An initial RFC of this has been posted some time ago.\n> \n> This series improves upon the V4L2M2MDevice RFC that was posted and promotes it\n> to it's own class.\n> \n> Support for opening a device for two streams is added by overloading the\n> V4L2VideoDevice::open() call to allow a second implemention to provide the\n> the fd and stream type, rather than opening the node and guessing the type.\n> \n> An initial test using the V4L2M2MDevice on the VIM2M virtual M2M driver is also\n> provided.\n> \n> Along side all of this there are a couple of small independent fixup patches\n> (Fix the ordering of a debug statement, and remove an unused function) and my\n> current state of the RaspberryPi Pipeline handler.\n> \n> \n>  * Please Note *\n> \n> The PipelineHandlerRPi requires out of tree kernel drivers to operate. These\n> are available publically on the RaspberryPi foundation's linux tree, however I\n> have added further patches on top of those.\n> \n> A branch containing the drivers for the RPi with my patches on top is at:\n> \n>    https://github.com/kbingham/linux-rpi.git rpi-4.19.y-libcamera\n> \n> \n> v3:\n>  - Moved location of setFd within V4L2Device\n>  - Fixed documentation \n>  - Close newFd in V4L2VideoDevice::open(handle, type) error path\n> \n> v2:\n>  - M2M device now has its own open()/close() calls\n>  - Return codes are not lost in PipelineHandlerRPi::freeBuffers()\n>  - unicam node added to device match.\n>  - Test code executes in the run() rather than the init()\n> \n> *** BLURB HERE ***\n> \n> Kieran Bingham (6):\n>   libcamera: v4l2_device: Add setFd()\n>   libcamera: v4l2_videodevice: Fix ordering of debug statement\n>   libcamera: v4l2_videodevice: Support M2M devices\n>   test: v4l2_videodevice: Add M2M device test\n>   test: v4l2_device: Remove unused function\n>   [PoC/RFC] libcamera: pipeline: Add RaspberryPi handler\n> \n>  src/libcamera/include/v4l2_device.h           |   1 +\n>  src/libcamera/include/v4l2_videodevice.h      |  25 +\n>  src/libcamera/pipeline/meson.build            |   1 +\n>  src/libcamera/pipeline/raspberrypi.cpp        | 453 ++++++++++++++++++\n>  src/libcamera/v4l2_device.cpp                 |  26 +\n>  src/libcamera/v4l2_videodevice.cpp            | 202 +++++++-\n>  test/v4l2_videodevice/meson.build             |   1 +\n>  test/v4l2_videodevice/v4l2_m2mdevice.cpp      | 212 ++++++++\n>  .../v4l2_videodevice_test.cpp                 |  11 -\n>  9 files changed, 916 insertions(+), 16 deletions(-)\n>  create mode 100644 src/libcamera/pipeline/raspberrypi.cpp\n>  create mode 100644 test/v4l2_videodevice/v4l2_m2mdevice.cpp\n>","headers":{"Return-Path":"<kieran.bingham@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 771CE61620\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 13 Aug 2019 16:44:09 +0200 (CEST)","from [192.168.0.20]\n\t(cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id C6CD22B2;\n\tTue, 13 Aug 2019 16:44:08 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1565707448;\n\tbh=px1XxpHJX6Lqsoz8JJqUdSca5G1Ggl/aMHgaa8khZEQ=;\n\th=Reply-To:Subject:To:References:From:Date:In-Reply-To:From;\n\tb=HpYLlYVU6nrnZ0XPUkTI3whNS+1+3KTi5ZLJA4LAt4A2fA9mNNG9WuuG8CpvvoVa4\n\tFBufp4eUfUd68VlY6nOvnK+vhPi6F9oI/CpKZ2oGR/Ak3eKfwh5sxL7XfOQFBxSF9X\n\ti6r3RyHO2XwqSuk4UH3mm0P/8OrAxeJduEqzMPHk=","Reply-To":"kieran.bingham@ideasonboard.com","To":"Kieran Bingham <kieran.bingham@ideasonboard.com>,\n\tLibCamera Devel <libcamera-devel@lists.libcamera.org>","References":"<20190813094020.10277-1-kieran.bingham@ideasonboard.com>","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Openpgp":"preference=signencrypt","Autocrypt":"addr=kieran.bingham@ideasonboard.com; keydata=\n\tmQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat\n\tV/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC\n\trRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C\n\tpotzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ\n\tcSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf\n\tKr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8\n\tRXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko\n\tlPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5Eqo4t6qEVbuettxx55gq\n\t8K8FieAjgjMSxngo/HST8TpFeqI5nVeq0/lqtBRQKumuIqDg+Bkr4L1V/PSB6XgQcOdhtd36\n\tOe9X9dXB8YSNt7VjOcO7BTmFn/Z8r92mSAfHXpb07YJWJosQOQARAQABtDBLaWVyYW4gQmlu\n\tZ2hhbSA8a2llcmFuL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EwyHUQtF5oh15O018z3ZLztFJKR3RD42VKVsrnNDKnoY0f4U0z7eJv2NeF8xHMuiU\n\tRCIzqxX1GVYaNkKTnb/Qja8hnYnkUzY1Lc+OtwiGmXTwYsPZjjAaDX35J/RSKAoy5wGo/YFA\n\tJxB1gWThL4kOTbsqqXj9GLcyOImkW0lJGGR3o/fV91Zh63S5TKnf2YGGGzxki+ADdxVQAm+Q\n\tsbsRB8KNNvVXBOVNwko86rQqF9drZuw=","Organization":"Ideas on Board","Message-ID":"<27b7e4e7-9139-5f29-4fda-22196a5f6785@ideasonboard.com>","Date":"Tue, 13 Aug 2019 15:44:05 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101\n\tThunderbird/60.8.0","MIME-Version":"1.0","In-Reply-To":"<20190813094020.10277-1-kieran.bingham@ideasonboard.com>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-GB","Content-Transfer-Encoding":"7bit","Subject":"Re: [libcamera-devel] [PATCH v3 0/6] V4L2 M2M Support (+RPi PoC)","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","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>","X-List-Received-Date":"Tue, 13 Aug 2019 14:44:09 -0000"}}]