[PATCH v9 3/7] coresight: core: Add provision for panic callbacks
Linu Cherian
lcherian at marvell.com
Wed Jun 19 21:12:12 PDT 2024
On 2024-06-05 at 21:39:17, James Clark (james.clark at arm.com) wrote:
>
>
> On 05/06/2024 09:17, Linu Cherian wrote:
> > Panic callback handlers allows coresight device drivers to sync
> > relevant trace data and trace metadata to reserved memory
> > regions so that they can be retrieved later in the subsequent
> > boot or in the crashdump kernel.
> >
> > Signed-off-by: Linu Cherian <lcherian at marvell.com>
> > Reviewed-by: James Clark <james.clark at arm.com>
> > ---
> > Changelog from v8:
> > Added Reviewed-by tag.
> >
> > drivers/hwtracing/coresight/coresight-core.c | 37 ++++++++++++++++++++
> > include/linux/coresight.h | 12 +++++++
> > 2 files changed, 49 insertions(+)
> >
>
> [...]
>
> > static int __init coresight_init(void)
> > {
> > int ret;
> > @@ -1377,6 +1408,10 @@ static int __init coresight_init(void)
> > if (ret)
> > goto exit_bus_unregister;
> >
> > + /* Register function to be called for panic */
> > + ret = atomic_notifier_chain_register(&panic_notifier_list,
> > + &coresight_notifier);
> > +
>
> ret isn't checked here
Ack.
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
More information about the linux-arm-kernel
mailing list