diff options
author | Sharley Calzolari <sharley.calzolari@intel.com> | 2024-07-18 18:01:52 +0300 |
---|---|---|
committer | Koby Elbaz <koby.elbaz@intel.com> | 2025-09-25 09:09:26 +0300 |
commit | b5cddeb0dc6521dfee669e74967c6d28b1fd0d9e (patch) | |
tree | f0efab18f744642b9d60f443fe0847a1fe27be87 /rust/helpers/err.c | |
parent | 214e26a43f237358eec59c7c4e5ed1eaf2bfe472 (diff) |
accel/habanalabs/gaudi2: add support for logging register accesses from debugfs
Add infrastructure for logging the last configuration register accesses
that occur via debugfs read/write operations. At interrupt time, these
log entries can be dumped to dmesg, which helps in diagnosing the cause
of RAZWI and ADDR_DEC interrupts.
The logging is implemented as a ring buffer of access entries, with each
entry recording timestamp and access details. To ensure correctness
under concurrent access, operations are now protected using spinlocks.
Entries are copied under lock and then printed after releasing it, which
minimizes time spent in the critical section.
Signed-off-by: Sharley Calzolari <sharley.calzolari@intel.com>
Reviewed-by: Koby Elbaz <koby.elbaz@intel.com>
Signed-off-by: Koby Elbaz <koby.elbaz@intel.com>
Diffstat (limited to 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions