Commit 7659c30d authored by Dafna Hirschfeld's avatar Dafna Hirschfeld Committed by Oded Gabbay

habanalabs: set default value for memory_scrub

Set a default value for memory scrubbing
Signed-off-by: default avatarDafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 605e1ef3
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#define HL_RESET_DELAY_USEC 10000 /* 10ms */ #define HL_RESET_DELAY_USEC 10000 /* 10ms */
#define MEM_SCRUB_DEFAULT_VAL 0x1122334455667788
/* /*
* hl_set_dram_bar- sets the bar to allow later access to address * hl_set_dram_bar- sets the bar to allow later access to address
* *
...@@ -1727,6 +1729,7 @@ int hl_device_init(struct hl_device *hdev, struct class *hclass) ...@@ -1727,6 +1729,7 @@ int hl_device_init(struct hl_device *hdev, struct class *hclass)
hdev->asic_funcs->state_dump_init(hdev); hdev->asic_funcs->state_dump_init(hdev);
hdev->memory_scrub_val = MEM_SCRUB_DEFAULT_VAL;
hl_debugfs_add_device(hdev); hl_debugfs_add_device(hdev);
/* debugfs nodes are created in hl_ctx_init so it must be called after /* debugfs nodes are created in hl_ctx_init so it must be called after
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment