svn commit: r306557 - head/sys/arm/broadcom/bcm2835
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Sat Oct 1 18:16:23 UTC 2016
Author: gonzo
Date: Sat Oct 1 17:57:32 2016
New Revision: 306557
URL: https://svnweb.freebsd.org/changeset/base/306557
Log:
Use VM_MEMATTR_WRITE_COMBINING memattr for mmap(2) on framebuffer
VM_MEMATTR_WRITE_COMBINING sets write-through cache flag for framebuffer
memory that prevents pixel data from being stuck in cache until evicition
happens
Modified:
head/sys/arm/broadcom/bcm2835/bcm2835_fbd.c
Modified: head/sys/arm/broadcom/bcm2835/bcm2835_fbd.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_fbd.c Sat Oct 1 17:48:41 2016 (r306556)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_fbd.c Sat Oct 1 17:57:32 2016 (r306557)
@@ -113,6 +113,8 @@ bcm_fb_setup_fbd(struct bcmsc_softc *sc)
sc->info.fb_stride = fb.pitch;
sc->info.fb_width = fb.xres;
sc->info.fb_height = fb.yres;
+ sc->info.fb_flags = FB_FLAG_MEMATTR;
+ sc->info.fb_memattr = VM_MEMATTR_WRITE_COMBINING;
if (sc->fbswap) {
switch (sc->info.fb_bpp) {
More information about the svn-src-all
mailing list