mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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 <FlorianSchandinat@gmx.de>
This commit is contained in:
parent
f33f6f0ccc
commit
cace71b318
@ -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);
|
ret = vdev->fbmem_len = viafb_get_fb_size_from_pci(vdev->chip_type);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out_unmap;
|
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) {
|
if (vdev->fbmem == NULL) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto out_unmap;
|
goto out_unmap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user