habanalabs: clean MMU headers definitions
authorOhad Sharabi <osharabi@habana.ai>
Wed, 8 Dec 2021 07:06:03 +0000 (09:06 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:09 +0000 (08:59 +0200)
commitd636a932b3ab96523fe09c6148a0fa01f938b4f6
tree7a054543f8e40d4507b3aa366366bfa20601ed3a
parent9993f27de104d8d0f83c332ec5bc7642de20fae4
habanalabs: clean MMU headers definitions

During the MMU development the MMU header files were left with unclean
definitions:

- MMU "version specific" definitions that were left in the mmu_general
  file
- unused definitions

This patch attempts, where possible, to keep definitions that can serve
multiple MMU versions (but that are not tightly bound with specific MMU
arch) in the mmu_general header file (e.g. different definitions for
number of HOPs).

Otherwise, move MMU version specific definitions (e.g. HOPs masks and
shifts) to the specific MMU version file.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/mmu/mmu_v1.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/hw_ip/mmu/mmu_general.h
drivers/misc/habanalabs/include/hw_ip/mmu/mmu_v1_0.h
drivers/misc/habanalabs/include/hw_ip/mmu/mmu_v1_1.h