History

habanalabs: add DRAM default page size to HW info

When using the device memory allocation API the user ought to know what is the default allocation page size.

Ohad Sharabi committed 4 years ago

Commit 1359fcb1 parent 378b02d2 files · +4 −0Browse files

Showing the changes to include/uapi/misc (1 of 2 files). Show all

Unified · Split

include/uapi/misc/habanalabs.h+3−0
@@ -409,6 +409,7 @@ enum hl_server_type { · 408 unmodified lines
409409 * @dram_page_size: The DRAM physical page size.
410410 * @number_of_user_interrupts: The number of interrupts that are available to the userspace
411411 * application to use. Relevant for Gaudi2 and later.
412+ * @device_mem_alloc_default_page_size: default page size used in device memory allocation.
412413 */
413414 struct hl_info_hw_ip_info {
414415 __u64 sram_base_address;
@@ -436,6 +437,8 @@ struct hl_info_hw_ip_info { · 21 unmodified lines
436437 __u32 reserved3;
437438 __u16 number_of_user_interrupts;
438439 __u16 pad2;
440+ __u64 reserved4;
441+ __u64 device_mem_alloc_default_page_size;
439442 };
440443
441444 struct hl_info_dram_usage {