Searched refs:clk_throttling (Results 1 – 6 of 6) sorted by relevance
359 mutex_lock(&hdev->clk_throttling.lock); in clk_throttle_info()361 clk_throttle.clk_throttling_reason = hdev->clk_throttling.current_reason; in clk_throttle_info()364 if (!(hdev->clk_throttling.aggregated_reason & BIT(i))) in clk_throttle_info()368 ktime_to_us(hdev->clk_throttling.timestamp[i].start); in clk_throttle_info()370 if (ktime_compare(hdev->clk_throttling.timestamp[i].end, zero_time)) in clk_throttle_info()371 end_time = hdev->clk_throttling.timestamp[i].end; in clk_throttle_info()377 hdev->clk_throttling.timestamp[i].start)); in clk_throttle_info()380 mutex_unlock(&hdev->clk_throttling.lock); in clk_throttle_info()
920 mutex_init(&hdev->clk_throttling.lock); in device_early_init()967 mutex_destroy(&hdev->clk_throttling.lock); in device_early_fini()
3389 struct hl_clk_throttle clk_throttling; member
4588 mutex_lock(&hdev->clk_throttling.lock); in goya_print_clk_change_info()4592 hdev->clk_throttling.current_reason |= HL_CLK_THROTTLE_POWER; in goya_print_clk_change_info()4593 hdev->clk_throttling.aggregated_reason |= HL_CLK_THROTTLE_POWER; in goya_print_clk_change_info()4594 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].start = ktime_get(); in goya_print_clk_change_info()4595 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = zero_time; in goya_print_clk_change_info()4601 hdev->clk_throttling.current_reason &= ~HL_CLK_THROTTLE_POWER; in goya_print_clk_change_info()4602 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = ktime_get(); in goya_print_clk_change_info()4608 hdev->clk_throttling.current_reason |= HL_CLK_THROTTLE_THERMAL; in goya_print_clk_change_info()4609 hdev->clk_throttling.aggregated_reason |= HL_CLK_THROTTLE_THERMAL; in goya_print_clk_change_info()4610 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_THERMAL].start = ktime_get(); in goya_print_clk_change_info()[all …]
7514 mutex_lock(&hdev->clk_throttling.lock); in gaudi_print_clk_change_info()7518 hdev->clk_throttling.current_reason |= HL_CLK_THROTTLE_POWER; in gaudi_print_clk_change_info()7519 hdev->clk_throttling.aggregated_reason |= HL_CLK_THROTTLE_POWER; in gaudi_print_clk_change_info()7520 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].start = ktime_get(); in gaudi_print_clk_change_info()7521 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = zero_time; in gaudi_print_clk_change_info()7527 hdev->clk_throttling.current_reason &= ~HL_CLK_THROTTLE_POWER; in gaudi_print_clk_change_info()7528 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = ktime_get(); in gaudi_print_clk_change_info()7534 hdev->clk_throttling.current_reason |= HL_CLK_THROTTLE_THERMAL; in gaudi_print_clk_change_info()7535 hdev->clk_throttling.aggregated_reason |= HL_CLK_THROTTLE_THERMAL; in gaudi_print_clk_change_info()7536 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_THERMAL].start = ktime_get(); in gaudi_print_clk_change_info()[all …]
9302 mutex_lock(&hdev->clk_throttling.lock); in gaudi2_print_clk_change_info()9306 hdev->clk_throttling.current_reason |= HL_CLK_THROTTLE_POWER; in gaudi2_print_clk_change_info()9307 hdev->clk_throttling.aggregated_reason |= HL_CLK_THROTTLE_POWER; in gaudi2_print_clk_change_info()9308 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].start = ktime_get(); in gaudi2_print_clk_change_info()9309 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = zero_time; in gaudi2_print_clk_change_info()9314 hdev->clk_throttling.current_reason &= ~HL_CLK_THROTTLE_POWER; in gaudi2_print_clk_change_info()9315 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = ktime_get(); in gaudi2_print_clk_change_info()9320 hdev->clk_throttling.current_reason |= HL_CLK_THROTTLE_THERMAL; in gaudi2_print_clk_change_info()9321 hdev->clk_throttling.aggregated_reason |= HL_CLK_THROTTLE_THERMAL; in gaudi2_print_clk_change_info()9322 hdev->clk_throttling.timestamp[HL_CLK_THROTTLE_TYPE_THERMAL].start = ktime_get(); in gaudi2_print_clk_change_info()[all …]