Author: kib
Date: Thu Apr 27 12:15:15 2017
New Revision: 317501
URL: https://svnweb.freebsd.org/changeset/base/317501

Log:
  MFC r317196:
  Write-combine framebuffer writes through user-space mappings, if possible.

Modified:
  stable/10/sys/dev/fb/vesa.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/fb/vesa.c
==============================================================================
--- stable/10/sys/dev/fb/vesa.c Thu Apr 27 12:12:33 2017        (r317500)
+++ stable/10/sys/dev/fb/vesa.c Thu Apr 27 12:15:15 2017        (r317501)
@@ -1636,6 +1636,9 @@ vesa_mmap(video_adapter_t *adp, vm_ooffs
                if (offset > adp->va_window_size - PAGE_SIZE)
                        return (-1);
                *paddr = adp->va_info.vi_buffer + offset;
+#ifdef VM_MEMATTR_WRITE_COMBINING
+               *memattr = VM_MEMATTR_WRITE_COMBINING;
+#endif
                return (0);
        }
        return ((*prevvidsw->mmap)(adp, offset, paddr, prot, memattr));
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to