Received: by 10.223.164.202 with SMTP id h10csp2751269wrb; Sun, 12 Nov 2017 17:44:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMblZ9NdmO1dBSDHjDTOg/LHXsPAsXIIEhgyeF+UJxXWbK1QcENslIjz8IIO+/jWqwgtaHRp X-Received: by 10.98.162.26 with SMTP id m26mr8287236pff.0.1510537443282; Sun, 12 Nov 2017 17:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510537443; cv=none; d=google.com; s=arc-20160816; b=aRJv8FD9gvMkK5GvMblrCaLPH9Ep5ePvE3VDQ7J3LMOe9M2bFsC06m6ulBN0uJLfVP nVpJcM+C7hm1zlbUs9cLt0hrinjoQpLHOs8G+CoIQwOe++M+GHwk0iY4YdUpoC6Ld7Md kJkq/Mi2ldB4Hqy3o+VITgCTx9q2cTdGaW6cdSEOkmcApAY7MknMoLMUBHlfx/ABHWVH o/JMPAm5wRdVQD6VGiQdVJXCbC5aHumwrGLLbWEDOhxenvIJXEse1F6fTgT/HyNVnE5+ 3tvXZ32WWz65WIzgyaX9KDn5twGqAqwbmlRbPLwXr3r4ololDEpWK4GIxpgcrxLYxUkx S1Dw== 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=gpJMVeshZfMLlmAxplIr1B6UNzvGQBSsfw1T55oARLo=; b=yfLFec30TBMWEo1WmunW5+DWBlQ2aCZX6EAobYHkvR+OSI9Qp+RB94U3BSheDaHPRT ZiIks3uM8i/3zqWqutP6zcrbAtfOxBOXO4jCezXF6BG37rZHQkDhGhKZdO2sctVG+X9W vUC8QgrfzTf/Fr9mDAWWX9916bXt9WeSn1Qllsam27lhpXa+3nk14BlaMc1cWgDFRFVQ vOYVcumVWTBpd1qpq9o068XayjgyA+qVyumta8FtO7tLztxTayn5URwc9/IAGXAUvOIF JgXcftf9NmvQfYusdpLY9nxRmmqb5aTlovlKHJH9BN7eXAze4v19sCvjK1WBTNi8pJsV Torg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VRJCoOiW; dkim=pass header.i=@codeaurora.org header.s=default header.b=INr1uxLm; 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 w22si13374753plk.381.2017.11.12.17.43.51; Sun, 12 Nov 2017 17:44:03 -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=VRJCoOiW; dkim=pass header.i=@codeaurora.org header.s=default header.b=INr1uxLm; 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 S1751646AbdKMBmp (ORCPT + 87 others); Sun, 12 Nov 2017 20:42:45 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:49010 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbdKMBmn (ORCPT ); Sun, 12 Nov 2017 20:42:43 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1C97A60240; Mon, 13 Nov 2017 01:42:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510537363; bh=k2sKetY6vf53gRX3iy1bCogoTW64g4mp94kfeseKTD8=; h=From:To:Cc:Subject:Date:From; b=VRJCoOiWPJ32Q873F2ag4PuK+9K+koJXKmRTaCzZ+6E5NYQw49atb223esZcE3nG4 vRZb6k+AqD1H3D8f0iuGZ4NrmfBI8FmedMOdIZz+Ex/HZi/n6AGTIuN4Cw7rLf4h1G AMPqh+1IjQyIdk2ZecSw5J/GTSau98KtowO4iODE= 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 6CC2E60240; Mon, 13 Nov 2017 01:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510537362; bh=k2sKetY6vf53gRX3iy1bCogoTW64g4mp94kfeseKTD8=; h=From:To:Cc:Subject:Date:From; b=INr1uxLmUy9hQY3Fbn5MIDk2fCxrgYJst2B213HRBUy6QFB6D3ZbUeOWqk5P7sBxm PBFB8JFTPWtMh+oN77xXsh7w5Qg+GW2fashBjqjzWzJQBtWg5X/uGjhEplAuT0qZ+w 2Blm+Q7BZXpWPmjmF6gMfIB/x1pHCtKom2S/RH14= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6CC2E60240 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 v3 0/2] Implement a software workaround for Falkor erratum 1041 Date: Sun, 12 Nov 2017 19:42:37 -0600 Message-Id: <1510537359-9978-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. To simplify the complexity of a workaround, this patch series issues an ISB whenever SCTLR_ELn[M] is changed to 0 to fix the Falkor erratum 1041. Patch2 from V1 series got dropped to accommodate review comments. Apply the workaround where it's required. Posted wrong the patches in v2. Patch1: - CPUTYPE definitions for Falkor CPU. Patch2: - Actual workaround changes for erratum E1041. 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 | 10 ++++++++++ arch/arm64/include/asm/assembler.h | 18 ++++++++++++++++++ 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, 55 insertions(+), 1 deletion(-) -- 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 1583911738622944046@xxx Mon Nov 13 01:19:04 +0000 2017 X-GM-THRID: 1583911738622944046 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread