]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: move event handling to common firmware file
authorOfir Bitton <obitton@habana.ai>
Sun, 10 May 2020 10:41:28 +0000 (13:41 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commitebd8d1225165122162cab2826cdb015f68458971
tree054aeccb727b5f26cec1f83a074b0028862aea6a
parentaf57cb81a6df58a3085fbe91f597f69efd4dea37
habanalabs: move event handling to common firmware file

Instead of writing similar event handling code for each ASIC, move the code
to the common firmware file. This code will be used for GAUDI and all
future ASICs.

In addition, add two new fields to the auto-generated events file: valid
and description. This will save the need to manually write the events
description in the source code and simplify the code.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/firmware_if.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi/gaudiP.h
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/include/gaudi/gaudi_async_ids_map.h [deleted file]
drivers/misc/habanalabs/include/gaudi/gaudi_async_ids_map_extended.h [new file with mode: 0644]