Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp970932lqt; Tue, 19 Mar 2024 09:03:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvv3FIFQ6hgN5/ifPI0TrpSQMUmRkeclDGk5SnZacBfmnxWh/SFM+kwNehKRVXYzPJGHnwj2E1A7UjVu+VfILY691z/LZkXviLUifRwA== X-Google-Smtp-Source: AGHT+IE1myHUQgkd+m9KZHfPUGLDfVaJNdOt/8UbsiSONWKXDN5YeGfZBOtvt2A8g9quemerycU+ X-Received: by 2002:a05:6a20:6a06:b0:1a3:466d:d33 with SMTP id p6-20020a056a206a0600b001a3466d0d33mr20139464pzk.9.1710864227671; Tue, 19 Mar 2024 09:03:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710864227; cv=pass; d=google.com; s=arc-20160816; b=Zzz0Or8ogCoeCgG+w7h6kmbHdcVcNqg2TDhal4+/V0J/2nK6Ec2pxntkm5KpT8tllr xMZWZaPEuU5n/8xYsZ39o1cPhZRGXMmPUt7cxZJzizBH35mTY0tXYt6X6+QXWbIdVi6z CbzTIUsfwZuZUjwLfa8OSLSMdpR4yLrEoirqpDM8czV4Y6dh6Tb+PNc25NtJMq3Jn6xK Il9gBEFxO3oT+SHLB/41vZcZBPHtkaPUD9Qm/JeUAsAcFhHCovF+62vHnUfprCHKI0sn c9Pz9SHw+FzrcaEpQ0VmW4YWcsT6BJ2UOkxrVXOVR30yIP+wOMYikxpuZBFt2Egn0dy+ XvxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=O0dq2rKRSdcF49ygSKh6PY0AsxMHUgd4LBkC2R+Gwb4=; fh=nv0/kagjhsGPuTzUULzheNeAUhGlqoxBZiu3X0TugQI=; b=VN1YGI4VKxFYcqGC06vhoctwNc53uQS8anhl1GzoRuNiO7mt/yvgGR8dmbSCrL8d22 uqSq5iHeNroUHIrlU9YwM9RVsanITb9yRZ8c2Pxnaj6BHCwUkRf/xaqGGdCEE5OS7REs H7to6HPD4QpZ9lV3Tr35kzR9bUBuKtB4azxVZg40e8PxNsjRvURbJUT5ttA4DWjgJ9tz YCD3mA/VXnN4wCSZ3+7Z7B6K5+5yG+N8kaWsQJ1cRoNQ1p2pCNFU/k+sE5OI+f9ItLHY zyn9S66yqC9v+OEIuisiJRtwFQZ5IIt3Yz5lRGZtOa0G5C7vFTnuQBqybgjeDI1TSeR+ eBRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lfZms955; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107751-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y14-20020a62f24e000000b006e6c8835048si10909112pfl.358.2024.03.19.09.03.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:03:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107751-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lfZms955; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107751-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4A777285D28 for ; Tue, 19 Mar 2024 15:56:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5424A81751; Tue, 19 Mar 2024 15:56:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lfZms955" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F1517FBAB for ; Tue, 19 Mar 2024 15:56:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710863782; cv=none; b=odFyLHM6cr4TBnSqg+/lHo5a1nbfUcrXNwot9B+AkAoq3+FVFxZ9GLyAEDrfKnjX6zEiva172H/c7zqvcpkgWs81GNW0xmz/ZmWzBaGxx8kFoHNQ6RjqZrARDywfiBUAdiqSYWLjGH8dzCditAyT4r4ahmcuGLWYnPhkI2Pdel8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710863782; c=relaxed/simple; bh=txdGx+DK7znFHGf/0tjjerKq64zYiimbR1qcsYKXEwc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HeadZdZmSuH3W5VFboDXP2o0asMHZehVGfRyAE7o8aIVxc2zW5WoyuWZNhR/q4GmQnnf5VlmrlYKFle9mHPq0bxRUMmAO7UfKGba0FII+vyj5AmNY7QqFSysvqJLQdpZILhjnedWFZ+eIrIcuTSoZqm3ATibmZIst+U8sNGCijY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lfZms955; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A3ADC433C7; Tue, 19 Mar 2024 15:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710863782; bh=txdGx+DK7znFHGf/0tjjerKq64zYiimbR1qcsYKXEwc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lfZms95528UbY5tS+DZlHXPvGdfzpILgEyRdEPXRU5/FevqAaYzJl8l/uYMo4T/5g G0KyQQL1bDZ+4bh8Z2JpuF/vI2koqKVWwjHxmAAKVy1CXZGfnqxhj9vxhcyHNify9p 6Hssk2wpYQDvFdCUEoWvFulZMmMqWZKThqWCh/zrXHvbfWOIWk2Ra2Qk7Dx8CvPKAv 3IMLgBimgp08RRx/QskyZowU2DD05VdT+48IKH/xLbqpjBdhdIfUadK786BPq7ufGS cnhAkC4Re/eeuHZ1CNF8nhxVApf/051Ax2LlqJjwZTl4ZLb9+SijLBMaboTC68D/uC 6Xibd+2/5wFSA== Date: Tue, 19 Mar 2024 15:56:16 +0000 From: Will Deacon To: Conor Dooley , catalin.marinas@arm.com Cc: linux-riscv@lists.infradead.org, Conor Dooley , Palmer Dabbelt , Mark Rutland , Ji Sheng Teoh , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] perf: starfive: fix 64-bit only COMPILE_TEST condition Message-ID: <20240319155616.GC2901@willie-the-truck> References: <20240318-emphatic-rally-f177a4fe1bdc@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240318-emphatic-rally-f177a4fe1bdc@spud> User-Agent: Mutt/1.10.1 (2018-07-13) On Mon, Mar 18, 2024 at 03:35:04PM +0000, Conor Dooley wrote: > From: Conor Dooley > > ARCH_STARFIVE is not restricted to 64-bit platforms, so while Will's > addition of a 64-bit only condition satisfied the build robots doing > COMPILE_TEST builds, Palmer ran into the same problems with writeq() > being undefined during regular rv32 builds. > > Promote the dependency on 64-bit to its own `depends on` so that the > driver can never be included in 32-bit builds. > > Reported-by: Palmer Dabbelt > Fixes: c2b24812f7bc ("perf: starfive: Add StarLink PMU support") > Fixes: f0dbc6d0de38 ("perf: starfive: Only allow COMPILE_TEST for 64-bit architectures") > Signed-off-by: Conor Dooley > --- > CC: Will Deacon > CC: Mark Rutland > CC: Ji Sheng Teoh > CC: linux-arm-kernel@lists.infradead.org > CC: linux-kernel@vger.kernel.org > --- > drivers/perf/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig > index 5060e1f1ea10..7526a9e714fa 100644 > --- a/drivers/perf/Kconfig > +++ b/drivers/perf/Kconfig > @@ -87,7 +87,8 @@ config RISCV_PMU_SBI > filtering, counter configuration. > > config STARFIVE_STARLINK_PMU > - depends on ARCH_STARFIVE || (COMPILE_TEST && 64BIT) > + depends on ARCH_STARFIVE || COMPILE_TEST > + depends on 64BIT > bool "StarFive StarLink PMU" > help > Provide support for StarLink Performance Monitor Unit. > -- > 2.43.0 Thanks guys, I don't know what a starfive is so sorry for not spotting this when I noticed the build failure on arm64. Acked-by: Will Deacon Catalin -- please can you pick this into the arm64 fixes branch for -rc1? Cheers, Will