1. 28 8月, 2019 1 次提交
  2. 12 7月, 2019 1 次提交
  3. 03 7月, 2019 1 次提交
    • S
      tools/power/x86: A tool to validate Intel Speed Select commands · 3fb4f7cd
      Srinivas Pandruvada 提交于
      The Intel(R) Speed select technologies contains four features.
      
      Performance profile:An non architectural mechanism that allows multiple
      optimized performance profiles per system via static and/or dynamic
      adjustment of core count, workload, Tjmax, and TDP, etc. aka ISS
      in the documentation.
      
      Base Frequency: Enables users to increase guaranteed base frequency on
      certain cores (high priority cores) in exchange for lower base frequency
      on remaining cores (low priority cores). aka PBF in the documenation.
      
      Turbo frequency: Enables the ability to set different turbo ratio limits
      to cores based on priority. aka FACT in the documentation.
      
      Core power: An Interface that allows user to define per core/tile
      priority.
      
      There is a multi level help for commands and options. This can be used
      to check required arguments for each feature and commands for the
      feature.
      
      To start navigating the features start with
      
      $sudo intel-speed-select --help
      
      For help on a specific feature for example
      $sudo intel-speed-select perf-profile --help
      
      To get help for a command for a feature for example
      $sudo intel-speed-select perf-profile get-lock-status --help
      Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Acked-by: NLen Brown <len.brown@intel.com>
      Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      3fb4f7cd
  4. 19 6月, 2019 1 次提交
  5. 05 6月, 2019 1 次提交
  6. 31 5月, 2019 1 次提交
  7. 21 3月, 2019 11 次提交
  8. 19 3月, 2019 1 次提交
  9. 07 3月, 2019 1 次提交
  10. 29 12月, 2018 2 次提交
  11. 18 12月, 2018 1 次提交
  12. 15 12月, 2018 2 次提交
  13. 03 11月, 2018 2 次提交
    • L
      tools/power turbostat: reduce debug output · 0ec712e3
      Len Brown 提交于
      A recent turbostat release increased topo.max_cpu_num
      to make it convenient to handle sysfs bitmaps of 32-cpus.
      
      But users, who regularly make use of "--debug", then saw a bunch of output
      for cpus that were not present.
      
      Remove that extra output by checking a cpu is online before dumping its info.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Cc: Prarit Bhargava <prarit@redhat.com>
      0ec712e3
    • L
      tools/power turbosat: fix AMD APIC-id output · 34041551
      Len Brown 提交于
      turbostat recently gained a feature adding APIC and X2APIC columns.
      While they are disabled by-default, they are enabled with --debug
      or when explicitly requested, eg.
      
      $ sudo turbostat --quiet --show Package,Node,Core,CPU,APIC,X2APIC date
      
      But these columns erroneously showed zeros on AMD hardware.
      This patch corrects the APIC and X2APIC [sic] columns on AMD.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      34041551
  14. 02 10月, 2018 1 次提交
    • P
      x86/cpu: Sanitize FAM6_ATOM naming · f2c4db1b
      Peter Zijlstra 提交于
      Going primarily by:
      
        https://en.wikipedia.org/wiki/List_of_Intel_Atom_microprocessors
      
      with additional information gleaned from other related pages; notably:
      
       - Bonnell shrink was called Saltwell
       - Moorefield is the Merriefield refresh which makes it Airmont
      
      The general naming scheme is: FAM6_ATOM_UARCH_SOCTYPE
      
        for i in `git grep -l FAM6_ATOM` ; do
      	sed -i  -e 's/ATOM_PINEVIEW/ATOM_BONNELL/g'		\
      		-e 's/ATOM_LINCROFT/ATOM_BONNELL_MID/'		\
      		-e 's/ATOM_PENWELL/ATOM_SALTWELL_MID/g'		\
      		-e 's/ATOM_CLOVERVIEW/ATOM_SALTWELL_TABLET/g'	\
      		-e 's/ATOM_CEDARVIEW/ATOM_SALTWELL/g'		\
      		-e 's/ATOM_SILVERMONT1/ATOM_SILVERMONT/g'	\
      		-e 's/ATOM_SILVERMONT2/ATOM_SILVERMONT_X/g'	\
      		-e 's/ATOM_MERRIFIELD/ATOM_SILVERMONT_MID/g'	\
      		-e 's/ATOM_MOOREFIELD/ATOM_AIRMONT_MID/g'	\
      		-e 's/ATOM_DENVERTON/ATOM_GOLDMONT_X/g'		\
      		-e 's/ATOM_GEMINI_LAKE/ATOM_GOLDMONT_PLUS/g' ${i}
        done
      Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Vince Weaver <vincent.weaver@maine.edu>
      Cc: dave.hansen@linux.intel.com
      Cc: len.brown@intel.com
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      f2c4db1b
  15. 28 7月, 2018 2 次提交
  16. 27 7月, 2018 3 次提交
    • P
      tools/power turbostat: Fix logical node enumeration to allow for non-sequential physical nodes · 2ffbb224
      Prarit Bhargava 提交于
      turbostat fails on some multi-package topologies because the logical node
      enumeration assumes that the nodes are sequentially numbered,
      which causes the logical numa nodes to not be enumerated, or enumerated incorrectly.
      
      Use a more robust enumeration algorithm which allows for non-seqential physical nodes.
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      2ffbb224
    • L
      tools/power turbostat: fix x2apic debug message output file · cfce494d
      Len Brown 提交于
      A recently added x2apic debug message was hard-coded to stderr.
      That doesn't work with "-o outfile".
      Signed-off-by: NLen Brown <len.brown@intel.com>
      cfce494d
    • A
      tools/power turbostat: fix bogus summary values · 4f206a0f
      Artem Bityutskiy 提交于
      This patch fixes a regression introduced in
      
      commit 8cb48b32 ("tools/power turbostat: track thread ID in cpu_topology")
      
      Turbostat uses incorrect cores number ('topo.num_cores') - its value is count
      of logical CPUs, instead of count of physical cores. So it is twice as large as
      it should be on a typical Intel system. For example, on a 6 core Xeon system
      'topo.num_cores' is 12, and on a 52 core Xeon system 'topo.num_cores' is 104.
      
      And interestingly, on a 68-core Knights Landing Intel system 'topo.num_cores'
      is 272, because this system has 4 logical CPUs per core.
      
      As a result, some of the turbostat calculations are incorrect. For example,
      on idle 52-core Xeon system when all cores are ~99% in Core C6 (CPU%c6), the
      summary (very first) line shows ~48% Core C6, while it should be ~99%.
      
      This patch fixes the problem by fixing 'topo.num_cores' calculation.
      
      Was:
      
      1. Init 'thread_id' for all CPUs to -1
      2. Run 'get_thread_siblings()' which sets it to 0 or 1
      3. Increment 'topo.num_cores' when thread_id != -1 (bug!)
      
      Now:
      
      1. Init 'thread_id' for all CPUs to -1
      2. Run 'get_thread_siblings()' which sets it to 0 or 1
      3. Increment 'topo.num_cores' when thread_id is not 0
      
      I did not have a chance to test this on an AMD machine, and only tested on a
      couple of Intel Xeons (6 and 52 cores).
      Reported-by: NVladislav Govtva <vladislav.govtva@intel.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      4f206a0f
  17. 21 7月, 2018 1 次提交
  18. 18 7月, 2018 1 次提交
  19. 21 6月, 2018 6 次提交