1. 27 Mar, 2023 2 commits
    • Nikita Kravets's avatar
      platform/x86: Add new msi-ec driver · 392cacf2
      Nikita Kravets authored
      Add a new driver to allow various MSI laptops' functionalities to be
      controlled from userspace. This includes such features as power
      profiles (aka shift modes), fan speed, charge thresholds, LEDs, etc.
      
      This driver contains EC memory configurations for different firmware
      versions and exports battery charge thresholds to userspace (note,
      that start and end thresholds control the same EC parameter
      and are always 10% apart).
      
      Link: https://github.com/BeardOverflow/msi-ec/
      Link: https://github.com/BeardOverflow/msi-ec/pull/13
      Cc: Aakash Singh <mail@singhaakash.dev>
      Cc: Jose Angel Pastrana <japp0005@red.ujaen.es>
      Signed-off-by: default avatarNikita Kravets <teackot@gmail.com>
      Link: https://lore.kernel.org/r/20230320225509.3559-1-teackot@gmail.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      392cacf2
    • Hans de Goede's avatar
      Merge remote-tracking branch 'intel-speed-select/intel-sst' into review-hans · fd5aadaa
      Hans de Goede authored
      Summary of changes:
      
      Till the commit:
      "tools/power/x86/intel-speed-select: Get punit core mapping
      information"
      
      All patches just lays foundation for adding new hardware interface
      in addition to existing MSR/MMIO interface.
      
      All patches prefixed with "Abstract" just adds individual hardware
      callback for functions called from the core processing.
      
      The mailbox processing is abstracted to a new file with callbacks.
      
      In addition some changes to reduce duplicated code for display
      of TRL level.
      
      Patch "Introduce Punit ID concept and add related API" add further
      abstraction in addition to existing package and die scope.
      
      -----------
      tools/power/x86/intel-speed-select: Get punit core mapping information
      -Adds a new way to get package/die/punit information for each CPU.
      -----------
      
      Introduce TPMI interface support
      - Implement all abstracted callbacks above to use TPMI IOCTL interface.
      -----------
      
      tools/power/x86/intel-speed-select: Display punit info
      - With TPMI the granularity is per punit, which can be multiple in a
      package/die.
      ----------
      
      tools/power/x86/intel-speed-select: Remove cpu mask display for non-cpu
      power domain
      tools/power/x86/intel-speed-select: Display fact info for non-cpu power
      domain
      -There are some power domains with no CPUs, the above patches adds CPU
      as invalid for these domains
      ----------
      
      tools/power/x86/intel-speed-select: Use cgroup v2 isolation
      - Adds new option to use Cgroup CPU isolation instead of offline of CPUs
      ----------
      
      tools/power/x86/intel-speed-select: Change TRL display for Emerald Rapids
      - Emerald Rapid has multiple TRL levels and moves away from TRL level
      based on instruction type
      fd5aadaa
  2. 22 Mar, 2023 38 commits