From mboxrd@z Thu Jan 1 00:00:00 1970 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 6731DF9D7; Sat, 3 Feb 2024 04:10: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=1706933430; cv=none; b=awiG8v1+W3Ah5bwokyHWdVucSO7VawZN2GFh3ewQjy82etvm0HZT9daOwVm4bUcVX+BqnkWbQYPSQUwakO8iK9Ko+RWbD3nJXwka1YC1DZgHujBk3Yw9JFSIMQ2drxgO1I6Tj0P/+ezXkl5Rk8Os6qWnU5Fpz6Fv+WtZv3dwWfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706933430; c=relaxed/simple; bh=HzecKn/aA0T9hq4qx12qEF5fAc0vcvF+v3CrLpU3UT4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y4KAOGwm1/MZjEKttH4YnITdrB8XjGC+AKqQw03SUGY4IvDUKVxVk9xrH9ep4yz3oM4YY6EtuDSzw0UbfNOfXwl2EnFAJKTOLqPM1leVqHyKdRnIs27IBcbLHysDx+dd2ST2Gcf0OmG+9Nn4eHe05pp9Zu1QTSVxKwjrEtcDs+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PTbuidhm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PTbuidhm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FCCBC433C7; Sat, 3 Feb 2024 04:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706933430; bh=HzecKn/aA0T9hq4qx12qEF5fAc0vcvF+v3CrLpU3UT4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PTbuidhm3WJuHb1E0SjUE+cABqCJbHfNAmw6jjDFqzfLUR8M3j0Xoou387V3LHfkW JKtcdLkwedhfDFNlM70as0IMy7cSvLzTh9a0Mzv/AlHYX8PVXtcwlxNVP7XGt4DzfI Bm/hAenaw/+vRXYNdQv/Mi6cQnJVxDWudv3rVdcI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ian Rogers , James Clark , Leo Yan , John Garry , Mike Leach , Will Deacon , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 6.1 158/219] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present Date: Fri, 2 Feb 2024 20:05:31 -0800 Message-ID: <20240203035338.872706817@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240203035317.354186483@linuxfoundation.org> References: <20240203035317.354186483@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ 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