From patchwork Fri Jan 4 21:39:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 209548 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 420B62C0087 for ; Sat, 5 Jan 2013 08:43:28 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TrEzf-00011r-SE; Fri, 04 Jan 2013 21:39:59 +0000 Received: from mail-ob0-f178.google.com ([209.85.214.178]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TrEza-00011Y-Rs for linux-arm-kernel@lists.infradead.org; Fri, 04 Jan 2013 21:39:56 +0000 Received: by mail-ob0-f178.google.com with SMTP id eh20so15334227obb.9 for ; Fri, 04 Jan 2013 13:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kjZub3Ws+7scalJC6xlCPY+Uh0Ah7PvokiOGbWEmeRE=; b=OY5Mtcs0AnNDxxbwPr7o5SnPNlbtRPKcIW1EjcNT96I1j2qv6blEUgpFCINNQecGXX d9/6uSk0QTkE9VX2DFiYjvgzMywKzRX8yqUyxx8maJkphQ9kaW1L1jXaz2cHp0yOamp1 tZea7v0UT6N6StoZ0ZNKFlNmnSj3wjjjHKIJ+PfDL82JalznlflVpHFWkuaGSPhdlo/x gr8ruNCKYrqMrE6Anh6wFRJfuQ0ov51e7bccl2CgIfod1XkoQsWgCzHIWqIeaeCuvVth Jz7qi31xW2WbGTmJ/rgPYBSPXJS6/jCHv4sHUcarWON+47YLBsnXe0nYyMmbzmAIzVZ7 BfwA== MIME-Version: 1.0 Received: by 10.60.32.234 with SMTP id m10mr30216641oei.7.1357335592926; Fri, 04 Jan 2013 13:39:52 -0800 (PST) Received: by 10.76.33.34 with HTTP; Fri, 4 Jan 2013 13:39:52 -0800 (PST) In-Reply-To: References: <1355351150-15942-2-git-send-email-robherring2@gmail.com> Date: Fri, 4 Jan 2013 19:39:52 -0200 Message-ID: Subject: Re: [PATCH 2/2] ARM: disable errata work-arounds which access secure registers From: Fabio Estevam To: Rob Herring X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130104_163955_003964_95E0726B X-CRM114-Status: GOOD ( 13.34 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.178 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Russell King , Mark Langsdorf , tony@atomide.com, Sascha Hauer , Rob Herring , jonathan@jonmasters.org, Shawn Guo , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 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 On Fri, Jan 4, 2013 at 7:29 PM, Fabio Estevam wrote: > On Wed, Dec 12, 2012 at 8:25 PM, Rob Herring wrote: >> From: Rob Herring >> >> In order to support secure and non-secure platforms in multi-platform >> kernels, errata work-arounds that access secure only registers need to >> be disabled. Make all the errata options that fit in this category >> depend on !CONFIG_ARCH_MULTIPLATFORM. >> >> This will effectively remove the errata options as platforms are >> converted over to multi-platform. >> >> Signed-off-by: Rob Herring > > With this patch applied I get: > > $ make imx_v6_v7_defconfig > warning: (SOC_IMX6Q && ARCH_TEGRA_2x_SOC && ARCH_TEGRA_3x_SOC) selects > ARM_ERRATA_751472 which has unmet direct dependencies (CPU_V7 && > !ARCH_MULTIPLATFORM) > warning: (SOC_IMX6Q && ARCH_TEGRA_3x_SOC) selects ARM_ERRATA_743622 > which has unmet direct dependencies (CPU_V7 && !ARCH_MULTIPLATFORM) > warning: (SOC_IMX6Q && ARCH_TEGRA_3x_SOC) selects ARM_ERRATA_743622 > which has unmet direct dependencies (CPU_V7 && !ARCH_MULTIPLATFORM) > warning: (SOC_IMX6Q && ARCH_TEGRA_2x_SOC && ARCH_TEGRA_3x_SOC) selects > ARM_ERRATA_751472 which has unmet direct dependencies (CPU_V7 && > !ARCH_MULTIPLATFORM) > # > # configuration written to .config > # > > Any suggestion? Should we do like this? diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 1ad0d76..b11bba8 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -841,9 +841,9 @@ config SOC_IMX6Q select ARCH_HAS_CPUFREQ select ARCH_HAS_OPP select ARM_CPU_SUSPEND if PM - select ARM_ERRATA_743622 - select ARM_ERRATA_751472 - select ARM_ERRATA_754322 + select ARM_ERRATA_743622 if !ARCH_MULTIPLATFORM + select ARM_ERRATA_751472 if !ARCH_MULTIPLATFORM + select ARM_ERRATA_754322 select ARM_ERRATA_764369 if SMP select ARM_ERRATA_775420 select ARM_GIC