summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
index e140b47a..4654491f 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
@@ -4036,8 +4036,14 @@ static int pmu_handle_therm_event(struct pmu_gk20a *pmu,
4036 4036
4037 switch (msg->msg_type) { 4037 switch (msg->msg_type) {
4038 case NV_PMU_THERM_MSG_ID_EVENT_HW_SLOWDOWN_NOTIFICATION: 4038 case NV_PMU_THERM_MSG_ID_EVENT_HW_SLOWDOWN_NOTIFICATION:
4039 gk20a_dbg_pmu("received asserted event mask %d", 4039#ifdef CONFIG_ARCH_TEGRA_18x_SOC
4040 msg->hw_slct_msg.mask); 4040 if (msg->hw_slct_msg.mask == BIT(NV_PMU_THERM_EVENT_THERMAL_1))
4041 nvgpu_clk_arb_schedule_alarm(gk20a_from_pmu(pmu),
4042 (0x1UL << NVGPU_GPU_EVENT_ALARM_THERMAL_ABOVE_THRESHOLD));
4043 else
4044#endif
4045 gk20a_dbg_pmu("Unwanted/Unregistered thermal event received %d",
4046 msg->hw_slct_msg.mask);
4041 break; 4047 break;
4042 default: 4048 default:
4043 gk20a_dbg_pmu("unkown therm event received %d", msg->msg_type); 4049 gk20a_dbg_pmu("unkown therm event received %d", msg->msg_type);