summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2015-04-28 16:17:07 +0900
committerBen Skeggs <bskeggs@redhat.com>2015-07-27 18:56:08 +1000
commit9c56be4cf3d6db5a20c3b6483bd4cdc21c15cf4f (patch)
tree2e02016a1866fb45110ee39c99ee59489b6a0d32 /drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
parenta67e14b0b6e35355411a4f2b05f8d087a196dac9 (diff)
downloadop-kernel-dev-9c56be4cf3d6db5a20c3b6483bd4cdc21c15cf4f.zip
op-kernel-dev-9c56be4cf3d6db5a20c3b6483bd4cdc21c15cf4f.tar.gz
drm/nouveau/ibus/gk20a: increase SM wait timeout
Increase clock timeout for SYS, FPB and GPC in order to avoid operation failure at high gpcclk rate. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c b/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
index c0fdb89..24dcdfb 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
@@ -38,6 +38,14 @@ gk20a_ibus_init_priv_ring(struct gk20a_ibus_priv *priv)
nv_wr32(priv, 0x12004c, 0x4);
nv_wr32(priv, 0x122204, 0x2);
nv_rd32(priv, 0x122204);
+
+ /*
+ * Bug: increase clock timeout to avoid operation failure at high
+ * gpcclk rate.
+ */
+ nv_wr32(priv, 0x122354, 0x800);
+ nv_wr32(priv, 0x128328, 0x800);
+ nv_wr32(priv, 0x124320, 0x800);
}
static void
OpenPOWER on IntegriCloud