{"id":18280,"url":"https://patchwork.libcamera.org/api/1.1/covers/18280/?format=json","web_url":"https://patchwork.libcamera.org/cover/18280/","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":"<20230214093736.4067033-1-chenghaoyang@google.com>","date":"2023-02-14T09:37:33","name":"[libcamera-devel,v2,0/3] Add HeapAllocator","submitter":{"id":117,"url":"https://patchwork.libcamera.org/api/1.1/people/117/?format=json","name":"Cheng-Hao Yang","email":"chenghaoyang@chromium.org"},"mbox":"https://patchwork.libcamera.org/cover/18280/mbox/","series":[{"id":3754,"url":"https://patchwork.libcamera.org/api/1.1/series/3754/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3754","date":"2023-02-14T09:37:33","name":"Add HeapAllocator","version":2,"mbox":"https://patchwork.libcamera.org/series/3754/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/18280/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 319A5BDB1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 14 Feb 2023 09:37:45 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 6597B625F5;\n\tTue, 14 Feb 2023 10:37:44 +0100 (CET)","from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com\n\t[IPv6:2607:f8b0:4864:20::42d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id E73BA61EEC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Feb 2023 10:37:42 +0100 (CET)","by mail-pf1-x42d.google.com with SMTP id s20so9762701pfe.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Feb 2023 01:37:42 -0800 (PST)","from chenghaoyang-low.c.googlers.com.com\n\t(46.165.189.35.bc.googleusercontent.com. [35.189.165.46])\n\tby smtp.gmail.com with ESMTPSA id\n\tz9-20020aa791c9000000b0059416691b64sm9696172pfa.19.2023.02.14.01.37.40\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 14 Feb 2023 01:37:40 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1676367464;\n\tbh=QK6fuipJ9lB9I9xylKKEwbcjqNFLSwLeweQJ1f9aXhs=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=2r0y2lvRrFr9+FdsBHYEZ8DTf2pxoC2y2vx0qJc+7AXx+Ija40f5j4vbvTlGxCxxx\n\ty+maWm6O+DNcbmnMeeveLX3bYHdmnQr5o0sd6Q5wE+bpWKj5T6y/rl9fBsR9Hmq1Wa\n\tL4GRNgXNqCEX8TRAunD5AGTjv3vRbzm3AICx52ArvUr7MnxJSCKeDlyCkDOIog+Exk\n\traixmMsy5vVKHxAJgH8ZWJy0SRRmNd0HXCrJ1Q2/gHlbsr5AlQIcPuKxD9r4zsdm59\n\tTSUcRvfezuUF6tuFQ1hn9CBCsktGLqvuwooKTHTamzHB+XzDK9O4FH0+KRGcKNLB+F\n\tczbe1MSt8gT/w==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=YO1agUYBNTXDg2SZ9UlMrpgTsftMbnP2RhoQtd2olMs=;\n\tb=TKMW0v5Bnp5VFUhL8C/Ob6vfYeYhNmHdBtraD0mdFXhme7X6Pumg6OkCk/pBWdRRa7\n\tFw7w2fLnCkfNo3pV6sNgEsLm/ooEQzJhkuNsCRMf30G2wcomtxyBRsBY+OLSU9Ktk9Kj\n\tNHoS1mYJ2lwyrIdQidfUYiOd9hHHuUnFAzRBk="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=chromium.org\n\theader.i=@chromium.org header.b=\"TKMW0v5B\"; \n\tdkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=YO1agUYBNTXDg2SZ9UlMrpgTsftMbnP2RhoQtd2olMs=;\n\tb=6hPsiK/vT6DIh2aQjeWAeGVMHX9i9JphEFIRq/WhXBD7/BatJfsIE2b8TPMNbg/HqO\n\t7CDFN25YTs6IZ1pX1ZYfMGju4fE99urCEk0DS6uQu5hgzby3mBvj78KtZbxiMr56R0mJ\n\tJ7ALWYsLGiytGMtLXYuelOJmXux6YGHISlv1oF9lwQB2EBKFz7CBM03UmsLVfsZGUOxL\n\tXgH7FP5P7fn6hHMOqmjIG/Q4iHrNxevt4Bhi9GfHBfgFfw6l5VT+vHRU5v7WTTmWlfa0\n\toMxIpkaRsxlaHnMy9AHlJY7pzRMWCZ3xLUZuEf+GdcGUkjl1o0eDQZMH5IAH1fQRvKFn\n\tQb5w==","X-Gm-Message-State":"AO0yUKUF/GQUrIfFqnuNePyTYAvk5YW6HOzaNKmlQytx0/rOWW68BiLQ\n\t+dLkM8VKkQ9Vmlc4NtftskCQNC8kGmSPKE0J","X-Google-Smtp-Source":"AK7set+w3vTr0vP+mSUSZmvJWukJbUyO0RuWYKNWi9qaRaTA84zj4R0b95i2MpcOZY7liTrATseePg==","X-Received":"by 2002:a62:8412:0:b0:5a8:2b95:badd with SMTP id\n\tk18-20020a628412000000b005a82b95baddmr1519124pfd.33.1676367461033; \n\tTue, 14 Feb 2023 01:37:41 -0800 (PST)","X-Google-Original-From":"Harvey Yang <chenghaoyang@google.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 14 Feb 2023 09:37:33 +0000","Message-Id":"<20230214093736.4067033-1-chenghaoyang@google.com>","X-Mailer":"git-send-email 2.39.1.581.gbfd45094c4-goog","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 0/3] Add HeapAllocator","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":"Harvey Yang via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Harvey Yang <chenghaoyang@chromium.org>","Cc":"Harvey Yang <chenghaoyang@google.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi all,\n\nThe series of patches added HeapAllocator, which uses DmaHeap (moved\nfrom Raspberry Pi pipeline handler) and UdmaHeap to allocate heap\nbuffers.\n\nUpdated Dma's & Udma's copyright info according to Dave's & Kieran's\ncomments. Let me know if I mis-overwrite the copyright info again :(\n\nI've only build-test it, and I'll need to test it on my virtual pipeline\nhandler patches, but please take a look and let me know if it makes\nsense. Thanks!\n\nBR,\nHarvey\n\nHarvey Yang (3):\n  libcamera: Move DmaHeap to HeapAllocator as a base class\n  libcamera: Add UdmaHeap if DmaHeap is not valid\n  libcamera: Add exportFrameBuffers in HeapAllocator\n\n include/libcamera/dma_heap.h                  |  20 +++\n include/libcamera/heap.h                      |  27 ++++\n include/libcamera/heap_allocator.h            |  40 ++++++\n include/libcamera/meson.build                 |   4 +\n include/libcamera/udma_heap.h                 |  20 +++\n .../dma_heaps.cpp => dma_heap.cpp}            |  52 +++++---\n src/libcamera/heap_allocator.cpp              |  90 ++++++++++++++\n src/libcamera/meson.build                     |   3 +\n .../pipeline/raspberrypi/dma_heaps.h          |  32 -----\n .../pipeline/raspberrypi/meson.build          |   1 -\n .../pipeline/raspberrypi/raspberrypi.cpp      |  10 +-\n src/libcamera/udma_heap.cpp                   | 117 ++++++++++++++++++\n 12 files changed, 359 insertions(+), 57 deletions(-)\n create mode 100644 include/libcamera/dma_heap.h\n create mode 100644 include/libcamera/heap.h\n create mode 100644 include/libcamera/heap_allocator.h\n create mode 100644 include/libcamera/udma_heap.h\n rename src/libcamera/{pipeline/raspberrypi/dma_heaps.cpp => dma_heap.cpp} (58%)\n create mode 100644 src/libcamera/heap_allocator.cpp\n delete mode 100644 src/libcamera/pipeline/raspberrypi/dma_heaps.h\n create mode 100644 src/libcamera/udma_heap.cpp"}