summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2015-05-05 11:05:44 -0400
committerAdam Jackson <ajax@redhat.com>2015-07-01 11:04:40 -0400
commit04432b9c1db255e8e3d39a924f8803f83c407acc (patch)
tree6fb74a69a49e922b1cbe83b2ce4e0db4fcd07eae /src
parentda1223394ac9b6f3974b0b2570cbf46a2425fc11 (diff)
Enable write-combining on the framebuffer BAR
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/mga_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index f0025b1..8a7186f 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -2594,7 +2594,8 @@ MGAMapMem(ScrnInfoPtr pScrn)
pciaddr_t fbsize = pMga->FbMapSize;
err = pci_device_map_range(dev,
fbaddr, fbsize,
- PCI_DEV_MAP_FLAG_WRITABLE,
+ PCI_DEV_MAP_FLAG_WRITABLE |
+ PCI_DEV_MAP_FLAG_WRITE_COMBINE,
(void **)&pMga->FbBase);
if (err) {