diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-07-27 19:16:39 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-07-30 04:21:51 -0400 |
commit | d0e62ef6ed257715a88d0e5d7cd850a1695429e2 (patch) | |
tree | 7efe885751c1770ecf41c8c733210fdec1e9bfb9 | |
parent | 692a17dcc2922a91c6bcf11b3321503a3377b1b1 (diff) |
drm/nouveau/gr/nv3x: fix instobj write offsets in gr setup
This should fix some unaligned access warnings. This is also likely to
fix non-descript issues on nv30/nv34 as a result of incorrect channel
setup.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96836
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c index 69de8c6259fe..f1e15a4d4f64 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c | |||
@@ -76,8 +76,8 @@ nv30_gr_chan_new(struct nvkm_gr *base, struct nvkm_fifo_chan *fifoch, | |||
76 | nvkm_wo32(chan->inst, i, 0x00040004); | 76 | nvkm_wo32(chan->inst, i, 0x00040004); |
77 | for (i = 0x1f18; i <= 0x3088 ; i += 16) { | 77 | for (i = 0x1f18; i <= 0x3088 ; i += 16) { |
78 | nvkm_wo32(chan->inst, i + 0, 0x10700ff9); | 78 | nvkm_wo32(chan->inst, i + 0, 0x10700ff9); |
79 | nvkm_wo32(chan->inst, i + 1, 0x0436086c); | 79 | nvkm_wo32(chan->inst, i + 4, 0x0436086c); |
80 | nvkm_wo32(chan->inst, i + 2, 0x000c001b); | 80 | nvkm_wo32(chan->inst, i + 8, 0x000c001b); |
81 | } | 81 | } |
82 | for (i = 0x30b8; i < 0x30c8; i += 4) | 82 | for (i = 0x30b8; i < 0x30c8; i += 4) |
83 | nvkm_wo32(chan->inst, i, 0x0000ffff); | 83 | nvkm_wo32(chan->inst, i, 0x0000ffff); |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c index 2207dac23981..300f5ed5de0b 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c | |||
@@ -75,8 +75,8 @@ nv34_gr_chan_new(struct nvkm_gr *base, struct nvkm_fifo_chan *fifoch, | |||
75 | nvkm_wo32(chan->inst, i, 0x00040004); | 75 | nvkm_wo32(chan->inst, i, 0x00040004); |
76 | for (i = 0x15ac; i <= 0x271c ; i += 16) { | 76 | for (i = 0x15ac; i <= 0x271c ; i += 16) { |
77 | nvkm_wo32(chan->inst, i + 0, 0x10700ff9); | 77 | nvkm_wo32(chan->inst, i + 0, 0x10700ff9); |
78 | nvkm_wo32(chan->inst, i + 1, 0x0436086c); | 78 | nvkm_wo32(chan->inst, i + 4, 0x0436086c); |
79 | nvkm_wo32(chan->inst, i + 2, 0x000c001b); | 79 | nvkm_wo32(chan->inst, i + 8, 0x000c001b); |
80 | } | 80 | } |
81 | for (i = 0x274c; i < 0x275c; i += 4) | 81 | for (i = 0x274c; i < 0x275c; i += 4) |
82 | nvkm_wo32(chan->inst, i, 0x0000ffff); | 82 | nvkm_wo32(chan->inst, i, 0x0000ffff); |