Message ID | 20221113012645.190301-1-anshuman.khandual@arm.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1496900wru; Sat, 12 Nov 2022 17:27:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Pb8CjyCvAVyA1C6oG/JZi7FYpVu3Ib5+Ri7eUkLxkV+JBYwmXCumBWZktmSUtXQ7iIUXa X-Received: by 2002:a63:7f1c:0:b0:476:7742:de19 with SMTP id a28-20020a637f1c000000b004767742de19mr1666247pgd.343.1668302851071; Sat, 12 Nov 2022 17:27:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668302851; cv=none; d=google.com; s=arc-20160816; b=KJ6J8V4GEc3rFA70hGXLSI08v1CjBfSR6z6QzqR3lr1fYMpIFICl3tUPlOeP75wBBC I8/vALSiI+ZrWqQCkvhxtii1yxNdb3mTOku6Ehthjg6KlAOjTbY6E17X+43o4RKKu9mm nGWB8BOou8D65BMx9BoGc+13dGA0LpHXvPvgebWtWK1dDSMrCTKN9b0h8FVl3/Y7cPq4 YHmX2ATebA8FuDtMz2Sznn5aYxxiBlEnRXc0BtjA2vTLgCms0Y7cPnIGWr6ifybfRZwC 38M1iiSctSu+FpCqHbpmeOSo0H1bxdoMI5n4g/AwXOMtCPqWkxU8jLyU9gGfApeiSn3F Knpg== 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=CBRRhXL3+kWGgpAs4y4z5CDKCQlL7QEFuZDE5dgnXtY=; b=MuGwbcnslWE7vN9Gng90+iqoQkqkXFk4PZuTM5KKxIEPaiwYKjAlkO8gBKof5syh42 qkD27ZgejI4WNevY4QJvdTIyyd38pUEMzyjzdQoyNFLGVHkteneSrDaGHHN4lCONMG1O kcEgvBq9ob80LGvtqBihjp5u1eDTp4HaG7toyCWaGl7tMUrrREN0C2m8Ci58539lYZVU T1Y+cYxJsjiurZpKp8bl4p0sNzBepr9LuS8PNr2SrcJR3e7wYmGXYptpv68F1mURskSz rxBsxgCv/KD8Il9v1deAFogy2lH7f4vuVR+1KPH49tqrX7UEfcMNG3IcIVdei4fvgmrI yatA== 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 u14-20020a056a00124e00b005615ef4cfccsi6713307pfi.185.2022.11.12.17.27.18; Sat, 12 Nov 2022 17:27:31 -0800 (PST) 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 S234627AbiKMB1L (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Sat, 12 Nov 2022 20:27:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbiKMB1K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 12 Nov 2022 20:27:10 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 376DA60C9; Sat, 12 Nov 2022 17:27:06 -0800 (PST) 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 B011323A; Sat, 12 Nov 2022 17:27:11 -0800 (PST) Received: from a077893.arm.com (unknown [10.163.40.190]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C05193F73D; Sat, 12 Nov 2022 17:27:01 -0800 (PST) From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org Cc: Anshuman Khandual <anshuman.khandual@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, James Morse <james.morse@arm.com>, Jonathan Corbet <corbet@lwn.net>, Mark Rutland <mark.rutland@arm.com>, linux-doc@vger.kernel.org Subject: [PATCH V2 0/2] arm64: errata: Workaround Cortex-A715 errata #2645198 Date: Sun, 13 Nov 2022 06:56:43 +0530 Message-Id: <20221113012645.190301-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749342329995893199?= X-GMAIL-MSGID: =?utf-8?q?1749342329995893199?= |
Series |
arm64: errata: Workaround Cortex-A715 errata #2645198
|
|
Message
Anshuman Khandual
Nov. 13, 2022, 1:26 a.m. UTC
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-rc4. The errata description can be found here. https://developer.arm.com/documentation/SDEN2148827/1000/?lang=en Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: James Morse <james.morse@arm.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-doc@vger.kernel.org Changes in V2: - Added ptep_modify_prot_start/commit declaration into [asm/pgtable.h] - Moved ptep_modify_prot_start/commit definitions into [arch/arm64/mm/mmu.c] - Above code movements solved ptep_clear_flush() related build dependency - Replaced __flush_tlb_range() with ptep_clear_flush()/huge_ptep_clear_flush() Changes in V1: https://lore.kernel.org/all/20221027023915.1318100-1-anshuman.khandual@arm.com/ 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 | 9 +++++++++ arch/arm64/kernel/cpu_errata.c | 7 +++++++ arch/arm64/mm/hugetlbpage.c | 21 +++++++++++++++++++++ arch/arm64/mm/mmu.c | 21 +++++++++++++++++++++ arch/arm64/tools/cpucaps | 1 + 9 files changed, 88 insertions(+)