Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-coresight-backports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-coresight-backports
  • Repository
  • linux-coresight-backports
  • arch
  • mips
  • kernel
  • setup.c
Find file BlameHistoryPermalink
  • Zubair Lutfullah Kakakhel's avatar
    MIPS: CMA: Do not reserve memory if not required · 30fa0530
    Zubair Lutfullah Kakakhel authored Oct 28, 2014
    
    
    Even if CMA is disabled, the for_each_memblock macro expands
    to run reserve_bootmem once. Hence, reserve_bootmem attempts to
    reserve location 0 of size 0.
    
    Add a check to avoid that.
    
    Issue was highlighted during testing with EVA enabled.
    resrve_bootmem used to exit gracefully when passed arguments to
    reserve 0 size location at 0 without EVA.
    
    But with EVA enabled, macros would point to different addresses
    and the code would trigger a BUG.
    
    Signed-off-by: default avatarZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
    Tested-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
    Tested-by: default avatarHuacai Chen <chenhc@lemote.com>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/8231/
    
    
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    30fa0530