From: Florian Tobias Schandinat Date: Sun, 24 Apr 2011 17:08:44 +0000 (+0000) Subject: viafb: use write combining for video ram X-Git-Tag: v3.0-rc1~364^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=cace71b318aa0126e7cfe49fe5e9133e0395c478;p=~shefty%2Frdma-dev.git viafb: use write combining for video ram This can give a speed up of factor 6-9, which is quite notable. Signed-off-by: Florian Tobias Schandinat --- diff --git a/drivers/video/via/via-core.c b/drivers/video/via/via-core.c index 6723d6910cd..5b0129b42d8 100644 --- a/drivers/video/via/via-core.c +++ b/drivers/video/via/via-core.c @@ -505,7 +505,7 @@ static int __devinit via_pci_setup_mmio(struct viafb_dev *vdev) ret = vdev->fbmem_len = viafb_get_fb_size_from_pci(vdev->chip_type); if (ret < 0) goto out_unmap; - vdev->fbmem = ioremap_nocache(vdev->fbmem_start, vdev->fbmem_len); + vdev->fbmem = ioremap_wc(vdev->fbmem_start, vdev->fbmem_len); if (vdev->fbmem == NULL) { ret = -ENOMEM; goto out_unmap;