From patchwork Tue Jun 12 20:24:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 138377 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5813365lji; Tue, 12 Jun 2018 13:24:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ7WoEF1SREqWV5WBauxKlbI7FgjYEP5BxFjzrLs3AG9EEzPJTvVcqRBttd9TzI5l4Oi33x X-Received: by 2002:adf:fa07:: with SMTP id m7-v6mr1861226wrr.228.1528835082885; Tue, 12 Jun 2018 13:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528835082; cv=none; d=google.com; s=arc-20160816; b=PUTcLqvrBWRw9klRq88gxo+UhgAQHoZZn5ICvPizPLYm+AgD+kMpLXxZwPI24CUkhY IVIbfpYDaEv84bPVGmHQFU/k788mAZZLWKZx1rg3D1JZyEcb9HN0szxnQLvNpsR55Nwo dHlRsDOGCFJ0jYJ0j1U7n7KHZh9E2oCOQV2mK2h3fj7Bng6NWZRs6M4sAU/l9LP6FMCM neETXnFOfoEGvmE9MDz1HigzzSetB5TsZ4U8favN7DIeqO6r1rXT2l+kV/B97j/9QOMv deUHGPdzutliGsRr1rVV/BluziLc9Jfl/v09ZW90N+i0S0Ms4KfGij7PedWcoxZ+lHoa 2WYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=YYWC9mdgkIaJdsSAprPaY+mO2rVdHM/+gCOVjZvuZg4=; b=UDyx8n4Ohg0yLUxYPcrKKtSYcivcJEMXLkVSC22K/h4IojgSLkhyeZ7OOmpTxISjZr Yz8OJSPyjJTNIx5hSvtrlu7jr6Vw/hpWLpmF5tJi5sywp4gZcqmjE7YNGtJ+tWTkOCY3 drybSW3ATLz7dPRNBqkoljtdcvZ81g5bduL3RP55ak0XCL86FobZf4aEDtl2E200R++Z ookKZSf+Fv4MyswN1d+MPwiktJ3ZD3mz4pDmNEGKG3BTBdaZ10pgqB+hQL00lIZaoqej nEh98jdZOm/h8XnNciyDb2I+H7fxmXBPtvXm09CkMmKD4CE9kMs0gzWFMcF5+UHxA+Ne 738A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=jokf9Jg9; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id t29-v6si987041eda.313.2018.06.12.13.24.42; Tue, 12 Jun 2018 13:24:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=jokf9Jg9; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 72BD6C21E02; Tue, 12 Jun 2018 20:24:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 15631C21C27; Tue, 12 Jun 2018 20:24:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E0EF5C21CB1; Tue, 12 Jun 2018 20:24:36 +0000 (UTC) Received: from fllnx209.ext.ti.com (fllnx209.ext.ti.com [198.47.19.16]) by lists.denx.de (Postfix) with ESMTPS id D742BC21C6A for ; Tue, 12 Jun 2018 20:24:34 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5CKODWA026501; Tue, 12 Jun 2018 15:24:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528835053; bh=orUcB230++Y4ahyQQm1w3EahuBTT14Dr4Q9yeZcz5Fo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jokf9Jg98H/qOJmmtM1Cz93kmE04mnzznXerkm6GoSEivyTYkUQ33iTwTlkct3aZM TRa4XzsSrvUPjgI+oMbD5IeZEvSGqd/eGRM+5rL3e4zr2PMHfLySVHNhAVQIzR+AXD uagms+YRm+Vd3rfC8LYSs7zGNR4PYR1nAB9hrEdc= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5CKODJn008047; Tue, 12 Jun 2018 15:24:13 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 12 Jun 2018 15:24:13 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 12 Jun 2018 15:24:13 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5CKODsS004393; Tue, 12 Jun 2018 15:24:13 -0500 From: Nishanth Menon To: Tom Rini , Russell King , Marc Zyngier , Catalin Marinas , Will Deacon , Tony Lindgren Date: Tue, 12 Jun 2018 15:24:11 -0500 Message-ID: <20180612202411.29798-5-nm@ti.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180612202411.29798-1-nm@ti.com> References: <20180612202411.29798-1-nm@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Ard Biesheuvel , Andre Przywara , U-Boot-Denx , Robin Murphy , linux-arm-kernel@lists.infradead.org Subject: [U-Boot] [PATCH 4/4] ARM: mach-omap2: omap3/am335x: Enable ACR::IBE on Cortex-A8 SoCs for CVE-2017-5715 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Enable CVE-2017-5715 option to set the IBE bit. This enables kernel workarounds necessary for the said CVE. With this enabled, Linux reports: CPU0: Spectre v2: using BPIALL workaround This workaround may need to be re-applied in OS environment around low power transition resume states where context of ACR would be lost (off-mode etc). Signed-off-by: Nishanth Menon --- arch/arm/mach-omap2/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 77820cc8d1e4..f4babc8d2600 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -10,6 +10,7 @@ config OMAP34XX select ARM_ERRATA_454179 select ARM_ERRATA_621766 select ARM_ERRATA_725233 + select ARM_CORTEX_A8_CVE_2017_5715 select USE_TINY_PRINTF imply NAND_OMAP_GPMC imply SPL_EXT_SUPPORT @@ -116,6 +117,7 @@ config AM43XX config AM33XX bool "AM33XX SoC" select SPECIFY_CONSOLE_INDEX + select ARM_CORTEX_A8_CVE_2017_5715 imply NAND_OMAP_ELM imply NAND_OMAP_GPMC imply SPL_NAND_AM33XX_BCH