Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808262/?format=api
{ "id": 808262, "url": "http://patchwork.ozlabs.org/api/patches/808262/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-arc/patch/20170831142158.27245-1-abrodkin@synopsys.com/", "project": { "id": 48, "url": "http://patchwork.ozlabs.org/api/projects/48/?format=api", "name": "Linux ARC development", "link_name": "linux-arc", "list_id": "linux-snps-arc.lists.infradead.org", "list_email": "linux-snps-arc@lists.infradead.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170831142158.27245-1-abrodkin@synopsys.com>", "list_archive_url": null, "date": "2017-08-31T14:21:58", "name": "arc: Flush and invalidate caches on start", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7806dbe5b57c2ea15149dff0ac8ff7703a79f545", "submitter": { "id": 23881, "url": "http://patchwork.ozlabs.org/api/people/23881/?format=api", "name": "Alexey Brodkin", "email": "Alexey.Brodkin@synopsys.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-arc/patch/20170831142158.27245-1-abrodkin@synopsys.com/mbox/", "series": [ { "id": 840, "url": "http://patchwork.ozlabs.org/api/series/840/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-arc/list/?series=840", "date": "2017-08-31T14:21:58", "name": "arc: Flush and invalidate caches on start", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/840/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808262/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808262/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"MZjUbE8h\"; \n\tdkim-atps=neutral" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\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 3xjl2C2MSyz9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 1 Sep 2017 00:22:27 +1000 (AEST)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnQMT-0005mX-Uo; Thu, 31 Aug 2017 14:22:25 +0000", "from us01smtprelay-2.synopsys.com ([198.182.47.9]\n\thelo=smtprelay.synopsys.com)\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnQMQ-0005kA-Ij for linux-snps-arc@lists.infradead.org;\n\tThu, 31 Aug 2017 14:22:25 +0000", "from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239])\n\tby smtprelay.synopsys.com (Postfix) with ESMTP id C3FA724E1531;\n\tThu, 31 Aug 2017 07:22:01 -0700 (PDT)", "from mailhost.synopsys.com (localhost [127.0.0.1])\n\tby mailhost.synopsys.com (Postfix) with ESMTP id A107E35E;\n\tThu, 31 Aug 2017 07:22:01 -0700 (PDT)", "from ru20arcgnu1.internal.synopsys.com\n\t(ru20arcgnu1.internal.synopsys.com [10.121.9.48])\n\tby mailhost.synopsys.com (Postfix) with ESMTP id 55A18337;\n\tThu, 31 Aug 2017 07:22:00 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=ojSmtG9SI/jo9IjFu42hBbvtlj0dJEItkmcBFNaw06w=;\n\tb=MZj\n\tUbE8hiQN+oMy376tIgOjj9ipCys7laVdJ45qTyNmdMGp/PHDInowOeWkl/SIIGsTPjR7LUyoF+tT0\n\tadpbAMksk/cFGGm9WYOSQq7cv/gXYHJ9VQm4dQzUX6h2LtT8Yi0vfHR6V9UElnnFL305WnQJqmrCJ\n\tvAQd3+LH9N6N/JehBUHvUt4uoje1dz48hSfs3fEe7/EFKyA4O+yqIxi/dv+uFB+KgriTRQwQobnS6\n\t3cW9f+uFfgNcNDFwgB1wGGW8mJc0eyNlDcJVZPzZ89HJ16Qydf7bDoQeOvwAwoNFx7Ry4+1r+NIt6\n\t+9B4lkdBfghAQmvENetjcdzJi46Ff0Q==;", "From": "Alexey Brodkin <Alexey.Brodkin@synopsys.com>", "To": "linux-snps-arc@lists.infradead.org", "Subject": "[PATCH] arc: Flush and invalidate caches on start", "Date": "Thu, 31 Aug 2017 17:21:58 +0300", "Message-Id": "<20170831142158.27245-1-abrodkin@synopsys.com>", "X-Mailer": "git-send-email 2.11.0", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20170831_072223_501255_450C1E02 ", "X-CRM114-Status": "UNSURE ( 5.44 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-1.9 (-)", "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details: (-1.9 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 [198.182.47.9 listed in list.dnswl.org]\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]", "X-BeenThere": "linux-snps-arc@lists.infradead.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "Linux on Synopsys ARC Processors\n\t<linux-snps-arc.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-snps-arc>, \n\t<mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-snps-arc/>", "List-Post": "<mailto:linux-snps-arc@lists.infradead.org>", "List-Help": "<mailto:linux-snps-arc-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, \n\t<mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe>", "Cc": "Vineet Gupta <Vineet.Gupta1@synopsys.com>,\n\tAlexey Brodkin <Alexey.Brodkin@synopsys.com>,\n\tlinux-kernel@vger.kernel.org", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-snps-arc\" <linux-snps-arc-bounces@lists.infradead.org>", "Errors-To": "linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "This is useful to make sure no stale data exists in caches after bootloaders.\nThe worst thing could be some lines of cache were locked in a bootloader\nfor example during DDR recalibration and never unlocked. This may lead\nto really unpredictable issues later down the line.\n\nSigned-off-by: Alexey Brodkin <abrodkin@synopsys.com>\n---\n arch/arc/kernel/head.S | 16 ++++++++++++++++\n 1 file changed, 16 insertions(+)", "diff": "diff --git a/arch/arc/kernel/head.S b/arch/arc/kernel/head.S\nindex 8b90d25a15cc..04e28b664183 100644\n--- a/arch/arc/kernel/head.S\n+++ b/arch/arc/kernel/head.S\n@@ -34,6 +34,10 @@\n #endif\n \tsr\tr5, [ARC_REG_IC_CTRL]\n \n+\t; Invalidate entire I$\n+\tmov\tr5, 1\n+\tsr\tr5, [ARC_REG_IC_IVIC]\n+\n 1:\n \tlr\tr5, [ARC_REG_DC_BCR]\n \tbreq r5, 0, 1f\t\t; D$ doesn't exist\n@@ -46,6 +50,18 @@\n #endif\n \tsr\tr5, [ARC_REG_DC_CTRL]\n \n+\t; Flush entire D$\n+\tmov\tr5, 1\n+\tsr\tr5, [ARC_REG_DC_FLSH]\n+\t; Wait for flush operation to complete\n+1:\n+\tlr\tr5, [ARC_REG_DC_CTRL]\n+\tbbit1\tr5, DC_CTRL_FLUSH_STATUS, 1b\n+\n+\t; Invalidate entire D$\n+\tmov\tr5, 1\n+\tsr\tr5, [ARC_REG_DC_IVDC]\n+\n 1:\n .endm\n \n", "prefixes": [] }