From mboxrd@z Thu Jan 1 00:00:00 1970 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 B3C3DC4332F for ; Fri, 9 Dec 2022 18:46:44 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1+/Uv/Yahh+602WNicGYoMoa7mXUkvVL+fHjel/wCSk=; b=i4ht+AKJV1VVMC fDHHbcMWUjrlZzJ6NhOpZpMf32CLSLWE6hQ+Iw33OAqOvBI4sZI1e7hvnI8pWT6N37XxXcMkykfLc j8T4uAh0xwUkbQf+VQ86RdJtHx26RAhdtpNPJIFkklFImmraOuF4j15/jDKg6tPaWo7lP9khy8tlV iMODyzj6lTRYC5HA7lfMLEhE81C2AZZlkTaJC7ryMUpbE3l7nkO1VBSR+RBC5c3yoy9/EGxJqfhWn JkwXeVZ9E9xj/kJ24idlaJaU4RMWqGX2R9tdvcsrDLr5JM7Z1qZSpdOFIzre7fqtIWJGICTQcVbJM KYWNruJ/F8IyY5Nx+DpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3iNV-00ARBo-S7; Fri, 09 Dec 2022 18:45:45 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3iNS-00ARAC-Qv for linux-arm-kernel@lists.infradead.org; Fri, 09 Dec 2022 18:45:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ULuEUQZqBWYd6esr1h4MJOw0tF20vmGw9ViKBcGzSIc=; b=AXjym830w4YGpbMUvNVy3yF6ls WSkBOp4Ote4KomL5RrpGrzElxtkWZAwoZwvl8W0aakZVsAfvQQGdlwRwgKT6xUqdcvUlPKLMy36MD VQWKvLirNR9+QcVJkIUZoKDXuOx98NXS7TQ7MNGzeWY4QzomgHipb2B20BhuUJqf5sN8xJPFNZ0IW 1G8gU+cJyugj2AyZfnD5jo1W+7aiJNolQhiGe8ji715bPKi+kPsrsfSsuWk6+0CZsEf+qhgmS5nOo OLlwaLqIBq2C1l/aYPYc4hBci0nmatZWta746FFNbi5gt5PTcakWxyiwScN1RBq3MgKHqOZ8WoGTI r8DYV5gQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35644) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p3iNM-0003MY-8i; Fri, 09 Dec 2022 18:45:36 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1p3iNK-0002ru-Um; Fri, 09 Dec 2022 18:45:34 +0000 Date: Fri, 9 Dec 2022 18:45:34 +0000 From: "Russell King (Oracle)" To: Sebastian Reichel Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [RFC 1/1] ARM: Drop !ARCH_MULTIPLATFORM dependency from Cortex A8/9 erratas Message-ID: References: <20221209182000.549179-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221209182000.549179-1-sebastian.reichel@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221209_104543_171253_AF59D171 X-CRM114-Status: GOOD ( 14.89 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 09, 2022 at 07:20:00PM +0100, Sebastian Reichel wrote: > 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. IIRC, the reason these are marked with !ARCH_MULTIPLATFORM is for when the kernel is running in the non-secure world - the accessed registers may prevent platforms booting. However, it was a long time ago and I don't remember clearly now. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80735C4332F for ; Fri, 9 Dec 2022 18:45:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbiLISpr (ORCPT ); Fri, 9 Dec 2022 13:45:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiLISpp (ORCPT ); Fri, 9 Dec 2022 13:45:45 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 184DDA56D1 for ; Fri, 9 Dec 2022 10:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ULuEUQZqBWYd6esr1h4MJOw0tF20vmGw9ViKBcGzSIc=; b=AXjym830w4YGpbMUvNVy3yF6ls WSkBOp4Ote4KomL5RrpGrzElxtkWZAwoZwvl8W0aakZVsAfvQQGdlwRwgKT6xUqdcvUlPKLMy36MD VQWKvLirNR9+QcVJkIUZoKDXuOx98NXS7TQ7MNGzeWY4QzomgHipb2B20BhuUJqf5sN8xJPFNZ0IW 1G8gU+cJyugj2AyZfnD5jo1W+7aiJNolQhiGe8ji715bPKi+kPsrsfSsuWk6+0CZsEf+qhgmS5nOo OLlwaLqIBq2C1l/aYPYc4hBci0nmatZWta746FFNbi5gt5PTcakWxyiwScN1RBq3MgKHqOZ8WoGTI r8DYV5gQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35644) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p3iNM-0003MY-8i; Fri, 09 Dec 2022 18:45:36 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1p3iNK-0002ru-Um; Fri, 09 Dec 2022 18:45:34 +0000 Date: Fri, 9 Dec 2022 18:45:34 +0000 From: "Russell King (Oracle)" To: Sebastian Reichel Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [RFC 1/1] ARM: Drop !ARCH_MULTIPLATFORM dependency from Cortex A8/9 erratas Message-ID: References: <20221209182000.549179-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221209182000.549179-1-sebastian.reichel@collabora.com> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 09, 2022 at 07:20:00PM +0100, Sebastian Reichel wrote: > 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. IIRC, the reason these are marked with !ARCH_MULTIPLATFORM is for when the kernel is running in the non-secure world - the accessed registers may prevent platforms booting. However, it was a long time ago and I don't remember clearly now. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!