diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-26 21:08:00 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 19:34:45 -0400 |
commit | f391f53c089ec12fcc501c491430380b668e3cbf (patch) | |
tree | cc7dde1ab600dedb48c1b712094c16ceafaf5cdc /drivers/gpu/nvgpu/gp106/therm_gp106.h | |
parent | f0593bb43f3379baffd7bb77b89c9af18842ceef (diff) |
gpu: nvgpu: Reorg therm HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the
therm sub-module of the gpu_ops struct.
Perform HAL function assignments in hal_gxxxx.c through the
population of a chip-specific copy of gpu_ops.
Jira NVGPU-74
Change-Id: Ic9d03304d3dcde0365cbf22af2dbe1e7eb0e04bb
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1527422
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/therm_gp106.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/therm_gp106.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/therm_gp106.h b/drivers/gpu/nvgpu/gp106/therm_gp106.h index 6db17c47..2866320b 100644 --- a/drivers/gpu/nvgpu/gp106/therm_gp106.h +++ b/drivers/gpu/nvgpu/gp106/therm_gp106.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * general thermal control structures & definitions | 2 | * general thermal control structures & definitions |
3 | * | 3 | * |
4 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -16,7 +16,14 @@ | |||
16 | #ifndef NVGPU_THERM_GP106_H | 16 | #ifndef NVGPU_THERM_GP106_H |
17 | #define NVGPU_THERM_GP106_H | 17 | #define NVGPU_THERM_GP106_H |
18 | 18 | ||
19 | #include "gk20a/gk20a.h" | 19 | struct gk20a; |
20 | |||
21 | void gp106_get_internal_sensor_limits(s32 *max_24_8, s32 *min_24_8); | ||
22 | int gp106_get_internal_sensor_curr_temp(struct gk20a *g, u32 *temp_f24_8); | ||
23 | #ifdef CONFIG_DEBUG_FS | ||
24 | void gp106_therm_debugfs_init(struct gk20a *g); | ||
25 | #endif | ||
26 | int gp106_elcg_init_idle_filters(struct gk20a *g); | ||
27 | u32 gp106_configure_therm_alert(struct gk20a *g, s32 curr_warn_temp); | ||
20 | 28 | ||
21 | void gp106_init_therm_ops(struct gpu_ops *gops); | ||
22 | #endif | 29 | #endif |