{"id":15483,"url":"https://patchwork.libcamera.org/api/covers/15483/?format=json","web_url":"https://patchwork.libcamera.org/cover/15483/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20220321102702.1753800-1-naush@raspberrypi.com>","date":"2022-03-21T10:26:57","name":"[libcamera-devel,v3,0/5] Raspberry Pi: Efficient start/stop/start sequences","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/15483/mbox/","series":[{"id":2977,"url":"https://patchwork.libcamera.org/api/series/2977/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2977","date":"2022-03-21T10:26:57","name":"Raspberry Pi: Efficient start/stop/start sequences","version":3,"mbox":"https://patchwork.libcamera.org/series/2977/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15483/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 AD386BD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 21 Mar 2022 10:27:07 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B83DC604C4;\n\tMon, 21 Mar 2022 11:27:06 +0100 (CET)","from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n\t[IPv6:2a00:1450:4864:20::32f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AF695604C4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 21 Mar 2022 11:27:05 +0100 (CET)","by mail-wm1-x32f.google.com with SMTP id\n\to7-20020a05600c4fc700b0038c87edc21eso2739178wmq.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 21 Mar 2022 03:27:05 -0700 (PDT)","from naush-laptop.pitowers.org\n\t([2a00:1098:3142:14:77bd:7c6c:a8b9:8855])\n\tby smtp.gmail.com with ESMTPSA id\n\tv10-20020a056000144a00b00203df06cf9bsm13530115wrx.106.2022.03.21.03.27.04\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 21 Mar 2022 03:27:04 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1647858426;\n\tbh=rLbaYj8GnxZBXheRZS0zJGUD5B9vbjUVd+wuovzMxCA=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=SRvJjC0jj8losWG4q0rgeDk/xfxgRfq0sTVbw7Qd402DLiGZLTj6kK0qWBeU+yoX7\n\t2fFE/ubk71O3cxnEr3Akn1gWbyFSp2vqyQ0CDSaAmZzti50F6XPxFJBz25pbJB9jKZ\n\t6ehEb94KZ1Bq84Y/iLFQzdSMBN2YYnfpats1jAWN3EdG3/4QzXfaZZIe4irFnFTu4v\n\tSe3P4yFiWJvEJftocWcdu8MCz8ggi3BipCfZlskSu3InyjdXOXMawM4BVm0YiqjLNz\n\ttIlIJLqhzJQa7QJupuwztiaqXhE9YScbBpZOx+V7s3fUKfGI1d6ZzhLqUSc7STo374\n\tNuieLGGxuMZFw==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=mcQTQAcd7NcnOFXPmjEdt880EuL0x49DRM1VxkeUukc=;\n\tb=LijH3ns1BEgdR5CwwWT5MF9/Hp94c0UPQpdq7aQIC+HLBoRtpsPF4y7cIUaP60oiV8\n\td60C0uOnZw5Xh3YzNuHhXthsG1u51Pfthe597kqcgVPJ4yz9i3w4Z3xfJDztYfba0+uO\n\tWoH3lAVdPMIrbU4Bjd1Yx9DMFy3TkUqtCc2k/daWnD9L8Kp6lOjOI8r/96zfUVZXPPJr\n\tzgtyG6TcHuffIxVxaAqxOb1eBaRjN5leC/DR9UkTxd/kfJ6mFTk3HvZVdZMJpSJh8nPI\n\tqeqPCAR+BtkzenzERnP72BtLTh9AVN3MWL9pMJREJlwHuiCN8iT/ah/A6wBYU43i5i4L\n\tfhsg=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"LijH3ns1\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=mcQTQAcd7NcnOFXPmjEdt880EuL0x49DRM1VxkeUukc=;\n\tb=pXnqw0aMTJceCF36oLCw7TYjtbMU7slrVZng/DCEsEf4V5Cv8mWp7zhpx6CsVI8fl/\n\tQeyPjaTCK//kF/UZky2f9dJdb/hCEdtzj0HTNR+YwMpq6LOwFMIWyprz9sqJCXcrDHz1\n\tUdQpucs+Y1cjytIrh1r5FH7U5MmPfMU8cyfYdvUJfgrRoBaZubP8Je1G8L4J3n0Il4ks\n\thlIIlu3cHg+D0qm0WUNUdVCgjpyHva2didFEd/educxhReNkyXl8tcpgxmH3CBOLGHBF\n\tpRBbwqV6Z1r6BhgCBb1TXoREoDBLdzw1v0mi+JrOMoi7vnlU3u/6sXrSfLsqdv+sHyAe\n\tzNpA==","X-Gm-Message-State":"AOAM531qX+B5NDEa/2TRlZO0B7eid4MFLwV/GiVxreWujmLNIIcmXw+u\n\t6U19EWnMF4nC4L8SfSiGUwSiUueWuE3obQ==","X-Google-Smtp-Source":"ABdhPJwBfCL951jTnOh4S/KVJbUaS7k+zY0Fy8U9dyOZIPUX2ZFVKP3JrNEc6wXAKqxs+P7wkrqqCw==","X-Received":"by 2002:a7b:c110:0:b0:38c:8dbd:c199 with SMTP id\n\tw16-20020a7bc110000000b0038c8dbdc199mr12585602wmi.173.1647858424986; \n\tMon, 21 Mar 2022 03:27:04 -0700 (PDT)","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 21 Mar 2022 10:26:57 +0000","Message-Id":"<20220321102702.1753800-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 0/5] Raspberry Pi: Efficient\n\tstart/stop/start sequences","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":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi,\n\nFor version 3 of this series, I've removed the patch to add a timer that waits\nfor 5s after stop() to de-allocate buffers.  David and me have had a chat about\nthis and we think for now it is best that we have fully deterministic behavior for\nbuffer allocations, and avoid CMA fragmentation on the Raspberry Pi platforms.\nApart from that, I have renamed the reallocate flag based on Kieran's suggestion.\n\nRegards,\nNaush\n\nNaushir Patuck (5):\n  pipeline: raspberrypi: Avoid over-allocation for ISP Output 1\n  pipeline: raspberrypi: Move freeBuffers() to the RPiCameraData class\n  pipeline: raspberrypi: Free buffers in the RPiCamera destructor and\n    re-configure\n  pipeline: raspberrypi: Repurpose RPi::Stream::reset()\n  libcamera: v4l2_videodevice: Empty the V4L2 buffer cache on\n    streamOff()\n\n include/libcamera/internal/v4l2_videodevice.h |  1 +\n .../pipeline/raspberrypi/raspberrypi.cpp      | 58 ++++++++++++-------\n .../pipeline/raspberrypi/rpi_stream.cpp       | 13 ++---\n .../pipeline/raspberrypi/rpi_stream.h         |  2 +-\n src/libcamera/v4l2_videodevice.cpp            | 16 +++++\n 5 files changed, 61 insertions(+), 29 deletions(-)"}