]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: restructure hl_mmap
authorOded Gabbay <oded.gabbay@gmail.com>
Sat, 29 Aug 2020 08:51:39 +0000 (11:51 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:51 +0000 (18:49 +0300)
commit1518d6728ee563a6e361ec98c8f54bdeb88b06ef
tree19b93d14a98445319a8c790c4a6b12b9a21ef52d
parent8a75bfc651eededc8f50eb2ffc308702e9282784
habanalabs: restructure hl_mmap

Arrange the hl_mmap code to be more structured and expandable for the
future. Add better defines that describe our usage of the vm_pgoff.

Note that I shamelessly took the code and defines from the amdkfd driver
(my previous driver).

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/command_buffer.c
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h