Skip to contentSkip to conversation

drm/nouveau/fb: use correct ram oclass for nv1a hardware

PATCH In review Emil Velikov 2 participants 2 messages Feb 12, 2014 – Feb 14, 2014 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau/fb: use correct ram oclass for nv1a hardware

commit 8613e7314ac254fdd67ed46192f021d76141e4c9

Author: Ben Skeggs <[email protected]>
Date:   Mon Oct 21 08:50:25 2013 +1000

drm/nouveau/fb: remove ram oclass argument from base fb constructor

Introduced a unfortunate regression by using nv10 ram oclass for nv1a hardware, causing corruption and eventually system lockup.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74866

---
 drivers/gpu/drm/nouveau/core/subdev/fb/nv1a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/core/subdev/fb/nv1a.c +1 -1
index 9159a5c..265d125 100644
@@ -36,7 +36,7 @@ nv1a_fb_oclass = &(struct nv04_fb_impl) {
 		.fini = _nouveau_fb_fini,
 	},
 	.base.memtype = nv04_fb_memtype_valid,
-	.base.ram = &nv10_ram_oclass,
+	.base.ram = &nv1a_ram_oclass,
 	.tile.regions = 8,
 	.tile.init = nv10_fb_tile_init,
 	.tile.fini = nv10_fb_tile_fini,
Signature · 1 line
1.8.5.4

A message that is not in the archive (sent off-list or not yet received): 1392169302-8155-1-git-send-email-emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw
Quoted 6 lines · Emil Velikov

commit 8613e7314ac254fdd67ed46192f021d76141e4c9

Author: Ben Skeggs <[email protected]>
Date:   Mon Oct 21 08:50:25 2013 +1000

drm/nouveau/fb: remove ram oclass argument from base fb constructor

Quoted 7 lines

Introduced a unfortunate regression by using nv10 ram oclass for nv1a hardware, causing corruption and eventually system lockup.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74866

Thanks :)

Quoted 24 lines
---
 drivers/gpu/drm/nouveau/core/subdev/fb/nv1a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/core/subdev/fb/nv1a.c +1 -2
index 9159a5c..265d125 100644
@@ -36,7 +36,7 @@ nv1a_fb_oclass = &(struct nv04_fb_impl) {
                .fini = _nouveau_fb_fini,
        },
        .base.memtype = nv04_fb_memtype_valid,
-       .base.ram = &nv10_ram_oclass,
+       .base.ram = &nv1a_ram_oclass,
        .tile.regions = 8,
        .tile.init = nv10_fb_tile_init,
        .tile.fini = nv10_fb_tile_fini,
--

1.8.5.4

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau