svn commit: r317500 - stable/11/sys/dev/fb

Konstantin Belousov kib at FreeBSD.org
Thu Apr 27 12:12:35 UTC 2017


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

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

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

Modified: stable/11/sys/dev/fb/vesa.c
==============================================================================
--- stable/11/sys/dev/fb/vesa.c	Thu Apr 27 12:09:03 2017	(r317499)
+++ stable/11/sys/dev/fb/vesa.c	Thu Apr 27 12:12:33 2017	(r317500)
@@ -1635,6 +1635,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));


More information about the svn-src-stable-11 mailing list