Show a cover letter.

GET /api/1.1/covers/21635/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 21635,
    "url": "https://patchwork.libcamera.org/api/1.1/covers/21635/?format=api",
    "web_url": "https://patchwork.libcamera.org/cover/21635/",
    "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": "<20241016084449.3566589-1-chenghaoyang@chromium.org>",
    "date": "2024-10-16T08:43:43",
    "name": "[v5,0/1] Add thread affinity",
    "submitter": {
        "id": 117,
        "url": "https://patchwork.libcamera.org/api/1.1/people/117/?format=api",
        "name": "Cheng-Hao Yang",
        "email": "chenghaoyang@chromium.org"
    },
    "mbox": "https://patchwork.libcamera.org/cover/21635/mbox/",
    "series": [
        {
            "id": 4703,
            "url": "https://patchwork.libcamera.org/api/1.1/series/4703/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4703",
            "date": "2024-10-16T08:43:43",
            "name": "Add thread affinity",
            "version": 5,
            "mbox": "https://patchwork.libcamera.org/series/4703/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/covers/21635/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 B9235C32FA\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 16 Oct 2024 08:45:00 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5E93765382;\n\tWed, 16 Oct 2024 10:44:59 +0200 (CEST)",
            "from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com\n\t[IPv6:2607:f8b0:4864:20::1031])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 06E726053E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 16 Oct 2024 10:44:56 +0200 (CEST)",
            "by mail-pj1-x1031.google.com with SMTP id\n\t98e67ed59e1d1-2e2ed2230d8so3721530a91.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 16 Oct 2024 01:44:56 -0700 (PDT)",
            "from chenghaoyang-low.c.googlers.com.com\n\t(199.211.81.34.bc.googleusercontent.com. [34.81.211.199])\n\tby smtp.gmail.com with ESMTPSA id\n\t98e67ed59e1d1-2e392f03756sm3508553a91.29.2024.10.16.01.44.53\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 16 Oct 2024 01:44:53 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"dyHrr8JZ\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=chromium.org; s=google; t=1729068294; x=1729673094;\n\tdarn=lists.libcamera.org; \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=0Cs5eZD2XMxoHzLCM3SkkRPDVELL2yLfNCv7AeUeMqI=;\n\tb=dyHrr8JZpNr72MKFlShc3UQXZQmhdHznoLdz9Ew8YL/c58EJGiWc3EJGtHQ/4K33/g\n\tO4eS5fceewLonJJ1rJmZHQ4oHE+IWDltaJH9rFZbbjrqR0CvUfMInq1M8fn9FNNKFhq4\n\tPGqSvqEL9T0Dm3IM/h4sihulQ7qDo49EWbkX0=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1729068294; x=1729673094;\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=0Cs5eZD2XMxoHzLCM3SkkRPDVELL2yLfNCv7AeUeMqI=;\n\tb=b6yaPbdkYurQ9xPyNwCcdnez5JGkbI13UeVfQKVyYDi5mWT8I33Y/r8wBBSH8FMZn6\n\tEmps6sw3AMmGlOl5Ddbc35oYLf/ipDj3U3nnuli4X2N/GShG1IY6fCmRCCmr2u+y9IbF\n\tfeYf6T9poF78vnHiffG0mhyhqU0yHTt2po6tAkcemuOKoS5ZXMjpGiPnvBh/Rj8bi60d\n\tgrJjG7qw8s5wEvGEGsxqmVinbSSbfF9pDZehCIp/aQGki2hxaDgIZZd8MRe3nZatFHau\n\tJeJXuIeVsDOxqkW3kOm2iHLf2e6yaRsQX4MJZ/HypD0MX5lVlcyfMieKXYY4yt4xg7wI\n\tMlLQ==",
        "X-Gm-Message-State": "AOJu0YxnAB342zDQhRsvcRpQ1n9lCpSggC8S3JtNZQRXIEvIidQGE4t3\n\trMx3kpOHlW40kSauPi9g4ly0rDgKIIQ7X+6ZI310Cf+l53znrL6jBvrDAt4HQgW8zp8Pjr12WzM\n\t=",
        "X-Google-Smtp-Source": "AGHT+IFkwIb4L+GuIvvwpbO1Pcuyz5t7WNGk17mcNaN2QcXqzDNp8THlYhVkEoIuF5TMT5RIivzjAg==",
        "X-Received": "by 2002:a17:90b:3906:b0:2e2:bd9a:4ff4 with SMTP id\n\t98e67ed59e1d1-2e3152ea87cmr18684816a91.24.1729068294425; \n\tWed, 16 Oct 2024 01:44:54 -0700 (PDT)",
        "From": "Harvey Yang <chenghaoyang@chromium.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Harvey Yang <chenghaoyang@chromium.org>",
        "Subject": "[PATCH v5 0/1] Add thread affinity",
        "Date": "Wed, 16 Oct 2024 08:43:43 +0000",
        "Message-ID": "<20241016084449.3566589-1-chenghaoyang@chromium.org>",
        "X-Mailer": "git-send-email 2.47.0.rc1.288.g06298d1525-goog",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Hi folks,\n\nThis patch adds a method to set thread affinity, which is needed to\nensure performance in mtkisp7 pipeline handler and IPA.\n\nThis passes gitlab pipeline:\nhttps://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1291081\n\nv5:\n- Return failure if any index is invalid.\n- Drop the check of max size.\n\nv4:\n- Use `sizeof(data_->cpuset_.value())`.\n\nv3:\n- Keep the cpu indices in ThreadData.\n\nv2:\n- Check cpu indices within [0, `std::thread::hardware_concurrency()`).\n- Limit max size of cpus to be CPU_SETSIZE.\n\nBR,\nHarvey\n\n\nHan-Lin Chen (1):\n  libcamera: add method to set thread affinity\n\n include/libcamera/base/thread.h |  5 ++++\n src/libcamera/base/thread.cpp   | 46 +++++++++++++++++++++++++++++++++\n 2 files changed, 51 insertions(+)"
}