diff options
author | Martin Radev <mradev@nvidia.com> | 2018-02-22 07:06:48 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-26 15:03:24 -0500 |
commit | 2f2e51bbae39009d0305f6aaf01596571a8f5d5c (patch) | |
tree | 5c4291304f58abb6b75980cfac2a4ece27b2eca3 /drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c | |
parent | d98232ab21df04605cfc453528d12aab8af25b49 (diff) |
gpu: nvgpu: Use gv11b_css_hw_set_handled_snapshots for GV11B
The value of NV_PERF_PMASYS_MEM_BUMP is different for Volta
and NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT_CMD_FLUSH did not
have correct behavior on GV11B due to that.
The patch adds an instance of css_hw_set_handled_snapshots
for Volta to fix that.
The patch also renames css_hw_set_handled_snapshots
to gk20a_css_hw_set_handled_snapshots to make it more clear
that the function is arch dependent.
Bug 1960846
Change-Id: I92c35a862ecd7f918dd1458c086fc7ae42ca8fc5
Signed-off-by: Martin Radev <mradev@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1662427
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c index 114386a2..60ba875f 100644 --- a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c | |||
@@ -75,7 +75,7 @@ static inline u32 css_hw_get_pending_snapshots(struct gk20a *g) | |||
75 | } | 75 | } |
76 | 76 | ||
77 | /* informs hw how many snapshots have been processed (frees up fifo space) */ | 77 | /* informs hw how many snapshots have been processed (frees up fifo space) */ |
78 | void css_hw_set_handled_snapshots(struct gk20a *g, u32 done) | 78 | void gk20a_css_hw_set_handled_snapshots(struct gk20a *g, u32 done) |
79 | { | 79 | { |
80 | if (done > 0) { | 80 | if (done > 0) { |
81 | gk20a_writel(g, perf_pmasys_mem_bump_r(), | 81 | gk20a_writel(g, perf_pmasys_mem_bump_r(), |
@@ -102,7 +102,7 @@ static void css_hw_reset_streaming(struct gk20a *g) | |||
102 | perf_pmasys_control_membuf_clear_status_doit_f()); | 102 | perf_pmasys_control_membuf_clear_status_doit_f()); |
103 | 103 | ||
104 | /* pointing all pending snapshots as handled */ | 104 | /* pointing all pending snapshots as handled */ |
105 | css_hw_set_handled_snapshots(g, css_hw_get_pending_snapshots(g)); | 105 | gk20a_css_hw_set_handled_snapshots(g, css_hw_get_pending_snapshots(g)); |
106 | } | 106 | } |
107 | 107 | ||
108 | /* | 108 | /* |