Received: by 10.223.164.202 with SMTP id h10csp2312233wrb; Mon, 27 Nov 2017 15:19:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMZXrwAu7dbiPKaTT/9gzLYa+e4//u9+pKyALoeQJyxbFPKkv6hVcs737aTeXYv1mimrCy2R X-Received: by 10.84.238.193 with SMTP id l1mr40385274pln.106.1511824784806; Mon, 27 Nov 2017 15:19:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511824784; cv=none; d=google.com; s=arc-20160816; b=qmg288B/6BmoEdIAA66eqULjR2395VAmzzpArhVl576GVL54PDG9abjad4Oy69LxBD i9bVHaP2tkUQ0hOVZ0Bzyid5nR1YC/x2HxTLOKihQ93rcv5qlXid1M+89BRd4ngiqv9c DCLCFEe+fFsMEBuHWjRarkoQFfVCoAGtX3pj3ivyLnWbldPY7u7j/5czNdgGy6Cfv3y9 dcdrmjDOONOVO1hXpckcHWii74GExOZjqsgdlJpemHC3r7Z8mI4hWksoItkk2GuOHWWW JkoQLCTpQqlClp0av4YyP+tgnedLaLtCxYZXS2Fc8A8Sy6y0wvgFaKuuq1xlPFDdPG2/ ce2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=UmkD8q8Q/OJFgjAb6tKNFfCNsnO12hg9wtey2SpJb14=; b=y9EM16OXptBW015/C/ijyW4xeK9jl3dqVRtSNVZonjjbm7mf2WwgTwvylWe554QrV+ w9tUYcsqAFYta3i1IYPygpH4eKs5aP4F8F1J0c1MZlBD5OWcdptwNnjEm7/n1B/oytGJ w8AJF/U2G+QegD+jtG0F8Y3ZQVBXGJ7HJPKv4lc7uFXRXkOR5sp96628YH0bZn+K6vs2 JxDCvf0Lnu6R1mIwqpNzChoxyC/xoj5vX7+G+heGPK2RNsOJ7sm5f6JpDUIkL+CtWjMM s4Tqgvn3ie7/631pdwaPGdbHCL5pqO6qC0CxS7u/otfannx6tEyT1fWQUjUilg+RuXM+ vS0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=gVtAnCnw; dkim=pass header.i=@codeaurora.org header.s=default header.b=l+nickn8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si6957140ple.682.2017.11.27.15.19.32; Mon, 27 Nov 2017 15:19:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=gVtAnCnw; dkim=pass header.i=@codeaurora.org header.s=default header.b=l+nickn8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752874AbdK0XSU (ORCPT + 78 others); Mon, 27 Nov 2017 18:18:20 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:60772 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752356AbdK0XSR (ORCPT ); Mon, 27 Nov 2017 18:18:17 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 38BB36A282; Mon, 27 Nov 2017 23:18:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1511824697; bh=KV1OJYPA07lPFjDUMJeDQZ/+YTX67qCKsQcnq5H29N0=; h=From:To:Cc:Subject:Date:From; b=gVtAnCnw/lhFlaFDCeAAdw3LSpMoUGnKkpdYTGanW7vgY+hz/utQI3Ql6chdTwvI4 BNPf0W8G9O32MAMhW4PFbHCDDv+zh08sz9dF7P1XCi/4MT56AWlWfS/9X3LS2/zmdL MoWa5M3HcTUfVg66FmDe0XbgC9uJtUVHejOa4+tI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from shankerd-ubuntu.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: shankerd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 760B96A282; Mon, 27 Nov 2017 23:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1511824696; bh=KV1OJYPA07lPFjDUMJeDQZ/+YTX67qCKsQcnq5H29N0=; h=From:To:Cc:Subject:Date:From; b=l+nickn8bdC6D/TvQMsax9FglbQpj6CujhU5UDA13yEGSu2Ideh0yq9/1yCY+HXtC AXRosW4lvJbgpe81QdWqZelFsV/vwYYbTlAz4/pDForqvCZo6MJRvR4J5OeE1aAv4Z fue6yrd66iCRqKwXZJL5Khs00H9xGxv7n/UxJnLk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 760B96A282 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=shankerd@codeaurora.org From: Shanker Donthineni To: Will Deacon , Marc Zyngier , linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , James Morse , Robin Murphy , Ard Biesheuvel , Matt Fleming , Christoffer Dall , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Shanker Donthineni Subject: [PATCH v4 0/2] Implement a software workaround for Falkor erratum 1041 Date: Mon, 27 Nov 2017 17:17:58 -0600 Message-Id: <1511824680-16397-1-git-send-email-shankerd@codeaurora.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Falkor CPU, we’ve discovered a hardware issue which might lead to a kernel crash or the unexpected behavior. The Falkor core may errantly access memory locations on speculative instruction fetches. This may happen whenever MMU translation state, SCTLR_ELn[M] bit is being changed from enabled to disabled for the currently running exception level. To prevent the errant hardware behavior, software must execute an ISB immediately prior to executing the MSR that changes SCTLR_ELn[M] from a value of 1 to 0. These v4 patches are based on 4.15-rc1 and tested on QDF2400 platform. Patch2 from V1 series got dropped to accommodate review comments. Apply the workaround where it's required. Posted wrong the patches in v2. Shanker Donthineni (2): arm64: Define cputype macros for Falkor CPU arm64: Add software workaround for Falkor erratum 1041 Documentation/arm64/silicon-errata.txt | 1 + arch/arm64/Kconfig | 12 +++++++++++- arch/arm64/include/asm/assembler.h | 19 +++++++++++++++++++ arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/include/asm/cputype.h | 2 ++ arch/arm64/kernel/cpu-reset.S | 1 + arch/arm64/kernel/cpu_errata.c | 16 ++++++++++++++++ arch/arm64/kernel/efi-entry.S | 2 ++ arch/arm64/kernel/head.S | 1 + arch/arm64/kernel/relocate_kernel.S | 1 + arch/arm64/kvm/hyp-init.S | 1 + 11 files changed, 57 insertions(+), 2 deletions(-) -- Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project. From 1584466088077754676@xxx Sun Nov 19 04:10:13 +0000 2017 X-GM-THRID: 1583506246254847657 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread