Show a patch.

GET /api/1.1/patches/8509/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 8509,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/8509/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/8509/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20200629163347.3760354-1-niklas.soderlund@ragnatech.se>",
    "date": "2020-06-29T16:33:47",
    "name": "[libcamera-devel] libcamera: raspberrypi: Document vc_sm_cma pointer sharing with IPA",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "7340e82237074509c6f12d4dc2bfbf7b9fbc2f61",
    "submitter": {
        "id": 5,
        "url": "https://patchwork.libcamera.org/api/1.1/people/5/?format=api",
        "name": "Niklas Söderlund",
        "email": "niklas.soderlund@ragnatech.se"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/8509/mbox/",
    "series": [
        {
            "id": 1059,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1059/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1059",
            "date": "2020-06-29T16:33:47",
            "name": "[libcamera-devel] libcamera: raspberrypi: Document vc_sm_cma pointer sharing with IPA",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1059/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/8509/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/8509/checks/",
    "tags": {},
    "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 C78E9BF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 29 Jun 2020 16:33:53 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 6E68F609DB;\n\tMon, 29 Jun 2020 18:33:53 +0200 (CEST)",
            "from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net\n\t[195.74.38.229])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 191DE603B1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 29 Jun 2020 18:33:52 +0200 (CEST)",
            "from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de\n\t[79.202.46.202]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid 39748df4-ba26-11ea-86ee-0050569116f7;\n\tMon, 29 Jun 2020 18:33:14 +0200 (CEST)"
        ],
        "X-Halon-ID": "39748df4-ba26-11ea-86ee-0050569116f7",
        "Authorized-sender": "niklas@soderlund.pp.se",
        "From": "=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 29 Jun 2020 18:33:47 +0200",
        "Message-Id": "<20200629163347.3760354-1-niklas.soderlund@ragnatech.se>",
        "X-Mailer": "git-send-email 2.27.0",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH] libcamera: raspberrypi: Document\n\tvc_sm_cma pointer sharing with IPA",
        "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=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Sharing a pointer with the IPA is fragile as it will not work with all\nIPC mechanisms. Document that it's a temporary workaround that should be\nreworked.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\nindex 9d887b706c3f9670..6d7143162f0645bb 100644\n--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n@@ -1014,6 +1014,10 @@ int PipelineHandlerRPi::configureIPA(Camera *camera)\n \t\t/*\n \t\t * The vcsm allocation will always be in the memory region\n \t\t * < 32-bits to allow Videocore to access the memory.\n+\t\t *\n+\t\t * \\todo Sending a pointer to the IPA is a workaround for\n+\t\t * vc_sm_cma not yet supporting dmabuf. This is fragile and\n+\t\t * should be reworked as soon as vc_sm_cma permits.\n \t\t */\n \t\tIPAOperationData op;\n \t\top.operation = RPI_IPA_EVENT_LS_TABLE_ALLOCATION;\n",
    "prefixes": [
        "libcamera-devel"
    ]
}