summaryrefslogtreecommitdiffstats
path: root/include/uapi/misc
diff options
context:
space:
mode:
authorMoti Haimovski <mhaimovski@habana.ai>2020-12-07 09:10:34 +0200
committerOded Gabbay <ogabbay@kernel.org>2021-01-27 21:03:49 +0200
commit0eda23d77e1beede9c61b0cba6d9267d3a92bd4e (patch)
tree66d6f7deefdb0bce67f2d464cdf255b887a01837 /include/uapi/misc
parente1b85dbaf06d2e2a61797318738e52abeafa4f6b (diff)
downloadlinux-0eda23d77e1beede9c61b0cba6d9267d3a92bd4e.tar.bz2
habanalabs: report dram_page_size in hw_ip_info ioctl
Instead of having it hard-coded as a define, pass it to the user in runtime. Signed-off-by: Moti Haimovski <mhaimovski@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'include/uapi/misc')
-rw-r--r--include/uapi/misc/habanalabs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h
index b9afe1cdac24..b431a70e1b8b 100644
--- a/include/uapi/misc/habanalabs.h
+++ b/include/uapi/misc/habanalabs.h
@@ -320,6 +320,8 @@ struct hl_info_hw_ip_info {
__u8 pad[2];
__u8 cpucp_version[HL_INFO_VERSION_MAX_LEN];
__u8 card_name[HL_INFO_CARD_NAME_MAX_LEN];
+ __u64 reserved2;
+ __u64 dram_page_size;
};
struct hl_info_dram_usage {