]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: add enum mmu_op_flags
authorYuri Nudelman <ynudelman@habana.ai>
Thu, 30 Sep 2021 12:52:25 +0000 (15:52 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:04 +0000 (08:59 +0200)
commit8dba42fe213af27654afb9001324205b0b2c8c41
tree641b257ce60e0697425a4489707ebdbc36eef1e6
parentc325e3bf12e5e10ddc9704c7793f444c3d2028fc
habanalabs: add enum mmu_op_flags

The enum vm_type was abused, used once as a value (indication
memory type for map) and once as a flag (for cache invalidation).
This makes it hard to add new and still keep it meaningful, hence it
is better to split into one enum for values and one for flags.

Signed-off-by: Yuri Nudelman <ynudelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_buffer.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/memory.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c