Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp770778rdb; Sun, 28 Jan 2024 08:12:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCVoG6n7mCJDDT5rIhgUgtFTepOElZiDP6uqeLB7R2rgLVtwoO2SfH5kc1RsqlNcNNV+/3 X-Received: by 2002:a17:906:71ca:b0:a2f:6a5d:8823 with SMTP id i10-20020a17090671ca00b00a2f6a5d8823mr2526154ejk.7.1706458338451; Sun, 28 Jan 2024 08:12:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706458338; cv=pass; d=google.com; s=arc-20160816; b=dC2PabJ7mibdIZT26FPoaAasv1sN4zGZN4H+/exU+FcmUd82U0prWf/sIYBPk5Pgh9 vTg5nchAVA4dym719Nd5PUtBJn/3yhAhhWsxJHlaguG7xJkFGusgO5/pUz+/bVmYyk6s 0oRmIX5tllfrXiqYd+O0/4SMQRdtSc6NjfzFd/chcyxvLA9+MNUnGqc84H/o9sem9UzW RoQV5GwmPEsH1oZqYLbh1pBbfMnxoHnHHS8nG4EsDXB2BGb15Cx0vih5DdugIluPIO+n bNGwwW1kte1p02qVWPb9JwIPkjr0DWvC676y1NgW1aqdzSgqqrvWRit8gJastrwqjMmI 7N3Q== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jYoQrI5z5uFQBCasvGIE3n6pmaQfbQNSt88oLyshNAg=; fh=tBSAJsTASxyQJGy4an6YDOiM+h44pe/oxER0KPivvJQ=; b=mHi9LDiHWlW70xN0y89dGJmSCf4wEyCjI9rA+F8nQXprY2AD3q9vLaIrculJAzxqdU UxFz4iMafdRnXiZgviIybu2n+cITi5+M2BuzZniqv+WnoZhpUMIihTZwN9r9QC9nCJHr 07OfuF2OdIsHuIaXj8d8QKsThaF25pR7TSzpbE7bCmX23jF+KS5MnArkiDFkGsr9ty9C oWi+Vs+n2hpxIkpjRUUR0RmhufD19VhX6IZib4spVkCu1x53ej4YM76xL5Ntu2ZZ4/I+ MgK4zL2NPJJKaP80o9YJFpEF3JlcnFQLs9I473HCxfYOUBPfesGa97ccrrON0Np6Blus 9wuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cceGmvXW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a14-20020a1709064a4e00b00a318ad9a8easi2563445ejv.603.2024.01.28.08.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 08:12:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cceGmvXW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41685-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 36C121F2167A for ; Sun, 28 Jan 2024 16:12:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBAF22E852; Sun, 28 Jan 2024 16:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cceGmvXW" 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 EFEBE2E645; Sun, 28 Jan 2024 16:11:36 +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=1706458297; cv=none; b=hWT4ze7cDFgKIlvKQL3kxE+nKOlCPHCspYHS/9zqG9tT2xiJu/LZ1bXrvvII2l9w7NxwkforiBXBzrwKbUW+oFjRCz+93RCqsSgmcHnbjNe9GV7gBxf/68pqihP67fPm74fEDxtsRaub8nexKQ5lV2Q9H43kXj9p8Ot5Y0tXinE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706458297; c=relaxed/simple; bh=Fqc/uo6ExpDJaHd6Xd6fzWxlrwxDk6ABwIiIkzcrpsM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QBdMAQXjN7b1mzFV+WVWZ8HKLJCDekY9MRqNpD7a1Bj7qj6yok1C8pl00bvTSpBhCy7/Dg1jGHU/TkyUnWIoBLa4yhcdHARH7Cugd2mK7HNPSuDt3eFOq/7jQ+UN7iSyvF7T0FD0+FKP72WugoQyHyl8aQW7eAgNa1XcjWz9mZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cceGmvXW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E94BC43390; Sun, 28 Jan 2024 16:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706458296; bh=Fqc/uo6ExpDJaHd6Xd6fzWxlrwxDk6ABwIiIkzcrpsM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cceGmvXWQ2t2EoNKXrDlBfEz8BUhLspK/CxAVEQw3wzqJpzifwhOYv6GV5ILFqhty PTWszAYbck9rDRe5GvoI58E4eAg1iJsJFdbQCzUCds90vraYAirwvNNo8Ha+eeaLx5 lZHjp5aR5IhQHwcmwLOKPRe2InpmFUHxUezJmhfwf3snSJKrpC71lyvkAolD2vEsCN Dnr8N7mBs5tIAttZ8E1yTTEBiTCTN3osG/Xha+sI997BK9Nr7smc6buU19a+5DN9Mn pAZBVkvFmqnC0/2HVR59r2kp0YvN1NBBIx8yca8xO7ffNnyQVIn6BJdrqDTxc9WPCD QeF1fXXZoY3Hw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: James Clark , Ian Rogers , Leo Yan , John Garry , Mike Leach , Will Deacon , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH AUTOSEL 6.7 03/39] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present Date: Sun, 28 Jan 2024 11:10:23 -0500 Message-ID: <20240128161130.200783-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240128161130.200783-1-sashal@kernel.org> References: <20240128161130.200783-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7.2 Content-Transfer-Encoding: 8bit From: James Clark [ Upstream commit 2dbba30fd69b604802a9535b74bddb5bcca23793 ] Since commit d927ef5004ef ("perf cs-etm: Add exception level consistency check"), the exception that was added to Perf will be triggered unless the following bugfix from OpenCSD is present: - _Version 1.2.1_: - __Bugfix__: ETM4x / ETE - output of context elements to client can in some circumstances be delayed until after subsequent atoms have been processed leading to incorrect memory decode access via the client callbacks. Fixed to flush context elements immediately they are committed. Rather than remove the assert and silently fail, just increase the minimum version requirement to avoid hard to debug issues and regressions. Reviewed-by: Ian Rogers Signed-off-by: James Clark Tested-by: Leo Yan Cc: John Garry Cc: Mike Leach Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Link: https://lore.kernel.org/r/20230901133716.677499-1-james.clark@arm.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/build/feature/test-libopencsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/feature/test-libopencsd.c b/tools/build/feature/test-libopencsd.c index eb6303ff446e..4cfcef9da3e4 100644 --- a/tools/build/feature/test-libopencsd.c +++ b/tools/build/feature/test-libopencsd.c @@ -4,9 +4,9 @@ /* * Check OpenCSD library version is sufficient to provide required features */ -#define OCSD_MIN_VER ((1 << 16) | (1 << 8) | (1)) +#define OCSD_MIN_VER ((1 << 16) | (2 << 8) | (1)) #if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER) -#error "OpenCSD >= 1.1.1 is required" +#error "OpenCSD >= 1.2.1 is required" #endif int main(void) -- 2.43.0