Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp779533rdb; Sun, 28 Jan 2024 08:34:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJzJZQetrv8yHJ4AZmRDyBSm0NjsT4R4EmK5xJjLs1mvwC9luQbsdyXYoO9m5Th1ry8HMV X-Received: by 2002:a17:90b:19d5:b0:28e:2e27:6def with SMTP id nm21-20020a17090b19d500b0028e2e276defmr1082280pjb.91.1706459660123; Sun, 28 Jan 2024 08:34:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706459660; cv=pass; d=google.com; s=arc-20160816; b=UHKDHanTciVmQiUk3ptIw2YQbjDEA4lksmKJK3iJS8NGEqay0xBRZq7SphUs6NWOT2 gd/L6wINzZ8LM8FR5sL1p6e6gxmFIkDZ51HviEOvw7sOuyEUVxauu1HNm5a4LuxE/s/u iRe2WmFC3UCJkf50asenBHoWLxP8cE4wAKk/9vos8IOWPtesbeuqDiaQwCNZ8e+IS593 R9qz3j5mAymNDIIHLtIGYiE+rwERMgF1KyAKLgveKVgjHM/tMfNu8TdZS8ZpScPpTPod vrXanNsL/HC/EaQVl/CQVSFDFjd9Y/QU/kr46vaEeR/rX7zJ5nv3f5grzmuTlNJsGbvo nnFA== 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=f6LOApuwrE2E4aI4ZcCIb7NycGGQEiZ0dFsQPod6p4zey5MIOwaj/GUjloNP/ivw2C NiQzpOLDwJ+90Qra4CQ4Q15UVJuAdy45AFLfl9c0y2Lxg3hRNG06ZiZK8O0w4W0OACma uLklkL8iZtLziyT/q2D2Xv/Y9l38i1/TGijoXs+VCbsk+UkMqKXCvYvSgLWLdfuGzEFX OrfCyTE/MgLzwGaIskZhe6ABnGYPlsL1BbdXAQ1nKozmW0GLGysub3VJHLhkvoFUvBTj o7uvvDoBZL0GmUXWVmZWjYWIw9DqJzadbMRSk+3YZNJ/ikQP+V5ENzEujbOxulhreygk PoOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pi6wEusk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41758-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i8-20020a17090a4b8800b00290be59078csi4402564pjh.118.2024.01.28.08.34.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 08:34:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pi6wEusk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41758-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 4BE9528155A for ; Sun, 28 Jan 2024 16:32:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D367F6A032; Sun, 28 Jan 2024 16:14:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pi6wEusk" 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 067C76A023; Sun, 28 Jan 2024 16:14:30 +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=1706458471; cv=none; b=GY8shyEBZMwWElJ1jBSSSp9EuV8UF/3FRm+VOE4MoOyC+54wDqu0NM6i1QXAU8uhfDq8DzLJediJAmzZFX/93d6b1cMi48uiYS+M7aNS8Ro6lzcbsRtGGVTDoPoEo3ugcpx9QrZuASfUlfYjCqJVDD9xD2kD1GyVBu7eXUpRBeE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706458471; c=relaxed/simple; bh=Fqc/uo6ExpDJaHd6Xd6fzWxlrwxDk6ABwIiIkzcrpsM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E+RS5+ooO/1MsB7ACqayUbAbjlamkuPeqpJUJTndfv51BMTJ0anEMESpESzlYh82pKNaYwC55OBaOcBfTDAPMCYSpw55TIQdyzEWw6maJaLBpOiFR9dr8I/4ReKjczi0hAsgWmza0hdVxqIFuYxsOrT9FeJXOmT3zQ4pEm3yb5U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pi6wEusk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60DA7C433C7; Sun, 28 Jan 2024 16:14:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706458470; bh=Fqc/uo6ExpDJaHd6Xd6fzWxlrwxDk6ABwIiIkzcrpsM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pi6wEuskSvG4s50/iqWO13j8sFKz/7IZkQEsODE3RVVGVxNQTRLX4bLx2uTRa1cQP QSuip+4gF1Rn5Z3Pw2vxDA9UhSnkXidgTZQN7+oaqJ8mJHjYn7OD07tetEK1SkXbyf Ep+snUrRpokBBj0hQa4Z9JrrO56ysmJ8uhUFS9lzK43DAA3vWF7bcBUrjdsDqJgFWE +3hF3dTLCIRHqa56kGZbujiOOjRFVSdUmNDMPq/bVs1ta4rPDafsPrfeGQt7J7xCG4 cQeeF3tjJ8cr0FZmCtiUpV6e0uYBhNgBlOEOBJhvT2+pqJZLyysLHZ90cSfSu/XBLV 8Q9t4/0l1flnA== 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.1 03/27] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present Date: Sun, 28 Jan 2024 11:13:48 -0500 Message-ID: <20240128161424.203600-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240128161424.203600-1-sashal@kernel.org> References: <20240128161424.203600-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.1.75 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