]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs/gaudi: use 8KB aligned address for TPC kernels
authorTomer Tayar <ttayar@habana.ai>
Mon, 19 Sep 2022 15:46:03 +0000 (18:46 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 20 Sep 2022 12:51:54 +0000 (15:51 +0300)
commita35d8e3eac372f24ea484d815826afa01346c0a9
tree925ffebc7aea1c9b7e034f599576cb6a3afd109c
parent68628e6d91435f3735c6ff567a59cbbb7f04c3e0
habanalabs/gaudi: use 8KB aligned address for TPC kernels

I$ prefetch is enabled when sending a TPC kernel to initialize the TPC
memory, and it has a restriction that the base address will be aligned
to 8KB.
Currently the base address is 128 bytes from the start address of the
device SRAM, so prefetching will start 128 bytes before the actual
kernel memory.
Modify the kernel address to be 8KB aligned.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c