Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6196068imu; Wed, 30 Jan 2019 10:24:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN6QEHFCR1bYCR2MyMlT4+Y0uqeTNlbHNOAu7mktNS5h5kFqrS8kjNNnMoA1EEm56fI0DtgN X-Received: by 2002:a63:e302:: with SMTP id f2mr28811733pgh.320.1548872640026; Wed, 30 Jan 2019 10:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548872639; cv=none; d=google.com; s=arc-20160816; b=wHtxA1shzQMZXqJJypvfBvih/4mdDOiiUMW0UvfdVo5WtkV6e3I6f+LhTBFOKqhHKH Z+92ja//WvtvWX+B3XQ6DiS39bf9YZfVtIFjZHTYnJ3Gn6gN1+gyg2yyBIS6JpaLMq25 ak0Fbes/MUU5H9IGO59Ubs67PYtUD2WS/vdkLNdwF9b/9FXWnSB0FonDZ6kLgEH4MfBB day/5n7hvUCGR3tr8piDa2WYVJD9NcgRGnY7dPABvCjBLO30/YOExRdnsPP9mDSFxRwu FpZmozI5zXhjXzjPGn0W1KPgfho2N0L4543aK8TLXIB5hJBf19vxwydvR7opXcok7cPk Fq1A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=riaRJ2Y4hwof3ODAu+FEh5aqVq3IXGwtmSFPg1eKy9M=; b=D+xFijtWiriOXUpHV55Nmm+jVwtWwZFwctXp1sgZdjZNZBaFE5OxRHUyunYiUasEOh +bnY2CVpX13YWUZZwo6X7BrUAlAgxJYIzPaORHFPEUFQrEmrLaVU2wWAhlC6Py4g/ovx 5k9pMgKTtrS+ahB/aVBidORRIPLPFZoQ/QsZn0utFpk7iVVs/syDX588FI8CYsiZGio+ ZcE+d+shFgfvXgboiCUpzqI/9LGFwJAThoy85BDV0WecZ6ExK+JDTRDVZPtvokjNYJ7Z lkG1Ubd87yHyM7E47PLD4kA+Hhgx2z9xY8yWaSgh2Bbs9vxHq2bfB+ETLgdXi9lMUCmK BkxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j21si2027905pfn.277.2019.01.30.10.23.44; Wed, 30 Jan 2019 10:23:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733037AbfA3SVx (ORCPT + 99 others); Wed, 30 Jan 2019 13:21:53 -0500 Received: from foss.arm.com ([217.140.101.70]:59686 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732830AbfA3SVx (ORCPT ); Wed, 30 Jan 2019 13:21:53 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 65E2B80D; Wed, 30 Jan 2019 10:21:52 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 56AA63F557; Wed, 30 Jan 2019 10:21:51 -0800 (PST) Date: Wed, 30 Jan 2019 18:21:48 +0000 From: Will Deacon To: Anders Roxell Cc: Lucas Stach , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: Kconfig.platforms: fix warning unmet direct dependencies Message-ID: <20190130182148.GO18558@fuggles.cambridge.arm.com> References: <20190115191839.13823-1-anders.roxell@linaro.org> <20190125143215.GE25901@arrakis.emea.arm.com> <1548431829.28802.50.camel@pengutronix.de> <20190130084321.GB3369@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190130084321.GB3369@localhost.localdomain> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 30, 2019 at 09:43:21AM +0100, Anders Roxell wrote: > On 2019-01-25 16:57, Lucas Stach wrote: > > Am Freitag, den 25.01.2019, 14:32 +0000 schrieb Catalin Marinas: > > > On Tue, Jan 15, 2019 at 08:18:39PM +0100, Anders Roxell wrote: > > > > When ARCH_MXC get enabled, ARM64_ERRATUM_845719 will be selected and > > > > this warning will happen when COMPAT isn't set. > > > > > > > > WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 > > > > ? Depends on [n]: COMPAT [=n] > > > > ? Selected by [y]: > > > > ? - ARCH_MXC [=y] > > > > > > > > Rework to add 'if COMPAT' before ARM64_ERRATUM_845719 gets selected, > > > > since ARM64_ERRATUM_845719 depends on COMPAT. > > > > > > > > > > Signed-off-by: Anders Roxell > > > > --- > > > > ?arch/arm64/Kconfig.platforms | 2 +- > > > > ?1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms > > > > index 251ecf34cb02..d4faca775d9c 100644 > > > > --- a/arch/arm64/Kconfig.platforms > > > > +++ b/arch/arm64/Kconfig.platforms > > > > @@ -145,7 +145,7 @@ config ARCH_MVEBU > > > > ?config ARCH_MXC > > > > > > ? bool "ARMv8 based NXP i.MX SoC family" > > > > > > ? select ARM64_ERRATUM_843419 > > > > > > - select ARM64_ERRATUM_845719 > > > > > > + select ARM64_ERRATUM_845719 if COMPAT > > > > > > ? help > > > > > > ? ??This enables support for the ARMv8 based SoCs in the > > > > ? ??NXP i.MX family. > > > > > > Actually, do we need to select the errata workarounds explicitly? That > > > seems to be the only case where we do it (commit 930507c18304, "arm64: > > > add basic Kconfig symbols for i.MX8"). They are default y, so we > > > shouldn't need to force them on. > > > > This is based on past experience. We've had a lot of cases were people > > did not enable the necessary CPU errata workaround, which then usually > > lead to very hard to debug system failures. It is on our list of things > > to look out for now, but I would feel much better if there is just no > > chance for a user to misconfigure the kernel in this way. > > > > Would a better approach be to remove the 'depends on COMPAT' in the > Kconfig and move it into the src files instead see below. I'd prefer to keep the dependency here, because the erratum is not applicable for native (64-bit) userspace. I think your original patch is fine, so: Acked-by: Will Deacon Will