History

habanalabs/gaudi2: add PCI revision 2 support

Add support for Gaudi2 Device with PCI revision 2. Functionality is exactly the same as revision 1, the only difference is device name exposed to user.

Ofir Bitton committed 4 years ago

Commit 841cd2d1 parent 306206910 files · +46 −17Browse files

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

Unified · Split

include/uapi/misc/habanalabs.h+7−0
@@ -868,6 +868,7 @@ enum hl_server_type { · 867 unmodified lines
868 * @number_of_user_interrupts: The number of interrupts that are available to the userspace868 * @number_of_user_interrupts: The number of interrupts that are available to the userspace
869 * application to use. Relevant for Gaudi2 and later.869 * application to use. Relevant for Gaudi2 and later.
870 * @device_mem_alloc_default_page_size: default page size used in device memory allocation.870 * @device_mem_alloc_default_page_size: default page size used in device memory allocation.
871 * @revision_id: PCI revision ID of the ASIC.
871 */872 */
872struct hl_info_hw_ip_info {873struct hl_info_hw_ip_info {
873 __u64 sram_base_address;874 __u64 sram_base_address;
@@ -898,6 +899,12 @@ struct hl_info_hw_ip_info { · 24 unmodified lines
898 __u16 pad2;899 __u16 pad2;
899 __u64 reserved4;900 __u64 reserved4;
900 __u64 device_mem_alloc_default_page_size;901 __u64 device_mem_alloc_default_page_size;
902 __u64 reserved5;
903 __u64 reserved6;
904 __u32 reserved7;
905 __u8 reserved8;
906 __u8 revision_id;
907 __u8 pad[2];
901};908};
902 909
903struct hl_info_dram_usage {910struct hl_info_dram_usage {