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
  • include
  • linux
  • pgtable.h
Find file BlameHistoryPermalink
  • Catalin Marinas's avatar
    arm64: mte: Map hotplugged memory as Normal Tagged · d15dfd31
    Catalin Marinas authored Mar 09, 2021
    
    
    In a system supporting MTE, the linear map must allow reading/writing
    allocation tags by setting the memory type as Normal Tagged. Currently,
    this is only handled for memory present at boot. Hotplugged memory uses
    Normal non-Tagged memory.
    
    Introduce pgprot_mhp() for hotplugged memory and use it in
    add_memory_resource(). The arm64 code maps pgprot_mhp() to
    pgprot_tagged().
    
    Note that ZONE_DEVICE memory should not be mapped as Tagged and
    therefore setting the memory type in arch_add_memory() is not feasible.
    
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    Fixes: 0178dc76
    
     ("arm64: mte: Use Normal Tagged attributes for the linear map")
    Reported-by: default avatarPatrick Daly <pdaly@codeaurora.org>
    Tested-by: default avatarPatrick Daly <pdaly@codeaurora.org>
    Link: https://lore.kernel.org/r/1614745263-27827-1-git-send-email-pdaly@codeaurora.org
    
    
    Cc: <stable@vger.kernel.org> # 5.10.x
    Cc: Will Deacon <will@kernel.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
    Cc: David Hildenbrand <david@redhat.com>
    Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
    Reviewed-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
    Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
    Link: https://lore.kernel.org/r/20210309122601.5543-1-catalin.marinas@arm.com
    
    
    Signed-off-by: default avatarWill Deacon <will@kernel.org>
    d15dfd31
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7