Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1132189/?format=api
{ "id": 1132189, "url": "http://patchwork.ozlabs.org/api/patches/1132189/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-14-jagan@amarulasolutions.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": "<20190715182856.21688-14-jagan@amarulasolutions.com>", "list_archive_url": null, "date": "2019-07-15T18:28:51", "name": "[U-Boot,v3,13/18] ram: rk3399: debug: Add sdram_print_stride", "commit_ref": "cb13534abe07afae88bdeadf24e42717a9657750", "pull_url": null, "state": "accepted", "archived": false, "hash": "592ee6dd3553ad9f6a7bebcf0797619f4abf2379", "submitter": { "id": 69820, "url": "http://patchwork.ozlabs.org/api/people/69820/?format=api", "name": "Jagan Teki", "email": "jagan@amarulasolutions.com" }, "delegate": { "id": 93623, "url": "http://patchwork.ozlabs.org/api/users/93623/?format=api", "username": "kevery", "first_name": "Kever", "last_name": "Yang", "email": "ykai007@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-14-jagan@amarulasolutions.com/mbox/", "series": [ { "id": 119574, "url": "http://patchwork.ozlabs.org/api/series/119574/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119574", "date": "2019-07-15T18:28:43", "name": "ram: rk3399: Add rank detection", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/119574/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1132189/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1132189/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\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=amarulasolutions.com", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=amarulasolutions.com\n\theader.i=@amarulasolutions.com header.b=\"P2AJyQUD\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nXJc5Ztyz9s4Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 04:35:12 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 62AA2C21FB3; Mon, 15 Jul 2019 18:33:20 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 7305AC21F9E;\n\tMon, 15 Jul 2019 18:31:29 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 4E959C21FB6; Mon, 15 Jul 2019 18:29:59 +0000 (UTC)", "from mail-pg1-f195.google.com (mail-pg1-f195.google.com\n\t[209.85.215.195])\n\tby lists.denx.de (Postfix) with ESMTPS id 6660FC21FBC\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 18:29:55 +0000 (UTC)", "by mail-pg1-f195.google.com with SMTP id n9so1894882pgc.1\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 11:29:55 -0700 (PDT)", "from localhost.localdomain ([49.206.201.107])\n\tby smtp.gmail.com with ESMTPSA id\n\ty133sm20250075pfb.28.2019.07.15.11.29.50\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 15 Jul 2019 11:29:53 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.0 required=5.0 tests=T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=amarulasolutions.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=pIDTnUfr0djUpkT1BNeINgQLdbC0j9OQ9/2h48Y8nMY=;\n\tb=P2AJyQUDnuNznXrP8Pz4e98HGmOa/ojChabMl2WigfgC2TiAOp0dx7mWRfX4m7DF21\n\twmcTQwMVcyD6kES+cy8GqowGh+JfYOIRo6vBdQMnjaic3ybKZgSOg6MUVdw/Vf6jx8Z5\n\tEjtT8xx6ricfvASqn4b+qZLY7b8c+t6xz1/CU=", "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:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=pIDTnUfr0djUpkT1BNeINgQLdbC0j9OQ9/2h48Y8nMY=;\n\tb=hK6/5dXNvHJoT7FOcNXuot6m5rIaTBAtSHs0N56x87Ijip2HPpinLWOqO0rMplqELs\n\tG7KdWiQtxWJKT01HGpvn301hBhjkCayckJQIriQZ8jKA+j6Kx2OXxn6xzCt98FtFjnLB\n\t+YHi8KH8/3aRcbN06HKzMw9bwfnLhYEntqZgu3Lo/KPS/S5gdA4jpcS+IKU06A69+kuf\n\tpNui84hh/g60p9bjTRpbKRQI1hLoAB9XYpOKjq3vrM+EaNYPpr0cuVLVMwFRGiHObzjH\n\t6jVdbPTXkIuX7lGgVTJmkYbt0D1ssVBRrODHqxBOhUofc4K56kGyvRINc5M/es2xU0fe\n\tqWDg==", "X-Gm-Message-State": "APjAAAW+XOvr72gFv25lyxIDE1fyM8grDqkFlUYNVw297oG01bWXirnF\n\tYmfLGSU0o72OMpt8LUyBAZC9PQ==", "X-Google-Smtp-Source": "APXvYqwUHRsmreZ2GD5zTWUj3OnV25Jsn+WU20OiN/Q7Ps7+kiuytPuz6nWN7hDHrVOLKlU9HXD/dA==", "X-Received": "by 2002:a63:f510:: with SMTP id w16mr28980694pgh.0.1563215393933;\n\tMon, 15 Jul 2019 11:29:53 -0700 (PDT)", "From": "Jagan Teki <jagan@amarulasolutions.com>", "To": "Simon Glass <sjg@chromium.org>,\n\tPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>,\n\tKever Yang <kever.yang@rock-chips.com>,\n\tYouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de", "Date": "Mon, 15 Jul 2019 23:58:51 +0530", "Message-Id": "<20190715182856.21688-14-jagan@amarulasolutions.com>", "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3", "In-Reply-To": "<20190715182856.21688-1-jagan@amarulasolutions.com>", "References": "<20190715182856.21688-1-jagan@amarulasolutions.com>", "MIME-Version": "1.0", "Cc": "linux-rockchip@lists.infradead.org, gajjar04akash@gmail.com,\n\tlinux-amarula@amarulasolutions.com,\n\tManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>", "Subject": "[U-Boot] [PATCH v3 13/18] ram: rk3399: debug: Add sdram_print_stride", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://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\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "Add code to print the channel stride, this would help to\nprint the stride of associated channel.\n\nHere is sample print on LPDDR4, 50MHz.\n256B stride\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\nSigned-off-by: YouMin Chen <cym@rock-chips.com>\n---\n .../include/asm/arch-rockchip/sdram_common.h | 5 ++++\n drivers/ram/rockchip/sdram_debug.c | 29 +++++++++++++++++++\n 2 files changed, 34 insertions(+)", "diff": "diff --git a/arch/arm/include/asm/arch-rockchip/sdram_common.h b/arch/arm/include/asm/arch-rockchip/sdram_common.h\nindex cfbb511843..b7549f5d8a 100644\n--- a/arch/arm/include/asm/arch-rockchip/sdram_common.h\n+++ b/arch/arm/include/asm/arch-rockchip/sdram_common.h\n@@ -102,10 +102,15 @@ inline void sdram_print_ddr_info(struct sdram_cap_info *cap_info,\n \t\t\t\t struct sdram_base_params *base)\n {\n }\n+\n+inline void sdram_print_stride(unsigned int stride)\n+{\n+}\n #else\n void sdram_print_dram_type(unsigned char dramtype);\n void sdram_print_ddr_info(struct sdram_cap_info *cap_info,\n \t\t\t struct sdram_base_params *base);\n+void sdram_print_stride(unsigned int stride);\n #endif /* CONFIG_RAM_ROCKCHIP_DEBUG */\n \n #endif\ndiff --git a/drivers/ram/rockchip/sdram_debug.c b/drivers/ram/rockchip/sdram_debug.c\nindex 19e9225c12..9cf662675b 100644\n--- a/drivers/ram/rockchip/sdram_debug.c\n+++ b/drivers/ram/rockchip/sdram_debug.c\n@@ -116,3 +116,32 @@ void sdram_print_ddr_info(struct sdram_cap_info *cap_info,\n \tprintdec(cap >> 20);\n \tprintascii(\"MB\\n\");\n }\n+\n+void sdram_print_stride(unsigned int stride)\n+{\n+\tswitch (stride) {\n+\tcase 0xc:\n+\t\tprintf(\"128B stride\\n\");\n+\t\tbreak;\n+\tcase 5:\n+\tcase 9:\n+\tcase 0xd:\n+\tcase 0x11:\n+\tcase 0x19:\n+\t\tprintf(\"256B stride\\n\");\n+\t\tbreak;\n+\tcase 0xa:\n+\tcase 0xe:\n+\tcase 0x12:\n+\t\tprintf(\"512B stride\\n\");\n+\t\tbreak;\n+\tcase 0xf:\n+\t\tprintf(\"4K stride\\n\");\n+\t\tbreak;\n+\tcase 0x1f:\n+\t\tprintf(\"32MB + 256B stride\\n\");\n+\t\tbreak;\n+\tdefault:\n+\t\tprintf(\"no stride\\n\");\n+\t}\n+}\n", "prefixes": [ "U-Boot", "v3", "13/18" ] }