From patchwork Thu Oct 27 02:39:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 750 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp603566wru; Wed, 26 Oct 2022 19:48:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79ZJSxG9e8sBXyvRfAO0ZgFbhVjnvo0rQgmAF4lXf9vsPFzC+mWSR4RxBaFsMRyOBH9U20 X-Received: by 2002:a17:907:75fc:b0:7aa:e0b3:270 with SMTP id jz28-20020a17090775fc00b007aae0b30270mr13261521ejc.680.1666838911409; Wed, 26 Oct 2022 19:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666838911; cv=none; d=google.com; s=arc-20160816; b=KVy2tk+KczzquHfXwD6UVUUGuNkXM0opB+zE4Psh/EMx8Eiuu7JvtRpbmSz5jgQhaj GUV4XqkCji+wTKyDofoq3OhS593SmHD8fLcFSIZdydmi0QX7te9YJVF6zLjZ9hOoQG+t qc4nvZMpoV5eOVAU1qqsOdRfpbAGCkL1ypicJyIMeAT0kQ0KQgiP8+O5yHMIypzw8IZe gLHX0bAtVLOpsirPaf7rFipdw+vqElGg3t9yfSyOUvaREvRe5WyLIl3/NamVCMrVP5Aw /CZyaCZ4l6tt25fA0n1G3yyvjT/PXjLn0KxtRz2xZkro+sWoTiDqU3NSyqaUUZqx3PHA 14ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gT9jjFX7SWwOD7N0EL+NmtPdSn2qASRj7Et+ZL2kruE=; b=dV3S2NSgJGwx0h9R3KafOJ0L1beVJ72DzfpIBdWsbCS7XR/+4ihz1DhXQ8ku4o/smY nMJVxdSCPlAGiIN/413fTC/RAlEUiJCrAwcIumarfsGGsjf5+TiQ62+OP0xMrVEQpAw/ rPPO0qGsoxq9uipmu/paq+7mR+yzZBvFjyjnC+XLc+lgWVnuVCB7v9GlMsBVLLLdpCUK jbF3683dpjwlZjEIo/s2DlHCaREVkpRjsWRhHXouLbuT4vhUsTElXw3J9WtXMsFReR2H Iw3FMg8Jtq72M/sbg6nabmrqBy8HMkv0Rtx8fUNHaDr/oXojhlRHY/eQpYq2S18i/LBR UDhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a05640251d100b0045c31d9643bsi515913edd.2.2022.10.26.19.48.00; Wed, 26 Oct 2022 19:48:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233672AbiJ0Cjk (ORCPT + 99 others); Wed, 26 Oct 2022 22:39:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233554AbiJ0Cji (ORCPT ); Wed, 26 Oct 2022 22:39:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 237ADB3F; Wed, 26 Oct 2022 19:39:29 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9E2B623A; Wed, 26 Oct 2022 19:39:35 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BC7363F792; Wed, 26 Oct 2022 19:39:25 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org Cc: Anshuman Khandual , Suzuki K Poulose , James Morse , Jonathan Corbet , Mark Rutland , linux-doc@vger.kernel.org Subject: [PATCH 0/2] arm64: errata: Workaround Cortex-A715 errata #2645198 Date: Thu, 27 Oct 2022 08:09:13 +0530 Message-Id: <20221027023915.1318100-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747807278082304027?= X-GMAIL-MSGID: =?utf-8?q?1747807278082304027?= This series adds Cortex-A715 partnumber and workarounds the errata #2645198 which gets triggered when an userspace page mapping permission changes from executable to non-executable, corrupting both ESR_EL1/FAR_EL1 registers when an instruction abort is taken. This series applies on v6.1-rc1. The errata description can be found here. https://developer.arm.com/documentation/SDEN2148827/1000/?lang=en Cc: Catalin Marinas Cc: Will Deacon Cc: Suzuki K Poulose Cc: James Morse Cc: Jonathan Corbet Cc: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-doc@vger.kernel.org Anshuman Khandual (2): arm64: Add Cortex-715 CPU part definition arm64: errata: Workaround possible Cortex-A715 [ESR|FAR]_ELx corruption Documentation/arm64/silicon-errata.rst | 2 ++ arch/arm64/Kconfig | 16 +++++++++++ arch/arm64/include/asm/cputype.h | 2 ++ arch/arm64/include/asm/hugetlb.h | 9 +++++++ arch/arm64/include/asm/pgtable.h | 24 +++++++++++++++++ arch/arm64/kernel/cpu_errata.c | 7 +++++ arch/arm64/mm/hugetlbpage.c | 37 ++++++++++++++++++++++++++ arch/arm64/tools/cpucaps | 1 + 8 files changed, 98 insertions(+)