From patchwork Fri Dec 30 09:26:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 6005 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 65EDB23E13 for ; Fri, 30 Dec 2011 09:17:00 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 44943A1813A for ; Fri, 30 Dec 2011 09:17:00 +0000 (UTC) Received: by eaac11 with SMTP id c11so12440422eaa.11 for ; Fri, 30 Dec 2011 01:17:00 -0800 (PST) Received: by 10.204.156.219 with SMTP id y27mr8392071bkw.71.1325236619948; Fri, 30 Dec 2011 01:16:59 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs249664bkc; Fri, 30 Dec 2011 01:16:59 -0800 (PST) Received: by 10.42.19.69 with SMTP id a5mr15680967icb.42.1325236617488; Fri, 30 Dec 2011 01:16:57 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id x3si20666447icw.146.2011.12.30.01.16.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Dec 2011 01:16:57 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by iagf6 with SMTP id f6so29582038iag.37 for ; Fri, 30 Dec 2011 01:16:56 -0800 (PST) Received: by 10.42.154.7 with SMTP id o7mr39917648icw.48.1325236616218; Fri, 30 Dec 2011 01:16:56 -0800 (PST) Received: from localhost.localdomain ([180.106.37.90]) by mx.google.com with ESMTPS id aq5sm84681052igc.5.2011.12.30.01.16.51 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Dec 2011 01:16:54 -0800 (PST) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Cc: patches@linaro.org, Shawn Guo Subject: [PATCH] ARM: imx6: fix v7_invalidate_l1 by adding I-Cache invalidation Date: Fri, 30 Dec 2011 17:26:40 +0800 Message-Id: <1325237200-10610-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 The recent suspend/resume and reset testing on imx6q discovers that not only D-Cache but also I-Cache has random data and validity when the core comes out of a power recycle. This patch adds I-Cache invalidation into v7_invalidate_l1 to make sure both D-Cache and I-Cache invalidated on power-up. Signed-off-by: Shawn Guo --- arch/arm/mach-imx/head-v7.S | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-imx/head-v7.S b/arch/arm/mach-imx/head-v7.S index 6229efb..c844112 100644 --- a/arch/arm/mach-imx/head-v7.S +++ b/arch/arm/mach-imx/head-v7.S @@ -33,6 +33,7 @@ */ ENTRY(v7_invalidate_l1) mov r0, #0 + mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache mcr p15, 2, r0, c0, c0, 0 mrc p15, 1, r0, c0, c0, 0