diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 949cd4a5..c5da68cc 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -64,6 +64,18 @@ struct cooling_device_gk20a { | |||
64 | struct gk20a *g; | 64 | struct gk20a *g; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | #ifdef CONFIG_DEBUG_FS | ||
68 | struct railgate_stats { | ||
69 | unsigned long last_rail_gate_start; | ||
70 | unsigned long last_rail_gate_complete; | ||
71 | unsigned long last_rail_ungate_start; | ||
72 | unsigned long last_rail_ungate_complete; | ||
73 | unsigned long total_rail_gate_time_ms; | ||
74 | unsigned long total_rail_ungate_time_ms; | ||
75 | unsigned long railgating_cycle_count; | ||
76 | }; | ||
77 | #endif | ||
78 | |||
67 | enum gk20a_cbc_op { | 79 | enum gk20a_cbc_op { |
68 | gk20a_cbc_op_clear, | 80 | gk20a_cbc_op_clear, |
69 | gk20a_cbc_op_clean, | 81 | gk20a_cbc_op_clean, |
@@ -687,6 +699,9 @@ struct gk20a { | |||
687 | struct acr_desc acr; | 699 | struct acr_desc acr; |
688 | struct cooling_device_gk20a gk20a_cdev; | 700 | struct cooling_device_gk20a gk20a_cdev; |
689 | 701 | ||
702 | #ifdef CONFIG_DEBUG_FS | ||
703 | struct railgate_stats pstats; | ||
704 | #endif | ||
690 | /* Save pmu fw here so that it lives cross suspend/resume. | 705 | /* Save pmu fw here so that it lives cross suspend/resume. |
691 | pmu suspend destroys all pmu sw/hw states. Loading pmu | 706 | pmu suspend destroys all pmu sw/hw states. Loading pmu |
692 | fw in resume crashes when the resume is from sys_exit. */ | 707 | fw in resume crashes when the resume is from sys_exit. */ |