Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1444226/?format=api
{ "id": 1444226, "url": "http://patchwork.ozlabs.org/api/patches/1444226/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-14-git-send-email-bmeng.cn@gmail.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1614244979-48216-14-git-send-email-bmeng.cn@gmail.com>", "list_archive_url": null, "date": "2021-02-25T09:22:34", "name": "[v3,13/38] cmd: Add a command to display the address map", "commit_ref": "56d0635f18def8b4bd7b6b5af5f2b0efa98a2a12", "pull_url": null, "state": "accepted", "archived": false, "hash": "f8a83143d8ebd4c6722f81bf625d2cfaf7bd77e9", "submitter": { "id": 64981, "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api", "name": "Bin Meng", "email": "bmeng.cn@gmail.com" }, "delegate": { "id": 87636, "url": "http://patchwork.ozlabs.org/api/users/87636/?format=api", "username": "priyankajain", "first_name": "Priyanka", "last_name": "Jain", "email": "priyanka.jain@nxp.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-14-git-send-email-bmeng.cn@gmail.com/mbox/", "series": [ { "id": 230985, "url": "http://patchwork.ozlabs.org/api/series/230985/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=230985", "date": "2021-02-25T09:22:22", "name": "ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/230985/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1444226/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1444226/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20161025 header.b=DaAxNamL;\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"DaAxNamL\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=bmeng.cn@gmail.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DmSF94G5sz9s1l\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Feb 2021 20:30:20 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3818B81FB4;\n\tThu, 25 Feb 2021 10:30:13 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 6B708819F2; Thu, 25 Feb 2021 10:24:28 +0100 (CET)", "from mail-ej1-x631.google.com (mail-ej1-x631.google.com\n [IPv6:2a00:1450:4864:20::631])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 6A249812B7\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 10:24:22 +0100 (CET)", "by mail-ej1-x631.google.com with SMTP id k13so7638452ejs.10\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 01:24:22 -0800 (PST)", "from pek-vx-bsp2.wrs.com\n (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180])\n by smtp.gmail.com with ESMTPSA id k22sm2987368edv.33.2021.02.25.01.24.17\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 25 Feb 2021 01:24:21 -0800 (PST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references;\n bh=pp2yWSMLS5sAfSlNnFZXKoq5ZSsIz3BsEo0DpGuoYWk=;\n b=DaAxNamLOUr3DBAKIXMivfkXyJ5IMymSQTco5nsgENhfRyHLuzGXn0HZmI6Hf9wSM8\n BToIKweJSAAVuebzVJZAWbWn0rkGdK/P08V91ndR+/ehexszt994lFSWkoN2PO86IC/V\n 4Bl49gFAgPTvs/7vzWV2C6D1o5rL8KCDcIJg4DjbmhkPqyJ69LpYsVaEvcRVU9V/7tN8\n 9E1LIFD/U9jmyqB/1hs1UvDIr3xIVpi1XiZwzmRFDgG4YKGiQq2hRT91DDZMXVabV6PG\n ERRRTa2r0yyyJzr1c5xM7/j2meYf2bJuXGm4EWbh8MeQuUHH619KF9nuoWbI8Udwqp9h\n 9MgQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references;\n bh=pp2yWSMLS5sAfSlNnFZXKoq5ZSsIz3BsEo0DpGuoYWk=;\n b=qJlGZTSl3WypqnjjfuvCsz3AcSCYuL6wsBmVXNrTY2IKZCXuyqR7LN/+no2t8H4j93\n 6pCNTHqo01KtRimCku+9K6QzcdiVZfmKos/xI7wMGG9pxwEjxLzLX3bn+5j7rV8PyD3s\n hTL6EHBNQKTOY3AxqOTyAtZI9bIPBEeIqPHpIhm8ZLe8Xaif5Bv/15KMd+IcuJlBxs1L\n tzNIsu5wtkf3AISo7ePZ0mxDdqapEEgHNVqkdxyaKQjXySbCWjM5yEuy0TVFlzrIOhvC\n fxAVnSnsckTM3d1CA4gxv/K3toAz21bBfNV7tIuPOvsIVsr62YtpmpHDHY6dHP78yeUg\n MptQ==", "X-Gm-Message-State": "AOAM531ArbFmkNURT3Q7045D1OKrXYEIHb5WfMOQDAnnIvRGEWHA+CS0\n azN4NUVo23/IYpGE4hhj9Og=", "X-Google-Smtp-Source": "\n ABdhPJyo4Lg3xi75WM/9oY/eOMCxs4S12Y2oblONvvuAW+B64NSUQ1WRPm0zw4ZThLa8HRKnRWaW1g==", "X-Received": "by 2002:a17:907:7784:: with SMTP id\n ky4mr1739010ejc.89.1614245062146;\n Thu, 25 Feb 2021 01:24:22 -0800 (PST)", "From": "Bin Meng <bmeng.cn@gmail.com>", "To": "Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de>,\n Priyanka Jain <priyanka.jain@nxp.com>", "Cc": "U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>,\n Marek Szyprowski <m.szyprowski@samsung.com>,\n Matthias Brugger <mbrugger@suse.com>", "Subject": "[PATCH v3 13/38] cmd: Add a command to display the address map", "Date": "Thu, 25 Feb 2021 17:22:34 +0800", "Message-Id": "<1614244979-48216-14-git-send-email-bmeng.cn@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>", "References": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.34", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.102.4 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "This adds a new command 'addrmap' to display the address map for\nnon-identity virtual-physical memory mappings.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\nReviewed-by: Priyanka Jain <priyanka.jain@nxp.com>\n\n---\n\n(no changes since v2)\n\nChanges in v2:\n- add doc/usage/addrmap.rst\n\n cmd/Kconfig | 7 +++++++\n cmd/Makefile | 1 +\n cmd/addrmap.c | 35 +++++++++++++++++++++++++++++++++++\n doc/usage/addrmap.rst | 41 +++++++++++++++++++++++++++++++++++++++++\n doc/usage/index.rst | 1 +\n 5 files changed, 85 insertions(+)\n create mode 100644 cmd/addrmap.c\n create mode 100644 doc/usage/addrmap.rst", "diff": "diff --git a/cmd/Kconfig b/cmd/Kconfig\nindex 928a2a0..2021939 100644\n--- a/cmd/Kconfig\n+++ b/cmd/Kconfig\n@@ -97,6 +97,13 @@ config CMD_ACPI\n \t between the firmware and OS, and is particularly useful when you\n \t want to make hardware changes without the OS needing to be adjusted.\n \n+config CMD_ADDRMAP\n+\tbool \"addrmap\"\n+\tdepends on ADDR_MAP\n+\tdefault y\n+\thelp\n+\t List non-identity virtual-physical memory mappings for 32-bit CPUs.\n+\n config CMD_BDI\n \tbool \"bdinfo\"\n \tdefault y\ndiff --git a/cmd/Makefile b/cmd/Makefile\nindex 176bf92..567e2b7 100644\n--- a/cmd/Makefile\n+++ b/cmd/Makefile\n@@ -13,6 +13,7 @@ obj-y += version.o\n \n # command\n obj-$(CONFIG_CMD_ACPI) += acpi.o\n+obj-$(CONFIG_CMD_ADDRMAP) += addrmap.o\n obj-$(CONFIG_CMD_AES) += aes.o\n obj-$(CONFIG_CMD_AB_SELECT) += ab_select.o\n obj-$(CONFIG_CMD_ADC) += adc.o\ndiff --git a/cmd/addrmap.c b/cmd/addrmap.c\nnew file mode 100644\nindex 0000000..bd23549\n--- /dev/null\n+++ b/cmd/addrmap.c\n@@ -0,0 +1,35 @@\n+// SPDX-License-Identifier: GPL-2.0+\n+/*\n+ * Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>\n+ */\n+\n+#include <common.h>\n+#include <command.h>\n+#include <addr_map.h>\n+\n+static int do_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,\n+\t\t char *const argv[])\n+{\n+\tint i;\n+\n+\tprintf(\" vaddr paddr size\\n\");\n+\tprintf(\"================ ================ ================\\n\");\n+\n+\tfor (i = 0; i < CONFIG_SYS_NUM_ADDR_MAP; i++) {\n+\t\tif (address_map[i].size == 0)\n+\t\t\tcontinue;\n+\n+\t\tprintf(\"%16.8lx %16.8llx %16.8llx\\n\",\n+\t\t address_map[i].vaddr,\n+\t\t (unsigned long long)address_map[i].paddr,\n+\t\t (unsigned long long)address_map[i].size);\n+\t}\n+\n+\treturn 0;\n+}\n+\n+U_BOOT_CMD(\n+\taddrmap,\t1,\t1,\tdo_addrmap,\n+\t\"List non-identity virtual-physical memory mappings for 32-bit CPUs\",\n+\t\"\"\n+);\ndiff --git a/doc/usage/addrmap.rst b/doc/usage/addrmap.rst\nnew file mode 100644\nindex 0000000..472fd54\n--- /dev/null\n+++ b/doc/usage/addrmap.rst\n@@ -0,0 +1,41 @@\n+.. SPDX-License-Identifier: GPL-2.0+\n+\n+addrmap command\n+===============\n+\n+Synopsis\n+--------\n+\n+::\n+\n+ addrmap\n+\n+Description\n+-----------\n+\n+The addrmap command is used to display non-identity virtual-physical memory\n+mappings for 32-bit CPUs.\n+\n+The output may look like:\n+\n+::\n+\n+ => addrmap\n+ vaddr paddr size\n+ ================ ================ ================\n+ e0000000 fe0000000 00100000\n+ 00000000 00000000 04000000\n+ 04000000 04000000 04000000\n+ 80000000 c00000000 10000000\n+ 90000000 c10000000 10000000\n+ a0000000 fe1000000 00010000\n+\n+The first column indicates the virtual address.\n+The second column indicates the physical address.\n+The third column indicates the mapped size.\n+\n+Configuration\n+-------------\n+\n+To use the addrmap command you must specify CONFIG_CMD_ADDRMAP=y.\n+It is automatically turned on when CONFIG_ADDR_MAP is set.\ndiff --git a/doc/usage/index.rst b/doc/usage/index.rst\nindex a8842bf..f962246 100644\n--- a/doc/usage/index.rst\n+++ b/doc/usage/index.rst\n@@ -13,6 +13,7 @@ Shell commands\n .. toctree::\n :maxdepth: 1\n \n+ addrmap\n base\n bootefi\n booti\n", "prefixes": [ "v3", "13/38" ] }