linux-stable/drivers/accel/habanalabs/gaudi2
Tomer Tayar bc5f15abcf accel/habanalabs/gaudi2: avoid overriding existing undefined opcode data
Part of the undefined opcode data is updated in
gaudi2_handle_qman_err_generic() and some in
handle_lower_qman_data_on_err().
However, the 'write_enable' flag is checked only in
gaudi2_handle_qman_err_generic(), and information of more than a single
error can be mixed there.

Moreover, handle_lower_qman_data_on_err() is called only for the lower
QMAN, so for an error in the upper QMAN there is only a partial info.

Move all the data update to be done in a single place, protected by the
'write_enable' flag.
As mainly the lower QMAN's info is interesting, avoid saving the partial
info for the upper QMAN.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2023-12-19 11:09:44 +02:00
..
gaudi2.c accel/habanalabs/gaudi2: avoid overriding existing undefined opcode data 2023-12-19 11:09:44 +02:00
gaudi2_coresight.c accel/habanalabs/gaudi2: fix spmu mask creation 2023-10-09 12:37:24 +03:00
gaudi2_coresight_regs.h
gaudi2_masks.h accel/habanalabs: add uapi to stall/resume engine 2023-03-15 13:29:15 +02:00
gaudi2_security.c accel/habanalabs/gaudi2: unsecure tpc count registers 2023-10-09 12:37:19 +03:00
gaudi2P.h accel/habanalabs: extend preboot timeout when preboot might take longer 2023-10-09 12:37:22 +03:00
Makefile