Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • video
  • fbdev
  • hyperv_fb.c
Find file BlameHistoryPermalink
  • Wei Hu's avatar
    video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs. · 3a6fb6c4
    Wei Hu authored Dec 09, 2019
    
    
    On Hyper-V, Generation 1 VMs can directly use VM's physical memory for
    their framebuffers. This can improve the efficiency of framebuffer and
    overall performence for VM. The physical memory assigned to framebuffer
    must be contiguous. We use CMA allocator to get contiguouse physicial
    memory when the framebuffer size is greater than 4MB. For size under
    4MB, we use alloc_pages to achieve this.
    
    To enable framebuffer memory allocation from CMA, supply a kernel
    parameter to give enough space to CMA allocator at boot time. For
    example:
        cma=130m
    This gives 130MB memory to CAM allocator that can be allocated to
    framebuffer. If this fails, we fall back to the old way of using
    mmio for framebuffer.
    
    Reported-by: default avatarkbuild test robot <lkp@intel.com>
    Signed-off-by: default avatarWei Hu <weh@microsoft.com>
    Acked-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
    Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
    3a6fb6c4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7