Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1132180/?format=api
{ "id": 1132180, "url": "http://patchwork.ozlabs.org/api/patches/1132180/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190715182856.21688-4-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-4-jagan@amarulasolutions.com>", "list_archive_url": null, "date": "2019-07-15T18:28:41", "name": "[U-Boot,v3,03/18] ram: rk3399: Use rank mask in ca data training", "commit_ref": "708e9a79dc297aeb8a62dc6ba95b651b0493e1e1", "pull_url": null, "state": "accepted", "archived": false, "hash": "e3183119866d99a2e542d3c60f3be89c6cf7fe26", "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-4-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/1132180/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1132180/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=\"U6sp09yQ\"; \n\tdkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45nXDb4swpz9s4Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Jul 2019 04:31:43 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 26CCBC21FB6; Mon, 15 Jul 2019 18:30:15 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 31628C21FB0;\n\tMon, 15 Jul 2019 18:29:47 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid A532DC21F93; Mon, 15 Jul 2019 18:29:21 +0000 (UTC)", "from mail-pg1-f194.google.com (mail-pg1-f194.google.com\n\t[209.85.215.194])\n\tby lists.denx.de (Postfix) with ESMTPS id EA6B9C21FC9\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 18:29:20 +0000 (UTC)", "by mail-pg1-f194.google.com with SMTP id n9so1894158pgc.1\n\tfor <u-boot@lists.denx.de>; Mon, 15 Jul 2019 11:29:20 -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.16\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 15 Jul 2019 11:29:19 -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=RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=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=6YcwdqbfN/fN4UE6eAEHodKdaNOFzJ1BoEfhJmEKtss=;\n\tb=U6sp09yQROlfxGcBxmLg/OVMiIy9cCKTHFDGroLkoDxMPBJvTrj4nm5IluSNV61huT\n\trA9t/Cb4U08T246yMfRx9PcRMBOkygThuTwsQxwMLMUDae5dsAik8w6NG3Rq+bh2toQQ\n\tZ//uQ9eg1dZ3gxeTx2OM/0bW3MISFCQRD1dyU=", "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=6YcwdqbfN/fN4UE6eAEHodKdaNOFzJ1BoEfhJmEKtss=;\n\tb=mRmzmoQDfTCwueKZRSM647t08Guu973yW+9HzxRkFeKsLk8OS9jIAASMLPdkI39y48\n\t7AH3Ox4vHN/cqkxyvBoWAcVlGrmWhX3R1KvTGGR5H+u28iujj9MO+clf6SJWXVmoFOOL\n\tGjFlEmZeMSXcZP+WZ6PaYu7qnESoFmR/6Bk8waz5UZAnJUr9cS+48Tbtpbtnk7PYVXPX\n\t6gyHlXQ37PD+9texO3CJfKv5zt7reUlakn+Ui+hJfqCDai6lsxbV/cFXGZ9LnvqpH4tA\n\tlGenrgIgG6CsPwB1u8yBRkxu4kEYp8F+lUc6ml5QKnNQq5wFrSXEnX+7kssW8et7yWcN\n\t+jWw==", "X-Gm-Message-State": "APjAAAW37SvftyvcDjzyHRGNmsoyP6vxTNdgaqMcd2nC6mmkc+JvKi6R\n\tnjENSukp1e6ID+Or7qXeO0GPLw==", "X-Google-Smtp-Source": "APXvYqxCnl2bLJAe9azA/V8kvtW9F0VN/Kchjs2sYYRhaHinXIyZB9V9fg3QxAjqL6hLOOo6KYWtTQ==", "X-Received": "by 2002:a63:e24c:: with SMTP id\n\ty12mr27612919pgj.81.1563215359423; \n\tMon, 15 Jul 2019 11:29:19 -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:41 +0530", "Message-Id": "<20190715182856.21688-4-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 03/18] ram: rk3399: Use rank mask in ca data\n\ttraining", "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 rank_mask based on the rank number, this would keep\nthe ca data training loop based on the desired rank mask\nvalue instead of looping for all values.\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\nSigned-off-by: YouMin Chen <cym@rock-chips.com>\n---\n drivers/ram/rockchip/sdram_rk3399.c | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c\nindex fe26144f27..b98df20fa5 100644\n--- a/drivers/ram/rockchip/sdram_rk3399.c\n+++ b/drivers/ram/rockchip/sdram_rk3399.c\n@@ -626,11 +626,17 @@ static int data_training_ca(const struct chan_info *chan, u32 channel,\n \tu32 i, tmp;\n \tu32 obs_0, obs_1, obs_2, obs_err = 0;\n \tu32 rank = params->ch[channel].cap_info.rank;\n+\tu32 rank_mask;\n \n \t/* clear interrupt,PI_175 PI_INT_ACK:WR:0:17 */\n \twritel(0x00003f7c, (&denali_pi[175]));\n \n-\tfor (i = 0; i < rank; i++) {\n+\trank_mask = (rank == 1) ? 0x1 : 0x3;\n+\n+\tfor (i = 0; i < 4; i++) {\n+\t\tif (!(rank_mask & (1 << i)))\n+\t\t\tcontinue;\n+\n \t\tselect_per_cs_training_index(chan, i);\n \n \t\t/* PI_100 PI_CALVL_EN:RW:8:2 */\n", "prefixes": [ "U-Boot", "v3", "03/18" ] }