diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-11-11 03:20:46 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-10 18:23:36 -0500 |
commit | 8d712cd23596ec53e519ac531348f5ee93fc7717 (patch) | |
tree | c638b01736ea4a992ecf46046a64659c3ba9ce3b /drivers/gpu/nvgpu/gk20a | |
parent | f3e0dba8bfb20489f23c93a16bc5bd337206705f (diff) |
gpu: nvgpu: Add thermal alarm notification for UMD
Added the thermal alarm notification handling for UMD
JIRA DNVGPU-130
Bug 200231080
Change-Id: I034c7b35a18a091ef7659ff992f1950576623cad
Signed-off-by: Lakshmanan M <lm@nvidia.com>
Reviewed-on: http://git-master/r/1251760
(cherry picked from commit 9e66f2e2f7fbcab29e25c976c1d5fa29671afcd0)
Reviewed-on: http://git-master/r/1282084
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 10 |
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); |