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)
commite403856468456aeaff68a5cb0a851d945c133ed9
tree925ffebc7aea1c9b7e034f599576cb6a3afd109c
parent6b9b9e244fdd0d6c5ee21b7b9d74282d9e43733a
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