* [PATCH] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present
@ 2023-09-01 13:37 James Clark
2023-09-04 3:36 ` Ian Rogers
2023-09-10 9:22 ` Leo Yan
0 siblings, 2 replies; 4+ messages in thread
From: James Clark @ 2023-09-01 13:37 UTC (permalink / raw)
To: linux-perf-users
Cc: James Clark, John Garry, Will Deacon, Mike Leach, Leo Yan,
linux-arm-kernel, linux-kernel
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.
Signed-off-by: James Clark <james.clark@arm.com>
---
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.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present
2023-09-01 13:37 [PATCH] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present James Clark
@ 2023-09-04 3:36 ` Ian Rogers
2023-11-23 14:31 ` Arnaldo Carvalho de Melo
2023-09-10 9:22 ` Leo Yan
1 sibling, 1 reply; 4+ messages in thread
From: Ian Rogers @ 2023-09-04 3:36 UTC (permalink / raw)
To: James Clark
Cc: linux-perf-users, John Garry, Will Deacon, Mike Leach, Leo Yan,
linux-arm-kernel, linux-kernel
On Fri, Sep 1, 2023 at 6:37 AM James Clark <james.clark@arm.com> wrote:
>
> 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.
>
> Signed-off-by: James Clark <james.clark@arm.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Thanks,
Ian
> ---
> 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.34.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present
2023-09-04 3:36 ` Ian Rogers
@ 2023-11-23 14:31 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2023-11-23 14:31 UTC (permalink / raw)
To: Ian Rogers
Cc: James Clark, linux-perf-users, John Garry, Will Deacon,
Mike Leach, Leo Yan, linux-arm-kernel, linux-kernel
Em Sun, Sep 03, 2023 at 08:36:35PM -0700, Ian Rogers escreveu:
> On Fri, Sep 1, 2023 at 6:37 AM James Clark <james.clark@arm.com> wrote:
> >
> > 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.
> >
> > Signed-off-by: James Clark <james.clark@arm.com>
>
> Reviewed-by: Ian Rogers <irogers@google.com>
Thanks, applied to perf-tools-next.
- Arnaldo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present
2023-09-01 13:37 [PATCH] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present James Clark
2023-09-04 3:36 ` Ian Rogers
@ 2023-09-10 9:22 ` Leo Yan
1 sibling, 0 replies; 4+ messages in thread
From: Leo Yan @ 2023-09-10 9:22 UTC (permalink / raw)
To: James Clark
Cc: linux-perf-users, John Garry, Will Deacon, Mike Leach,
linux-arm-kernel, linux-kernel
On Fri, Sep 01, 2023 at 02:37:15PM +0100, James Clark wrote:
> 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.
>
> Signed-off-by: James Clark <james.clark@arm.com>
Tested-by: Leo Yan <leo.yan@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-23 14:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-01 13:37 [PATCH] perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present James Clark
2023-09-04 3:36 ` Ian Rogers
2023-11-23 14:31 ` Arnaldo Carvalho de Melo
2023-09-10 9:22 ` Leo Yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).