[PATCH] fbdev: fill in the access_align field.
authorJames Simmons <jsimmons@pentafluge.infradead.org>
Wed, 22 Jun 2005 00:17:08 +0000 (17:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:42 +0000 (19:07 -0700)
Several drivers miss filling in the access_align field.  So this patch has
them fill it in.

Signed-off-by: James Simmons <jsimmons@www.infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbmem.c
drivers/video/i810/i810_main.c
drivers/video/intelfb/intelfbdrv.c
drivers/video/nvidia/nvidia.c
drivers/video/riva/fbdev.c
drivers/video/savage/savagefb_driver.c

index 6f871a8b905879163f90a422db8f7f057f9545a2..2222de6ad8446b8d77ec879cf04ecface133fa83 100644 (file)
@@ -1034,7 +1034,7 @@ register_framebuffer(struct fb_info *fb_info)
                        fb_info->pixmap.size = FBPIXMAPSIZE;
                        fb_info->pixmap.buf_align = 1;
                        fb_info->pixmap.scan_align = 1;
-                       fb_info->pixmap.access_align = 4;
+                       fb_info->pixmap.access_align = 32;
                        fb_info->pixmap.flags = FB_PIXMAP_DEFAULT;
                }
        }       
index a9a618f2aa6a25316522c16f8649d13ba52eec34..7513fb9b19cf739cc41afaf888efb0edae722587 100644 (file)
@@ -1885,6 +1885,7 @@ static int __devinit i810fb_init_pci (struct pci_dev *dev,
        memset(info->pixmap.addr, 0, 8*1024);
        info->pixmap.size = 8*1024;
        info->pixmap.buf_align = 8;
+       info->pixmap.access_align = 32;
        info->pixmap.flags = FB_PIXMAP_SYSTEM;
 
        if ((err = i810_allocate_pci_resource(par, entry))) {
index 448c90864016052fcd4ef8c9d37aa9ab7bbaf8ac..298bc9cd99e7f59772a8d551307ec3b9d77032d4 100644 (file)
@@ -1091,6 +1091,7 @@ intelfb_set_fbinfo(struct intelfb_info *dinfo)
 
        info->pixmap.size = 64*1024;
        info->pixmap.buf_align = 8;
+       info->pixmap.access_align = 32;
        info->pixmap.flags = FB_PIXMAP_SYSTEM;
 
        if (intelfb_init_var(dinfo))
index 266ff5d7ac361f5d60f8fea1f229e8387e2c6e7d..b2e6b240786917d9c1cae810a76729d3ff2c0686 100644 (file)
@@ -1345,6 +1345,7 @@ static int __devinit nvidia_set_fbinfo(struct fb_info *info)
 
        info->pixmap.scan_align = 4;
        info->pixmap.buf_align = 4;
+       info->pixmap.access_align = 32;
        info->pixmap.size = 8 * 1024;
        info->pixmap.flags = FB_PIXMAP_SYSTEM;
 
index 7540f60af94832b725f489b606bda831c190cfa9..6a9e183be41b7f53f0ce74afc18abfa03fcac1cc 100644 (file)
@@ -1723,6 +1723,7 @@ static int __devinit riva_set_fbinfo(struct fb_info *info)
 
        info->pixmap.size = 8 * 1024;
        info->pixmap.buf_align = 4;
+       info->pixmap.access_align = 32;
        info->pixmap.flags = FB_PIXMAP_SYSTEM;
        info->var.yres_virtual = -1;
        NVTRACE_LEAVE();
index 03d74e8ee06777f8991591a61bc2812c2843c775..8fadcdae6f426216200ed6659dd3cfbca031e57f 100644 (file)
@@ -1897,7 +1897,7 @@ static int __devinit savage_init_fb_info (struct fb_info *info,
                info->pixmap.size = 8*1024;
                info->pixmap.scan_align = 4;
                info->pixmap.buf_align = 4;
-               info->pixmap.access_align = 4;
+               info->pixmap.access_align = 32;
 
                fb_alloc_cmap (&info->cmap, NR_PALETTE, 0);
                info->flags |= FBINFO_HWACCEL_COPYAREA |