summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/gaudi
diff options
context:
space:
mode:
authorRajaravi Krishna Katta <rkatta@habana.ai>2021-08-05 09:24:16 +0200
committerOded Gabbay <ogabbay@kernel.org>2021-12-26 07:59:06 +0100
commitd8eb50f31cc7b0f01e610327376a49ac3f0865a2 (patch)
tree36b4c82ad4373d1a8ec425ada8a0c43a88d81ddf /drivers/misc/habanalabs/gaudi
parenthabanalabs: abort reset on invalid request (diff)
downloadlinux-d8eb50f31cc7b0f01e610327376a49ac3f0865a2.tar.xz
linux-d8eb50f31cc7b0f01e610327376a49ac3f0865a2.zip
habanalabs: Move frequency change thread to goya_late_init
Changing the frequency automatically is only done in Goya. In future ASICs this is done inside the firmware. Therefore, move the common code into the Goya specific files. Main changes as part of the commit are: 1. The thread for setting frequency is moved from device_late_init to goya_late_init 2. hl_device_set_frequency is removed from hl_device_open as it is not relevant for other ASICs and for Goya it is taken care by the thread 3. hl_device_set_frequency is renamed as goya_set_frequency Signed-off-by: Rajaravi Krishna Katta <rkatta@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/gaudi')
-rw-r--r--drivers/misc/habanalabs/gaudi/gaudi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index b101a46076b8..f29afcca74fc 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -1636,6 +1636,8 @@ static int gaudi_late_init(struct hl_device *hdev)
*/
gaudi_mmu_prepare(hdev, 1);
+ hdev->asic_funcs->set_pll_profile(hdev, PLL_LAST);
+
return 0;
disable_pci_access: