diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 05:01:00 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 05:35:06 -0500 |
commit | 7a81883a0d70c3a43ad2841ac235f6dc344c60fb (patch) | |
tree | 92923d2efccf90d1961071fa9acde59178a0d688 /drivers/gpu/nvgpu/perf/perf.h | |
parent | 505b442551a2e27aa3bc9e608c5a2bc9fccecbc4 (diff) | |
parent | 2aa3c85f8e82b3c07c39e677663abd3687c1822a (diff) |
Merge remote-tracking branch 'remotes/origin/dev/merge-nvgpu-t18x-into-nvgpu' into dev-kernel
Merge T186 - gp10b/gp106 code into common nvgpu repo
Bug 200266498
Change-Id: Ibf100ee38010cbed85c149b69b99147256f9a005
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/perf/perf.h')
-rw-r--r-- | drivers/gpu/nvgpu/perf/perf.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/perf/perf.h b/drivers/gpu/nvgpu/perf/perf.h new file mode 100644 index 00000000..a3213f7a --- /dev/null +++ b/drivers/gpu/nvgpu/perf/perf.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | */ | ||
13 | #ifndef _PERF_H_ | ||
14 | #define _PERF_H_ | ||
15 | |||
16 | #include "vfe_equ.h" | ||
17 | #include "vfe_var.h" | ||
18 | #include "pstate/pstate.h" | ||
19 | #include "gk20a/gk20a.h" | ||
20 | #include "volt/volt.h" | ||
21 | #include "lpwr/lpwr.h" | ||
22 | |||
23 | #define CTRL_PERF_VFE_VAR_TYPE_INVALID 0x00 | ||
24 | #define CTRL_PERF_VFE_VAR_TYPE_DERIVED 0x01 | ||
25 | #define CTRL_PERF_VFE_VAR_TYPE_DERIVED_PRODUCT 0x02 | ||
26 | #define CTRL_PERF_VFE_VAR_TYPE_DERIVED_SUM 0x03 | ||
27 | #define CTRL_PERF_VFE_VAR_TYPE_SINGLE 0x04 | ||
28 | #define CTRL_PERF_VFE_VAR_TYPE_SINGLE_FREQUENCY 0x05 | ||
29 | #define CTRL_PERF_VFE_VAR_TYPE_SINGLE_SENSED 0x06 | ||
30 | #define CTRL_PERF_VFE_VAR_TYPE_SINGLE_SENSED_FUSE 0x07 | ||
31 | #define CTRL_PERF_VFE_VAR_TYPE_SINGLE_SENSED_TEMP 0x08 | ||
32 | #define CTRL_PERF_VFE_VAR_TYPE_SINGLE_VOLTAGE 0x09 | ||
33 | |||
34 | #define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_NONE 0x00 | ||
35 | #define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_VALUE 0x01 | ||
36 | #define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_OFFSET 0x02 | ||
37 | #define CTRL_PERF_VFE_VAR_SINGLE_OVERRIDE_TYPE_SCALE 0x03 | ||
38 | |||
39 | #define CTRL_PERF_VFE_EQU_TYPE_INVALID 0x00 | ||
40 | #define CTRL_PERF_VFE_EQU_TYPE_COMPARE 0x01 | ||
41 | #define CTRL_PERF_VFE_EQU_TYPE_MINMAX 0x02 | ||
42 | #define CTRL_PERF_VFE_EQU_TYPE_QUADRATIC 0x03 | ||
43 | |||
44 | #define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_UNITLESS 0x00 | ||
45 | #define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_FREQ_MHZ 0x01 | ||
46 | #define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_VOLT_UV 0x02 | ||
47 | #define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_VF_GAIN 0x03 | ||
48 | #define CTRL_PERF_VFE_EQU_OUTPUT_TYPE_VOLT_DELTA_UV 0x04 | ||
49 | |||
50 | #define CTRL_PERF_VFE_EQU_QUADRATIC_COEFF_COUNT 0x03 | ||
51 | |||
52 | #define CTRL_PERF_VFE_EQU_COMPARE_FUNCTION_EQUAL 0x00 | ||
53 | #define CTRL_PERF_VFE_EQU_COMPARE_FUNCTION_GREATER_EQ 0x01 | ||
54 | #define CTRL_PERF_VFE_EQU_COMPARE_FUNCTION_GREATER 0x02 | ||
55 | |||
56 | struct perf_pmupstate { | ||
57 | struct vfe_vars vfe_varobjs; | ||
58 | struct vfe_equs vfe_equobjs; | ||
59 | struct pstates pstatesobjs; | ||
60 | struct obj_volt volt; | ||
61 | struct obj_lwpr lpwr; | ||
62 | }; | ||
63 | |||
64 | u32 perf_pmu_vfe_load(struct gk20a *g); | ||
65 | |||
66 | #endif | ||