Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • linux-vf linux-vf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • 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-vflinux-vf
  • Repository
Switch branch/tag
  • linux-vf
  • arch
  • arm64
  • include
  • asm
  • cache.h
Find file BlameHistoryPermalink
  • Shaokun Zhang's avatar
    arm64: cacheinfo: Update cache_line_size detected from DT or PPTT · 7b8c87b2
    Shaokun Zhang authored May 28, 2019 and Catalin Marinas's avatar Catalin Marinas committed Jun 04, 2019
    
    
    cache_line_size is derived from CTR_EL0.CWG field and is called mostly
    for I/O device drivers. For some platforms like the HiSilicon Kunpeng920
    server SoC, cache line sizes are different between L1/2 cache and L3
    cache while L1 cache line size is 64-byte and L3 is 128-byte, but
    CTR_EL0.CWG is misreporting using L1 cache line size.
    
    We shall correct the right value which is important for I/O performance.
    Let's update the cache line size if it is detected from DT or PPTT
    information.
    
    Cc: Will Deacon <will.deacon@arm.com>
    Cc: Jeremy Linton <jeremy.linton@arm.com>
    Cc: Zhenfa Qiu <qiuzhenfa@hisilicon.com>
    Reported-by: default avatarZhenfa Qiu <qiuzhenfa@hisilicon.com>
    Suggested-by: Catalin Marinas's avatarCatalin Marinas <catalin.marinas@arm.com>
    Reviewed-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
    Signed-off-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
    Signed-off-by: Catalin Marinas's avatarCatalin Marinas <catalin.marinas@arm.com>
    7b8c87b2