diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-05-24 15:31:57 -0400 |
---|---|---|
committer | Tejal Kudav <tkudav@nvidia.com> | 2018-06-14 09:44:07 -0400 |
commit | ed65f1f26e2d0ca4a491215297b61d25b0c1493b (patch) | |
tree | ad4ce439a0f77fe89f9138e6f4284aeaa996b4c8 /drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | |
parent | 4eae06299ba35e3f6a48eef4a19cde6d1c374deb (diff) |
gpu: nvgpu: Move setting priv interrupt to priv_ring
Registers to set priv interrupts are in priv_ring, but the code was
in bus HAL. Move the code and related HALs to priv_ring instead.
JIRA NVGPU-588
Change-Id: I708d11f77405dbba86586a0d1da42f65bcc1de9d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1730889
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c index dea42b55..adbaf94f 100644 --- a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h> | 32 | #include <nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h> |
33 | #include <nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h> | 33 | #include <nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h> |
34 | #include <nvgpu/hw/gk20a/hw_pri_ringstation_gpc_gk20a.h> | 34 | #include <nvgpu/hw/gk20a/hw_pri_ringstation_gpc_gk20a.h> |
35 | #include <nvgpu/hw/gk20a/hw_pri_ringstation_fbp_gk20a.h> | ||
35 | 36 | ||
36 | void gk20a_enable_priv_ring(struct gk20a *g) | 37 | void gk20a_enable_priv_ring(struct gk20a *g) |
37 | { | 38 | { |
@@ -103,3 +104,14 @@ void gk20a_priv_ring_isr(struct gk20a *g) | |||
103 | if (retry == 0 && cmd != pri_ringmaster_command_cmd_no_cmd_v()) | 104 | if (retry == 0 && cmd != pri_ringmaster_command_cmd_no_cmd_v()) |
104 | nvgpu_warn(g, "priv ringmaster intr ack too many retries"); | 105 | nvgpu_warn(g, "priv ringmaster intr ack too many retries"); |
105 | } | 106 | } |
107 | |||
108 | void gk20a_priv_set_timeout_settings(struct gk20a *g) | ||
109 | { | ||
110 | /* | ||
111 | * Bug 1340570: increase the clock timeout to avoid potential | ||
112 | * operation failure at high gpcclk rate. Default values are 0x400. | ||
113 | */ | ||
114 | nvgpu_writel(g, pri_ringstation_sys_master_config_r(0x15), 0x800); | ||
115 | nvgpu_writel(g, pri_ringstation_gpc_master_config_r(0xa), 0x800); | ||
116 | nvgpu_writel(g, pri_ringstation_fbp_master_config_r(0x8), 0x800); | ||
117 | } | ||