From patchwork Fri Jul 17 00:15:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 8835 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 0273CC2E7A for ; Fri, 17 Jul 2020 00:15:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 78FE860925; Fri, 17 Jul 2020 02:15:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="fdjoyFyg"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3CC3A60498 for ; Fri, 17 Jul 2020 02:15:33 +0200 (CEST) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AAD892B7; Fri, 17 Jul 2020 02:15:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1594944932; bh=ZJnNQqKko5vW0SSFavlxCstbLWrnsUDch9xZrGKuqAw=; h=From:To:Cc:Subject:Date:From; b=fdjoyFygQF9LjD/fPkQbA3hyemBjQXhH20N+tpBvPns8xdC9txn6Gc+GVaBRwaN2P 4tQ125Ot157K79C/pseeNUS4mmAjjVqFAkwttOGEkiuYxTs5zaI7BzE/Rm9U0ObOeH p2yJZMJyUF9jVuJtt9NKHuWZvNKUhwqAxFYZcQ/E= From: Laurent Pinchart To: Naushir Patuck Date: Fri, 17 Jul 2020 03:15:16 +0300 Message-Id: <20200717001518.20285-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/2] Replace Raspberry Pi VCSM CMA with DMA heaps X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: libcamera-devel@lists.libcamera.org Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi Naush, I'm posting a v3 of your patches as I've rebased them on top of the IPAInterface::configure() series that was recently merged. This version contains the few changes I mentioned in the review of v2. Would you be able to give it a last round of review ? Feel free to push the kernel changes whenever is convenient, and notify me when it will be done. I'll push this series right after. Naushir Patuck (2): include: linux: Add dma-buf.h and dma-heap.h UAPI headers libcamera: pipeline: ipa: raspberrypi: Use dma heap allocs for LS tables include/linux/bcm2835-isp.h | 4 +- include/linux/dma-buf.h | 50 ++++++ include/linux/dma-heap.h | 53 +++++++ include/linux/vc_sm_cma_ioctl.h | 135 ---------------- src/ipa/raspberrypi/raspberrypi.cpp | 28 +++- .../pipeline/raspberrypi/dma_heaps.cpp | 84 ++++++++++ .../pipeline/raspberrypi/dma_heaps.h | 31 ++++ .../pipeline/raspberrypi/meson.build | 1 + .../pipeline/raspberrypi/raspberrypi.cpp | 49 ++---- src/libcamera/pipeline/raspberrypi/vcsm.h | 149 ------------------ 10 files changed, 257 insertions(+), 327 deletions(-) create mode 100644 include/linux/dma-buf.h create mode 100644 include/linux/dma-heap.h delete mode 100644 include/linux/vc_sm_cma_ioctl.h create mode 100644 src/libcamera/pipeline/raspberrypi/dma_heaps.cpp create mode 100644 src/libcamera/pipeline/raspberrypi/dma_heaps.h delete mode 100644 src/libcamera/pipeline/raspberrypi/vcsm.h