1. 23 Apr, 2024 23 commits
  2. 19 Apr, 2024 2 commits
    • Rafael J. Wysocki's avatar
    • Rafael J. Wysocki's avatar
      thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up() · b552f63c
      Rafael J. Wysocki authored
      The count field in struct trip_stats, representing the number of times
      the zone temperature was above the trip point, needs to be incremented
      in thermal_debug_tz_trip_up(), for two reasons.
      
      First, if a trip point is crossed on the way up for the first time,
      thermal_debug_update_temp() called from update_temperature() does
      not see it because it has not been added to trips_crossed[] array
      in the thermal zone's struct tz_debugfs object yet.  Therefore, when
      thermal_debug_tz_trip_up() is called after that, the trip point's
      count value is 0, and the attempt to divide by it during the average
      temperature computation leads to a divide error which causes the kernel
      to crash.  Setting the count to 1 before the division by incrementing it
      fixes this problem.
      
      Second, if a trip point is crossed on the way up, but it has been
      crossed on the way up already before, its count value needs to be
      incremented to make a record of the fact that the zone temperature is
      above the trip now.  Without doing that, if the mitigations applied
      after crossing the trip cause the zone temperature to drop below its
      threshold, the count will not be updated for this episode at all and
      the average temperature in the trip statistics record will be somewhat
      higher than it should be.
      
      Fixes: 7ef01f22 ("thermal/debugfs: Add thermal debugfs information for mitigation episodes")
      Cc :6.8+ <stable@vger.kernel.org> # 6.8+
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b552f63c
  3. 15 Apr, 2024 1 commit
    • Rafael J. Wysocki's avatar
      Merge branch 'thermal-intel' into thermal · 0dbf6087
      Rafael J. Wysocki authored
      * thermal-intel:
        thermal: intel: int340x_thermal: replace deprecated strncpy() with strscpy()
        thermal: intel: hfi: Enable HFI only when required
        thermal: netlink: Rename thermal_gnl_family
        thermal: netlink: Add genetlink bind/unbind notifications
      0dbf6087
  4. 14 Apr, 2024 10 commits
  5. 13 Apr, 2024 4 commits
    • Linus Torvalds's avatar
      Merge tag 'ata-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · 7efd0a74
      Linus Torvalds authored
      Pull ata fixes from Damien Le Moal:
      
       - Add the mask_port_map parameter to the ahci driver. This is a
         follow-up to the recent snafu with the ASMedia controller and its
         virtual port hidding port-multiplier devices. As ASMedia confirmed
         that there is no way to determine if these slow-to-probe virtual
         ports are actually representing the ports of a port-multiplier
         devices, this new parameter allow masking ports to significantly
         speed up probing during system boot, resulting in shorter boot times.
      
       - A fix for an incorrect handling of a port unlock in
         ata_scsi_dev_rescan().
      
       - Allow command duration limits to be detected for ACS-4 devices are
         there are such devices out in the field.
      
      * tag 'ata-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ata: libata-core: Allow command duration limits detection for ACS-4 drives
        ata: libata-scsi: Fix ata_scsi_dev_rescan() error path
        ata: ahci: Add mask_port_map module parameter
      7efd0a74
    • Linus Torvalds's avatar
      Merge tag 'zonefs-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · 76b0e9c4
      Linus Torvalds authored
      Pull zonefs fix from Damien Le Moal:
      
       - Suppress a coccicheck warning using str_plural()
      
      * tag 'zonefs-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: Use str_plural() to fix Coccinelle warning
      76b0e9c4
    • Linus Torvalds's avatar
      Merge tag 'v6.9-rc3-SMB3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · fa4022cb
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
      
       - fix for oops in cifs_get_fattr of deleted files
      
       - fix for the remote open counter going negative in some directory
         lease cases
      
       - fix for mkfifo to instantiate dentry to avoid possible crash
      
       - important fix to allow handling key rotation for mount and remount
         (ie cases that are becoming more common when password that was used
         for the mount will expire soon but will be replaced by new password)
      
      * tag 'v6.9-rc3-SMB3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: fix broken reconnect when password changing on the server by allowing password rotation
        smb: client: instantiate when creating SFU files
        smb3: fix Open files on server counter going negative
        smb: client: fix NULL ptr deref in cifs_mark_open_handles_for_deleted_file()
      fa4022cb
    • Igor Pylypiv's avatar
      ata: libata-core: Allow command duration limits detection for ACS-4 drives · c0297e7d
      Igor Pylypiv authored
      Even though the command duration limits (CDL) feature was first added
      in ACS-5 (major version 12), there are some ACS-4 (major version 11)
      drives that implement CDL as well.
      
      IDENTIFY_DEVICE, SUPPORTED_CAPABILITIES, and CURRENT_SETTINGS log pages
      are mandatory in the ACS-4 standard so it should be safe to read these
      log pages on older drives implementing the ACS-4 standard.
      
      Fixes: 62e4a60e ("scsi: ata: libata: Detect support for command duration limits")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarIgor Pylypiv <ipylypiv@google.com>
      Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
      c0297e7d