Skip to content
Snippets Groups Projects
Select Git revision
  • a87a77cb947cc9fc89f0dad51aeee66a61cc7fc4
  • easycap-v2-noncont-stats-25-jan2
  • easycap-v2-noncont-stats-25-jan
  • easypcap-test-regressions
  • easycap-v2-coherent-stats-24-jan
  • mt8195-tracking-master-2
  • test-mt8173-only-smi-cleanup
  • mt8173-mdp
  • test-mt8173-mdp-both-sets
  • test-mt8173-torvalds-clean-5.16
  • easycap-coherent-10-jan
  • easycap-noncont-10-jan
  • easycap-no-noncont
  • easycap-4
  • easycap-3
  • easycap-2
  • easycap
  • nov-29-2
  • nov-22
  • nov-15
  • fix-iommu-warning-sre
21 results

linux

  • Clone with SSH
  • Clone with HTTPS
  • Forked from André Almeida / linux
    Source project has a limited visibility.
    user avatar
    Srikar Dronamraju authored and Michael Ellerman committed
    Unlike drivers/base/cacheinfo, powerpc cacheinfo code is not exposing
    shared_cpu_list under /sys/devices/system/cpu/cpu<n>/cache/index<m>
    
    Add shared_cpu_list to per cpu per index directory to maintain parity
    with x86. Some scripts (example: mmtests
    https://github.com/gormanm/mmtests
    
    ) seem to be looking for
    shared_cpu_list instead of shared_cpu_map.
    
    Before this patch:
      # ls /sys/devices/system/cpu0/cache/index1
      coherency_line_size  number_of_sets  size  ways_of_associativity
      level                shared_cpu_map  type
      # cat /sys/devices/system/cpu0/cache/index1/shared_cpu_map
      00ff
      #
    
    After this patch:
      # ls /sys/devices/system/cpu0/cache/index1
      coherency_line_size  number_of_sets   shared_cpu_map  type
      level                shared_cpu_list  size            ways_of_associativity
      # cat /sys/devices/system/cpu0/cache/index1/shared_cpu_map
      00ff
      # cat /sys/devices/system/cpu0/cache/index1/shared_cpu_list
      0-7
      #
    
    Signed-off-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Link: https://lore.kernel.org/r/20200629103703.4538-4-srikar@linux.vnet.ibm.com
    a87a77cb
    History
    Name Last commit Last update