Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp315699lqt; Mon, 18 Mar 2024 08:36:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVgcjWhjFgbyKWAwsL0mWtrBAU4h3OXCGXN4L2Rk2h9lkUzIjM12PS26kpg73L2bVnkyoHfTb6q2qBsrvZzOPcrIdSPkQ9nQFJZAuy9Q== X-Google-Smtp-Source: AGHT+IH8/Y0HdFF30d73+UjoR7Zb02CisCRs9IujPdytL/9RpQvVy2C8PeFJPnq39IsSS+UYtz3s X-Received: by 2002:a17:902:c405:b0:1dd:2eed:52a5 with SMTP id k5-20020a170902c40500b001dd2eed52a5mr17475400plk.37.1710776170272; Mon, 18 Mar 2024 08:36:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710776170; cv=pass; d=google.com; s=arc-20160816; b=0N7BQtxlvwD6JVDlXy4PTWBOBMS2AFOSZC6CHlX4BjBL85TDzQ2s16Dek83+8Gmj7R MN0lzpiC7PzazRo4G8+/+YK9chiWfl1X/zZ4VZHUThOWWykct+meS/WRS0DnIgyaSPRA FtruQwb7CiqJpc3xKc5De2DkSQZK1MaMuM/i3v3NkxBZ0sPN2rVil6tOz2afXb70rtOs PCjjTTfHMU8QybAezkhl69DM2FbDoTuvN/6LyvRzcvnk6tbWN2/OZfrJvbn1x4EwXou9 L2QgexzEhNgZnvRgWe+cwsmb3j2cOnHIyKTcblVySp0h618ye0SwV5aKFC5cFw4Z5i2W HQpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=uF3JANQ4Cx+Csld9JFC+K6hjHp2fdd1g4VVEH6o3FHs=; fh=IIFgeNqU/AIx7JpffWhWXNIGztajoJsqyWpr7SzD4Zg=; b=RUBMbjaH9cO6vL5w3Z/q2Aisa7zT4O7r762LNavsJCu4HoM9J55WO3weXAPaE5LNzP f6eHzZav+OwFzOkIR+klSB8QG7qNcoU/5tUfsCXp7DUkxgP5nIg6en/GDw2psSCogzuc 1DIkD4xgvzKF9VgzsVID3LLyv6HDa4NTK3XtvNzr2cjPnaOWuykmpgbEZxmwJToBAU2R RMPbPkJNjrh2ZypHEJ3r7V2nW68u9HW3UDZbqcDmhq7taYXsdJ2ce0DFfZ9TbuHH6v3g cpbJmUkt9UdS9lYiwdG1Ha3ru4g0Wd8pl4VrE4V3CRpCMhPh3CuTV9IJDa6PhLyaXi1Z uD/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BQ2aKkHk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106311-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106311-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 a16-20020a170902ecd000b001dd78f7e436si9459131plh.434.2024.03.18.08.36.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:36:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106311-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=BQ2aKkHk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106311-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106311-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 EF3FF281F4D for ; Mon, 18 Mar 2024 15:36:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58E92524B9; Mon, 18 Mar 2024 15:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BQ2aKkHk" 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 818A1524A0 for ; Mon, 18 Mar 2024 15:36:00 +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=1710776160; cv=none; b=mnacq2ovnLSzzAftwMdk7k5tsUDdtw8oSYi3+rMZq2vmMwBufQLYTwVZ1JdDE8e3B+oOTZORaVGcfm8QKkQZ7CIsPWiYLhlYUTfcrAqzw2TmJxtpr2ijdfh6AHHZzlFpPQilUpxIn0eM4kzc45JipX4+9cnti77oLxoA/YszzTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710776160; c=relaxed/simple; bh=ncNnzzFLD+EC1GvgwoBIzC/SxHOpyQdJBZwQhlX29Wg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LSZhz7LE7CNwXVTLABceMSlQDDhWwXdfAbdzrjfvhZGO8XEr0/0Bc7ZRTbymyBc0XK0jcOQ/w3uZhKZtyS53f+7S4NJLf8UTSY0zpvaX+9bL3TRa9XM8ldLFZ34xTv9A1XeWIJduZzhd4SXoI40MrHMCbzYETvt3gIQkYBj3rK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BQ2aKkHk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31CACC433C7; Mon, 18 Mar 2024 15:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710776160; bh=ncNnzzFLD+EC1GvgwoBIzC/SxHOpyQdJBZwQhlX29Wg=; h=From:To:Cc:Subject:Date:From; b=BQ2aKkHkv1zDAn9yStDByoWz04vcdYPWvhGzZv+qLja5DUTMe3cBOXsNhkWJdVT4n RZs4V3S073kARMk7iEYeMojLaGVZIKgNVYymGW8jgXvqilVXbWZENDOqHIAjBkumxZ fsKQQavth1WLtG2cjZ5/078fmQc16tT+z9blV13/xquDSfC4XyMUwLoTwTZdsl9XnD 0x53/pknATPxfx3V3xgl1jVxbObiUmUxNgAu9EXWOC5SmzFXoQ4JEHcaUhh4gieoK7 06wn+Z8Bk0NpEc5UQFDqCb1B5nPhXvcn9awOhEm/Vr7DA+9Okm3oga6/jUWK+sVam2 cilITj8QMM9gw== From: Conor Dooley To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley , Palmer Dabbelt , Will Deacon , Mark Rutland , Ji Sheng Teoh , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] perf: starfive: fix 64-bit only COMPILE_TEST condition Date: Mon, 18 Mar 2024 15:35:04 +0000 Message-ID: <20240318-emphatic-rally-f177a4fe1bdc@spud> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1438; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=qRhFK3rYTyezrGe8FKEh70/bj4HDt75Auhc2y3YLrUk=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk/4jV2Jhj8lRK/e2l6+fr4o6XnurPS5pmvtrnV8mPNO Y7pPf8fdJSyMIhxMMiKKbIk3u5rkVr/x2WHc89bmDmsTCBDGLg4BWAi98wZGbZxhey/UqvwaQGj sZ9dYKrpdY841h9yCk8P1we/lFLZb8PwvyJva/D3roz7mzev0TI4fe1FwPG0pyrLuMW+fWM/+fz YYyYA X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit 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