1. 22 Feb, 2024 10 commits
  2. 21 Feb, 2024 2 commits
    • Feng Tang's avatar
      clocksource: Scale the watchdog read retries automatically · 2ed08e4b
      Feng Tang authored
      On a 8-socket server the TSC is wrongly marked as 'unstable' and disabled
      during boot time on about one out of 120 boot attempts:
      
          clocksource: timekeeping watchdog on CPU227: wd-tsc-wd excessive read-back delay of 153560ns vs. limit of 125000ns,
          wd-wd read-back delay only 11440ns, attempt 3, marking tsc unstable
          tsc: Marking TSC unstable due to clocksource watchdog
          TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
          sched_clock: Marking unstable (119294969739, 159204297)<-(125446229205, -5992055152)
          clocksource: Checking clocksource tsc synchronization from CPU 319 to CPUs 0,99,136,180,210,542,601,896.
          clocksource: Switched to clocksource hpet
      
      The reason is that for platform with a large number of CPUs, there are
      sporadic big or huge read latencies while reading the watchog/clocksource
      during boot or when system is under stress work load, and the frequency and
      maximum value of the latency goes up with the number of online CPUs.
      
      The cCurrent code already has logic to detect and filter such high latency
      case by reading the watchdog twice and checking the two deltas. Due to the
      randomness of the latency, there is a low probabilty that the first delta
      (latency) is big, but the second delta is small and looks valid. The
      watchdog code retries the readouts by default twice, which is not
      necessarily sufficient for systems with a large number of CPUs.
      
      There is a command line parameter 'max_cswd_read_retries' which allows to
      increase the number of retries, but that's not user friendly as it needs to
      be tweaked per system. As the number of required retries is proportional to
      the number of online CPUs, this parameter can be calculated at runtime.
      
      Scale and enlarge the number of retries according to the number of online
      CPUs and remove the command line parameter completely.
      
      [ tglx: Massaged change log and comments ]
      Signed-off-by: default avatarFeng Tang <feng.tang@intel.com>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Tested-by: default avatarJin Wang <jin1.wang@intel.com>
      Tested-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Reviewed-by: default avatarWaiman Long <longman@redhat.com>
      Reviewed-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Link: https://lore.kernel.org/r/20240221060859.1027450-1-feng.tang@intel.com
      2ed08e4b
    • David Gow's avatar
      time/kunit: Use correct format specifier · e0a1284b
      David Gow authored
      'days' is a s64 (from div_s64), and so should use a %lld specifier.
      
      This was found by extending KUnit's assertion macros to use gcc's
      __printf attribute.
      
      Fixes: 27601055 ("time: Improve performance of time64_to_tm()")
      Signed-off-by: default avatarDavid Gow <davidgow@google.com>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Link: https://lore.kernel.org/r/20240221092728.1281499-5-davidgow@google.com
      e0a1284b
  3. 20 Feb, 2024 10 commits
  4. 19 Feb, 2024 9 commits
  5. 18 Feb, 2024 6 commits
    • Linus Torvalds's avatar
      Linux 6.8-rc5 · b401b621
      Linus Torvalds authored
      b401b621
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.8-2' of... · 6c160f16
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Reformat nested if-conditionals in Makefiles with 4 spaces
      
       - Fix CONFIG_DEBUG_INFO_BTF builds for big endian
      
       - Fix modpost for module srcversion
      
       - Fix an escape sequence warning in gen_compile_commands.py
      
       - Fix kallsyms to ignore ARMv4 thunk symbols
      
      * tag 'kbuild-fixes-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kallsyms: ignore ARMv4 thunks along with others
        modpost: trim leading spaces when processing source files list
        gen_compile_commands: fix invalid escape sequence warning
        kbuild: Fix changing ELF file type for output of gen_btf for big endian
        docs: kconfig: Fix grammar and formatting
        kbuild: use 4-space indentation when followed by conditionals
      6c160f16
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ddac3d8b
      Linus Torvalds authored
      Pull x86 fix from Borislav Petkov:
      
       - Use a GB page for identity mapping only when memory of this size is
         requested so that mapping of reserved regions is prevented which
         would otherwise lead to system crashes on UV machines
      
      * tag 'x86_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
      ddac3d8b
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7cb7c32d
      Linus Torvalds authored
      Pull irq fixes from Borislav Petkov:
      
       - Fix GICv4.1 affinity update
      
       - Restore a quirk for ACPI-based GICv4 systems
      
       - Handle non-coherent GICv4 redistributors properly
      
       - Prevent spurious interrupts on Broadcom devices using GIC v3
         architecture
      
       - Other minor fixes
      
      * tag 'irq_urgent_for_v6.8_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
        irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems
        irqchip/gic-v3-its: Handle non-coherent GICv4 redistributors
        irqchip/qcom-mpm: Fix IS_ERR() vs NULL check in qcom_mpm_init()
        irqchip/loongson-eiointc: Use correct struct type in eiointc_domain_alloc()
        irqchip/irq-brcmstb-l2: Add write memory barrier before exit
      7cb7c32d
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 626721ed
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Two fixes for i801 and qcom-geni devices. Meanwhile, a fix from Arnd
        addresses a compilation error encountered during compile test on
        powerpc"
      
      * tag 'i2c-for-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: i801: Fix block process call transactions
        i2c: pasemi: split driver into two separate modules
        i2c: qcom-geni: Correct I2C TRE sequence
      626721ed
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · c02197fc
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "This is a bit of a big batch for rc4, but just due to holiday hangover
        and because I didn't send any fixes last week due to a late revert
        request. I think next week should be back to normal.
      
         - Fix ftrace bug on boot caused by exit text sections with
           '-fpatchable-function-entry'
      
         - Fix accuracy of stolen time on pseries since the switch to
           VIRT_CPU_ACCOUNTING_GEN
      
         - Fix a crash in the IOMMU code when doing DLPAR remove
      
         - Set pt_regs->link on scv entry to fix BPF stack unwinding
      
         - Add missing PPC_FEATURE_BOOKE on 64-bit e5500/e6500, which broke
           gdb
      
         - Fix boot on some 6xx platforms with STRICT_KERNEL_RWX enabled
      
         - Fix build failures with KASAN enabled and 32KB stack size
      
         - Some other minor fixes
      
        Thanks to Arnd Bergmann, Benjamin Gray, Christophe Leroy, David
        Engraf, Gaurav Batra, Jason Gunthorpe, Jiangfeng Xiao, Matthias
        Schiffer, Nathan Lynch, Naveen N Rao, Nicholas Piggin, Nysal Jan K.A,
        R Nageswara Sastry, Shivaprasad G Bhat, Shrikanth Hegde, Spoorthy,
        Srikar Dronamraju, and Venkat Rao Bagalkote"
      
      * tag 'powerpc-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/iommu: Fix the missing iommu_group_put() during platform domain attach
        powerpc/pseries: fix accuracy of stolen time
        powerpc/ftrace: Ignore ftrace locations in exit text sections
        powerpc/cputable: Add missing PPC_FEATURE_BOOKE on PPC64 Book-E
        powerpc/kasan: Limit KASAN thread size increase to 32KB
        Revert "powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add"
        powerpc: 85xx: mark local functions static
        powerpc: udbg_memcons: mark functions static
        powerpc/kasan: Fix addr error caused by page alignment
        powerpc/6xx: set High BAT Enable flag on G2_LE cores
        selftests/powerpc/papr_vpd: Check devfd before get_system_loc_code()
        powerpc/64: Set task pt_regs->link to the LR value on scv entry
        powerpc/pseries/iommu: Fix iommu initialisation during DLPAR add
        powerpc/pseries/papr-sysparm: use u8 arrays for payloads
      c02197fc
  6. 17 Feb, 2024 3 commits
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-02-17' of https://evilpiepirate.org/git/bcachefs · f2667e0c
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
       "Mostly pretty trivial, the user visible ones are:
      
         - don't barf when replicas_required > replicas
      
         - fix check_version_upgrade() so it doesn't do something nonsensical
           when we're downgrading"
      
      * tag 'bcachefs-2024-02-17' of https://evilpiepirate.org/git/bcachefs:
        bcachefs: Fix missing va_end()
        bcachefs: Fix check_version_upgrade()
        bcachefs: Clamp replicas_required to replicas
        bcachefs: fix missing endiannes conversion in sb_members
        bcachefs: fix kmemleak in __bch2_read_super error handling path
        bcachefs: Fix missing bch2_err_class() calls
      f2667e0c
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · ced59052
      Linus Torvalds authored
      Pull driver core fixes from Greg KH:
       "Here are some driver core fixes, a kobject fix, and a documentation
        update for 6.8-rc5. In detail these changes are:
      
         - devlink fixes for reported issues with 6.8-rc1
      
         - topology scheduling regression fix that has been reported by many
      
         - kobject loosening of checks change in -rc1 is now reverted as some
           codepaths seemed to need the checks
      
         - documentation update for the CVE process. Has been reviewed by
           many, the last minute change to the document was to bring the .rst
           format back into the the new style rules, the contents did not
           change.
      
        All of these, except for the documentation update, have been in
        linux-next for over a week. The documentation update has been reviewed
        for weeks by a group of developers, and in public for a week and the
        wording has stabilized for now. If future changes are needed, we can
        do so before 6.8-final is out (or anytime after that)"
      
      * tag 'driver-core-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        Documentation: Document the Linux Kernel CVE process
        Revert "kobject: Remove redundant checks for whether ktype is NULL"
        driver core: fw_devlink: Improve logs for cycle detection
        driver core: fw_devlink: Improve detection of overlapping cycles
        driver core: Fix device_link_flag_is_sync_state_only()
        topology: Set capacity_freq_ref in all cases
      ced59052
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 7efc0eb8
      Linus Torvalds authored
      Pull char / miscdriver fixes from Greg KH:
       "Here is a small set of char/misc and IIO driver fixes for 6.8-rc5.
      
        Included in here are:
      
         - lots of iio driver fixes for reported issues
      
         - nvmem device naming fixup for reported problem
      
         - interconnect driver fixes for reported issues
      
        All of these have been in linux-next for a while with no reported the
        issues (the nvmem patch was included in a different branch in
        linux-next before sent to me for inclusion here)"
      
      * tag 'char-misc-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (21 commits)
        nvmem: include bit index in cell sysfs file name
        iio: adc: ad4130: only set GPIO_CTRL if pin is unused
        iio: adc: ad4130: zero-initialize clock init data
        interconnect: qcom: x1e80100: Add missing ACV enable_mask
        interconnect: qcom: sm8650: Use correct ACV enable_mask
        iio: accel: bma400: Fix a compilation problem
        iio: commom: st_sensors: ensure proper DMA alignment
        iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP
        iio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier
        staging: iio: ad5933: fix type mismatch regression
        iio: humidity: hdc3020: fix temperature offset
        iio: adc: ad7091r8: Fix error code in ad7091r8_gpio_setup()
        iio: adc: ad_sigma_delta: ensure proper DMA alignment
        iio: imu: adis: ensure proper DMA alignment
        iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry
        iio: imu: bno055: serdev requires REGMAP
        iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
        iio: pressure: bmp280: Add missing bmp085 to SPI id table
        iio: core: fix memleak in iio_device_register_sysfs
        interconnect: qcom: sm8550: Enable sync_state
        ...
      7efc0eb8