Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/413549/?format=api
{ "id": 413549, "url": "http://patchwork.ozlabs.org/api/patches/413549/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/1416806890-26920-2-git-send-email-Zhuoyu.Zhang@freescale.com/", "project": { "id": 19, "url": "http://patchwork.ozlabs.org/api/projects/19/?format=api", "name": "Linux IMX development", "link_name": "linux-imx", "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org", "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1416806890-26920-2-git-send-email-Zhuoyu.Zhang@freescale.com>", "list_archive_url": null, "date": "2014-11-24T05:28:10", "name": "[v2,2/2] arm: ls1: provide a workaround for core soft reset", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ac7d94eabbf7155486cd352a35cf5da721c0984b", "submitter": { "id": 42926, "url": "http://patchwork.ozlabs.org/api/people/42926/?format=api", "name": "Zhuoyu Zhang", "email": "Zhuoyu.Zhang@freescale.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-imx/patch/1416806890-26920-2-git-send-email-Zhuoyu.Zhang@freescale.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/413549/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/413549/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming-imx@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org", "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[IPv6:2001:1868:205::9])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4A20F14012B\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tMon, 24 Nov 2014 16:32:51 +1100 (AEDT)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1XsmDv-0001k8-3c; Mon, 24 Nov 2014 05:30:07 +0000", "from mail-bl2on0113.outbound.protection.outlook.com\n\t([65.55.169.113] helo=na01-bl2-obe.outbound.protection.outlook.com)\n\tby bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat\n\tLinux)) id 1XsmDi-0001M1-RS\n\tfor linux-arm-kernel@lists.infradead.org;\n\tMon, 24 Nov 2014 05:29:56 +0000", "from BY2PR03CA047.namprd03.prod.outlook.com (10.141.249.20) by\n\tDM2PR03MB398.namprd03.prod.outlook.com (10.141.84.140) with Microsoft\n\tSMTP Server (TLS) id 15.1.26.15; Mon, 24 Nov 2014 05:29:32 +0000", "from BN1AFFO11FD024.protection.gbl (2a01:111:f400:7c10::164) by\n\tBY2PR03CA047.outlook.office365.com (2a01:111:e400:2c5d::20) with\n\tMicrosoft SMTP Server (TLS) id 15.1.26.15 via Frontend Transport;\n\tMon, 24 Nov 2014 05:29:31 +0000", "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBN1AFFO11FD024.mail.protection.outlook.com (10.58.52.84) with\n\tMicrosoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport;\n\tMon, 24 Nov 2014 05:29:31 +0000", "from titan.ap.freescale.net ([10.192.208.233])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tsAO5TNdE026676; Sun, 23 Nov 2014 22:29:27 -0700" ], "From": "Zhuoyu Zhang <Zhuoyu.Zhang@freescale.com>", "To": "<linux-kernel@vger.kernel.org>, <kernel@pengutronix.de>,\n\t<linux-arm-kernel@lists.infradead.org>", "Subject": "[PATCH v2 2/2] arm: ls1: provide a workaround for core soft reset", "Date": "Mon, 24 Nov 2014 13:28:10 +0800", "Message-ID": "<1416806890-26920-2-git-send-email-Zhuoyu.Zhang@freescale.com>", "X-Mailer": "git-send-email 2.1.0.27.g96db324", "In-Reply-To": "<1416806890-26920-1-git-send-email-Zhuoyu.Zhang@freescale.com>", "References": "<1416806890-26920-1-git-send-email-Zhuoyu.Zhang@freescale.com>", "X-EOPAttributedMessage": "0", "X-Forefront-Antispam-Report": "CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10019020)(6009001)(189002)(199003)(99396003)(106466001)(36756003)(88136002)(89996001)(87936001)(87286001)(64706001)(120916001)(105606002)(107046002)(62966003)(4396001)(50466002)(50226001)(77156002)(95666004)(46102003)(229853001)(50986999)(76176999)(104016003)(102836001)(6806004)(21056001)(104166001)(68736004)(44976005)(47776003)(20776003)(19580405001)(19580395003)(97736003)(31966008)(2201001)(92566001)(92726001)(93916002)(84676001)(86362001);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB398;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en;", "MIME-Version": "1.0", "X-Microsoft-Antispam": [ "UriScan:;", "BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB398;" ], "X-Exchange-Antispam-Report-Test": "UriScan:;", "X-Exchange-Antispam-Report-CFA-Test": [ "BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB398;", "BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB398;" ], "X-Forefront-PRVS": "040513D301", "Received-SPF": "Fail (protection.outlook.com: domain of freescale.com does not\n\tdesignate 192.88.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.freescale.net;", "Authentication-Results": "spf=fail (sender IP is 192.88.168.50)\n\tsmtp.mailfrom=Zhuoyu.Zhang@freescale.com; ", "X-OriginatorOrg": "freescale.com", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20141123_212955_091989_B7514BA0 ", "X-CRM114-Status": "UNSURE ( 8.86 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-0.0 (/)", "X-Spam-Report": "SpamAssassin version 3.4.0 on bombadil.infradead.org summary:\n\tContent analysis details: (-0.0 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [65.55.169.113 listed in list.dnswl.org]\n\t-0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)\n\t[65.55.169.113 listed in wl.mailspike.net]\n\t-0.0 SPF_HELO_PASS SPF: HELO matches SPF record\n\t-0.0 SPF_PASS SPF: sender matches SPF record", "Cc": "Zhuoyu.Zhang@freescale.com, leoli@freescale.com,\n\tlinuxppc-release@linux.freescale.net, Jason.Jin@freescale.com,\n\tchenhui.zhao@freescale.com", "X-BeenThere": "linux-arm-kernel@lists.infradead.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>", "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>", "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>", "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org", "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org" }, "content": "From: Zhang Zhuoyu <Zhuoyu.Zhang@freescale.com>\n\nDue to a hardware erratum, after core soft reset, core state machine\nregisters need to force release manually.\n\nSigned-off-by: Zhang Zhuoyu <Zhuoyu.Zhang@freescale.com>\n---\n arch/arm/mach-imx/platsmp.c | 29 ++++++++++++++++++++++++++++-\n 1 file changed, 28 insertions(+), 1 deletion(-)", "diff": "diff --git a/arch/arm/mach-imx/platsmp.c b/arch/arm/mach-imx/platsmp.c\nindex 7735ebb..73c2289 100644\n--- a/arch/arm/mach-imx/platsmp.c\n+++ b/arch/arm/mach-imx/platsmp.c\n@@ -41,6 +41,7 @@ u32 g_diag_reg;\n static void __iomem *scu_base;\n static void __iomem *dcfg_base;\n static void __iomem *scfg_base;\n+static void __iomem *dcsr_rcpm2_base;\n static u32 secondary_pre_boot_entry;\n \n static struct map_desc scu_io_desc __initdata = {\n@@ -150,8 +151,25 @@ static int ls1021a_secondary_iomap(void)\n \t\tgoto scfg_err;\n \t}\n \n+\tnp = of_find_compatible_node(NULL, NULL, \"fsl,ls1021a-dcsr-rcpm\");\n+\tif (!np) {\n+\t\tpr_err(\"%s: failed to find dcsr node.\\n\", __func__);\n+\t\tret = -EINVAL;\n+\t\tgoto dcsr_err;\n+\t}\n+\n+\tdcsr_rcpm2_base = of_iomap(np, 1);\n+\tof_node_put(np);\n+\tif (!dcsr_rcpm2_base) {\n+\t\tpr_err(\"%s: failed to map dcsr.\\n\", __func__);\n+\t\tret = -ENOMEM;\n+\t\tgoto dcsr_err;\n+\t}\n+\n \treturn 0;\n \n+dcsr_err:\n+\tiounmap(scfg_base);\n scfg_err:\n \tiounmap(dcfg_base);\n dcfg_err:\n@@ -176,7 +194,7 @@ static int ls1021a_reset_secondary(unsigned int cpu)\n {\n \tu32 tmp;\n \n-\tif (!scfg_base || !dcfg_base)\n+\tif (!scfg_base || !dcfg_base || !dcsr_rcpm2_base)\n \t\treturn -ENOMEM;\n \n \twritel_relaxed(secondary_pre_boot_entry,\n@@ -190,6 +208,15 @@ static int ls1021a_reset_secondary(unsigned int cpu)\n \tiowrite32be(0x80000000, scfg_base + SCFG_CORESRENCR);\n \tiowrite32be(0x80000000, scfg_base +\n \t\t\t\tSCFG_CORE0_SFT_RST + STRIDE_4B * cpu);\n+\tmdelay(10);\n+\n+\t/* LS1021a errata. after reset, core state machine registers\n+\t * need to force release manually.\n+\t */\n+\tiowrite32be(0x00000080, dcsr_rcpm2_base + DCSR_RCPM2_DEBUG1);\n+\tiowrite32be(0x00000080, dcsr_rcpm2_base + DCSR_RCPM2_DEBUG2);\n+\tiowrite32be(0, dcsr_rcpm2_base + DCSR_RCPM2_DEBUG1);\n+\tiowrite32be(0, dcsr_rcpm2_base + DCSR_RCPM2_DEBUG2);\n \n \t/* Release secondary core */\n \tiowrite32be(1 << cpu, dcfg_base + DCFG_CCSR_BRR);\n", "prefixes": [ "v2", "2/2" ] }