1. 16 May, 2024 6 commits
  2. 01 May, 2024 4 commits
  3. 21 Apr, 2024 4 commits
    • Len Brown's avatar
      tools/power turbostat: Survive sparse die_id · c8b246ea
      Len Brown authored
      Turbostat assumed that every package had a die_id = 0.
      When this assumption was violated, it exited
      when looking for the package uncore frequency:
      
      turbostat: /sys/.../intel_uncore_frequency/package_01_die_00/current_freq_khz: open failed: No such file or directory
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      c8b246ea
    • Len Brown's avatar
      tools/power turbostat: Remember global max_die_id · cda20338
      Len Brown authored
      This is necessary to gracefully handle sparse die_id's.
      
      no functional change
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      cda20338
    • Len Brown's avatar
      tools/power turbostat: Harden probe_intel_uncore_frequency() · ae3326ac
      Len Brown authored
      If sysfs directory "intel_uncore_frequency/cluster00/" exists,
      then use uncore cluster code (now its own routine).
      
      The previous check for
      "intel_uncore_frequency/package_00_die_00/current_freq_khz",
      could be unreliable in the face of sparse die id's.
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      ae3326ac
    • Len Brown's avatar
      tools/power turbostat: Add "snapshot:" Makefile target · 231ce08b
      Len Brown authored
      Kernel developers often need to diagnose remote customer systems
      with the latest turbostat, yet customers are running binary distros
      with out-dated turbostat and the customer has no experience
      cloning linux kernel trees.
      
      Add a turbostat "snapshot" makefile target to create a standalone
      source snapshot from the developer's git tree, appropriately hacked
      so that the customer can build turbostat without a kernel tree.
      
      Include the turbostat binary in the snapshot, for convenience in
      those situations where the source and destination are trusted,
      (and have new enough glibc to execute).
      
      The snapshot is named with the date it was taken rather than
      the turbostat VERSION, as it could occur between VERSIONS...
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      231ce08b
  4. 10 Apr, 2024 6 commits
    • Linus Torvalds's avatar
      Merge tag 'turbostat-2024.04.10' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux · a6189a74
      Linus Torvalds authored
      Pull turbostat updates from Len Brown:
      
       - Use of the CPU MSR driver is now optional
      
       - Perf is now preferred for many counters
      
       - Non-root users can now execute turbostat, though with limited
         functionality
      
       - Add counters for some new GFX hardware
      
       - Minor fixes
      
      * tag 'turbostat-2024.04.10' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (26 commits)
        tools/power turbostat: v2024.04.10
        tools/power/turbostat: Add support for Xe sysfs knobs
        tools/power/turbostat: Add support for new i915 sysfs knobs
        tools/power/turbostat: Introduce BIC_SAM_mc6/BIC_SAMMHz/BIC_SAMACTMHz
        tools/power/turbostat: Fix uncore frequency file string
        tools/power/turbostat: Unify graphics sysfs snapshots
        tools/power/turbostat: Cache graphics sysfs path
        tools/power/turbostat: Enable MSR_CORE_C1_RES support for ICX
        tools/power turbostat: Add selftests
        tools/power turbostat: read RAPL counters via perf
        tools/power turbostat: Add proper re-initialization for perf file descriptors
        tools/power turbostat: Clear added counters when in no-msr mode
        tools/power turbostat: add early exits for permission checks
        tools/power turbostat: detect and disable unavailable BICs at runtime
        tools/power turbostat: Add reading aperf and mperf via perf API
        tools/power turbostat: Add --no-perf option
        tools/power turbostat: Add --no-msr option
        tools/power turbostat: enhance -D (debug counter dump) output
        tools/power turbostat: Fix warning upon failed /dev/cpu_dma_latency read
        tools/power turbostat: Read base_hz and bclk from CPUID.16H if available
        ...
      a6189a74
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.9-2' of... · 3679d9d1
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Ilpo Järvinen:
       "Fixes:
      
         - intel/hid: Solve spurious hibernation aborts (power button release)
      
         - toshiba_acpi: Ignore 2 keys to avoid log noise during
           suspend/resume
      
         - intel-vbtn: Fix probe by restoring VBDL and VGBS evalutation order
      
         - lg-laptop: Fix W=1 %s null argument warning
      
        New HW Support:
      
         - acer-wmi: PH18-71 mode button and fan speed sensor
      
         - intel/hid: Lunar Lake and Arrow Lake HID IDs"
      
      * tag 'platform-drivers-x86-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: lg-laptop: fix %s null argument warning
        platform/x86: intel-vbtn: Update tablet mode switch at end of probe
        platform/x86: intel-vbtn: Use acpi_has_method to check for switch
        platform/x86: toshiba_acpi: Silence logging for some events
        platform/x86/intel/hid: Add Lunar Lake and Arrow Lake support
        platform/x86/intel/hid: Don't wake on 5-button releases
        platform/x86: acer-wmi: Add support for Acer PH18-71
      3679d9d1
    • Len Brown's avatar
      tools/power turbostat: v2024.04.10 · 3ab7296a
      Len Brown authored
      Much of turbostat can now run with perf, rather than using the MSR driver
      
      Some of turbostat can now run as a regular non-root user.
      
      Add some new output columns for some new GFX hardware.
      
      [This patch updates the version, but otherwise changes no function;
       it touches up some checkpatch issues from previous patches]
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      3ab7296a
    • Zhang Rui's avatar
      tools/power/turbostat: Add support for Xe sysfs knobs · 91a91d38
      Zhang Rui authored
      Xe graphics driver uses different graphics sysfs knobs including
         /sys/class/drm/card0/device/tile0/gt0/gtidle/idle_residency_ms
         /sys/class/drm/card0/device/tile0/gt0/freq0/cur_freq
         /sys/class/drm/card0/device/tile0/gt0/freq0/act_freq
         /sys/class/drm/card0/device/tile0/gt1/gtidle/idle_residency_ms
         /sys/class/drm/card0/device/tile0/gt1/freq0/cur_freq
         /sys/class/drm/card0/device/tile0/gt1/freq0/act_freq
      
      Plus that,
         /sys/class/drm/card0/device/tile0/gt<n>/gtidle/name
      returns either gt<n>-rc or gt<n>-mc. rc is for GFX and mc is SA Media.
      
      Enhance turbostat to prefer the Xe sysfs knobs when they are available.
      Export gt<n>-rc via BIC_GFX_rc6/BIC_GFXMHz/BIC_GFXACTMHz.
      Export gt<n>-mc via BIC_SMA_mc6/BIC_SMAMHz/BIC_SMAACTMHz.
      Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
      91a91d38
    • Zhang Rui's avatar
      tools/power/turbostat: Add support for new i915 sysfs knobs · dc02dc93
      Zhang Rui authored
      On Meteorlake platform, i915 driver supports the traditional graphics
      sysfs knobs including
         /sys/class/drm/card0/power/rc6_residency_ms
         /sys/class/drm/card0/gt_cur_freq_mhz
         /sys/class/drm/card0/gt_act_freq_mhz
      
      At the same time, it also supports
         /sys/class/drm/card0/gt/gt0/rc6_residency_ms
         /sys/class/drm/card0/gt/gt0/rps_cur_freq_mhz
         /sys/class/drm/card0/gt/gt0/rps_act_freq_mhz
         /sys/class/drm/card0/gt/gt1/rc6_residency_ms
         /sys/class/drm/card0/gt/gt1/rps_cur_freq_mhz
         /sys/class/drm/card0/gt/gt1/rps_act_freq_mhz
      gt0 is for GFX and gt1 is for SA Media.
      
      Enhance turbostat to prefer the i915 new sysfs knobs.
      Export gt0 via BIC_GFX_rc6/BIC_GFXMHz/BIC_GFXACTMHz.
      Export gt1 via BIC_SMA_mc6/BIC_SMAMHz/BIC_SMAACTMHz.
      Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
      dc02dc93
    • Zhang Rui's avatar
      tools/power/turbostat: Introduce BIC_SAM_mc6/BIC_SAMMHz/BIC_SAMACTMHz · 3bbb331c
      Zhang Rui authored
      Graphics driver (i915/Xe) on mordern platforms splits GFX and SA Media
      information via different sysfs knobs.
      
      Existing BIC_GFX_rc6/BIC_GFXMHz/BIC_GFXACTMHz columns can be reused for
      GFX.
      
      Introduce BIC_SAM_mc6/BIC_SAMMHz/BIC_SAMACTMHz columns for SA Media.
      Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
      3bbb331c
  5. 09 Apr, 2024 10 commits
  6. 08 Apr, 2024 10 commits