From ae04f394cf9a82a762a7152747a6bba5be6f5f53 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 19 Apr 2018 07:14:28 -0700 Subject: gpu: nvgpu: add HAL to set ppriv timeouts Add new HAL gops.bus.set_ppriv_timeout_settings() to set platform specific ppriv timeouts Set this HAL for all supported GPUs for now Jira NVGPUT-35 Change-Id: I88b438a7bf381d0216e0947a16cd267461d0e8d7 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1699314 Reviewed-by: svc-mobile-coverity Reviewed-by: Richard Zhao GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index ed1f9af9..51bb2551 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -53,9 +53,6 @@ #include #include #include -#include -#include -#include #include #include #include @@ -4489,12 +4486,8 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g) gr_gk20a_zcull_init_hw(g, gr); - /* Bug 1340570: increase the clock timeout to avoid potential - * operation failure at high gpcclk rate. Default values are 0x400. - */ - gk20a_writel(g, pri_ringstation_sys_master_config_r(0x15), 0x800); - gk20a_writel(g, pri_ringstation_gpc_master_config_r(0xa), 0x800); - gk20a_writel(g, pri_ringstation_fbp_master_config_r(0x8), 0x800); + if (g->ops.bus.set_ppriv_timeout_settings) + g->ops.bus.set_ppriv_timeout_settings(g); /* enable fifo access */ gk20a_writel(g, gr_gpfifo_ctl_r(), -- cgit v1.2.2