linux-stable/include/uapi/misc
Ohad Sharabi f23f280277 habanalabs: allow user to set allocation page size
In future ASICs the MMU will be able to work with multiple page sizes,
thus a new flag is added to allow the user to set the requested page
size.

This flag is added since the whole DRAM is allocated for the user and
the user also should be familiar with the memory usage use case.

As such, the user may choose to "over allocate" memory in favor of
performance (for instance- large page allocations covers more memory
in less TLB entries).

For example: say available page sizes are of 1MB and 32MB. If user
wants to allocate 40MB the user can either set page size to 1MB and
allocate the exact amount of memory (but will result in 40 TLB entries)
or the user can use 32MB pages, "waste" 8MB of physical memory but
occupy only 2 TLB entries.

Note that this feature will be available only to ASIC that supports
multiple DRAM page sizes.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2022-02-28 14:22:05 +02:00
..
uacce crypto: hisilicon/qm - add queue isolation support for Kunpeng930 2021-03-26 20:15:58 +11:00
cxl.h
fastrpc.h misc: fastrpc: add ioctl for attaching to sensors pd 2020-09-16 17:30:37 +02:00
habanalabs.h habanalabs: allow user to set allocation page size 2022-02-28 14:22:05 +02:00
ocxl.h ocxl: do not use C++ style comments in uapi header 2019-06-14 15:35:53 +10:00
pvpanic.h misc: pvpanic: add crash loaded event 2020-01-14 15:07:37 +01:00
xilinx_sdfec.h misc: xilinx_sdfec: Add stats & status ioctls 2019-08-15 17:54:38 +02:00