From b96a6506d0095ef7271b9fadaba2e0dc6ca33484 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Mon, 10 Sep 2018 19:48:14 +0530 Subject: gpu: nvgpu: rename PMU perf unit to pmu_perf Move all files under perf/* to pmu_perf/* since pmu_perf is logically appropriate name for PMU's perf unit Rename perf.c to pmu_perf.c Also rename the HAL from gops.perf to gops.pmu_perf Jira NVGPU-1102 Change-Id: I79e73b8b102ddf6b49783c2f38d861cd43b0b4c6 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1819301 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/perf/perf.h | 85 ------------------------------------------- 1 file changed, 85 deletions(-) delete mode 100644 drivers/gpu/nvgpu/perf/perf.h (limited to 'drivers/gpu/nvgpu/perf/perf.h') diff --git a/drivers/gpu/nvgpu/perf/perf.h b/drivers/gpu/nvgpu/perf/perf.h deleted file mode 100644 index 71c8086b..00000000 --- a/drivers/gpu/nvgpu/perf/perf.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ -#ifndef NVGPU_PERF_H -#define NVGPU_PERF_H - -#include -#include "vfe_equ.h" -#include "vfe_var.h" -#include "pstate/pstate.h" -#include "volt/volt.h" -#include "lpwr/lpwr.h" -#include "boardobj/boardobjgrp_e255.h" - -#define CTRL_PERF_VFE_VAR_TYPE_INVALID 0x00 -#define CTRL_PERF_VFE_VAR_TYPE_DERIVED 0x01 -#define CTRL_PERF_VFE_VAR_TYPE_DERIVED_PRODUCT 0x02 -#define CTRL_PERF_VFE_VAR_TYPE_DERIVED_SUM 0x03 -#define CTRL_PERF_VFE_VAR_TYPE_SINGLE 0x04 -#define CTRL_PERF_VFE_VAR_TYPE_SINGLE_FREQUENCY 0x05 -#define CTRL_PERF_VFE_VAR_TYPE_SINGLE_SENSED 0x06 -#define CTRL_PERF_VFE_VAR_TYPE_SINGLE_SENSED_FUSE 0x07 -#define CTRL_PERF_VFE_VAR_TYPE_SINGLE_SENSED_TEMP 0x08 -#define CTRL_PERF_VFE_VAR_TYPE_SINGLE_VOLTAGE 0x09 - -#define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_NONE 0x00 -#define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_VALUE 0x01 -#define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_OFFSET 0x02 -#define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_SCALE 0x03 - -#define CTRL_PERF_VFE_EQU_TYPE_INVALID 0x00 -#define CTRL_PERF_VFE_EQU_TYPE_COMPARE 0x01 -#define CTRL_PERF_VFE_EQU_TYPE_MINMAX 0x02 -#define CTRL_PERF_VFE_EQU_TYPE_QUADRATIC 0x03 - -#define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_UNITLESS 0x00 -#define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_FREQ_MHZ 0x01 -#define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_VOLT_UV 0x02 -#define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_VF_GAIN 0x03 -#define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_VOLT_DELTA_UV 0x04 - -#define CTRL_PERF_VFE_EQU_QUADRATIC_COEFF_COUNT 0x03 - -#define CTRL_PERF_VFE_EQU_COMPARE_FUNCTION_EQUAL 0x00 -#define CTRL_PERF_VFE_EQU_COMPARE_FUNCTION_GREATER_EQ 0x01 -#define CTRL_PERF_VFE_EQU_COMPARE_FUNCTION_GREATER 0x02 - -struct gk20a; - -struct nvgpu_vfe_invalidate { - bool state_change; - struct nvgpu_cond wq; - struct nvgpu_thread state_task; -}; - -struct perf_pmupstate { - struct vfe_vars vfe_varobjs; - struct vfe_equs vfe_equobjs; - struct pstates pstatesobjs; - struct obj_volt volt; - struct obj_lwpr lpwr; - struct nvgpu_vfe_invalidate vfe_init; -}; - -u32 perf_pmu_vfe_load(struct gk20a *g); - -#endif /* NVGPU_PERF_H */ -- cgit v1.2.2