Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp379350lqt; Mon, 18 Mar 2024 10:19:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQzAYR/GUl9/lZAD0L2RgYZOc0RbyyKsPPU2gqU9U8yHImDv64PFaUA3dfwJ3QJfLohEIU6hEcc/lZYlP+ih3j99ewSRdJApPJOXzrrw== X-Google-Smtp-Source: AGHT+IF/A9tU5qgQYAYUK55l8F3A7OsuvhPu2Gv1FUr2D6Q2Tm56+CgA638a/xDkx5VZdskdfIgp X-Received: by 2002:a05:6808:191b:b0:3c1:f11a:cc04 with SMTP id bf27-20020a056808191b00b003c1f11acc04mr15199247oib.6.1710782377289; Mon, 18 Mar 2024 10:19:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710782377; cv=pass; d=google.com; s=arc-20160816; b=xlReY4xN8Hs+pUk2FQkKMO12N7a4Wa52iKkMrhLHnCTaSWEEABhWDpexrxNQli/HQl N4bgqEgKRYnELZ8617rWinXhUfW0jrQNNpwa/ATbjNXnFwgl8GxR55ETNDWTuhADim2T oY3dj7bdJDw8AHpTx3GvXNluZMRx7Dpr6O/bihoHrU3iBQ2dtz/IFPR6M6Nh2WNko4fe EwmKlWeYORLD+58YfgW8lyuCsWm0d3d53Xwi8b3IoMbDR2YTY5q2GZoHugJs5GCGYKdT UfF1r3+Eg4fz8Q2+6ZEfroMxFzgqKz6FP9Ad9uOlzeEeeYL++n19QPcEsa4s3Y52pSy2 omrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=RHlFPdlhlD864SJZUhjfxgbABspep+IYfDLVWgg2pJg=; fh=gQo1t3P2MusexSweiVzbesE0eEOTqi/pLa0rCWa3v8U=; b=VFp+pLC42X4zTzyqe+pkBCs2B1D029Lzi7ZvUCRjTWCHTD21lbvuAvhkHz/sY9PMf1 Rcnfv2ibZd9+2Xg4bL4ElckPBBUlT7gj5w98sPVQtw+3e9CW7HyiqaCAS4nsuQNImEVD c/UTfhhoEnzlYjr5grO/pa7+dA05ewoe/aOsRfDh5WDWkd3V6VttlqwGlFs5Mm+rTikD GZa5xAmBuV/ANuktRnl+BCW1O7wQxbgyoWtdGYaxBSp2lT3R9VcroTvD6mg/Op1tOCGM raJO19tJseHLgK1VZ7mGG0JSlFkk2Bmu39WXzZ1IEgIR9/CfoTMn9kRXV4tg5PwHeeUq l1UA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="AaUbH/lU"; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-106434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ey1-20020a0562140b6100b0068f2cd94c5esi9029296qvb.346.2024.03.18.10.19.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="AaUbH/lU"; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-106434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 021581C20E5C for ; Mon, 18 Mar 2024 17:19:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C00555775; Mon, 18 Mar 2024 17:19:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="AaUbH/lU" Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 2419954FB2 for ; Mon, 18 Mar 2024 17:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782371; cv=none; b=SuY9mkDjmxBWzvhkoUHHwyzMmokRPgLMLOJSUZIJ0hnALrH+El1EWLB/WxbOq2f8kWBmt6ZzwyogZiqlWBmugt7ixDmD9lTvQsTAdHJ+tQrhpADbsvHWdpBwQkr1otjcvqC0n94k5uvwhfx88ox0WHuA2dBJd0IvYK3SNmdCQzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710782371; c=relaxed/simple; bh=NipOqWcaGtie6YlGlJBGhNEiVysAImFex/86T3xnNXA=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=CzVL6t3cus2wZGgcFiDgUBTbTl26XWzFTDS19CnHNCS+RsmlGGdZFschQ3a4eQWg6b0d/uBnWDV2nINc0phtzORcD6CfA0jfrHa63Q3fJH0zP+OgXW10Rg6HzZREjFxmAKEaAMtCkD0IrXGk7WvwnfVFzUq9MrOlITLcK6OAW70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=AaUbH/lU; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 873E53F10A for ; Mon, 18 Mar 2024 17:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1710781939; bh=RHlFPdlhlD864SJZUhjfxgbABspep+IYfDLVWgg2pJg=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=AaUbH/lUr5TuNuXGV8Kboiq3jnqe7sSPayG42+aXWW7fmgiRRqGlc9RfCNTcqEjXQ oZylYg9uU2YVPFUxpVnFXEUUFbzZk6xKQuy1KX0hJ+ozmmXawvLhKmfnXeS4ZI8mgp vhULNGuhz9+NJ1AuzvwjnGkMj5qYGQy5mhWYmD/vlCfxkQF+bqNdcP8X354uENoQWL cA7Q3qSILZh0qvIQs+49XAZuZR2239kXwh7AZSUfSrUFDAA3nM8c0dgTrPKJwGNKGe PDRfGwIoGtb7MyxW4MgoK6DsYBAr8h07Otgkrv/EekBUaNDp76VnZPIHDl4hN/Q9Q2 kYNqa8XSGGzbg== Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-43095bdc7caso53815561cf.0 for ; Mon, 18 Mar 2024 10:12:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710781938; x=1711386738; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RHlFPdlhlD864SJZUhjfxgbABspep+IYfDLVWgg2pJg=; b=YpzWyuy9YxLqTI9uByXfb+wbYm/BXdw9uCtl2otjPOctTuWsJjKcuoNwZK/Xzk+QxR 9WI7paYz7OL5tNagiy5h3ISdvbn6uQ/Vc57jfe2Lm5e/Hrsh2hNgON6HqFsxOEq+yUs3 FWj2Hupj0EOk05uCpC5vNgpRhsKm68z1wIH5lmnnIaE4UHGPOciu1YAN83mFqZwGFiv8 m/QO7BxGPY9cuAzAGkfodaJdRuC0tdb6cx3PNm/oOoGcl8MSxAJEBueiQyQB2lHwAhtk xKuc3f2QC4yGUHE0nm2R0z+ikpidhd+Xre7C1YszgGaJx2VSxzjNxLQF9TBb3I0398QG Sq9w== X-Forwarded-Encrypted: i=1; AJvYcCVPgak20LrjOoQOAf+kwGOV3DeXI1BWZ09HtNUWNs/eWgdzzn0kcB/XCxeCFh4kzN3k0kxNPhr/Y7yR6c0PXTvYtIbzRVmNTYITJr76 X-Gm-Message-State: AOJu0YxT/MjeQQcyeXGJajOzX8qUe1w/lX89XRwfXO6eKx1mpo/ojY/q TB+VouxVOjSCAe64+6wvAPrLmcPdPdGCYknFIq3pSWWhs2eQEvQW/YkFY5qx6uDmKW+fP/4/QBL mWaPJeuqZG/CLm6979Bkt1ZZJ07hgO2l6XJANzao6VkD2n68xPBaWvurXmbCBNDbIzMoHLOqzHm ze52o8Kh8z8ffL3ImUTKxCP7t/qtKYG6qYnZPUQ0n7DYRVoYFTvuCM X-Received: by 2002:a05:622a:49:b0:42e:f7cf:ff98 with SMTP id y9-20020a05622a004900b0042ef7cfff98mr13273227qtw.16.1710781938491; Mon, 18 Mar 2024 10:12:18 -0700 (PDT) X-Received: by 2002:a05:622a:49:b0:42e:f7cf:ff98 with SMTP id y9-20020a05622a004900b0042ef7cfff98mr13273206qtw.16.1710781938216; Mon, 18 Mar 2024 10:12:18 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Mon, 18 Mar 2024 10:12:17 -0700 From: Emil Renner Berthing In-Reply-To: <20240318-emphatic-rally-f177a4fe1bdc@spud> 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 Date: Mon, 18 Mar 2024 10:12:17 -0700 Message-ID: Subject: Re: [PATCH v1] perf: starfive: fix 64-bit only COMPILE_TEST condition To: Conor Dooley , linux-riscv@lists.infradead.org Cc: Conor Dooley , Palmer Dabbelt , Will Deacon , Mark Rutland , Ji Sheng Teoh , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 Acked-by: Emil Renner Berthing > --- > 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 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv