summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2022-06-01 20:48:10 +1000
committerBen Skeggs <bskeggs@redhat.com>2022-11-09 10:45:11 +1000
commit0d7557072414af191cefbaa7c908e1c09f5b7d7b (patch)
treed1ae068af1623410c66243dee1c87a18191093ae /drivers/gpu/drm/nouveau/nvkm
parent366e01092a050579b1f28129bdb72bc7c65ba47a (diff)
downloadlinux-0d7557072414af191cefbaa7c908e1c09f5b7d7b.tar.gz
drm/nouveau/gr/gf100-: gpfifo_ctl zero before init
Match RM. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
index ffdb5c38afee..17e1c0dfda47 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
@@ -2285,6 +2285,8 @@ gf100_gr_init(struct gf100_gr *gr)
struct nvkm_device *device = gr->base.engine.subdev.device;
int gpc, tpc, rop;
+ nvkm_mask(device, 0x400500, 0x00010001, 0x00000000);
+
if (gr->func->init_419bd8)
gr->func->init_419bd8(gr);