Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216684/?format=api
{ "id": 2216684, "url": "http://patchwork.ozlabs.org/api/patches/2216684/?format=api", "web_url": "http://patchwork.ozlabs.org/project/opensbi/patch/20260327054936.3462935-1-peter.lin@sifive.com/", "project": { "id": 67, "url": "http://patchwork.ozlabs.org/api/projects/67/?format=api", "name": "OpenSBI development", "link_name": "opensbi", "list_id": "opensbi.lists.infradead.org", "list_email": "opensbi@lists.infradead.org", "web_url": "https://github.com/riscv/opensbi", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "https://github.com/riscv/opensbi/commit/{}" }, "msgid": "<20260327054936.3462935-1-peter.lin@sifive.com>", "list_archive_url": null, "date": "2026-03-27T05:49:36", "name": "lib: fdt_domain: Default boot-hart to coldboot HART for multi-domain boot", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "cbc8617be77722684082eb941c4124b4a5e4f461", "submitter": { "id": 90061, "url": "http://patchwork.ozlabs.org/api/people/90061/?format=api", "name": "Yu-Chine Peter Lin", "email": "peter.lin@sifive.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/opensbi/patch/20260327054936.3462935-1-peter.lin@sifive.com/mbox/", "series": [ { "id": 497690, "url": "http://patchwork.ozlabs.org/api/series/497690/?format=api", "web_url": "http://patchwork.ozlabs.org/project/opensbi/list/?series=497690", "date": "2026-03-27T05:49:36", "name": "lib: fdt_domain: Default boot-hart to coldboot HART for multi-domain boot", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497690/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216684/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216684/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=q99WvJMF;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256\n header.s=google header.b=m/iU8eql;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhqVL36kHz1yFp\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 16:49:58 +1100 (AEDT)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w604p-00000006iyo-1t6L;\n\tFri, 27 Mar 2026 05:49:47 +0000", "from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w604n-00000006iyE-0ASs\n\tfor opensbi@lists.infradead.org;\n\tFri, 27 Mar 2026 05:49:46 +0000", "by mail-pl1-x62e.google.com with SMTP id\n d9443c01a7336-2b06c43e6a7so8797785ad.2\n for <opensbi@lists.infradead.org>;\n Thu, 26 Mar 2026 22:49:43 -0700 (PDT)", "from hsinchu16.internal.sifive.com ([210.176.154.34])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b0cb9ad55csm13975665ad.53.2026.03.26.22.49.40\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 22:49:42 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=skAxAY00WEnwYh+KKPRSe2Kc+4tpCD4CbJJprLHL20s=; b=q99WvJMFc4yzxh\n\t48LwhAc6T9xBcf7CUptq2h0KZcAWFEqpnsuSRSgt6hFiE3ZFk4OduwFOJKQ+F6LQojAYBFfN2/fLg\n\txRFyTBkY1MLNfN0kA9wFISZmbWyk6yZlqyZ4/QL+3UECxr1k99SbVXdDzHxxk9DzXld0sLyTsTH76\n\troul/ggTg2OyX7drUEKS9kAKAKR7c9GM/2h4tyxx4tLkqvuOh80ZWwQOFoDup9jCuCNE4BTpOe+iN\n\tNheBwHwkRvNeGWLH0+zyYH/szqUQoNrJewgspPnq5hVlD9FsiTy3IBRNbiECLT4+3vGHLm1ykilBm\n\tlyBMv2MVLQlaQ3fqrsJQ==;", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=sifive.com; s=google; t=1774590583; x=1775195383;\n darn=lists.infradead.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=WM1DO2yyqYbyLoKz3p9RI6370EMEFM7rGW8ZUFf16g0=;\n b=m/iU8eqlANJjjtG5kqlpdJqIZuhiTudxONvv0zR1yuhDRZyH0zRPlTcXMugEV0Avi1\n J5OhxYG4yt4mjCFoScwgNBORntUp7oT1xq3mfe1duDmxc5l0uCQh3th03v/0kqzgTHYX\n ic+P2SIwGhs0Cr1MvOyO46baSbOXm+UXulmlLmx6rouwLG/lcxuK2QwkAxaPoAwAR9/V\n AYBTPEiwI5d20GYXZGvJq97nz3TuRZH55VPa2Uo11MmFdpyIzzkNj46KkaKI46mS5aJZ\n GIoo0KF7FPT48oYfTM69NE3LFU8lWSYDc+cz0qhzrEDjNDYzlQF492se2cMZeU2MSZgK\n 9Yow==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774590583; x=1775195383;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=WM1DO2yyqYbyLoKz3p9RI6370EMEFM7rGW8ZUFf16g0=;\n b=WWq8gKV0bmaPUJIyFQNPu6iCmTAaHL6FPgVqHiT2tUWfMnGRoqXHYW3moB9dqvPr6P\n UQxr574w7bCfLy98h9dkz6SIykWIk3CSIqMCelyi0npPKZNdNA02cr4t7JEc0NWWgPxK\n 4HeMYHrPaCqqmqI1/S6EU78ItoB3FAvsbNJR/CWK26lwREXD8MVC+auzphnxC52ke0Cz\n tixslNa+cpJ1ZHmlMRdS7hjNebndNjMniT89f+36Dh6/neONr4Bxt+pc8KFSaOZT4X8J\n nC6rkGtpNoAEhiUK8vELkXoVkyWHeGJp0kk5cXpXv2q6OgyTWd1ocHkma3Rl/o1mntCD\n XpcQ==", "X-Gm-Message-State": "AOJu0YxMYwBeoW7cLlZEcDE894UDpWdS3X1eCl2feGZ7ZEm5osqRjdVp\n\tChLzJlG95UxA2s3rwdrcW/FGTGsrimIFiIrG4APzBRnUpUcE6HpTuReiWhfyA9uDwmF+KgCBIBh\n\tqwrWcmMRCll6NzWyKXbH2HItQW7nSTY3UBtUaeJ9dBLcPjsJGVygRyKqdO54agYd2540cvculQz\n\tQ9/brSNzpHId2xQoaqEXbaH0gE9Vp7vmTC+/Q1JxTBntFUMpIg", "X-Gm-Gg": "ATEYQzzIFbzTkjTpBPrvuvchSAQ9N2pOsFrV8VCtSgSJ47SOrGUUA7vZBrQrNb5SjU6\n\tbxpNAWwEUuSlakWgtHAELNvhLu0AmzsqzwXUeDAuQbcxF60A6RNvpUj0e9bBm6NJShqoNHNWB6H\n\tk8vs+WmKFMETVl/of4jTkrBnzT2lIwcOmya97Bz1S2tXcDHT2UgD26Sx0LxjCF/Ox1y6LMOpr6j\n\tKVi6jxwFwzb9/d9ki+fX9g3hVsX/vSmUJhwRNoH8jS1piqm1ANa0E82VC2wCNUUC7ZbAfHSVxZH\n\tF8ljjB5Jjo0tFAqKorqqqckEVLlqhcR2wFdaMMqcsdNNzh8JQ9tqgglqmtE6z9M4SuZb8/jzjug\n\tUFPNWlp+qNCL73WzNJuSfvgavjWXafoQxu7BgYiTQEtNoNe4gDyBX/BuY8xPamYSPg65kODrZd9\n\t020q94J7JScsVxB8XjIA2ZQwL7Loi8mqL2IIAA+1u7uZxmil79gfcorXp/4g==", "X-Received": "by 2002:a17:903:3508:b0:2ae:bf92:5acc with SMTP id\n d9443c01a7336-2b0cdc0faa8mr15552975ad.3.1774590582619;\n Thu, 26 Mar 2026 22:49:42 -0700 (PDT)", "From": "Yu-Chien Peter Lin <peter.lin@sifive.com>", "To": "opensbi@lists.infradead.org", "Cc": "zong.li@sifive.com,\n\tgreentime.hu@sifive.com,\n\tYu-Chien Peter Lin <peter.lin@sifive.com>", "Subject": "[PATCH] lib: fdt_domain: Default boot-hart to coldboot HART for\n multi-domain boot", "Date": "Fri, 27 Mar 2026 13:49:36 +0800", "Message-ID": "<20260327054936.3462935-1-peter.lin@sifive.com>", "X-Mailer": "git-send-email 2.48.0", "MIME-Version": "1.0", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260326_224945_086331_779C8AE5 ", "X-CRM114-Status": "GOOD ( 13.47 )", "X-Spam-Score": "-2.1 (--)", "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam. The original\n message has been attached to this so you can view it or label\n similar future email. If you have any questions, see\n the administrator of that system for details.\n Content preview: When \"boot-hart\" is not specified,\n dom->boot_hartid was left\n as -1U,\n causing domain context switching to fail. Default it to the coldboot\n HART to enable SMP boot in multi-domain setups, consistent wit [...]\n Content analysis details: (-2.1 points, 5.0 required)\n pts rule name description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no\n trust\n [2607:f8b0:4864:20:0:0:0:62e listed in]\n [list.dnswl.org]\n 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS SPF: sender matches SPF record\n -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n author's\n domain\n -0.1 DKIM_VALID Message has at least one valid DKIM or DK\n signature\n -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from\n envelope-from domain\n 0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n not necessarily valid\n -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n [score: 0.0000]", "X-BeenThere": "opensbi@lists.infradead.org", "X-Mailman-Version": "2.1.34", "Precedence": "list", "List-Id": "<opensbi.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/opensbi/>", "List-Post": "<mailto:opensbi@lists.infradead.org>", "List-Help": "<mailto:opensbi-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/opensbi>,\n <mailto:opensbi-request@lists.infradead.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"opensbi\" <opensbi-bounces@lists.infradead.org>", "Errors-To": "opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "When \"boot-hart\" is not specified, dom->boot_hartid was left as -1U,\ncausing domain context switching to fail. Default it to the coldboot\nHART to enable SMP boot in multi-domain setups, consistent with how\nnext-arg1 is handled.\n\nAlso update its description in domain_support.md.\n\nSigned-off-by: Yu-Chien Peter Lin <peter.lin@sifive.com>\n---\n docs/domain_support.md | 6 +++---\n lib/utils/fdt/fdt_domain.c | 5 +----\n 2 files changed, 4 insertions(+), 7 deletions(-)", "diff": "diff --git a/docs/domain_support.md b/docs/domain_support.md\nindex 93186c4a..c01e445f 100644\n--- a/docs/domain_support.md\n+++ b/docs/domain_support.md\n@@ -173,9 +173,9 @@ The DT properties of a domain instance DT node are as follows:\n Any region of a domain defined in DT node cannot have only M-bits set\n in access permissions i.e. it cannot be an m-mode only accessible region.\n * **boot-hart** (Optional) - The DT node phandle of the HART booting the\n- domain instance. If coldboot HART is assigned to the domain instance then\n- this DT property is ignored and the coldboot HART is assumed to be the\n- boot HART of the domain instance.\n+ domain instance. If not specified, defaults to the coldboot HART. Note that\n+ if the coldboot HART is assigned to this domain, it will be forced as\n+ the boot HART regardless of this property.\n * **next-arg1** (Optional) - The 64 bit next booting stage arg1 for the\n domain instance. If this DT property is not available and coldboot HART\n is not assigned to the domain instance then **next booting stage arg1 of coldboot HART**\ndiff --git a/lib/utils/fdt/fdt_domain.c b/lib/utils/fdt/fdt_domain.c\nindex b2fa8633..1b039533 100644\n--- a/lib/utils/fdt/fdt_domain.c\n+++ b/lib/utils/fdt/fdt_domain.c\n@@ -396,16 +396,13 @@ static int __fdt_parse_domain(const void *fdt, int domain_offset, void *opaque)\n \tdom->fw_region_inited = root.fw_region_inited;\n \n \t/* Read \"boot-hart\" DT property */\n-\tval32 = -1U;\n+\tval32 = current_hartid();\n \tval = fdt_getprop(fdt, domain_offset, \"boot-hart\", &len);\n \tif (val && len >= 4) {\n \t\tcpu_offset = fdt_node_offset_by_phandle(fdt,\n \t\t\t\t\t\t\t fdt32_to_cpu(*val));\n \t\tif (cpu_offset >= 0 && fdt_node_is_enabled(fdt, cpu_offset))\n \t\t\tfdt_parse_hart_id(fdt, cpu_offset, &val32);\n-\t} else {\n-\t\tif (domain_offset == *cold_domain_offset)\n-\t\t\tval32 = current_hartid();\n \t}\n \tdom->boot_hartid = val32;\n \n", "prefixes": [] }