diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-05-24 18:25:41 -0400 |
---|---|---|
committer | Tejal Kudav <tkudav@nvidia.com> | 2018-06-14 09:44:07 -0400 |
commit | d71d38087ded679f60714dae3a859523a19df04f (patch) | |
tree | 61439d294705ef91ce08ae4c02d4921eec943283 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 5215d65c25b5e76c19d9d12b03c52f69e2d40227 (diff) |
gpu: nvgpu: Separate timer from bus
Code touching timer registers was combined with bus code. They're two
logically separate register spaces, so separate the code accordingly.
JIRA NVGPU-588
Change-Id: I40e2925ff156669f41ddc1f2e7714f92a2da367b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1730893
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 2a9fb57c..08a1fc10 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1120,10 +1120,6 @@ struct gpu_ops { | |||
1120 | struct { | 1120 | struct { |
1121 | void (*init_hw)(struct gk20a *g); | 1121 | void (*init_hw)(struct gk20a *g); |
1122 | void (*isr)(struct gk20a *g); | 1122 | void (*isr)(struct gk20a *g); |
1123 | int (*read_ptimer)(struct gk20a *g, u64 *value); | ||
1124 | int (*get_timestamps_zipper)(struct gk20a *g, | ||
1125 | u32 source_id, u32 count, | ||
1126 | struct nvgpu_cpu_time_correlation_sample *); | ||
1127 | int (*bar1_bind)(struct gk20a *g, struct nvgpu_mem *bar1_inst); | 1123 | int (*bar1_bind)(struct gk20a *g, struct nvgpu_mem *bar1_inst); |
1128 | u32 (*set_bar0_window)(struct gk20a *g, struct nvgpu_mem *mem, | 1124 | u32 (*set_bar0_window)(struct gk20a *g, struct nvgpu_mem *mem, |
1129 | struct nvgpu_sgt *sgt, struct nvgpu_sgl *sgl, | 1125 | struct nvgpu_sgt *sgt, struct nvgpu_sgl *sgl, |
@@ -1131,6 +1127,14 @@ struct gpu_ops { | |||
1131 | } bus; | 1127 | } bus; |
1132 | 1128 | ||
1133 | struct { | 1129 | struct { |
1130 | void (*isr)(struct gk20a *g); | ||
1131 | int (*read_ptimer)(struct gk20a *g, u64 *value); | ||
1132 | int (*get_timestamps_zipper)(struct gk20a *g, | ||
1133 | u32 source_id, u32 count, | ||
1134 | struct nvgpu_cpu_time_correlation_sample *); | ||
1135 | } ptimer; | ||
1136 | |||
1137 | struct { | ||
1134 | int (*init)(struct gk20a *g); | 1138 | int (*init)(struct gk20a *g); |
1135 | int (*preos_wait_for_halt)(struct gk20a *g); | 1139 | int (*preos_wait_for_halt)(struct gk20a *g); |
1136 | void (*preos_reload_check)(struct gk20a *g); | 1140 | void (*preos_reload_check)(struct gk20a *g); |