Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1530733ybz; Thu, 16 Apr 2020 10:47:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJjvNRPX+hZXBwxy5AKeAqJ5637NhHW8Jqo3oIZqqfvAS4yg65Rvp+G5T0YY8XhfuQsfg3o X-Received: by 2002:a17:907:11de:: with SMTP id va30mr10824969ejb.121.1587059265926; Thu, 16 Apr 2020 10:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587059265; cv=none; d=google.com; s=arc-20160816; b=ps3twCfCLU0D7ytk4ee+AR+OVFoFRJuPg1Pqak2JRj0bBuFa1zBZPwVSPmFzWcRy4b DJx9ZLbuQaciVgMcI6H+h+wctiUi91pGP0HDwfgddbyygvHZnPxG3d7YTYbgO37RGttP i36UFtuVxtGyPQCEEPiHpgGFZCu4HTNwJHd747/71stp4uSw/4Lrr7r6S7mDXLlIYXmO p0+2ibpjMyQLmLX/b/BbCO8B3dmPA+72hXbRnEbeWk+iEFyBWIWtgPrQ/1KCeUizv6fZ TuvPHuF6FhOu84kbGoNPxm5HZMxPVnS7yxk/1ZpGn7Keh095FCvPjpT7tcRhACHaV2lM xddg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7A6Y5KAXaGCIn0+HeRpjI2MNXp6qBHECJlc4NmMaD84=; b=Y+Grrf2VCG3Cio6oCPEtpHgexszCwm/0jgsN8eJGR33Ur/fv5jckH5ZL9vUjzNQ/X/ rSHscy16LqoKsGkFMCUqT7LDXSDxOxE2y86VXplP21FYVwzB4LIzowcTU8e81tzBM7/I 9cuANKP4E33uInFpBxi8mCdf1nKpS9o+wKEwX5ed5PaCq65CmOhLN22zzGdctju7smBj ATh3yhs7IKlGRRTNCHEtDYEr/JPoYubqRpVTmu5pGqqJzZH5UEZ4/SZRhfFPbdTLTCBc H6dwy876/cvdWpU5hWgpz7zvUmNMDBwq2c3OclPB/khnnhxDymt1Ka8gEJeWGUNZBLJo WR1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si13458031ejk.232.2020.04.16.10.47.22; Thu, 16 Apr 2020 10:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894594AbgDPM4j (ORCPT + 99 others); Thu, 16 Apr 2020 08:56:39 -0400 Received: from foss.arm.com ([217.140.110.172]:60334 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2894377AbgDPM4f (ORCPT ); Thu, 16 Apr 2020 08:56:35 -0400 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 EEF5C1FB; Thu, 16 Apr 2020 05:56:34 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 688BA3F68F; Thu, 16 Apr 2020 05:56:33 -0700 (PDT) Date: Thu, 16 Apr 2020 13:56:31 +0100 From: Mark Rutland To: Geert Uytterhoeven Cc: Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, Arnd Bergmann , linux-arm-msm@vger.kernel.org, Andy Gross , Wei Xu , Bjorn Andersson , Masahiro Yamada , Robert Richter , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] [RFC] arm64: Add dependencies to vendor-specific errata Message-ID: <20200416125630.GF4987@lakrids.cambridge.arm.com> References: <20200416115658.20406-1-geert+renesas@glider.be> <20200416115658.20406-3-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200416115658.20406-3-geert+renesas@glider.be> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Thu, Apr 16, 2020 at 01:56:58PM +0200, Geert Uytterhoeven wrote: > Currently the user is asked about enabling support for each and every > vendor-specific erratum, even when support for the specific platform is > not enabled. > > Fix this by adding platform dependencies to the config options > controlling support for vendor-specific errata. > > Note that FUJITSU_ERRATUM_010001 is left untouched, as no config symbol > exists for the Fujitsu A64FX platform. > > Signed-off-by: Geert Uytterhoeven I'm not su1re that it makes sense to do this in general, becaose the ARCH_* platform symbols are about plactform/SoC support (e.g. pinctrl drivers), and these are (mostly) CPU-local and/or VM-visible. I think that it makes sense for those to be independent because: * future SoCs in the same family might not need the same CPU errata workarounds, and it's arguably just as confusing to have the option there. * It prevents building a minimal VM image with all (non-virtualized) platform support disabled, but all possible (VM-visible) errata options enabled. I do that occassionally for testing/analysis, and I can imagine this is useful for those building images that are only intended to be used in VMs. I think the change to SOCIONEXT_SYNQUACER_PREITS makes sense given that's a platform-level detail. Arguably that should be moved into drivers/irqchip/Kconfig. Thanks, Mark. > --- > arch/arm64/Kconfig | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 8d33d7fed6d8549b..81f52f0b988e6350 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -622,6 +622,8 @@ config ARM64_ERRATUM_1542419 > > If unsure, say Y. > > +if ARCH_THUNDER2 > + > config CAVIUM_ERRATUM_22375 > bool "Cavium erratum 22375, 24313" > default y > @@ -697,6 +699,8 @@ config CAVIUM_TX2_ERRATUM_219 > > If unsure, say Y. > > +endif # ARCH_THUNDER2 > + > config FUJITSU_ERRATUM_010001 > bool "Fujitsu-A64FX erratum E#010001: Undefined fault may occur wrongly" > default y > @@ -718,6 +722,7 @@ config FUJITSU_ERRATUM_010001 > > config HISILICON_ERRATUM_161600802 > bool "Hip07 161600802: Erroneous redistributor VLPI base" > + depends on ARCH_HISI > default y > help > The HiSilicon Hip07 SoC uses the wrong redistributor base > @@ -726,6 +731,8 @@ config HISILICON_ERRATUM_161600802 > > If unsure, say Y. > > +if ARCH_QCOM > + > config QCOM_FALKOR_ERRATUM_1003 > bool "Falkor E1003: Incorrect translation due to ASID change" > default y > @@ -768,8 +775,11 @@ config QCOM_FALKOR_ERRATUM_E1041 > > If unsure, say Y. > > +endif # ARCH_QCOM > + > config SOCIONEXT_SYNQUACER_PREITS > bool "Socionext Synquacer: Workaround for GICv3 pre-ITS" > + depends on ARCH_SYNQUACER > default y > help > Socionext Synquacer SoCs implement a separate h/w block to generate > -- > 2.17.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel