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
This commit is contained in:
parent
fe6f517cf0
commit
8ee7716721
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user