1
From 53293422072043e897c2d755d4139b5e4d5532de Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= <koriakin@0x04.net>
3
Date: Thu, 25 Feb 2010 18:53:37 +0000
4
Subject: [PATCH] drm/nv50: Remove redundant/incorrect ctxvals initialisation.
6
Content-Type: text/plain; charset=UTF-8
7
Content-Transfer-Encoding: 8bit
9
11c/004 offset corresponds to PGRAPH reg 0x400828, and is initialised
10
earlier anyway by both our ctxprog generator and blob ctxvals. It's
11
actually incorrect with the generator, since we use different layout
14
Signed-off-by: Marcin Kościelnicki <koriakin@0x04.net>
15
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
16
(cherry-picked from 53293422072043e897c2d755d4139b5e4d5532de)
17
Signed-off-by: Andy Whitcroft <apw@canonical.com>
19
drivers/gpu/drm/nouveau/nv50_graph.c | 4 ----
20
1 files changed, 0 insertions(+), 4 deletions(-)
22
diff --git a/drivers/gpu/drm/nouveau/nv50_graph.c b/drivers/gpu/drm/nouveau/nv50_graph.c
23
index 857a096..08d87b7 100644
24
--- a/drivers/gpu/drm/nouveau/nv50_graph.c
25
+++ b/drivers/gpu/drm/nouveau/nv50_graph.c
26
@@ -229,10 +229,6 @@ nv50_graph_create_context(struct nouveau_channel *chan)
27
nouveau_grctx_vals_load(dev, ctx);
29
nv_wo32(dev, ctx, 0x00000/4, chan->ramin->instance >> 12);
30
- if ((dev_priv->chipset & 0xf0) == 0xa0)
31
- nv_wo32(dev, ctx, 0x00004/4, 0x00000000);
33
- nv_wo32(dev, ctx, 0x0011c/4, 0x00000000);
34
dev_priv->engine.instmem.finish_access(dev);