From patchwork Fri Dec 9 18:20:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13070075 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EFFDC4332F for ; Fri, 9 Dec 2022 18:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=SxDAOp2G9LUGxgNgpxqeh0mLu9ZyFByNllf5REI5oBs=; b=g6Yk5G+r/5sbz3 NwHg8r99CX1BhXREe0ETW9a0FRlsnjRRBohtkbicg9HPzJ+zH/B5ou2Ul1a0LxAHvPq/dcu4NPC3m eV+36NKK0fw6cq8vCXLz/gL2Bc7dxVLX0/yt2PbYQzT0QGc1GCUqIz87YI09K8M8cfrCy+0+9e0Pa 4C8TBe5gjTbv/kvwwHRcRh58O/UlxJxAO1Ray5qR6cNJMKX8OzIyt5f/z9yhbRdM3EFxuxr7e7V/f xQ6tY/eYYgo3IceBu6/+rmcG6+/I3+b7UQCUi47ReGdkwvxfJRvdjUoIYHEKLwwVQgu5Si6k+UKWZ kYkq5ZtIIs8LfqkiJOeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3hzC-00AI7K-SX; Fri, 09 Dec 2022 18:20:38 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3hzA-00AI4t-BO for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2022 18:20:37 +0000 Received: from jupiter.universe (dyndsl-091-096-062-166.ewe-ip-backbone.de [91.96.62.166]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id C87716602C09; Fri, 9 Dec 2022 18:20:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1670610031; bh=dUh/Ph4fvUhmzsNP/St5yPq0TjbFbpyNp2w94uqPWdk=; h=From:To:Cc:Subject:Date:From; b=i3trOqmhJEtirX/bwAaFKM1+5BzRDoER59nrYIU/ihIvVpzE5hZ6gag1eapcVNy3P hrVr9PoKNOYUF8POuElFPqtHVF8t+xDgnfcSE2cbAfmapBBe/jsYWLX80nUvvKKTsq x34w7oUBKHUHscNOlE/2ecvzzeciW4/cqMhDIGFwYVKf0214zClY4s2x6+HrWWJOHO 7OF4TelMOKzjEWeq+fWLgVDPGGx3yLeEeOLc0gT5sVcelmZcJQYh98OTPhAhBFBm6a QR740xzBO6+WFUkazE27cVeJydd1wNu5sHfUm3I2DsFNWqG2jGyL1S4tPVplBlnYyJ LiLHpp+fO9vEQ== Received: by jupiter.universe (Postfix, from userid 1000) id 09EB44829FD; Fri, 9 Dec 2022 19:20:30 +0100 (CET) From: Sebastian Reichel To: Russell King , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [RFC 1/1] ARM: Drop !ARCH_MULTIPLATFORM dependency from Cortex A8/9 erratas Date: Fri, 9 Dec 2022 19:20:00 +0100 Message-Id: <20221209182000.549179-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_102036_618506_4E647600 X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org All the erratas for more recent CPUs (Cortex A15/A12/A17) do not require !ARCH_MULTIPLATFORM, since there is runtime detection of effected CPUs in arch/arm/mm/proc-v7.S. Errata config options for the older Cortex A8/A9 CPUs have the !ARCH_MULTIPLATFORM dependency, but the CPUs are also runtime detected. Since there is runtime detection, it should be fine to enable the erratas for a multi platform kernel. Signed-off-by: Sebastian Reichel --- For me the most likely explanation that this has not yet happened is me missing an important detail, so I sent it as RFC. If you point it out I will try to document the reason. --- arch/arm/Kconfig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a08c9d092a33..fafb02e38507 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -647,7 +647,6 @@ config ARM_ERRATA_430973 config ARM_ERRATA_458693 bool "ARM errata: Processor deadlock when a false hazard is created" depends on CPU_V7 - depends on !ARCH_MULTIPLATFORM help This option enables the workaround for the 458693 Cortex-A8 (r2p0) erratum. For very specific sequences of memory operations, it is @@ -661,7 +660,6 @@ config ARM_ERRATA_458693 config ARM_ERRATA_460075 bool "ARM errata: Data written to the L2 cache can be overwritten with stale data" depends on CPU_V7 - depends on !ARCH_MULTIPLATFORM help This option enables the workaround for the 460075 Cortex-A8 (r2p0) erratum. Any asynchronous access to the L2 cache may encounter a @@ -674,7 +672,6 @@ config ARM_ERRATA_460075 config ARM_ERRATA_742230 bool "ARM errata: DMB operation may be faulty" depends on CPU_V7 && SMP - depends on !ARCH_MULTIPLATFORM help This option enables the workaround for the 742230 Cortex-A9 (r1p0..r2p2) erratum. Under rare circumstances, a DMB instruction @@ -687,7 +684,6 @@ config ARM_ERRATA_742230 config ARM_ERRATA_742231 bool "ARM errata: Incorrect hazard handling in the SCU may lead to data corruption" depends on CPU_V7 && SMP - depends on !ARCH_MULTIPLATFORM help This option enables the workaround for the 742231 Cortex-A9 (r2p0..r2p2) erratum. Under certain conditions, specific to the @@ -725,7 +721,6 @@ config ARM_ERRATA_720789 config ARM_ERRATA_743622 bool "ARM errata: Faulty hazard checking in the Store Buffer may lead to data corruption" depends on CPU_V7 - depends on !ARCH_MULTIPLATFORM help This option enables the workaround for the 743622 Cortex-A9 (r2p*) erratum. Under very rare conditions, a faulty @@ -739,7 +734,6 @@ config ARM_ERRATA_743622 config ARM_ERRATA_751472 bool "ARM errata: Interrupted ICIALLUIS may prevent completion of broadcasted operation" depends on CPU_V7 - depends on !ARCH_MULTIPLATFORM help This option enables the workaround for the 751472 Cortex-A9 (prior to r3p0) erratum. An interrupted ICIALLUIS operation may prevent the