From patchwork Tue Jul 14 12:08:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8796 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 B8482BD790 for ; Tue, 14 Jul 2020 12:08:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2A4F7607BD; Tue, 14 Jul 2020 14:08:53 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="M3hinPRW"; dkim-atps=neutral Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BEA32605B0 for ; Tue, 14 Jul 2020 14:08:51 +0200 (CEST) Received: by mail-wr1-x42f.google.com with SMTP id o11so21194755wrv.9 for ; Tue, 14 Jul 2020 05:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AljVA1c+lurfYMA15LNI7FAMudB1sP2l7PR7q4tTGbA=; b=M3hinPRWXQBUIipWjlMHCkk0qT+x8R0LrDAAx7Z/8KZODoPL1atvncITrKJ/oeOPPU vq6d0DvD3MmSRx8lXoWY9dVYz56PsGea4AhK6cOplkTf5qoJft/RBYJ40851zWg+TUNF IoI3yAP3iGe68ZJxXRn6HxnSSpid0iHLIZ7DWxebKM2XirSzS49L4Indw+rZqrVON7fq +fDlKOdKqqlYqpvvcswckKBG3g9xtMya4MP9Tpj2EY5TkThJg1lxeS6D+qXTpQzyE9Wx 51gkssd+lDj8UMJlGlUKdnF80dJetNUCvO2aIgmdkdTDI1CJxEoIZzTHozWCpkdxoAl9 5zAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AljVA1c+lurfYMA15LNI7FAMudB1sP2l7PR7q4tTGbA=; b=mIG/gBQ1D41PP/oPKj/AFba/XjTPsvzKZpTOuuI/f+BwJSz0f8AP+J+YvGxD9/S/jE mb6I43qL46sIJxFL7uUmE5PQSDboFGIYmdzM5zuwcrx84PgHAun0sME//srAYgj5XFOW O5AFQ1Na2jj4BUKSQtcpD63O4H0tY8dLxTwJ4EzWiEg5A21pObvWfpz41UWRoygqFx9w 3vhAVX1zBGSd9jpG0iOnvaLROrooaDlnOaMQ01a+RJJL+DiSVoFaawOWOlPFVZ46xbyG rd2rE68izQoLMmIcyhlshcE7KjwwedJOmmdvS0Uo4nseCPUED9atV+o4oKSl4u2nEWFz gHcQ== X-Gm-Message-State: AOAM530xNtdi7IATtWDNe/yfd7yWej24HCQO46DaG69GzKZAIMJ0G4RT rXS5/muEeOkTeyFaWN9WOiU864K6hvg= X-Google-Smtp-Source: ABdhPJwwthf5iOcKcGT3QJRYXcCSVFOLUoPPLBNEKzGzkdX2LvgDSRsxRS0uGXG980cWkmqfo/STvA== X-Received: by 2002:a5d:68cc:: with SMTP id p12mr4885756wrw.111.1594728531116; Tue, 14 Jul 2020 05:08:51 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id a15sm33123217wrh.54.2020.07.14.05.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 05:08:50 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Tue, 14 Jul 2020 13:08:42 +0100 Message-Id: <20200714120844.520732-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] Replace vcsm with dmabuf alloc 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, This patch replaces the existing vcsm with dmabuf allocations for the lens shading tables. This change will break existing functionality without the equivalent linux kernel change (https://github.com/raspberrypi/linux/pull/3715) being present and built.. Laurent, since this is an ABI breakage, once the review is complete, could you let me know before you are about to merge this change so we can sync push the kernel change at the same time and inform our users please? Thanks, Naush 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 | 27 +++- .../pipeline/raspberrypi/dma-heaps.h | 102 ++++++++++++ .../pipeline/raspberrypi/raspberrypi.cpp | 44 ++---- src/libcamera/pipeline/raspberrypi/vcsm.h | 149 ------------------ 8 files changed, 241 insertions(+), 323 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.h delete mode 100644 src/libcamera/pipeline/raspberrypi/vcsm.h