Thread (55 messages) 55 messages, 4 authors, 2025-12-16

Re: [PATCH 06/19] coresight: trbe: Refactor syndrome decoding

From: Leo Yan <leo.yan@arm.com>
Date: 2025-12-02 14:24:19
Also in: linux-perf-users, lkml

On Tue, Dec 02, 2025 at 11:06:48AM +0000, Suzuki K Poulose wrote:
Hi Leo

A couple of minor nits below. Otherwise looks like a nice cleanup


On 01/12/2025 11:21, Leo Yan wrote:
quoted
It gives priority to TRBSR_EL1.EA (external abort); an external abort
will immediately bail out and return an error.

Next, the syndrome decoding is refactored based on two levels of
information: the EC (Event Class) bits and the BSC (Trace Buffer Status
Code) bits.

If TRBSR_EL1.EC==0b000000, the driver continues parsing TRBSR_EL1.BSC to
identify the specific trace buffer event.  Otherwise, any non-zero
TRBSR_EL1.EC is treated as an error.

For error cases, the driver prints an error string and dumps registers
for debugging.
minor nit: Please avoid describing the code, which cod does well.
Briefly mention what you are doing, giving any additional contexts
that may not be evident from the code.
Sure, I will note this later.
e.g:

"Add support for decoding the syndrome for TRBE, providing a verbose
description of the code for Fatal/unhandled events.
While at it add the new definitions from the latest Arm ARM for
EC and BSC"
Will do this and followed comment.  Thanks for suggestion!

Leo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help