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
You need to sign in or sign up before continuing.
  • linux
  • arch
  • arm64
  • kernel
  • cpuinfo.c
Find file BlameHistoryPermalink
  • Anshuman Khandual's avatar
    arm64/cpuinfo: Define HWCAP name arrays per their actual bit definitions · 4e56de82
    Anshuman Khandual authored Sep 09, 2020
    
    
    HWCAP name arrays (hwcap_str, compat_hwcap_str, compat_hwcap2_str) that are
    scanned for /proc/cpuinfo are detached from their bit definitions making it
    vulnerable and difficult to correlate. It is also bit problematic because
    during /proc/cpuinfo dump these arrays get traversed sequentially assuming
    they reflect and match actual HWCAP bit sequence, to test various features
    for a given CPU. This redefines name arrays per their HWCAP bit definitions
    . It also warns after detecting any feature which is not expected on arm64.
    
    Signed-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
    Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Will Deacon <will@kernel.org>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Dave Martin <Dave.Martin@arm.com>
    Cc: Ard Biesheuvel <ardb@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-kernel@vger.kernel.org
    Link: https://lore.kernel.org/r/1599630535-29337-1-git-send-email-anshuman.khandual@arm.com
    
    
    Signed-off-by: default avatarWill Deacon <will@kernel.org>
    4e56de82
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7