Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4568497rwl; Tue, 28 Mar 2023 08:30:21 -0700 (PDT) X-Google-Smtp-Source: AKy350Y6r8dr10unElRoKBMPdY6ZdTU6wyRtxRW8rJFcervPi46jTz1xepXbnc1BHUUJeN+IXdtz X-Received: by 2002:a17:902:cec1:b0:1a1:a4eb:54de with SMTP id d1-20020a170902cec100b001a1a4eb54demr20933139plg.26.1680017421630; Tue, 28 Mar 2023 08:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680017421; cv=none; d=google.com; s=arc-20160816; b=izo7eS9LgnTgOJ92zn3apgFPaiox6RU2r5PuUhjKVuYb3/i441hzQehy1JUCJ9aBgI tMHIuOaKqS76P9CufGm2pfTpSai7wphc7F2YZra6G/8aaklypMVl5uffU7h7gTh38qj1 whACvOe8DjYVplEfPsU2eegZXdCGFtAfnVT3/mHDCOluDK6rMX+9PyOKV+KgFnljnhav YBqblP0LWmq/AZgPGxEPtGKMZ2x/liU83hzwyrJKbULa8MqIaoZIv350O4nNnoY4pU8J ZaH0HSZx4S56FwOOorio4nkbo/H9aGpV3CSOG25CgwX42z+YUSU/UrF5bsRLxhTjPW5o FPIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=W6BMaNQvIFUC50wUdcwwKXKyyvMeRPTNyzeSOvMAUow=; b=KXD8YDEmiV/rqHbJyarZyf+D8OizDVPK1zA5vgSeg1jyCU/+CaJtqc7uWavKXXmJXA ute332yWwT7wSF1a0acc10IkojIMJCWTyuFAMFzMGZ6/qpoGTdVRbSAdPb5cPYb7oW7a VlUeJcanuPaSEmP1vt9lSRYG0tB69RyU1uAPeecagheOYdCJyWuYgC6R2VI8ZjDfz9Ow phbqFMtL+szROKGUpenOjSlKEx3LXpR2YiRZ3Cs7jWCYMsJ8Hk7DgZfAh2x9ODJ8Myba Ox4h9/E0/UxCo3Co3KHUM1DRc0FhhfKA50HeZ8xtqyud9pV6oSef34uVOtA0mkczH+BQ fpng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UTRUTthe; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l187-20020a6391c4000000b0050befeed875si30042537pge.32.2023.03.28.08.30.08; Tue, 28 Mar 2023 08:30:21 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UTRUTthe; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233919AbjC1PYY (ORCPT + 99 others); Tue, 28 Mar 2023 11:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232672AbjC1PYC (ORCPT ); Tue, 28 Mar 2023 11:24:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06DADEFA2 for ; Tue, 28 Mar 2023 08:22:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6D4046182C for ; Tue, 28 Mar 2023 15:21:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61CD0C4339C; Tue, 28 Mar 2023 15:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680016902; bh=i3OkFYn+CvmNVhVlFuKMt5831golXkFfwanYc2N5usY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UTRUTtheg3ul7TFIUZ2bUACT6mMO4m2jNNA8dJNsFdEOYw3guRTO9SMsVWYvsAY3h EhoYVun4Z7KOwxgYLpVZ2guqVBHuO3HOmujEehnh8rNAT0npfoh0Sav0Vr5z+tyr/M 39mQciKni4eiIwKhS7OUB9A/BrRmRmGU73J7eYMkWPSDFMwDWNNHzDKaFglqo9rVkH mgl9O65iX1QyJ8ivozahD4YKlnfUmQrz8A7NELtC9nJtteF0T/Qa1oLTI3SebGQhoa q3wGgKqG4koRsPL++lYpA19H7Jzd+4rApL2oihpzZoPXsXTumvaFg6MCI2LWW7mAOr 15AVt+voYRK5w== Date: Tue, 28 Mar 2023 16:21:37 +0100 From: Will Deacon To: Arnd Bergmann Cc: Zaid Al-Bassam , Marc Zyngier , Arnd Bergmann , Russell King , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: mach-virt: fix PMUv3 dependendency Message-ID: <20230328152136.GA1844@willie-the-truck> References: <20230328144405.1527555-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328144405.1527555-1-arnd@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Tue, Mar 28, 2023 at 04:43:44PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Selecting a ARM_PMUV3 from a platform option breaks the build > when CONFIG_ARM_PMU is not already set: > > WARNING: unmet direct dependencies detected for ARM_PMUV3 > Depends on [n]: PERF_EVENTS [=y] && HW_PERF_EVENTS [=n] && (ARM [=y] && CPU_V7 [=y] || ARM64) > Selected by [y]: > - ARCH_VIRT [=y] && ARCH_MULTI_V7 [=y] && PERF_EVENTS [=y] > > drivers/perf/arm_pmuv3.c:48:9: error: 'PERF_MAP_ALL_UNSUPPORTED' undeclared here (not in a function) > 48 | PERF_MAP_ALL_UNSUPPORTED, > | ^~~~~~~~~~~~~~~~~~~~~~~~ > drivers/perf/arm_pmuv3.c:63:9: error: 'PERF_CACHE_MAP_ALL_UNSUPPORTED' undeclared here (not in a function) > 63 | PERF_CACHE_MAP_ALL_UNSUPPORTED, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/perf/arm_pmuv3.c:65:10: error: implicit declaration of function 'C' [-Werror=implicit-function-declaration] > 65 | [C(L1D)][C(OP_READ)][C(RESULT_ACCESS)] = ARMV8_PMUV3_PERFCTR_L1D_CACHE, > > Fixes: 3b16f6268e66 ("ARM: mach-virt: Select PMUv3 driver by default") > Signed-off-by: Arnd Bergmann > --- > arch/arm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index e8ccacb3653b..700458c7cace 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -397,7 +397,7 @@ config ARCH_VIRT > select ARM_GIC_V3 > select ARM_GIC_V3_ITS if PCI > select ARM_PSCI > - select ARM_PMUV3 if PERF_EVENTS > + select ARM_PMUV3 if PERF_EVENTS && ARM_PMU > select HAVE_ARM_ARCH_TIMER We're discussing this one over at: https://lore.kernel.org/r/202303281539.zzI4vpw1-lkp@intel.com I'm leaning towards dropping the 'select' altogether. Will