1. 01 Jun, 2022 6 commits
    • David Howells's avatar
      afs: Fix infinite loop found by xfstest generic/676 · 17eabd42
      David Howells authored
      In AFS, a directory is handled as a file that the client downloads and
      parses locally for the purposes of performing lookup and getdents
      operations.  The in-kernel afs filesystem has a number of functions that
      do this.
      
      A directory file is arranged as a series of 2K blocks divided into
      32-byte slots, where a directory entry occupies one or more slots, plus
      each block starts with one or more metadata blocks.
      
      When parsing a block, if the last slots are occupied by a dirent that
      occupies more than a single slot and the file position points at a slot
      that's not the initial one, the logic in afs_dir_iterate_block() that
      skips over it won't advance the file pointer to the end of it.  This
      will cause an infinite loop in getdents() as it will keep retrying that
      block and failing to advance beyond the final entry.
      
      Fix this by advancing the file pointer if the next entry will be beyond
      it when we skip a block.
      
      This was found by the generic/676 xfstest but can also be triggered with
      something like:
      
      	~/xfstests-dev/src/t_readdir_3 /xfstest.test/z 4000 1
      
      Fixes: 1da177e4 ("Linux-2.6.12-rc2")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reviewed-by: default avatarMarc Dionne <marc.dionne@auristor.com>
      Tested-by: default avatarMarc Dionne <marc.dionne@auristor.com>
      cc: linux-afs@lists.infradead.org
      Link: http://lore.kernel.org/r/165391973497.110268.2939296942213894166.stgit@warthog.procyon.org.uk/Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      17eabd42
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-5.19-rc1' of... · 8eca6b0a
      Linus Torvalds authored
      Merge tag 'pwm/for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
      
      Pull pwm updates from Thierry Reding:
       "Quite a large number of conversions this time around, courtesy of Uwe
        who has been working tirelessly on these. No drivers of the legacy API
        are left at this point, so as a next step the old API can be removed.
      
        Support is added for a few new devices such as the Xilinx AXI timer-
        based PWMs and the PWM IP found on Sunplus SoCs.
      
        Other than that, there's a number of fixes, cleanups and optimizations"
      
      * tag 'pwm/for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (43 commits)
        pwm: pwm-cros-ec: Add channel type support
        dt-bindings: google,cros-ec-pwm: Add the new -type compatible
        dt-bindings: Add mfd/cros_ec definitions
        pwm: Document that the pinstate of a disabled PWM isn't reliable
        pwm: twl-led: Implement .apply() callback
        pwm: lpc18xx: Implement .apply() callback
        pwm: mediatek: Implement .apply() callback
        pwm: lpc32xx: Implement .apply() callback
        pwm: tegra: Implement .apply() callback
        pwm: stmpe: Implement .apply() callback
        pwm: sti: Implement .apply() callback
        pwm: pwm-mediatek: Add support for MediaTek Helio X10 MT6795
        dt-bindings: pwm: pwm-mediatek: Add documentation for MT6795 SoC
        pwm: tegra: Optimize period calculation
        pwm: renesas-tpu: Improve precision of period and duty_cycle calculation
        pwm: renesas-tpu: Improve maths to compute register settings
        pwm: renesas-tpu: Rename variables to match the usual naming
        pwm: renesas-tpu: Implement .apply() callback
        pwm: renesas-tpu: Make use of devm functions
        pwm: renesas-tpu: Make use of dev_err_probe()
        ...
      8eca6b0a
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 68e6134b
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
       "This corrects the check for irq_of_parse_and_map() failures in the
        Qualcomm SMD driver and fixes unregistration and a couple of double
        free in the virtio rpmsg driver"
      
      * tag 'rpmsg-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        rpmsg: qcom_smd: Fix returning 0 if irq_of_parse_and_map() fails
        rpmsg: virtio: Fix the unregistration of the device rpmsg_ctrl
        rpmsg: virtio: Fix possible double free in rpmsg_virtio_add_ctrl_dev()
        rpmsg: virtio: Fix possible double free in rpmsg_probe()
        rpmsg: qcom_smd: Fix irq_of_parse_and_map() return value
      68e6134b
    • Linus Torvalds's avatar
      Merge tag 'rproc-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · f634b63d
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "This fixes a race condition in the user space interface for starting
        and stopping remote processors, it makes the ELF loader properly skip
        zero memsz segments and it cleans up the debugfs tracefile code a bit
        by not checking for errors.
      
        It introduces support for controlling the audio DSP on Qualcomm
        MSM8226, as well as audio and compute DSPs on Qualcomm SC8280XP.
      
        It makes it possible to specify the firmware path for Mediatek's
        remote processors, fixes a double free in the SCP driver and addresses
        an issue with the SRAM initialization on MT8195.
      
        Lastly it deprecates the custom ELF loader in the iMX remoteproc
        driver, in favor of using the shared one"
      
      * tag 'rproc-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: (21 commits)
        dt-bindings: remoteproc: mediatek: Add optional memory-region to mtk,scp
        dt-bindings: remoteproc: mediatek: Make l1tcm reg exclusive to mt819x
        dt-bindings: remoteproc: st,stm32-rproc: Fix phandle-array parameters description
        remoteproc: imx_rproc: Support i.MX93
        dt-bindings: remoteproc: imx_rproc: Support i.MX93
        remoteproc: qcom: pas: Add MSM8226 ADSP support
        dt-bindings: remoteproc: qcom: pas: Add MSM8226 adsp
        remoteproc: mediatek: Allow reading firmware-name from DT
        dt-bindings: remoteproc: mediatek: Add firmware-name property
        remoteproc: qcom: pas: Add sc8280xp remoteprocs
        dt-bindings: remoteproc: qcom: pas: Add sc8280xp adsp and nsp pair
        dt-bindings: remoteproc: mediatek: Add interrupts property to mtk,scp
        remoteproc: imx_rproc: Ignore create mem entry for resource table
        remoteproc: core: Move state checking to remoteproc_core
        remoteproc: core: Remove state checking before calling rproc_boot()
        remoteproc: imx_dsp_rproc: Make rsc_table optional
        remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments
        remoteproc: elf_loader: skip segment with memsz as zero
        remoteproc: mtk_scp: Fix a potential double free
        remoteproc: Don't bother checking the return value of debugfs_create*
        ...
      f634b63d
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.19-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 129bdb30
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A couple of fixes that came in during the merge window: a driver fix
        for spurious timeouts in the fsi driver and an improvement to make the
        core display error messages for transfer_one_message() to help people
        debug things"
      
      * tag 'spi-fix-v5.19-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: core: Display return code when failing to transfer message
        spi: fsi: Fix spurious timeout
      129bdb30
    • Linus Torvalds's avatar
      Merge branch 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux · 2380dd69
      Linus Torvalds authored
      Pull pcmcia updates from Dominik Brodowski:
       "A few odd cleanups and fixes, including a Kconfig fix to add a
        required dependency on MIPS"
      
      * 'pcmcia-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux:
        pcmcia: Use platform_get_irq() to get the interrupt
        pcmcia: db1xxx_ss: restrict to MIPS_DB1XXX boards
        drivers/pcmcia: Fix typo in comment
      2380dd69
  2. 31 May, 2022 10 commits
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.19-1' of git://git.linux-nfs.org/projects/anna/linux-nfs · 700170bf
      Linus Torvalds authored
      Pull NFS client updates from Anna Schumaker:
       "New Features:
         - Add support for 'dacl' and 'sacl' attributes
      
        Bugfixes and Cleanups:
         - Fixes for reporting mapping errors
         - Fixes for memory allocation errors
         - Improve warning message when locks are lost
         - Update documentation for the nfs4_unique_id parameter
         - Add an explanation of NFSv4 client identifiers
         - Ensure the i_size attribute is written to the fscache storage
         - Fix freeing uninitialized nfs4_labels
         - Better handling when xprtrdma bc_serv is NULL
         - Mark qualified async operations as MOVEABLE tasks"
      
      * tag 'nfs-for-5.19-1' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        NFSv4.1 mark qualified async operations as MOVEABLE tasks
        xprtrdma: treat all calls not a bcall when bc_serv is NULL
        NFSv4: Fix free of uninitialized nfs4_label on referral lookup.
        NFS: Pass i_size to fscache_unuse_cookie() when a file is released
        Documentation: Add an explanation of NFSv4 client identifiers
        NFS: update documentation for the nfs4_unique_id parameter
        NFS: Improve warning message when locks are lost.
        NFSv4.1: Enable access to the NFSv4.1 'dacl' and 'sacl' attributes
        NFSv4: Add encoders/decoders for the NFSv4.1 dacl and sacl attributes
        NFSv4: Specify the type of ACL to cache
        NFSv4: Don't hold the layoutget locks across multiple RPC calls
        pNFS/files: Fall back to I/O through the MDS on non-fatal layout errors
        NFS: Further fixes to the writeback error handling
        NFSv4/pNFS: Do not fail I/O when we fail to allocate the pNFS layout
        NFS: Memory allocation failures are not server fatal errors
        NFS: Don't report errors from nfs_pageio_complete() more than once
        NFS: Do not report flush errors in nfs_write_end()
        NFS: Don't report ENOSPC write errors twice
        NFS: fsync() should report filesystem errors over EINTR/ERESTARTSYS
        NFS: Do not report EINTR/ERESTARTSYS as mapping errors
      700170bf
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 1501f707
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "In this round, we've refactored the existing atomic write support
        implemented by in-memory operations to have storing data in disk
        temporarily, which can give us a benefit to accept more atomic writes.
      
        At the same time, we removed the existing volatile write support.
      
        We've also revisited the file pinning and GC flows and found some
        corner cases which contributeed abnormal system behaviours.
      
        As usual, there're several minor code refactoring for readability,
        sanity check, and clean ups.
      
        Enhancements:
      
         - allow compression for mmap files in compress_mode=user
      
         - kill volatile write support
      
         - change the current atomic write way
      
         - give priority to select unpinned section for foreground GC
      
         - introduce data read/write showing path info
      
         - remove unnecessary f2fs_lock_op in f2fs_new_inode
      
        Bug fixes:
      
         - fix the file pinning flow during checkpoint=disable and GCs
      
         - fix foreground and background GCs to select the right victims and
           get free sections on time
      
         - fix GC flags on defragmenting pages
      
         - avoid an infinite loop to flush node pages
      
         - fix fallocate to use file_modified to update permissions
           consistently"
      
      * tag 'f2fs-for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (40 commits)
        f2fs: fix to tag gcing flag on page during file defragment
        f2fs: replace F2FS_I(inode) and sbi by the local variable
        f2fs: add f2fs_init_write_merge_io function
        f2fs: avoid unneeded error handling for revoke_entry_slab allocation
        f2fs: allow compression for mmap files in compress_mode=user
        f2fs: fix typo in comment
        f2fs: make f2fs_read_inline_data() more readable
        f2fs: fix to do sanity check for inline inode
        f2fs: fix fallocate to use file_modified to update permissions consistently
        f2fs: don't use casefolded comparison for "." and ".."
        f2fs: do not stop GC when requiring a free section
        f2fs: keep wait_ms if EAGAIN happens
        f2fs: introduce f2fs_gc_control to consolidate f2fs_gc parameters
        f2fs: reject test_dummy_encryption when !CONFIG_FS_ENCRYPTION
        f2fs: kill volatile write support
        f2fs: change the current atomic write way
        f2fs: don't need inode lock for system hidden quota
        f2fs: stop allocating pinned sections if EAGAIN happens
        f2fs: skip GC if possible when checkpoint disabling
        f2fs: give priority to select unpinned section for foreground GC
        ...
      1501f707
    • Linus Torvalds's avatar
      Merge tag 'leds-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds · 2a5699b0
      Linus Torvalds authored
      Pull LED updates from Pavel Machek:
       "Most significant here is the driver for Qualcomm LPG. Apparently it
        drives backlight on some boards, so it is quite important for some
        people"
      
      * tag 'leds-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds:
        leds: qcom-lpg: Require pattern to follow documentation
        leds: lp50xx: Remove duplicated error reporting in .remove()
        leds: qcom-lpg: add missing PWM dependency
        leds: ktd2692: Make aux-gpios optional
        dt-bindings: leds: convert ktd2692 bindings to yaml
        leds: ktd2692: Avoid duplicate error messages on probe deferral
        leds: is31fl32xx: Improve error reporting in .remove()
        leds: Move pwm-multicolor driver into rgb directory
        leds: Add PWM multicolor driver
        dt-bindings: leds: Add multicolor PWM LED bindings
        dt-bindings: leds: Optional multi-led unit address
        leds: regulator: Make probeable from device tree
        leds: regulator: Add dev helper variable
        dt-bindings: leds: Add regulator-led binding
        leds: pca9532: Make pca9532_destroy_devices() return void
        leds: Add pm8350c support to Qualcomm LPG driver
        dt-bindings: leds: Add pm8350c pmic support
        leds: Add driver for Qualcomm LPG
        dt-bindings: leds: Add Qualcomm Light Pulse Generator binding
      2a5699b0
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · f8a52af9
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "Only driver updates for 5.19.
      
        Bigger changes are for Meson, NPCM, and R-Car, but there are also
        changes all over the place"
      
      * tag 'i2c-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (34 commits)
        i2c: meson: fix typo in comment
        i2c: rcar: use flags instead of atomic_xfer
        i2c: rcar: REP_AFTER_RD is not a persistent flag
        i2c: rcar: use BIT macro consistently
        i2c: qcom-geni: remove unnecessary conditions
        i2c: mt7621: Use devm_platform_get_and_ioremap_resource()
        i2c: rcar: refactor handling of first message
        i2c: rcar: avoid race condition with SMIs
        i2c: xiic: Correct the datatype for rx_watermark
        i2c: rcar: fix PM ref counts in probe error paths
        i2c: npcm: Handle spurious interrupts
        i2c: npcm: Correct register access width
        i2c: npcm: Add tx complete counter
        i2c: npcm: Fix timeout calculation
        i2c: npcm: Remove unused variable clk_regmap
        i2c: npcm: Change the way of getting GCR regmap
        i2c: xiic: Fix Tx Interrupt path for grouped messages
        i2c: xiic: Fix coding style issues
        i2c: xiic: return value of xiic_reinit
        i2c: cadence: Increase timeout per message if necessary
        ...
      f8a52af9
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 35b51afd
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Support for the Svpbmt extension, which allows memory attributes to
         be encoded in pages
      
       - Support for the Allwinner D1's implementation of page-based memory
         attributes
      
       - Support for running rv32 binaries on rv64 systems, via the compat
         subsystem
      
       - Support for kexec_file()
      
       - Support for the new generic ticket-based spinlocks, which allows us
         to also move to qrwlock. These should have already gone in through
         the asm-geneic tree as well
      
       - A handful of cleanups and fixes, include some larger ones around
         atomics and XIP
      
      * tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (51 commits)
        RISC-V: Prepare dropping week attribute from arch_kexec_apply_relocations[_add]
        riscv: compat: Using seperated vdso_maps for compat_vdso_info
        RISC-V: Fix the XIP build
        RISC-V: Split out the XIP fixups into their own file
        RISC-V: ignore xipImage
        RISC-V: Avoid empty create_*_mapping definitions
        riscv: Don't output a bogus mmu-type on a no MMU kernel
        riscv: atomic: Add custom conditional atomic operation implementation
        riscv: atomic: Optimize dec_if_positive functions
        riscv: atomic: Cleanup unnecessary definition
        RISC-V: Load purgatory in kexec_file
        RISC-V: Add purgatory
        RISC-V: Support for kexec_file on panic
        RISC-V: Add kexec_file support
        RISC-V: use memcpy for kexec_file mode
        kexec_file: Fix kexec_file.c build error for riscv platform
        riscv: compat: Add COMPAT Kbuild skeletal support
        riscv: compat: ptrace: Add compat_arch_ptrace implement
        riscv: compat: signal: Add rt_frame implementation
        riscv: add memory-type errata for T-Head
        ...
      35b51afd
    • Olga Kornievskaia's avatar
      NFSv4.1 mark qualified async operations as MOVEABLE tasks · 118f09ed
      Olga Kornievskaia authored
      Mark async operations such as RENAME, REMOVE, COMMIT MOVEABLE
      for the nfsv4.1+ sessions.
      
      Fixes: 85e39fee ("NFSv4.1 identify and mark RPC tasks that can move between transports")
      Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      118f09ed
    • Kinglong Mee's avatar
      xprtrdma: treat all calls not a bcall when bc_serv is NULL · 11270e7c
      Kinglong Mee authored
      When a rdma server returns a fault format reply, nfs v3 client may
      treats it as a bcall when bc service is not exist.
      
      The debug message at rpcrdma_bc_receive_call are,
      
      [56579.837169] RPC:       rpcrdma_bc_receive_call: callback XID
      00000001, length=20
      [56579.837174] RPC:       rpcrdma_bc_receive_call: 00 00 00 01 00 00 00
      00 00 00 00 00 00 00 00 00 00 00 00 04
      
      After that, rpcrdma_bc_receive_call will meets NULL pointer as,
      
      [  226.057890] BUG: unable to handle kernel NULL pointer dereference at
      00000000000000c8
      ...
      [  226.058704] RIP: 0010:_raw_spin_lock+0xc/0x20
      ...
      [  226.059732] Call Trace:
      [  226.059878]  rpcrdma_bc_receive_call+0x138/0x327 [rpcrdma]
      [  226.060011]  __ib_process_cq+0x89/0x170 [ib_core]
      [  226.060092]  ib_cq_poll_work+0x26/0x80 [ib_core]
      [  226.060257]  process_one_work+0x1a7/0x360
      [  226.060367]  ? create_worker+0x1a0/0x1a0
      [  226.060440]  worker_thread+0x30/0x390
      [  226.060500]  ? create_worker+0x1a0/0x1a0
      [  226.060574]  kthread+0x116/0x130
      [  226.060661]  ? kthread_flush_work_fn+0x10/0x10
      [  226.060724]  ret_from_fork+0x35/0x40
      ...
      Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
      Reviewed-by: default avatarChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      11270e7c
    • Benjamin Coddington's avatar
      NFSv4: Fix free of uninitialized nfs4_label on referral lookup. · c3ed2227
      Benjamin Coddington authored
      Send along the already-allocated fattr along with nfs4_fs_locations, and
      drop the memcpy of fattr.  We end up growing two more allocations, but this
      fixes up a crash as:
      
      PID: 790    TASK: ffff88811b43c000  CPU: 0   COMMAND: "ls"
       #0 [ffffc90000857920] panic at ffffffff81b9bfde
       #1 [ffffc900008579c0] do_trap at ffffffff81023a9b
       #2 [ffffc90000857a10] do_error_trap at ffffffff81023b78
       #3 [ffffc90000857a58] exc_stack_segment at ffffffff81be1f45
       #4 [ffffc90000857a80] asm_exc_stack_segment at ffffffff81c009de
       #5 [ffffc90000857b08] nfs_lookup at ffffffffa0302322 [nfs]
       #6 [ffffc90000857b70] __lookup_slow at ffffffff813a4a5f
       #7 [ffffc90000857c60] walk_component at ffffffff813a86c4
       #8 [ffffc90000857cb8] path_lookupat at ffffffff813a9553
       #9 [ffffc90000857cf0] filename_lookup at ffffffff813ab86b
      Suggested-by: default avatarTrond Myklebust <trondmy@hammerspace.com>
      Fixes: 9558a007 ("NFS: Remove the label from the nfs4_lookup_res struct")
      Signed-off-by: default avatarBenjamin Coddington <bcodding@redhat.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      c3ed2227
    • Linus Torvalds's avatar
      Merge tag 'iommu-updates-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · e1cbc3b9
      Linus Torvalds authored
      Pull iommu updates from Joerg Roedel:
      
       - Intel VT-d driver updates:
           - Domain force snooping improvement.
           - Cleanups, no intentional functional changes.
      
       - ARM SMMU driver updates:
           - Add new Qualcomm device-tree compatible strings
           - Add new Nvidia device-tree compatible string for Tegra234
           - Fix UAF in SMMUv3 shared virtual addressing code
           - Force identity-mapped domains for users of ye olde SMMU legacy
             binding
           - Minor cleanups
      
       - Fix a BUG_ON in the vfio_iommu_group_notifier:
           - Groundwork for upcoming iommufd framework
           - Introduction of DMA ownership so that an entire IOMMU group is
             either controlled by the kernel or by user-space
      
       - MT8195 and MT8186 support in the Mediatek IOMMU driver
      
       - Make forcing of cache-coherent DMA more coherent between IOMMU
         drivers
      
       - Fixes for thunderbolt device DMA protection
      
       - Various smaller fixes and cleanups
      
      * tag 'iommu-updates-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (88 commits)
        iommu/amd: Increase timeout waiting for GA log enablement
        iommu/s390: Tolerate repeat attach_dev calls
        iommu/vt-d: Remove hard coding PGSNP bit in PASID entries
        iommu/vt-d: Remove domain_update_iommu_snooping()
        iommu/vt-d: Check domain force_snooping against attached devices
        iommu/vt-d: Block force-snoop domain attaching if no SC support
        iommu/vt-d: Size Page Request Queue to avoid overflow condition
        iommu/vt-d: Fold dmar_insert_one_dev_info() into its caller
        iommu/vt-d: Change return type of dmar_insert_one_dev_info()
        iommu/vt-d: Remove unneeded validity check on dev
        iommu/dma: Explicitly sort PCI DMA windows
        iommu/dma: Fix iova map result check bug
        iommu/mediatek: Fix NULL pointer dereference when printing dev_name
        iommu: iommu_group_claim_dma_owner() must always assign a domain
        iommu/arm-smmu: Force identity domains for legacy binding
        iommu/arm-smmu: Support Tegra234 SMMU
        dt-bindings: arm-smmu: Add compatible for Tegra234 SOC
        dt-bindings: arm-smmu: Document nvidia,memory-controller property
        iommu/arm-smmu-qcom: Add SC8280XP support
        dt-bindings: arm-smmu: Add compatible for Qualcomm SC8280XP
        ...
      e1cbc3b9
    • Linus Torvalds's avatar
      Merge tag 'microblaze-v5.19' of git://git.monstr.eu/linux-2.6-microblaze · 3335d555
      Linus Torvalds authored
      Pull microblaze updates from Michal Simek:
      
       - Fix issues with freestanding
      
       - Wire memblock_dump_all()
      
       - Add support for memory reservation from DT
      
      * tag 'microblaze-v5.19' of git://git.monstr.eu/linux-2.6-microblaze:
        microblaze: fix typos in comments
        microblaze: Add support for reserved memory defined by DT
        microblaze: Wire memblock_dump_all()
        microblaze: Use simple memmove/memcpy implementation from lib/string.c
        microblaze: Do loop unrolling for optimized memset implementation
        microblaze: Use simple memset implementation from lib/string.c
      3335d555
  3. 30 May, 2022 18 commits
    • Uwe Kleine-König's avatar
      RISC-V: Prepare dropping week attribute from arch_kexec_apply_relocations[_add] · 7699f7aa
      Uwe Kleine-König authored
      Without this change arch/riscv/kernel/elf_kexec.c fails to compile once
      commit 233c1e6c319c ("kexec_file: drop weak attribute from
      arch_kexec_apply_relocations[_add]") is also contained in the tree.
      This currently happens in next-20220527.
      
      Prepare the RISC-V similar to the s390 adaption done in 233c1e6c319c.
      This is safe to do on top of the riscv change even without the change to
      arch_kexec_apply_relocations.
      
      Fixes: 838b3e28 ("RISC-V: Load purgatory in kexec_file")
      Looks-good-to: liaochang (A) <liaochang1@huawei.com>
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      7699f7aa
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/fbdev-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · 8ab2afa2
      Linus Torvalds authored
      Pull fbdev fixes and updates from Helge Deller:
       "A buch of small fixes and cleanups, including:
      
         - vesafb: Fix a use-after-free due early fb_info cleanup
      
         - clcdfb: Fix refcount leak in clcdfb_of_vram_setup
      
         - hyperv_fb: Allow resolutions with size > 64 MB for Gen1
      
         - pxa3xx-gcu: release the resources correctly in
           pxa3xx_gcu_probe/remove()
      
         - omapfb: Prevent compiler warning regarding
           hwa742_update_window_async()"
      
      * tag 'for-5.19/fbdev-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
        video: fbdev: omap: Add prototype for hwa742_update_window_async()
        video: fbdev: vesafb: Fix a use-after-free due early fb_info cleanup
        video: fbdev: radeon: Fix spelling typo in comment
        video: fbdev: xen: remove setting of 'transp' parameter
        video: fbdev: pxa3xx-gcu: release the resources correctly in pxa3xx_gcu_probe/remove()
        video: fbdev: omapfb: simplify the return expression of nec_8048_connect()
        video: fbdev: omapfb: simplify the return expression of dsi_init_pll_data()
        video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setup
        video: fbdev: hyperv_fb: Allow resolutions with size > 64 MB for Gen1
      8ab2afa2
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/parisc-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · e11a9356
      Linus Torvalds authored
      Pull parisc architecture updates from Helge Deller:
       "Minor cleanups and code optimizations, e.g.:
      
         - improvements in assembly statements in the tmpalias code path
      
         - added some additionals compile time checks
      
         - drop some unneccesary assembler DMA syncs"
      
      * tag 'for-5.19/parisc-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Drop __ARCH_WANT_OLD_READDIR and __ARCH_WANT_SYS_OLDUMOUNT
        parisc: Optimize tmpalias function calls
        parisc: Add dep_safe() macro to deposit a register in 32- and 64-kernels
        parisc: Fix wrong comment for shr macro
        parisc: Prevent ldil() to sign-extend into upper 32 bits
        parisc: Don't hardcode assembler bit definitions in tmpalias code
        parisc: Don't enforce DMA completion order in cache flushes
        parisc: video: fbdev: stifb: Add sti_dump_font() to dump STI font
      e11a9356
    • Linus Torvalds's avatar
      Merge tag 'pm-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 1ff7bc3b
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These update the ARM cpufreq drivers and fix up the CPPC cpufreq
        driver after recent changes, update the OPP code and PM documentation
        and add power sequences support to the system reboot and power off
        code.
      
        Specifics:
      
         - Add Tegra234 cpufreq support (Sumit Gupta)
      
         - Clean up and enhance the Mediatek cpufreq driver (Wan Jiabing,
           Rex-BC Chen, and Jia-Wei Chang)
      
         - Fix up the CPPC cpufreq driver after recent changes (Zheng Bin,
           Pierre Gondois)
      
         - Minor update to dt-binding for Qcom's opp-v2-kryo-cpu (Yassine
           Oudjana)
      
         - Use list iterator only inside the list_for_each_entry loop
           (Xiaomeng Tong, and Jakob Koschel)
      
         - New APIs related to finding OPP based on interconnect bandwidth
           (Krzysztof Kozlowski)
      
         - Fix the missing of_node_put() in _bandwidth_supported() (Dan
           Carpenter)
      
         - Cleanups (Krzysztof Kozlowski, and Viresh Kumar)
      
         - Add Out of Band mode description to the intel-speed-select utility
           documentation (Srinivas Pandruvada)
      
         - Add power sequences support to the system reboot and power off code
           and make related platform-specific changes for multiple platforms
           (Dmitry Osipenko, Geert Uytterhoeven)"
      
      * tag 'pm-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (60 commits)
        cpufreq: CPPC: Fix unused-function warning
        cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE
        Documentation: admin-guide: PM: Add Out of Band mode
        kernel/reboot: Change registration order of legacy power-off handler
        m68k: virt: Switch to new sys-off handler API
        kernel/reboot: Add devm_register_restart_handler()
        kernel/reboot: Add devm_register_power_off_handler()
        soc/tegra: pmc: Use sys-off handler API to power off Nexus 7 properly
        reboot: Remove pm_power_off_prepare()
        regulator: pfuze100: Use devm_register_sys_off_handler()
        ACPI: power: Switch to sys-off handler API
        memory: emif: Use kernel_can_power_off()
        mips: Use do_kernel_power_off()
        ia64: Use do_kernel_power_off()
        x86: Use do_kernel_power_off()
        sh: Use do_kernel_power_off()
        m68k: Switch to new sys-off handler API
        powerpc: Use do_kernel_power_off()
        xen/x86: Use do_kernel_power_off()
        parisc: Use do_kernel_power_off()
        ...
      1ff7bc3b
    • Linus Torvalds's avatar
      Merge tag 'thermal-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 32665a9e
      Linus Torvalds authored
      Pull additional thermal control update from Rafael Wysocki:
       "Add Meteor Lake PCI device ID to the int340x thermal control driver
        (Sumeet Pawnikar)"
      
      * tag 'thermal-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: int340x: Add Meteor Lake PCI device ID
      32665a9e
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 527953ef
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "These add some new device IDs, update a few drivers (processor,
        battery, backlight) and clean up code in a few places.
      
        Specifics:
      
         - Add Meteor Lake ACPI IDs for DPTF devices (Sumeet Pawnikar)
      
         - Rearrange find_child_checks() to simplify code (Rafael Wysocki)
      
         - Use memremap() to map the UCSI mailbox that is always in main
           memory and drop acpi_release_memory() that has no more users
           (Heikki Krogerus, Dan Carpenter)
      
         - Make max_cstate/nocst/bm_check_disable processor module parameters
           visible in sysfs (Yajun Deng)
      
         - Fix typo in the CPPC driver (Julia Lawall)
      
         - Make the ACPI battery driver show the "not-charging" status by
           default unless "charging" or "full" is directly indicated (Werner
           Sembach)
      
         - Improve the PM notifier in the ACPI backlight driver (Zhang Rui)
      
         - Clean up some white space in the ACPI code (Ian Cowan)"
      
      * tag 'acpi-5.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        usb: typec: ucsi: acpi: fix a NULL vs IS_ERR() check in probe
        ACPI: DPTF: Support Meteor Lake
        ACPI: CPPC: fix typo in comment
        ACPI: video: improve PM notifer callback
        ACPI: clean up white space in a few places for consistency
        ACPI: glue: Rearrange find_child_checks()
        ACPI: processor: idle: Expose max_cstate/nocst/bm_check_disable read-only in sysfs
        ACPI: battery: Make "not-charging" the default on no charging or full info
        ACPI: OSL: Remove the helper for deactivating memory region
        usb: typec: ucsi: acpi: Map the mailbox with memremap()
      527953ef
    • Linus Torvalds's avatar
      Merge tag 'ovl-update-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · 2c5ca23f
      Linus Torvalds authored
      Pull overlayfs updates from Miklos Szeredi:
      
       - Support idmapped layers in overlayfs (Christian Brauner)
      
       - Add a fix to exportfs that is relevant to open_by_handle_at(2) as
         well
      
       - Introduce new lookup helpers that allow passing mnt_userns into
         inode_permission()
      
      * tag 'ovl-update-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        ovl: support idmapped layers
        ovl: handle idmappings in ovl_xattr_{g,s}et()
        ovl: handle idmappings in layer open helpers
        ovl: handle idmappings in ovl_permission()
        ovl: use ovl_copy_{real,upper}attr() wrappers
        ovl: store lower path in ovl_inode
        ovl: handle idmappings for layer lookup
        ovl: handle idmappings for layer fileattrs
        ovl: use ovl_path_getxattr() wrapper
        ovl: use ovl_lookup_upper() wrapper
        ovl: use ovl_do_notify_change() wrapper
        ovl: pass layer mnt to ovl_open_realfile()
        ovl: pass ofs to setattr operations
        ovl: handle idmappings in creation operations
        ovl: add ovl_upper_mnt_userns() wrapper
        ovl: pass ofs to creation operations
        ovl: use wrappers to all vfs_*xattr() calls
        exportfs: support idmapped mounts
        fs: add two trivial lookup helpers
      2c5ca23f
    • Linus Torvalds's avatar
      Merge tag 'mips_5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · 73d15ba6
      Linus Torvalds authored
      Pull MIPS updates from Thomas Bogendoerfer:
       "Cleanups and fixes"
      
      * tag 'mips_5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (38 commits)
        MIPS: RALINK: Define pci_remap_iospace under CONFIG_PCI_DRIVERS_GENERIC
        MIPS: Use memblock_add_node() in early_parse_mem() under CONFIG_NUMA
        MIPS: Return -EINVAL if mem parameter is empty in early_parse_mem()
        MIPS: Kconfig: Fix indentation and add endif comment
        MIPS: bmips: Fix compiler warning observed on W=1 build
        MIPS: Rewrite `csum_tcpudp_nofold' in plain C
        mips: setup: use strscpy to replace strlcpy
        MIPS: Octeon: add SNIC10E board
        MIPS: Ingenic: Refresh defconfig for CU1000-Neo and CU1830-Neo.
        MIPS: Ingenic: Refresh device tree for Ingenic SoCs and boards.
        MIPS: Ingenic: Add PWM nodes for X1830.
        MIPS: Octeon: fix typo in comment
        MIPS: loongson32: Kconfig: Remove extra space
        MIPS: Sibyte: remove unnecessary return variable
        MIPS: Use NOKPROBE_SYMBOL() instead of __kprobes annotation
        selftests/ftrace: Save kprobe_events to test log
        MIPS: tools: no need to initialise statics to 0
        MIPS: Loongson: Use hwmon_device_register_with_groups() to register hwmon
        MIPS: VR41xx: Drop redundant spinlock initialization
        MIPS: smp: optimization for flush_tlb_mm when exiting
        ...
      73d15ba6
    • Linus Torvalds's avatar
      Merge tag 'm68knommu-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 2d2da475
      Linus Torvalds authored
      Pull m68knommu updates from Greg Ungerer:
       "A collection of changes to add elf-fdpic loader support for m68k.
      
        Also a collection of various fixes. They include typo corrections,
        undefined symbol compilation fixes, removal of the ISA_DMA_API support
        and removal of unused code.
      
        Summary:
      
         - correctly set up ZERO_PAGE pointer
      
         - drop ISA_DMA_API support
      
         - fix comment typos
      
         - fixes for undefined symbols
      
         - remove unused code and variables
      
         - elf-fdpic loader support for m68k"
      
      * tag 'm68knommu-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68knommu: fix 68000 CPU link with no platform selected
        m68k: removed unused "mach_get_ss"
        m68knommu: fix undefined reference to `mach_get_rtc_pll'
        m68knommu: fix undefined reference to `_init_sp'
        m68knommu: allow elf_fdpic loader to be selected
        m68knommu: add definitions to support elf_fdpic program loader
        m68knommu: implement minimal regset support
        m68knommu: use asm-generic/mmu.h for nommu setups
        m68k: fix typos in comments
        m68k: coldfire: drop ISA_DMA_API support
        m68knommu: set ZERO_PAGE() to the allocated zeroed page
      2d2da475
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-battery', 'acpi-video' and 'acpi-misc' · 4a577fca
      Rafael J. Wysocki authored
      Merge ACPI battery and backlight driver update and miscellaneous
      cleanup for 5.19-rc1:
      
       - Make the ACPI battery driver show the "not-charging" status by
         default unless "charging" or "full" is directly indicated (Werner
         Sembach).
      
       - Improve the PM notifier in the ACPI backlight driver (Zhang Rui).
      
       - Clean up some white space in the ACPI code (Ian Cowan).
      
      * acpi-battery:
        ACPI: battery: Make "not-charging" the default on no charging or full info
      
      * acpi-video:
        ACPI: video: improve PM notifer callback
      
      * acpi-misc:
        ACPI: clean up white space in a few places for consistency
      4a577fca
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-glue', 'acpi-osl', 'acpi-processor' and 'acpi-cppc' · 15f4bb9a
      Rafael J. Wysocki authored
      Merge general ACPI cleanups and processor support updates for 5.19-rc1:
      
       - Rearrange find_child_checks() to simplify code (Rafael Wysocki).
      
       - Use memremap() to map the UCSI mailbox that is always in main memory
         and drop acpi_release_memory() that has no more users (Heikki
         Krogerus, Dan Carpenter).
      
       - Make max_cstate/nocst/bm_check_disable processor module parameters
         visible in sysfs (Yajun Deng).
      
       - Fix typo in the CPPC driver (Julia Lawall).
      
      * acpi-glue:
        ACPI: glue: Rearrange find_child_checks()
      
      * acpi-osl:
        usb: typec: ucsi: acpi: fix a NULL vs IS_ERR() check in probe
        ACPI: OSL: Remove the helper for deactivating memory region
        usb: typec: ucsi: acpi: Map the mailbox with memremap()
      
      * acpi-processor:
        ACPI: processor: idle: Expose max_cstate/nocst/bm_check_disable read-only in sysfs
      
      * acpi-cppc:
        ACPI: CPPC: fix typo in comment
      15f4bb9a
    • Dan Carpenter's avatar
      usb: typec: ucsi: acpi: fix a NULL vs IS_ERR() check in probe · a9face89
      Dan Carpenter authored
      The devm_memremap() function never returns NULL.  It returns error
      pointers.
      
      Fixes: cdc3d2ab ("usb: typec: ucsi: acpi: Map the mailbox with memremap()")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a9face89
    • Helge Deller's avatar
      parisc: Drop __ARCH_WANT_OLD_READDIR and __ARCH_WANT_SYS_OLDUMOUNT · 72acadfe
      Helge Deller authored
      Those old syscalls aren't exported via our syscall table, so just drop
      them.
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      72acadfe
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-sysoff' · 9f9c1f68
      Rafael J. Wysocki authored
      Merge system power off handling rework from Dmitry Osipenko for
      5.19-rc1.
      
      This introduces a mechanism allowing power sequences to be used for
      powering off the system and makes related changes in platform-specific
      code for multiple platforms.
      
      * pm-sysoff: (29 commits)
        kernel/reboot: Change registration order of legacy power-off handler
        m68k: virt: Switch to new sys-off handler API
        kernel/reboot: Add devm_register_restart_handler()
        kernel/reboot: Add devm_register_power_off_handler()
        soc/tegra: pmc: Use sys-off handler API to power off Nexus 7 properly
        reboot: Remove pm_power_off_prepare()
        regulator: pfuze100: Use devm_register_sys_off_handler()
        ACPI: power: Switch to sys-off handler API
        memory: emif: Use kernel_can_power_off()
        mips: Use do_kernel_power_off()
        ia64: Use do_kernel_power_off()
        x86: Use do_kernel_power_off()
        sh: Use do_kernel_power_off()
        m68k: Switch to new sys-off handler API
        powerpc: Use do_kernel_power_off()
        xen/x86: Use do_kernel_power_off()
        parisc: Use do_kernel_power_off()
        arm64: Use do_kernel_power_off()
        riscv: Use do_kernel_power_off()
        csky: Use do_kernel_power_off()
        ...
      9f9c1f68
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-docs' · 1cdc5ba0
      Rafael J. Wysocki authored
      Merge PM documentation update for 5.19-rc1.
      
      * pm-docs:
        Documentation: admin-guide: PM: Add Out of Band mode
      1cdc5ba0
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · 22ffff6d
      Rafael J. Wysocki authored
      Merge OPP (Operating Performance Points) changes for 5.19-rc1:
      
       - Minor update to dt-binding for Qcom's opp-v2-kryo-cpu (Yassine
         Oudjana).
      
       - Use list iterator only inside the list_for_each_entry loop (Xiaomeng
         Tong, and Jakob Koschel).
      
       - New APIs related to finding OPP based on interconnect bandwidth
         (Krzysztof Kozlowski).
      
       - Fix the missing of_node_put() in _bandwidth_supported() (Dan
         Carpenter).
      
       - Cleanups (Krzysztof Kozlowski, and Viresh Kumar).
      
      * pm-opp:
        opp: Reorder definition of ceil/floor helpers
        opp: Add apis to retrieve opps with interconnect bandwidth
        dt-bindings: opp: opp-v2-kryo-cpu: Remove SMEM
        opp: use list iterator only inside the loop
        opp: replace usage of found with dedicated list iterator variable
        PM: opp: simplify with dev_err_probe()
        OPP: call of_node_put() on error path in _bandwidth_supported()
      22ffff6d
    • Pierre Gondois's avatar
      cpufreq: CPPC: Fix unused-function warning · da436345
      Pierre Gondois authored
      Building the cppc_cpufreq driver with for arm64 with
      CONFIG_ENERGY_MODEL=n triggers the following warnings:
       drivers/cpufreq/cppc_cpufreq.c:550:12: error: ‘cppc_get_cpu_cost’ defined but not used
      [-Werror=unused-function]
         550 | static int cppc_get_cpu_cost(struct device *cpu_dev, unsigned long KHz,
             |            ^~~~~~~~~~~~~~~~~
       drivers/cpufreq/cppc_cpufreq.c:481:12: error: ‘cppc_get_cpu_power’ defined but not used
      [-Werror=unused-function]
         481 | static int cppc_get_cpu_power(struct device *cpu_dev,
             |            ^~~~~~~~~~~~~~~~~~
      
      Move the Energy Model related functions into specific guards.
      This allows to fix the warning and prevent doing extra work
      when the Energy Model is not present.
      
      Fixes: 740fcdc2 ("cpufreq: CPPC: Register EM based on efficiency class information")
      Reported-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
      Signed-off-by: default avatarPierre Gondois <pierre.gondois@arm.com>
      Tested-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      da436345
    • Zheng Bin's avatar
      cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE · a3f083e0
      Zheng Bin authored
      If CONFIG_ACPI_CPPC_CPUFREQ_FIE is not set, building fails:
      
      drivers/cpufreq/cppc_cpufreq.c: In function ‘populate_efficiency_class’:
      drivers/cpufreq/cppc_cpufreq.c:584:2: error: ‘cppc_cpufreq_driver’ undeclared (first use in this function); did you mean ‘cpufreq_driver’?
        cppc_cpufreq_driver.register_em = cppc_cpufreq_register_em;
        ^~~~~~~~~~~~~~~~~~~
        cpufreq_driver
      
      Make declare of cppc_cpufreq_driver out of CONFIG_ACPI_CPPC_CPUFREQ_FIE
      to fix this.
      
      Fixes: 740fcdc2 ("cpufreq: CPPC: Register EM based on efficiency class information")
      Signed-off-by: default avatarZheng Bin <zhengbin13@huawei.com>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a3f083e0
  4. 29 May, 2022 5 commits
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · b00ed48b
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "Nothing special, this includes a couple of new device support and new
        driver support and bunch of driver updates.
      
        New support:
      
         - Tegra gpcdma driver support
      
         - Qualcomm SM8350, Sm8450 and SC7280 device support
      
         - Renesas RZN1 dma and platform support
      
        Updates:
      
         - stm32 device pause/resume support and updates
      
         - DMA memset ops Documentation and usage clarification
      
         - deprecate '#dma-channels' & '#dma-requests' bindings
      
         - driver updates for stm32, ptdma idsx etc"
      
      * tag 'dmaengine-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (87 commits)
        dmaengine: idxd: make idxd_wq_enable() return 0 if wq is already enabled
        dmaengine: sun6i: Add support for the D1 variant
        dmaengine: sun6i: Add support for 34-bit physical addresses
        dmaengine: sun6i: Do not use virt_to_phys
        dt-bindings: dma: sun50i-a64: Add compatible for D1
        dmaengine: tegra: Remove unused switch case
        dmaengine: tegra: Fix uninitialized variable usage
        dmaengine: stm32-dma: add device_pause/device_resume support
        dmaengine: stm32-dma: rename pm ops before dma pause/resume introduction
        dmaengine: stm32-dma: pass DMA_SxSCR value to stm32_dma_handle_chan_done()
        dmaengine: stm32-dma: introduce stm32_dma_sg_inc to manage chan->next_sg
        dmaengine: stm32-dmamux: avoid reset of dmamux if used by coprocessor
        dmaengine: qcom: gpi: Add support for sc7280
        dt-bindings: dma: pl330: Add power-domains
        dmaengine: stm32-mdma: use dev_dbg on non-busy channel spurious it
        dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler()
        dmaengine: stm32-mdma: remove GISR1 register
        dmaengine: ti: deprecate '#dma-channels'
        dmaengine: mmp: deprecate '#dma-channels'
        dmaengine: pxa: deprecate '#dma-channels' and '#dma-requests'
        ...
      b00ed48b
    • Linus Torvalds's avatar
      Merge tag 'trace-tools-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · c3a9a3c5
      Linus Torvalds authored
      Pull tracing tool updates from Steven Rostedt:
      
       - Various clean ups and fixes to rtla (Real Time Linux Analysis)
      
      * tag 'trace-tools-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        rtla: Remove procps-ng dependency
        rtla: Fix __set_sched_attr error message
        rtla: Minor grammar fix for rtla README
        rtla: Don't overwrite existing directory mode
        rtla: Avoid record NULL pointer dereference
        rtla/Makefile: Properly handle dependencies
      c3a9a3c5
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 76bfd3de
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
       "The majority of the changes are for fixes and clean ups.
      
        Notable changes:
      
         - Rework trace event triggers code to be easier to interact with.
      
         - Support for embedding bootconfig with the kernel (as suppose to
           having it embedded in initram). This is useful for embedded boards
           without initram disks.
      
         - Speed up boot by parallelizing the creation of tracefs files.
      
         - Allow absolute ring buffer timestamps handle timestamps that use
           more than 59 bits.
      
         - Added new tracing clock "TAI" (International Atomic Time)
      
         - Have weak functions show up in available_filter_function list as:
           __ftrace_invalid_address___<invalid-offset> instead of using the
           name of the function before it"
      
      * tag 'trace-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (52 commits)
        ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to avoid adding weak function
        tracing: Fix comments for event_trigger_separate_filter()
        x86/traceponit: Fix comment about irq vector tracepoints
        x86,tracing: Remove unused headers
        ftrace: Clean up hash direct_functions on register failures
        tracing: Fix comments of create_filter()
        tracing: Disable kcov on trace_preemptirq.c
        tracing: Initialize integer variable to prevent garbage return value
        ftrace: Fix typo in comment
        ftrace: Remove return value of ftrace_arch_modify_*()
        tracing: Cleanup code by removing init "char *name"
        tracing: Change "char *" string form to "char []"
        tracing/timerlat: Do not wakeup the thread if the trace stops at the IRQ
        tracing/timerlat: Print stacktrace in the IRQ handler if needed
        tracing/timerlat: Notify IRQ new max latency only if stop tracing is set
        kprobes: Fix build errors with CONFIG_KRETPROBES=n
        tracing: Fix return value of trace_pid_write()
        tracing: Fix potential double free in create_var_ref()
        tracing: Use strim() to remove whitespace instead of doing it manually
        ftrace: Deal with error return code of the ftrace_process_locs() function
        ...
      76bfd3de
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v5.19-2022-05-28' of... · 09f73a1a
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v5.19-2022-05-28' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull more perf tools updates from Arnaldo Carvalho de Melo:
      
       - Add BPF based off-CPU profiling
      
       - Improvements for system wide recording, specially for Intel PT
      
       - Improve DWARF unwinding on arm64
      
       - Support Arm CoreSight trace data disassembly in 'perf script' python
      
       - Fix build with new libbpf version, related to supporting older
         versions of distro released libbpf packages
      
       - Fix event syntax error caused by ExtSel in the JSON events infra
      
       - Use stdio interface if slang is not supported in 'perf c2c'
      
       - Add 'perf test' checking for perf stat CSV output
      
       - Sync the msr-index.h copy with the kernel sources
      
      * tag 'perf-tools-for-v5.19-2022-05-28' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (38 commits)
        tools arch x86: Sync the msr-index.h copy with the kernel sources
        perf scripts python: Support Arm CoreSight trace data disassembly
        perf scripting python: Expose dso and map information
        perf jevents: Fix event syntax error caused by ExtSel
        perf tools arm64: Add support for VG register
        perf unwind arm64: Decouple Libunwind register names from Perf
        perf unwind: Use dynamic register set for DWARF unwind
        perf tools arm64: Copy perf_regs.h from the kernel
        perf unwind arm64: Use perf's copy of kernel headers
        perf c2c: Use stdio interface if slang is not supported
        perf test: Add a basic offcpu profiling test
        perf record: Add cgroup support for off-cpu profiling
        perf record: Handle argument change in sched_switch
        perf record: Implement basic filtering for off-cpu
        perf record: Enable off-cpu analysis with BPF
        perf report: Do not extend sample type of bpf-output event
        perf test: Add checking for perf stat CSV output.
        perf tools: Allow system-wide events to keep their own threads
        perf tools: Allow system-wide events to keep their own CPUs
        libperf evsel: Add comments for booleans
        ...
      09f73a1a
    • Helge Deller's avatar
      video: fbdev: omap: Add prototype for hwa742_update_window_async() · 79b66128
      Helge Deller authored
      The symbol hwa742_update_window_async() is exported, but there is no
      prototype defined for it. That's why gcc complains:
      
      drivers-video-fbdev-omap-hwa742.c:warning:no-previous-prototype-for-hwa742_update_window_async
      
      Add the prototype, but I wonder if we couldn't drop exporting the symbol
      instead. Since omapfb_update_window_async() is exported the same way,
      are there any users outside of the tree?
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      79b66128
  5. 28 May, 2022 1 commit
    • Linus Torvalds's avatar
      Merge tag 'input-for-v5.19-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 664a393a
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
      
       - a new driver for the Azoteq IQS7222A/B/C capacitive touch controller
      
       - a new driver for Raspberry Pi Sense HAT joystick
      
       - sun4i-lradc-keys gained support of R329 and D1 variants, plus it can
         be now used as a wakeup source
      
       - pm8941-pwrkey can now properly handle PON GEN3 variants; the driver
         also implements software debouncing and has a workaround for missing
         key press events
      
       - assorted driver fixes and cleanups
      
      * tag 'input-for-v5.19-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (29 commits)
        Input: stmfts - do not leave device disabled in stmfts_input_open
        Input: gpio-keys - cancel delayed work only in case of GPIO
        Input: cypress_ps2 - fix typo in comment
        Input: vmmouse - disable vmmouse before entering suspend mode
        dt-bindings: google,cros-ec-keyb: Fixup bad compatible match
        Input: cros-ec-keyb - allow skipping keyboard registration
        dt-bindings: google,cros-ec-keyb: Introduce switches only compatible
        Input: psmouse-smbus - avoid flush_scheduled_work() usage
        Input: bcm-keypad - remove unneeded NULL check before clk_disable_unprepare
        Input: sparcspkr - fix refcount leak in bbc_beep_probe
        Input: sun4i-lradc-keys - add support for R329 and D1
        Input: sun4i-lradc-keys - add optional clock/reset support
        dt-bindings: input: sun4i-lradc-keys: Add R329 and D1 compatibles
        Input: sun4i-lradc-keys - add wakeup support
        Input: pm8941-pwrkey - simulate missed key press events
        Input: pm8941-pwrkey - add software key press debouncing support
        Input: pm8941-pwrkey - add support for PON GEN3 base addresses
        Input: pm8941-pwrkey - fix error message
        Input: synaptics-rmi4 - remove unnecessary flush_workqueue()
        Input: ep93xx_keypad - use devm_platform_ioremap_resource() helper
        ...
      664a393a