1. 24 Apr, 2023 2 commits
    • 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 1 commit
    • Rafael J. Wysocki's avatar
      Merge tag 'cpufreq-arm-updates-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm · 0bdd95ce
      Rafael J. Wysocki authored
      Pull cpufreq/ARM updates for 6.4 from Viresh Kumar:
      
      "- 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)."
      0bdd95ce
  3. 18 Apr, 2023 2 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
    • 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 15 commits
  8. 13 Apr, 2023 1 commit
    • Linus Torvalds's avatar
      Merge tag 'cgroup-for-6.3-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 44149752
      Linus Torvalds authored
      Pull cgroup fixes from Tejun Heo:
       "This is a relatively big pull request this late in the cycle but the
        major contributor is the cpuset bug which is rather significant:
      
         - Fix several cpuset bugs including one where it wasn't applying the
           target cgroup when tasks are created with CLONE_INTO_CGROUP
      
        With a few smaller fixes:
      
         - Fix inversed locking order in cgroup1 freezer implementation
      
         - Fix garbage cpu.stat::core_sched.forceidle_usec reporting in the
           root cgroup"
      
      * tag 'cgroup-for-6.3-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup/cpuset: Make cpuset_attach_task() skip subpartitions CPUs for top_cpuset
        cgroup/cpuset: Add cpuset_can_fork() and cpuset_cancel_fork() methods
        cgroup/cpuset: Make cpuset_fork() handle CLONE_INTO_CGROUP properly
        cgroup/cpuset: Wake up cpuset_attach_wq tasks in cpuset_cancel_attach()
        cgroup,freezer: hold cpu_hotplug_lock before freezer_mutex
        cgroup/cpuset: Fix partition root's cpuset.cpus update bug
        cgroup: fix display of forceidle time at root
      44149752