diff options
author | Martin Radev <mradev@nvidia.com> | 2018-03-05 07:12:10 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-08 14:04:31 -0500 |
commit | a83c99ecb41c5fa0b287efafa22db0e9770ab3e4 (patch) | |
tree | af5a81edd87c39286ef38526e62e171c86557e21 /drivers/gpu/nvgpu/gv11b/css_gr_gv11b.h | |
parent | da9b549cd15b2f193a1c8b30f96d4106b28ddd30 (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.
Bug 1960846
Bug 2068936
Change-Id: Ic057338d3b1b951a66d070267e69a90f136598b9
Signed-off-by: Martin Radev <mradev@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1668568
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/css_gr_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/css_gr_gv11b.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.h index 6b11a62e..186f5fcc 100644 --- a/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/css_gr_gv11b.h | |||
@@ -30,5 +30,6 @@ int gv11b_css_hw_enable_snapshot(struct channel_gk20a *ch, | |||
30 | void gv11b_css_hw_disable_snapshot(struct gr_gk20a *gr); | 30 | void gv11b_css_hw_disable_snapshot(struct gr_gk20a *gr); |
31 | int gv11b_css_hw_check_data_available(struct channel_gk20a *ch, u32 *pending, | 31 | int gv11b_css_hw_check_data_available(struct channel_gk20a *ch, u32 *pending, |
32 | bool *hw_overflow); | 32 | bool *hw_overflow); |
33 | void gv11b_css_hw_set_handled_snapshots(struct gk20a *g, u32 done); | ||
33 | 34 | ||
34 | #endif /* CSS_GR_GV11B_H */ | 35 | #endif /* CSS_GR_GV11B_H */ |