1. 17 Dec, 2023 6 commits
    • Linus Torvalds's avatar
      Merge tag 'phy-fixes-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · 7f499ec2
      Linus Torvalds authored
      Pull phy fixes from Vinod Koul:
      
        - register offset fix for TI driver
      
        - mediatek driver minimal supported frequency fix
      
        - negative error code in probe fix for sunplus driver
      
      * tag 'phy-fixes-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy:
        phy: sunplus: return negative error code in sp_usb_phy_probe
        phy: mediatek: mipi: mt8183: fix minimal supported frequency
        phy: ti: gmii-sel: Fix register offset when parent is not a syscon node
      7f499ec2
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-fix-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 6d04b70e
      Linus Torvalds authored
      Pull dmaengine fixes from Vinod Koul:
      
       - SPI PDMA data fix for TI k3-psil drivers
      
       - suspend fix, pointer check, logic for arbitration fix and channel
         leak fix in fsl-edma driver
      
       - couple of fixes in idxd driver for GRPCFG descriptions and int_handle
         field handling
      
       - single fix for stm32 driver for bitfield overflow
      
      * tag 'dmaengine-fix-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
        dmaengine: fsl-edma: fix DMA channel leak in eDMAv4
        dmaengine: fsl-edma: fix wrong pointer check in fsl_edma3_attach_pd()
        dmaengine: idxd: Fix incorrect descriptions for GRPCFG register
        dmaengine: idxd: Protect int_handle field in hw descriptor
        dmaengine: stm32-dma: avoid bitfield overflow assertion
        dmaengine: fsl-edma: Add judgment on enabling round robin arbitration
        dmaengine: fsl-edma: Do not suspend and resume the masked dma channel when the system is sleeping
        dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data
        dmaengine: ti: k3-psil-am62: Fix SPI PDMA data
      6d04b70e
    • Linus Torvalds's avatar
      Merge tag 'cxl-fixes-6.7-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl · 134fdb80
      Linus Torvalds authored
      Pull CXL (Compute Express Link) fixes from Dan Williams:
       "A collection of CXL fixes.
      
        The touch outside of drivers/cxl/ is for a helper that allocates
        physical address space. Device hotplug tests showed that the driver
        failed to utilize (skipped over) valid capacity when allocating a new
        memory region. Outside of that, new tests uncovered a small crop of
        lockdep reports.
      
        There is also some miscellaneous error path and leak fixups that are
        not urgent, but useful to cleanup now.
      
         - Fix alloc_free_mem_region()'s scan for address space, prevent false
           negative out-of-space events
      
         - Fix sleeping lock acquisition from CXL trace event (atomic context)
      
         - Fix put_device() like for the new CXL PMU driver
      
         - Fix wrong pointer freed on error path
      
         - Fixup several lockdep reports (missing lock hold) from new
           assertion in cxl_num_decoders_committed() and new tests"
      
      * tag 'cxl-fixes-6.7-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
        cxl/pmu: Ensure put_device on pmu devices
        cxl/cdat: Free correct buffer on checksum error
        cxl/hdm: Fix dpa translation locking
        kernel/resource: Increment by align value in get_free_mem_region()
        cxl: Add cxl_num_decoders_committed() usage to cxl_test
        cxl/memdev: Hold region_rwsem during inject and clear poison ops
        cxl/core: Always hold region_rwsem while reading poison lists
        cxl/hdm: Fix a benign lockdep splat
      134fdb80
    • Linus Torvalds's avatar
      Merge tag 'edac_urgent_for_v6.7_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · ef6a7c27
      Linus Torvalds authored
      Pull EDAC fix from Borislav Petkov:
      
       - A single fix for the EDAC Versal driver to read out register fields
         properly
      
      * tag 'edac_urgent_for_v6.7_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/versal: Read num_csrows and num_chans using the correct bitfield macro
      ef6a7c27
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.7-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 5ef3720d
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix a bug where heavy VAS (accelerator) usage could race with
         partition migration and prevent the migration from completing.
      
       - Update MAINTAINERS to add Aneesh & Naveen.
      
      Thanks to Haren Myneni.
      
      * tag 'powerpc-6.7-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        MAINTAINERS: powerpc: Add Aneesh & Naveen
        powerpc/pseries/vas: Migration suspend waits for no in-progress open windows
      5ef3720d
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · dde0672b
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "A handful of clk fixes, mostly in the rockchip clk driver:
      
         - Fix a clk name, clk parent, and a register for a clk gate in the
           Rockchip rk3128 clk driver
      
         - Add a PLL frequency on Rockchip rk3568 to fix some display
           artifacts
      
         - Fix a kbuild dependency for Qualcomm's SM_CAMCC_8550 symbol so that
           it isn't possible to select the associated GCC driver"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: rockchip: rk3128: Fix SCLK_SDMMC's clock name
        clk: rockchip: rk3128: Fix aclk_peri_src's parent
        clk: qcom: Fix SM_CAMCC_8550 dependencies
        clk: rockchip: rk3128: Fix HCLK_OTG gate register
        clk: rockchip: rk3568: Add PLL rate for 292.5MHz
      dde0672b
  2. 16 Dec, 2023 3 commits
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 3b8a9b2e
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix eventfs to check creating new files for events with names greater
         than NAME_MAX. The eventfs lookup needs to check the return result of
         simple_lookup().
      
       - Fix the ring buffer to check the proper max data size. Events must be
         able to fit on the ring buffer sub-buffer, if it cannot, then it
         fails to be written and the logic to add the event is avoided. The
         code to check if an event can fit failed to add the possible absolute
         timestamp which may make the event not be able to fit. This causes
         the ring buffer to go into an infinite loop trying to find a
         sub-buffer that would fit the event. Luckily, there's a check that
         will bail out if it looped over a 1000 times and it also warns.
      
         The real fix is not to add the absolute timestamp to an event that is
         starting at the beginning of a sub-buffer because it uses the
         sub-buffer timestamp.
      
         By avoiding the timestamp at the start of the sub-buffer allows
         events that pass the first check to always find a sub-buffer that it
         can fit on.
      
       - Have large events that do not fit on a trace_seq to print "LINE TOO
         BIG" like it does for the trace_pipe instead of what it does now
         which is to silently drop the output.
      
       - Fix a memory leak of forgetting to free the spare page that is saved
         by a trace instance.
      
       - Update the size of the snapshot buffer when the main buffer is
         updated if the snapshot buffer is allocated.
      
       - Fix ring buffer timestamp logic by removing all the places that tried
         to put the before_stamp back to the write stamp so that the next
         event doesn't add an absolute timestamp. But each of these updates
         added a race where by making the two timestamp equal, it was
         validating the write_stamp so that it can be incorrectly used for
         calculating the delta of an event.
      
       - There's a temp buffer used for printing the event that was using the
         event data size for allocation when it needed to use the size of the
         entire event (meta-data and payload data)
      
       - For hardening, use "%.*s" for printing the trace_marker output, to
         limit the amount that is printed by the size of the event. This was
         discovered by development that added a bug that truncated the '\0'
         and caused a crash.
      
       - Fix a use-after-free bug in the use of the histogram files when an
         instance is being removed.
      
       - Remove a useless update in the rb_try_to_discard of the write_stamp.
         The before_stamp was already changed to force the next event to add
         an absolute timestamp that the write_stamp is not used. But the
         write_stamp is modified again using an unneeded 64-bit cmpxchg.
      
       - Fix several races in the 32-bit implementation of the
         rb_time_cmpxchg() that does a 64-bit cmpxchg.
      
       - While looking at fixing the 64-bit cmpxchg, I noticed that because
         the ring buffer uses normal cmpxchg, and this can be done in NMI
         context, there's some architectures that do not have a working
         cmpxchg in NMI context. For these architectures, fail recording
         events that happen in NMI context.
      
      * tag 'trace-v6.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
        ring-buffer: Have rb_time_cmpxchg() set the msb counter too
        ring-buffer: Fix 32-bit rb_time_read() race with rb_time_cmpxchg()
        ring-buffer: Fix a race in rb_time_cmpxchg() for 32 bit archs
        ring-buffer: Remove useless update to write_stamp in rb_try_to_discard()
        ring-buffer: Do not try to put back write_stamp
        tracing: Fix uaf issue when open the hist or hist_debug file
        tracing: Add size check when printing trace_marker output
        ring-buffer: Have saved event hold the entire event
        ring-buffer: Do not update before stamp when switching sub-buffers
        tracing: Update snapshot buffer on resize if it is allocated
        ring-buffer: Fix memory leak of free page
        eventfs: Fix events beyond NAME_MAX blocking tasks
        tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
        ring-buffer: Fix writing to the buffer with max_data_size
      3b8a9b2e
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · c8e97fc6
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Arm CMN perf: fix the DTC allocation failure path which can end up
         erroneously clearing live counters
      
       - arm64/mm: fix hugetlb handling of the dirty page state leading to a
         continuous fault loop in user on hardware without dirty bit
         management (DBM). That's caused by the dirty+writeable information
         not being properly preserved across a series of mprotect(PROT_NONE),
         mprotect(PROT_READ|PROT_WRITE)
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: mm: Always make sw-dirty PTEs hw-dirty in pte_modify
        perf/arm-cmn: Fail DTC counter allocation correctly
      c8e97fc6
    • Linus Torvalds's avatar
      Merge tag 'pci-v6.7-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci · 2e3f280b
      Linus Torvalds authored
      Pull pci fixes from Bjorn Helgaas:
      
       - Limit Max_Read_Request_Size (MRRS) on some MIPS Loongson systems
         because they don't all support MRRS > 256, and firmware doesn't
         always initialize it correctly, which meant some PCIe devices didn't
         work (Jiaxun Yang)
      
       - Add and use pci_enable_link_state_locked() to prevent potential
         deadlocks in vmd and qcom drivers (Johan Hovold)
      
       - Revert recent (v6.5) acpiphp resource assignment changes that fixed
         issues with hot-adding devices on a root bus or with large BARs, but
         introduced new issues with GPU initialization and hot-adding SCSI
         disks in QEMU VMs and (Bjorn Helgaas)
      
      * tag 'pci-v6.7-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
        Revert "PCI: acpiphp: Reassign resources on bridge if necessary"
        PCI/ASPM: Add pci_disable_link_state_locked() lockdep assert
        PCI/ASPM: Clean up __pci_disable_link_state() 'sem' parameter
        PCI: qcom: Clean up ASPM comment
        PCI: qcom: Fix potential deadlock when enabling ASPM
        PCI: vmd: Fix potential deadlock when enabling ASPM
        PCI/ASPM: Add pci_enable_link_state_locked()
        PCI: loongson: Limit MRRS to 256
      2e3f280b
  3. 15 Dec, 2023 22 commits
  4. 14 Dec, 2023 9 commits