When using the device memory allocation API the user ought to know what is the default allocation page size.
Showing the changes to include/uapi/misc (1 of 2 files). Show all
Unified · Split
| @@ -409,6 +409,7 @@ enum hl_server_type { · 408 unmodified lines | ||
| 409 | 409 | * @dram_page_size: The DRAM physical page size. |
| 410 | 410 | * @number_of_user_interrupts: The number of interrupts that are available to the userspace |
| 411 | 411 | * application to use. Relevant for Gaudi2 and later. |
| 412 | + * @device_mem_alloc_default_page_size: default page size used in device memory allocation. | |
| 412 | 413 | */ |
| 413 | 414 | struct hl_info_hw_ip_info { |
| 414 | 415 | __u64 sram_base_address; |
| @@ -436,6 +437,8 @@ struct hl_info_hw_ip_info { · 21 unmodified lines | ||
| 436 | 437 | __u32 reserved3; |
| 437 | 438 | __u16 number_of_user_interrupts; |
| 438 | 439 | __u16 pad2; |
| 440 | + __u64 reserved4; | |
| 441 | + __u64 device_mem_alloc_default_page_size; | |
| 439 | 442 | }; |
| 440 | 443 | |
| 441 | 444 | struct hl_info_dram_usage { |