diff options
| author | Ohad Sharabi <osharabi@habana.ai> | 2022-02-06 08:50:43 +0200 |
|---|---|---|
| committer | Oded Gabbay <ogabbay@kernel.org> | 2022-02-28 14:22:05 +0200 |
| commit | e8458e20e0a3c426ed5ed3ce590c05718c8b8e8e (patch) | |
| tree | 13574aa6245742d0408309ff8cccb7026b18b50b /lib/mpi/mpi-bit.c | |
| parent | 100fcf1e111de3e8433777f305b042267c5ad79f (diff) | |
habanalabs: make sure device mem alloc is page aligned
Working with MMU that supports multiple page sizes requires that mapping
of a page of a certain size will be aligned to the same size (e.g. the
physical address of 32MB page shall be aligned to 32MB).
To achieve this the gen_poll allocation is now using the "align" variant
to comply with the alignment requirements.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
