HomeFreeBSD

MFC r306555:

Description

MFC r306555:

Provide way for framebuffer driver to request mmap(2) mapping type

On ARM if memattr is not overriden mmap(2) maps framebuffer
memory as WBWA which means part of changes to content in userland
end up in cache and appear on screen gradually as cache lines are
evicted. This change adds configurable memattr that hardware fb
implementation can set to get the memory mapping type it
requires:

  • Add new flag FB_FLAG_MEMATTR that indicates that framebuffer driver overrides default memattr
  • Add new field fb_memattr to struct fb_info to specify requested memattr

Reviewed by: ray
Differential Revision: https://reviews.freebsd.org/D8064

Details

Provenance
gonzoAuthored on
Reviewer
ray
Differential Revision
D8064: Allow framebuffer driver control memory mapping type for mmap(2) call
Parents
rS307588: MFC r306346
Branches
Unknown
Tags
Unknown