Message ID | 1489755637-19464-1-git-send-email-abrodkin@synopsys.com |
---|---|
State | New |
Headers | show
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 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vl57V5NbBz9s1h for <incoming@patchwork.ozlabs.org>; Sat, 18 Mar 2017 00:01:10 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="e8b/ZbM2"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ucQbDOjO+jRHWO0scranthVYZq3iD4RV7ZOT7aGi2Nc=; b=e8b /ZbM2/jMg+dvCdg5lMZJyLROB4Sor+Ch/nc4byp+k/pI30WJjxpE7MFUW1bH1yqqcXAZL8y6wlZqI ohq3lRIXiNINwBZUgUHkBfDfeBtQWiAdJ2ikTPbh8KbdFqwM8HOkkIxF75ovReUjaQtgNjBgnystU rdY2WeR8UU44YbdfWnVHLxypt/oLhDygbdnE5+ULk7DZwGVg5JZjZx3fEV2tsUheamZB/LOT4aBaH 6qgOadGruoGDmpSX9P5azgw811qrwx55R35fC4FcrDIEJ9L9F2XfiRUc/SmbV3WiwGXgzw1CCDXYS HshEm/W5C62dRDjuLKsC7b1+aAbcIUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1corVF-0002xK-9a; Fri, 17 Mar 2017 13:01:09 +0000 Received: from smtprelay2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1corV8-0002se-Tn for linux-snps-arc@lists.infradead.org; Fri, 17 Mar 2017 13:01:08 +0000 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 0328710C1499; Fri, 17 Mar 2017 06:00:40 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id D191F15E; Fri, 17 Mar 2017 06:00:40 -0700 (PDT) Received: from abrodkin-7440l.internal.synopsys.com (unknown [10.225.15.124]) by mailhost.synopsys.com (Postfix) with ESMTP id E96EC12A; Fri, 17 Mar 2017 06:00:38 -0700 (PDT) From: Alexey Brodkin <Alexey.Brodkin@synopsys.com> To: Eugeniy.Paltsev@synopsys.com Subject: [PATCH] arc: Keep D$ enabled to work-around incomplete SLC flushing Date: Fri, 17 Mar 2017 16:00:37 +0300 Message-Id: <1489755637-19464-1-git-send-email-abrodkin@synopsys.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170317_060103_009494_85E183B1 X-CRM114-Status: UNSURE ( 6.96 ) 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: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [198.182.60.111 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <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>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Cc: linux-snps-arc@lists.infradead.org, linux-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 |
diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c index d408fa21a07c..e0e83543e777 100644 --- a/arch/arc/mm/cache.c +++ b/arch/arc/mm/cache.c @@ -997,8 +997,8 @@ noinline void __init arc_ioc_setup(void) { unsigned int ap_sz; - /* Flush + invalidate + disable L1 dcache */ - __dc_disable(); + /* Flush + invalidate L1 dcache */ + __dc_entire_op(OP_FLUSH_N_INV); /* Flush + invalidate SLC */ if (read_aux_reg(ARC_REG_SLC_BCR))
As reported in STAR 9001165532 if D$ is disabled SLC is not flushed correctly which leads to loses of some data that were set before the flush. That causes unexpected behavior after the flush. For now just keep D$ enabled, only flush-invalidate it before IOC setup. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> --- arch/arc/mm/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)