{"id":8796,"url":"https://patchwork.libcamera.org/api/1.1/covers/8796/?format=json","web_url":"https://patchwork.libcamera.org/cover/8796/","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":"<20200714120844.520732-1-naush@raspberrypi.com>","date":"2020-07-14T12:08:42","name":"[libcamera-devel,0/2] Replace vcsm with dmabuf alloc","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/8796/mbox/","series":[{"id":1105,"url":"https://patchwork.libcamera.org/api/1.1/series/1105/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1105","date":"2020-07-14T12:08:42","name":"Replace vcsm with dmabuf alloc","version":1,"mbox":"https://patchwork.libcamera.org/series/1105/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/8796/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 B8482BD790\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 14 Jul 2020 12:08:53 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2A4F7607BD;\n\tTue, 14 Jul 2020 14:08:53 +0200 (CEST)","from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com\n\t[IPv6:2a00:1450:4864:20::42f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BEA32605B0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Jul 2020 14:08:51 +0200 (CEST)","by mail-wr1-x42f.google.com with SMTP id o11so21194755wrv.9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Jul 2020 05:08:51 -0700 (PDT)","from naushir-VirtualBox.patuck.local ([88.97.76.4])\n\tby smtp.gmail.com with ESMTPSA id\n\ta15sm33123217wrh.54.2020.07.14.05.08.50\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 14 Jul 2020 05:08:50 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"M3hinPRW\"; dkim-atps=neutral","DKIM-Signature":"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=AljVA1c+lurfYMA15LNI7FAMudB1sP2l7PR7q4tTGbA=;\n\tb=M3hinPRWXQBUIipWjlMHCkk0qT+x8R0LrDAAx7Z/8KZODoPL1atvncITrKJ/oeOPPU\n\tvq6d0DvD3MmSRx8lXoWY9dVYz56PsGea4AhK6cOplkTf5qoJft/RBYJ40851zWg+TUNF\n\tIoI3yAP3iGe68ZJxXRn6HxnSSpid0iHLIZ7DWxebKM2XirSzS49L4Indw+rZqrVON7fq\n\t+fDlKOdKqqlYqpvvcswckKBG3g9xtMya4MP9Tpj2EY5TkThJg1lxeS6D+qXTpQzyE9Wx\n\t51gkssd+lDj8UMJlGlUKdnF80dJetNUCvO2aIgmdkdTDI1CJxEoIZzTHozWCpkdxoAl9\n\t5zAw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=AljVA1c+lurfYMA15LNI7FAMudB1sP2l7PR7q4tTGbA=;\n\tb=mIG/gBQ1D41PP/oPKj/AFba/XjTPsvzKZpTOuuI/f+BwJSz0f8AP+J+YvGxD9/S/jE\n\tmb6I43qL46sIJxFL7uUmE5PQSDboFGIYmdzM5zuwcrx84PgHAun0sME//srAYgj5XFOW\n\tO5AFQ1Na2jj4BUKSQtcpD63O4H0tY8dLxTwJ4EzWiEg5A21pObvWfpz41UWRoygqFx9w\n\t3vhAVX1zBGSd9jpG0iOnvaLROrooaDlnOaMQ01a+RJJL+DiSVoFaawOWOlPFVZ46xbyG\n\trd2rE68izQoLMmIcyhlshcE7KjwwedJOmmdvS0Uo4nseCPUED9atV+o4oKSl4u2nEWFz\n\tgHcQ==","X-Gm-Message-State":"AOAM530xNtdi7IATtWDNe/yfd7yWej24HCQO46DaG69GzKZAIMJ0G4RT\n\trXS5/muEeOkTeyFaWN9WOiU864K6hvg=","X-Google-Smtp-Source":"ABdhPJwwthf5iOcKcGT3QJRYXcCSVFOLUoPPLBNEKzGzkdX2LvgDSRsxRS0uGXG980cWkmqfo/STvA==","X-Received":"by 2002:a5d:68cc:: with SMTP id\n\tp12mr4885756wrw.111.1594728531116; \n\tTue, 14 Jul 2020 05:08:51 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","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":"<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>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi,\n\nThis patch replaces the existing vcsm with dmabuf allocations for the lens shading tables.\nThis change will break existing functionality without the equivalent linux kernel\nchange (https://github.com/raspberrypi/linux/pull/3715) being present and built..\n\nLaurent, since this is an ABI breakage, once the review is complete, could you\nlet me know before you are about to merge this change so we can sync push the\nkernel change at the same time and inform our users please?\n\nThanks,\nNaush\n\n\nNaushir Patuck (2):\n  include: linux: Add dma-buf.h and dma-heap.h uapi headers\n  libcamera: pipeline: ipa: raspberrypi: Use dma heap allocs for LS\n    tables\n\n include/linux/bcm2835-isp.h                   |   4 +-\n include/linux/dma-buf.h                       |  50 ++++++\n include/linux/dma-heap.h                      |  53 +++++++\n include/linux/vc_sm_cma_ioctl.h               | 135 ----------------\n src/ipa/raspberrypi/raspberrypi.cpp           |  27 +++-\n .../pipeline/raspberrypi/dma-heaps.h          | 102 ++++++++++++\n .../pipeline/raspberrypi/raspberrypi.cpp      |  44 ++----\n src/libcamera/pipeline/raspberrypi/vcsm.h     | 149 ------------------\n 8 files changed, 241 insertions(+), 323 deletions(-)\n create mode 100644 include/linux/dma-buf.h\n create mode 100644 include/linux/dma-heap.h\n delete mode 100644 include/linux/vc_sm_cma_ioctl.h\n create mode 100644 src/libcamera/pipeline/raspberrypi/dma-heaps.h\n delete mode 100644 src/libcamera/pipeline/raspberrypi/vcsm.h"}