From f391f53c089ec12fcc501c491430380b668e3cbf Mon Sep 17 00:00:00 2001 From: Sunny He Date: Wed, 26 Jul 2017 18:08:00 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1527422 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gp106/therm_gp106.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gp106/therm_gp106.h') 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 @@ /* * general thermal control structures & definitions * - * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -16,7 +16,14 @@ #ifndef NVGPU_THERM_GP106_H #define NVGPU_THERM_GP106_H -#include "gk20a/gk20a.h" +struct gk20a; + +void gp106_get_internal_sensor_limits(s32 *max_24_8, s32 *min_24_8); +int gp106_get_internal_sensor_curr_temp(struct gk20a *g, u32 *temp_f24_8); +#ifdef CONFIG_DEBUG_FS +void gp106_therm_debugfs_init(struct gk20a *g); +#endif +int gp106_elcg_init_idle_filters(struct gk20a *g); +u32 gp106_configure_therm_alert(struct gk20a *g, s32 curr_warn_temp); -void gp106_init_therm_ops(struct gpu_ops *gops); #endif -- cgit v1.2.2