summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorSandeep Shinde <sashinde@nvidia.com>2017-08-24 02:42:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-07 23:07:13 -0400
commit33f192b2f781007fb7f9598613ce3811f3f39237 (patch)
treee0d559b108b97f01db020ec257b45eded289a02c /drivers/gpu/nvgpu/include
parent70c4496ca7add205f604c5c7fec8c16033394ba0 (diff)
gpu: nvgpu: Add pd_max_batches sysfs node for gp10b
Add a new sysfs node pd_max_batches for setting max batches value in NV_PGRAPH_PRI_PD_AB_DIST_CONFIG_1_MAX_BATCHES register which controls max number of batches per alpha-beta transition stored in PD. Bug 1927124 Change-Id: I2817f2d70dab348d8b0b8ba19bf1e9b9d23ca907 Signed-off-by: Sandeep Shinde <sashinde@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1544104 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit aa4daddda23aa44a84464200f497eac802a8e6ce) Reviewed-on: https://git-master.nvidia.com/r/1543355 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
index fe902cbb..e56923c6 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
@@ -1662,6 +1662,10 @@ static inline u32 gr_pd_ab_dist_cfg1_r(void)
1662{ 1662{
1663 return 0x004064c4; 1663 return 0x004064c4;
1664} 1664}
1665static inline u32 gr_pd_ab_dist_cfg1_max_batches_f(u32 v)
1666{
1667 return (v & 0xffff) << 0;
1668}
1665static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void) 1669static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
1666{ 1670{
1667 return 0xffff; 1671 return 0xffff;