1. 24 Apr, 2023 3 commits
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-core', 'pm-sleep', 'pm-opp' and 'pm-tools' · d3f2c402
      Rafael J. Wysocki authored
      Merge PM core changes, updates related to system sleep support,
      operating performance points (OPP) changes and power management
      utilities changes for 6.4-rc1:
      
       - Drop unnecessary (void *) conversions from the PM core (Li zeming).
      
       - Add sysfs files to represent time spent in a platform sleep state
         during suspend-to-idle and make AMD and Intel PMC drivers use them
         (Mario Limonciello).
      
       - Use of_property_present() for testing DT property presence (Rob
         Herring).
      
       - Add set_required_opps() callback to the 'struct opp_table', to make
         the code paths cleaner (Viresh Kumar).
      
       - Update the pm-graph siute of utilities to v5.11 with the following
         changes:
         * New script which allows users to install the latest pm-graph
           from the upstream github repo.
         * Update all the dmesg suspend/resume PM print formats to be able to
           process recent timelines using dmesg only.
         * Add ethtool output to the log for the system's ethernet device if
           ethtool exists.
         * Make the tool more robustly handle events where mangled dmesg or
           ftrace outputs do not include all the requisite data.
      
       - Make the sleepgraph utility recognize "CPU killed" messages (Xueqin
         Luo).
      
      * pm-core:
        PM: core: Remove unnecessary (void *) conversions
      
      * pm-sleep:
        platform/x86/intel/pmc: core: Report duration of time in HW sleep state
        platform/x86/intel/pmc: core: Always capture counters on suspend
        platform/x86/amd: pmc: Report duration of time in hw sleep state
        PM: Add sysfs files to represent time spent in hardware sleep state
      
      * pm-opp:
        OPP: Move required opps configuration to specialized callback
        OPP: Handle all genpd cases together in _set_required_opps()
        opp: Use of_property_present() for testing DT property presence
      
      * pm-tools:
        PM: tools: sleepgraph: Recognize "CPU killed" messages
        pm-graph: Update to v5.11
      d3f2c402
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpuidle' · 21def611
      Rafael J. Wysocki authored
      Merge a cpuidle change for 6.4-rc1:
      
       - Use of_property_present() for testing DT property presence in the
         cpuidle code (Rob Herring).
      
      * pm-cpuidle:
        cpuidle: Use of_property_present() for testing DT property presence
      21def611
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · 640324e3
      Rafael J. Wysocki authored
      Merge cpufreq updates for 6.4-rc1:
      
       - Fix the frequency unit in cpufreq_verify_current_freq checks()
         (Sanjay Chandrashekara).
      
       - Make mode_state_machine in amd-pstate static (Tom Rix).
      
       - Make the cpufreq core require drivers with target_index() to set
         freq_table (Viresh Kumar).
      
       - Fix typo in the ARM_BRCMSTB_AVS_CPUFREQ Kconfig entry (Jingyu Wang).
      
       - Use of_property_read_bool() for boolean properties in the pmac32
         cpufreq driver (Rob Herring).
      
       - Make the cpufreq sysfs interface return proper error codes on
         obviously invalid input (qinyu).
      
       - Add guided autonomous mode support to the AMD P-state driver (Wyes
         Karny).
      
       - Make the Intel P-state driver enable HWP IO boost on all server
         platforms (Srinivas Pandruvada).
      
       - Add opp and bandwidth support to tegra194 cpufreq driver (Sumit
         Gupta).
      
       - Use of_property_present() for testing DT property presence (Rob
         Herring).
      
       - Remove MODULE_LICENSE in non-modules (Nick Alcock).
      
       - Add SM7225 to cpufreq-dt-platdev blocklist (Luca Weiss).
      
       - Optimizations and fixes for qcom-cpufreq-hw driver (Krzysztof
         Kozlowski, Konrad Dybcio, and Bjorn Andersson).
      
       - DT binding updates for qcom-cpufreq-hw driver (Konrad Dybcio and
         Bartosz Golaszewski).
      
       - Updates and fixes for mediatek driver (Jia-Wei Chang and
         AngeloGioacchino Del Regno).
      
      * pm-cpufreq: (29 commits)
        cpufreq: use correct unit when verify cur freq
        cpufreq: tegra194: add OPP support and set bandwidth
        cpufreq: amd-pstate: Make varaiable mode_state_machine static
        cpufreq: drivers with target_index() must set freq_table
        cpufreq: qcom-cpufreq-hw: Revert adding cpufreq qos
        dt-bindings: cpufreq: cpufreq-qcom-hw: Add QCM2290
        dt-bindings: cpufreq: cpufreq-qcom-hw: Sanitize data per compatible
        dt-bindings: cpufreq: cpufreq-qcom-hw: Allow just 1 frequency domain
        cpufreq: Add SM7225 to cpufreq-dt-platdev blocklist
        cpufreq: qcom-cpufreq-hw: fix double IO unmap and resource release on exit
        cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623
        cpufreq: mediatek: raise proc/sram max voltage for MT8516
        cpufreq: mediatek: fix KP caused by handler usage after regulator_put/clk_put
        cpufreq: mediatek: fix passing zero to 'PTR_ERR'
        cpufreq: pmac32: Use of_property_read_bool() for boolean properties
        cpufreq: Fix typo in the ARM_BRCMSTB_AVS_CPUFREQ Kconfig entry
        cpufreq: warn about invalid vals to scaling_max/min_freq interfaces
        Documentation: cpufreq: amd-pstate: Update amd_pstate status sysfs for guided
        cpufreq: amd-pstate: Add guided mode control support via sysfs
        cpufreq: amd-pstate: Add guided autonomous mode
        ...
      640324e3
  2. 20 Apr, 2023 5 commits
  3. 18 Apr, 2023 3 commits
    • Sanjay Chandrashekara's avatar
      cpufreq: use correct unit when verify cur freq · 44295af5
      Sanjay Chandrashekara authored
      cpufreq_verify_current_freq checks() if the frequency returned by
      the hardware has a slight delta with the valid frequency value
      last set and returns "policy->cur" if the delta is within "1 MHz".
      In the comparison, "policy->cur" is in "kHz" but it's compared
      against HZ_PER_MHZ. So, the comparison range becomes "1 GHz".
      
      Fix this by comparing against KHZ_PER_MHZ instead of HZ_PER_MHZ.
      
      Fixes: f55ae08c ("cpufreq: Avoid unnecessary frequency updates due to mismatch")
      Signed-off-by: default avatarSanjay Chandrashekara <sanjayc@nvidia.com>
      [ sumit gupta: Commit message update ]
      Signed-off-by: default avatarSumit Gupta <sumitg@nvidia.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      44295af5
    • Rafael J. Wysocki's avatar
      Merge tag 'opp-updates-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm into pm-opp · 0ba4962d
      Rafael J. Wysocki authored
      Pull OPP updates for 6.4 from Viresh Kumar:
      
      "- Use of_property_present() for testing DT property presence (Rob
         Herring).
      
       - Add set_required_opps() callback to the 'struct opp_table', to make
         the code paths cleaner (Viresh Kumar)."
      
      * tag 'opp-updates-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
        OPP: Move required opps configuration to specialized callback
        OPP: Handle all genpd cases together in _set_required_opps()
        opp: Use of_property_present() for testing DT property presence
      0ba4962d
    • Sumit Gupta's avatar
      cpufreq: tegra194: add OPP support and set bandwidth · f41e1442
      Sumit Gupta authored
      Add support to use OPP table from DT in Tegra194 cpufreq driver.
      Tegra SoC's receive the frequency lookup table (LUT) from BPMP-FW.
      Cross check the OPP's present in DT against the LUT from BPMP-FW
      and enable only those DT OPP's which are present in LUT also.
      
      The OPP table in DT has CPU Frequency to bandwidth mapping where
      the bandwidth value is per MC channel. DRAM bandwidth depends on the
      number of MC channels which can vary as per the boot configuration.
      This per channel bandwidth from OPP table will be later converted by
      MC driver to final bandwidth value by multiplying with number of
      channels before sending the request to BPMP-FW.
      
      If OPP table is not present in DT, then use the LUT from BPMP-FW
      directy as the CPU frequency table and not do the DRAM frequency
      scaling which is same as the current behavior.
      
      Now, as the CPU Frequency table is being controlling through OPP
      table in DT. Keeping fewer entries in the table will create less
      frequency steps and can help to scale fast to high frequencies
      when required.
      Signed-off-by: default avatarSumit Gupta <sumitg@nvidia.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      f41e1442
  4. 17 Apr, 2023 1 commit
    • Rafael J. Wysocki's avatar
      Merge tag 'devfreq-next-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux · 8271f384
      Rafael J. Wysocki authored
      Pull devfreq updates for v6.4 from Chanwoo Choi:
      
      "1. Remove unneeded SRCU selection in Kconfig because it's always set from
          devfreq core.
      
       2. Fix minor updates of devfreq drivers
        - Drop of_match_ptr macro from exynos-bus.c because this driver is
          always using the DT table for driver probe.
        - Use the preferred of_property_present instead of the low-level
          of_get_property on exynos-bus.c
        - Use devm_platform_get_and_ioream_resource on exyno-ppmu.c"
      
      * tag 'devfreq-next-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux:
        PM / devfreq: exynos-ppmu: Use devm_platform_get_and_ioremap_resource()
        PM / devfreq: exynos: Use of_property_present() for testing DT property presence
        PM / devfreq: exyos-bus: drop of_match_ptr for ID table
        PM / devfreq: Remove "select SRCU"
      8271f384
  5. 16 Apr, 2023 12 commits
  6. 15 Apr, 2023 6 commits
  7. 14 Apr, 2023 10 commits