1. 16 2月, 2023 2 次提交
    • R
      Merge branch 'thermal-intel' · badf1f90
      Rafael J. Wysocki 提交于
      Merge thermal control changes related to Intel platforms for 6.3-rc1:
      
       - Rework ACPI helper functions for thermal control to retrieve a trip
         point temperature instead of initializing a trip point objetc (Rafael
         Wysocki).
      
       - Clean up and improve the int340x thermal driver ((Rafael Wysocki).
      
       - Simplify and clean up the intel_pch thermal driver ((Rafael Wysocki).
      
       - Fix the Intel powerclamp thermal driver and make it use the common
         idle injection framework (Srinivas Pandruvada).
      
       - Add two module parameters, cpumask and max_idle, to the Intel powerclamp
         thermal driver to allow it to affect only a specific subset of CPUs
         instead of all of them (Srinivas Pandruvada).
      
       - Make the Intel quark_dts thermal driver Use generic trip point
         objects instead of its own trip point representation (Daniel
         Lezcano).
      
       - Add toctree entry for thermal documents and fix two issues in the
         Intel powerclamp driver documentation (Bagas Sanjaya).
      
      * thermal-intel: (25 commits)
        Documentation: powerclamp: Fix numbered lists formatting
        Documentation: powerclamp: Escape wildcard in cpumask description
        Documentation: admin-guide: Add toctree entry for thermal docs
        thermal: intel: powerclamp: Add two module parameters
        Documentation: admin-guide: Move intel_powerclamp documentation
        thermal: intel: powerclamp: Fix duration module parameter
        thermal: intel: powerclamp: Return last requested state as cur_state
        thermal: intel: quark_dts: Use generic trip points
        thermal: intel: powerclamp: Use powercap idle-inject feature
        powercap: idle_inject: Add update callback
        powercap: idle_inject: Export symbols
        thermal: intel: powerclamp: Fix cur_state for multi package system
        thermal: intel: intel_pch: Drop struct board_info
        thermal: intel: intel_pch: Rename board ID symbols
        thermal: intel: intel_pch: Fold suspend and resume routines into their callers
        thermal: intel: intel_pch: Fold two functions into their callers
        thermal: intel: intel_pch: Eliminate device operations object
        thermal: intel: intel_pch: Rename device operations callbacks
        thermal: intel: intel_pch: Eliminate redundant return pointers
        thermal: intel: intel_pch: Make pch_wpt_add_acpi_psv_trip() return int
        ...
      badf1f90
    • R
      Merge branch 'thermal-core' · c3bd6d53
      Rafael J. Wysocki 提交于
      Merge thermal control core changes for 6.3-rc1:
      
       - Clean up thermal device unregistration code (Viresh Kumar).
      
       - Fix and clean up thermal control core initialization error code
         paths (Daniel Lezcano).
      
       - Relocate the trip points handling code into a separate file (Daniel
         Lezcano).
      
       - Make the thermal core fail registration of thermal zones and cooling
         devices if the thermal class has not been registered (Rafael Wysocki).
      
       - Make the core thermal control code use sysfs_emit_at() instead of
         scnprintf() where applicable (ye xingchen).
      
      * thermal-core:
        thermal: core: Use sysfs_emit_at() instead of scnprintf()
        thermal: Fail object registration if thermal class is not registered
        thermal/core: Move the thermal trip code to a dedicated file
        thermal/core: Remove unneeded ida_destroy()
        thermal/core: Fix unregistering netlink at thermal init time
        thermal: core: Use device_unregister() instead of device_del/put()
        thermal: core: Move cdev cleanup to thermal_release()
      c3bd6d53
  2. 13 2月, 2023 3 次提交
  3. 10 2月, 2023 4 次提交
  4. 08 2月, 2023 1 次提交
  5. 03 2月, 2023 9 次提交
  6. 02 2月, 2023 9 次提交
  7. 30 1月, 2023 1 次提交
    • R
      Merge branch 'thermal-intel' · f364beb5
      Rafael J. Wysocki 提交于
      Merge changes affecting thermal control on Intel platforms for 6.3-rc1:
      
       - Consolidate code accessing the Intel TCC (Thermal Control Circuitry)
         MSRs by introducing library functions for that and making the
         TCC-related code in thermal drivers use them (Zhang Rui).
      
       - Enhance the x86_pkg_temp_thermal driver to support dynamic tjmax
         changes (Zhang Rui).
      
       - Address an "unsigned expression compared with zero" warning in the
         intel_soc_dts_iosf thermal driver (Yang Li).
      
       - Update comments regarding two functions in the Intel Menlow thermal
         driver (Deming Wang).
      
       - Use sysfs_emit_at() instead of scnprintf() in the int340x thermal
         driver (ye xingchen).
      
       - Make the intel_pch thermal driver support the Wellsburg PCH (Tim
         Zimmermann).
      
       - Add trip point initialization helper functions for ACPI-defined trip
         points and modify two thermal drivers to use them (Rafael Wysocki,
         Daniel Lezcano).
      
       - Modify the intel_pch and processor_thermal_device_pci thermal drivers
         use generic trip point tables instead of thermal zone trip point
         callbacks (Daniel Lezcano).
      
       - Add production mode attribute sysfs attribute to the int340x thermal
         driver (Srinivas Pandruvada).
      
       - Rework dynamic trip point updates handling and locking in the int340x
         thermal driver (Rafael Wysocki).
      
       - Make the int340x thermal driver use a generic trip points table
         instead of thermal zone trip point callbacks (Rafael Wysocki, Daniel
         Lezcano).
      
      * thermal-intel:
        thermal: intel: int340x: Use generic trip points table
        thermal: intel: int340x: Use zone lock for synchronization
        thermal: intel: int340x: Rework updating trip points
        thermal: ACPI: Initialize trips if temperature is out of range
        thermal: intel: processor_thermal_device_pci: Use generic trip point
        thermal: intel: int340x: Add production mode attribute
        thermal: intel: intel_pch: Use generic trip points
        thermal: ACPI: Add ACPI trip point routines
        thermal: intel: intel_pch: Add support for Wellsburg PCH
        thermal: int340x_thermal: Use sysfs_emit_at() instead of scnprintf()
        thermal: intel: menlow: Update function descriptions
        thermal: intel: Fix unsigned comparison with less than zero
        thermal/x86_pkg_temp_thermal: Add support for handling dynamic tjmax
        thermal/x86_pkg_temp_thermal: Use Intel TCC library
        thermal/intel/intel_tcc_cooling: Use Intel TCC library
        thermal/intel/intel_soc_dts_iosf: Use Intel TCC library
        thermal/int340x/processor_thermal: Use Intel TCC library
        thermal/intel: Introduce Intel TCC library
      f364beb5
  8. 27 1月, 2023 7 次提交
    • R
      Merge back thermal control material for 6.3. · 79b20270
      Rafael J. Wysocki 提交于
      79b20270
    • R
      thermal: intel: int340x: Use generic trip points table · f4118dbe
      Rafael J. Wysocki 提交于
      Modify int340x_thermal_zone_add() to register the thermal zone along
      with a trip points table, which allows the trip-related zone callbacks
      to be dropped, because they are not needed any more.
      
      In order to consolidate the code, use ACPI trip library functions to
      populate generic trip points in int340x_thermal_read_trips() and to
      update them in int340x_thermal_update_trips().
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Co-developed-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      f4118dbe
    • R
      thermal: intel: int340x: Use zone lock for synchronization · 9e9b7e18
      Rafael J. Wysocki 提交于
      Because the ->get_trip_temp() and ->get_trip_type() thermal zone
      callbacks are only invoked from __thermal_zone_get_trip() which is
      always called by the thermal core under the zone lock, it is sufficient
      for int340x_thermal_update_trips() to acquire the zone lock for mutual
      exclusion with those callbacks.
      
      Accordingly, modify int340x_thermal_update_trips() to use the zone lock
      instead of the internal trip_mutex and drop the latter which is not
      necessary any more.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      9e9b7e18
    • R
      thermal: intel: int340x: Rework updating trip points · b1bf9dbf
      Rafael J. Wysocki 提交于
      It is generally invalid to change the trip point indices after they have
      been exposed via sysfs.
      
      Moreover, the thermal objects in the ACPI namespace cannot go away and
      appear on the fly.  In practice, the only thing that can happen when the
      INT3403_PERF_TRIP_POINT_CHANGED notification is sent by the platform
      firmware is a change of the return values of those thermal objects.
      
      For this reason, add a special function for updating the trip point
      temperatures after re-evaluating the respective ACPI thermal objects
      and change int3403_notify() to invoke it instead of
      int340x_thermal_read_trips() that would change the trip point indices
      on errors.  Also remove the locking from the latter, because it is only
      called before registering the thermal zone and it cannot race with the
      zone's callbacks.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b1bf9dbf
    • R
      thermal: ACPI: Initialize trips if temperature is out of range · 97efecfd
      Rafael J. Wysocki 提交于
      In some cases it is still useful to register a trip point if the
      temperature returned by the corresponding ACPI thermal object (for
      example, _HOT) is invalid to start with, because the same ACPI
      thermal object may start to return a valid temperature after a
      system configuration change (for example, from an AC power source
      to battery an vice versa).
      
      For this reason, if the ACPI thermal object evaluated by
      thermal_acpi_trip_init() successfully returns a temperature value that
      is out of the range of values taken into account, initialize the trip
      point using THERMAL_TEMP_INVALID as the temperature value instead of
      returning an error to allow the user of the trip point to decide what
      to do with it.
      
      Also update pch_wpt_add_acpi_psv_trip() to reject trip points with
      invalid temperature values.
      
      Fixes: 7a0e3974 ("thermal: ACPI: Add ACPI trip point routines")
      Reported-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      97efecfd
    • R
      a5c926ac
    • R
      Merge tag 'thermal-v6.3-rc1' of... · 02be6059
      Rafael J. Wysocki 提交于
      Merge tag 'thermal-v6.3-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux into thermal-next
      
      Pull thermal control material for 6.3-rc1 from Daniel Lezcano:
      
      "- Fix kerneldoc format errors for Rockchip, Mediatek and Uniphier
         (Randy Dunlap)
      
       - Add the missing 'qcom,adc-tm7' compatible string in the dt-bindings
         (Krzysztof Kozlowski)
      
       - Improve the calibration routine by relying on the nvmem to read the
         values and provide a set of fixes for the QCom tsens driver (Dmitry
         Baryshkov)
      
       - Remove the duplicate interrupt setting routine in the QCom tsens
         driver (Daniel Lezcano)
      
       - Fix a wrong loop condition in the i.MX SC thermal driver and add the
         iMX8QM sensors (Viorel Suman)
      
       - Fix header inclusion asm-generic.h by asm.h for the
         qcom-spmi-adc-tm5 driver (Andy Shevchenko)
      
       - Use the devm_platform_get_and_ioremap_resource() combo function in
         all the drivers where the conversion applies (Ye Xingchen)
      
       - Replace a literal mask by an existing corresponding macro (Yangtao
         Li)
      
       - Add support for MT7986 and MT7981 (Daniel Golle)
      
       - Use thermal_zone_get_crit_temp() for the Armada thermal driver
         (Daniel Lezcano)"
      
      * tag 'thermal-v6.3-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux: (35 commits)
        thermal/drivers/armada: Use the thermal_zone_get_crit_temp()
        thermal/drivers/mtk: Add support for MT7986 and MT7981
        thermal/drivers/mtk: Use function pointer for raw_to_mcelsius
        thermal/drivers/sun8i: Convert to use macro
        thermal/drivers/spear: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/kirkwood: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/thermal_mmio: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/rockchip: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/mtk_thermal: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/armada: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/dove: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/bcm2835: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/brcmstb_thermal: Use devm_platform_get_and_ioremap_resource()
        thermal/drivers/qcom-spmi-adc-tm5: Use asm intead of asm-generic
        thermal/drivers/imx_sc_thermal: Add iMX8QM sensors
        thermal/drivers/imx_sc_thermal: Fix the loop condition
        thermal/drivers/qcom: Remove duplicate set next trip point interrupt code
        thermal/drivers/tsens: Drop single-cell code for msm8976/msm8956
        thermal/drivers/tsens: Drop single-cell code for msm8939
        thermal/drivers/tsens: Drop single-cell code for mdm9607
        ...
      02be6059
  9. 26 1月, 2023 2 次提交
  10. 25 1月, 2023 2 次提交