1. 03 Nov, 2023 1 commit
    • NeilBrown's avatar
      Fix termination state for idr_for_each_entry_ul() · e8ae8ad4
      NeilBrown authored
      The comment for idr_for_each_entry_ul() states
      
        after normal termination @entry is left with the value NULL
      
      This is not correct in the case where UINT_MAX has an entry in the idr.
      In that case @entry will be non-NULL after termination.
      No current code depends on the documentation being correct, but to
      save future code we should fix it.
      
      Also fix idr_for_each_entry_continue_ul().  While this is not documented
      as leaving @entry as NULL, the mellanox driver appears to depend on
      it doing so.  So make that explicit in the documentation as well as in
      the code.
      
      Fixes: e33d2b74 ("idr: fix overflow case for idr_for_each_entry_ul()")
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Chris Mi <chrism@mellanox.com>
      Cc: Cong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e8ae8ad4
  2. 02 Nov, 2023 34 commits
  3. 01 Nov, 2023 5 commits
    • Linus Torvalds's avatar
      Merge tag 'vfio-v6.7-rc1' of https://github.com/awilliam/linux-vfio · deefd502
      Linus Torvalds authored
      Pull VFIO updates from Alex Williamson:
      
       - Add support for "chunk mode" in the mlx5-vfio-pci variant driver,
         which allows both larger device image sizes for migration, beyond the
         previous 4GB limit, and also read-ahead support for improved
         migration performance (Yishai Hadas)
      
       - A new bus master control interface for the CDX bus driver where there
         is no in-band mechanism to toggle device DMA as there is through
         config space on PCI devices (Nipun Gupta)
      
       - Add explicit alignment directives to vfio data structures to reduce
         the chance of breaking 32-bit userspace. In most cases this is
         transparent and the remaining cases where data structures are padded
         work within the existing rules for extending data structures within
         vfio (Stefan Hajnoczi)
      
       - Resolve a bug in the cdx bus driver noted when compiled with clang
         where missing parenthesis result in the wrong operation (Nathan
         Chancellor)
      
       - Resolve errors reported by smatch for a function when dealing with
         invalid inputs (Alex Williamson)
      
       - Add migration support to the mtty vfio/mdev sample driver for testing
         and integration purposes, allowing CI of migration without specific
         hardware requirements. Also resolve many of the short- comings of
         this driver relative to implementation of the vfio interrupt ioctl
         along the way (Alex Williamson)
      
      * tag 'vfio-v6.7-rc1' of https://github.com/awilliam/linux-vfio:
        vfio/mtty: Enable migration support
        vfio/mtty: Overhaul mtty interrupt handling
        vfio: Fix smatch errors in vfio_combine_iova_ranges()
        vfio/cdx: Add parentheses between bitwise AND expression and logical NOT
        vfio/mlx5: Activate the chunk mode functionality
        vfio/mlx5: Add support for READING in chunk mode
        vfio/mlx5: Add support for SAVING in chunk mode
        vfio/mlx5: Pre-allocate chunks for the STOP_COPY phase
        vfio/mlx5: Rename some stuff to match chunk mode
        vfio/mlx5: Enable querying state size which is > 4GB
        vfio/mlx5: Refactor the SAVE callback to activate a work only upon an error
        vfio/mlx5: Wake up the reader post of disabling the SAVING migration file
        vfio: use __aligned_u64 in struct vfio_device_ioeventfd
        vfio: use __aligned_u64 in struct vfio_device_gfx_plane_info
        vfio: trivially use __aligned_u64 for ioctl structs
        vfio-cdx: add bus mastering device feature support
        vfio: add bus master feature to device feature ioctl
        cdx: add support for bus mastering
      deefd502
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-6.7-2023-10-30' of git://git.infradead.org/users/hch/dma-mapping · 009fbfc9
      Linus Torvalds authored
      Pull dma-mapping updates from Christoph Hellwig:
      
       - get rid of the fake support for coherent DMA allocation on coldfire
         with caches (Christoph Hellwig)
      
       - add a few Kconfig dependencies so that Kconfig catches the use of
         invalid configurations (Christoph Hellwig)
      
       - fix a type in dma-debug output (Chuck Lever)
      
       - rewrite a comment in swiotlb (Sean Christopherson)
      
      * tag 'dma-mapping-6.7-2023-10-30' of git://git.infradead.org/users/hch/dma-mapping:
        dma-debug: Fix a typo in a debugging eye-catcher
        swiotlb: rewrite comment explaining why the source is preserved on DMA_FROM_DEVICE
        m68k: remove unused includes from dma.c
        m68k: don't provide arch_dma_alloc for nommu/coldfire
        net: fec: use dma_alloc_noncoherent for data cache enabled coldfire
        m68k: use the coherent DMA code for coldfire without data cache
        dma-direct: warn when coherent allocations aren't supported
        dma-direct: simplify the use atomic pool logic in dma_direct_alloc
        dma-direct: add a CONFIG_ARCH_HAS_DMA_ALLOC symbol
        dma-direct: add dependencies to CONFIG_DMA_GLOBAL_POOL
      009fbfc9
    • Linus Torvalds's avatar
      Merge tag 'pmdomain-v6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm · 3c86a44d
      Linus Torvalds authored
      Pull pmdomain updates from Ulf Hansson:
      
       - Move Kconfig files into the pmdomain subsystem
      
       - Drop use of genpd's redundant ->opp_to_performance_state() callback
      
       - amlogic:
          - Add support for the T7 power-domains controller
          - Fix mask for the second NNA mem power-domain
      
       - bcm: Fixup ASB register read and comparison for bcm2835-power
      
       - imx: Fix device link problem for consumers of the pgc power-domain
      
       - mediatek: Add support for the MT8365 power domains
      
       - qcom:
          - Add support for the rpmhpds for SC8380XP power-domains
          - Add support for the rpmhpds for SM8650 power-domains
          - Add support for the rpmhpd clocks for SM7150
          - Add support for the rpmpds for MSM8917 (families) power-domains
      
       - starfive: Add support for the JH7110 AON PMU
      
      * tag 'pmdomain-v6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm: (56 commits)
        pmdomain: amlogic: Fix mask for the second NNA mem PD domain
        pmdomain: qcom: rpmhpd: Add SC8380XP power domains
        pmdomain: qcom: rpmhpd: Add SM8650 RPMh Power Domains
        dt-bindings: power: rpmpd: Add SC8380XP support
        dt-bindings: power: qcom,rpmhpd: Add GMXC PD index
        dt-bindings: power: qcom,rpmpd: document the SM8650 RPMh Power Domains
        pmdomain: imx: Make imx pgc power domain also set the fwnode
        pmdomain: qcom: rpmpd: Add QM215 power domains
        pmdomain: qcom: rpmpd: Add MSM8917 power domains
        dt-bindings: power: rpmpd: Add MSM8917, MSM8937 and QM215
        pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enable
        pmdomain: qcom: rpmhpd: Drop the ->opp_to_performance_state() callback
        pmdomain: qcom: rpmpd: Drop the ->opp_to_performance_state() callback
        pmdomain: qcom: cpr: Drop the ->opp_to_performance_state() callback
        pmdomain: Use device_get_match_data()
        pmdomain: ti: add missing of_node_put
        pmdomain: mediatek: Add support for MT8365
        pmdomain: mediatek: Add support for MTK_SCPD_STRICT_BUS_PROTECTION cap
        pmdomain: mediatek: Add support for WAY_EN operations
        pmdomain: mediatek: Unify configuration for infracfg and smi
        ...
      3c86a44d
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 40aa597c
      Linus Torvalds authored
      Pull MMC updates from Ulf Hansson:
      " MMC core:
         - Enable host caps to be modified via debugfs to test speed-modes
         - Improve random I/O writes for 4k buffers for hsq enabled hosts
      
        MMC host:
         - atmel-mci/sdhci-of-at91: Aubin Constans takes over as maintainer
         - dw_mmc-starfive: Re-work tuning support
         - meson-gx: Fix bogus IRQ when using CMD_CFG_ERROR
         - mmci: Use peripheral flow control for the STM32 variant
         - renesas,sdhi: Add support for the RZ/G3S variant
         - sdhci-esdhc-imx: Optimize the manual tuning logic
         - sdhci-msm: Add support for the SM8650 variant
         - sdhci-npcm: Add driver to support the Nuvoton NPCM BMC variant
         - sdhci-pci-gli: Add workaround to allow GL9750 to enter ASPM L1.2"
      
      * tag 'mmc-v6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (25 commits)
        dt-bindings: mmc: sdhci-msm: document the SM8650 SDHCI Controller
        mmc: meson-gx: Remove setting of CMD_CFG_ERROR
        MAINTAINERS: mmc: take over as maintainer of MCI & SDHCI MICROCHIP DRIVERS
        mmc: jz4740: Use device_get_match_data()
        mmc: sdhci-npcm: Add NPCM SDHCI driver
        dt-bindings: mmc: npcm,sdhci: Document NPCM SDHCI controller
        mmc: sdhci-pltfm: Make driver OF independent
        mmc: sdhci-pltfm: Drop unnecessary error messages in sdhci_pltfm_init()
        mmc: sdhci-pci: Switch to use acpi_evaluate_dsm_typed()
        mmc: debugfs: Allow host caps to be modified
        mmc: core: Always reselect card type
        mmc: mmci: use peripheral flow control for STM32
        mmc: vub300: replace deprecated strncpy with strscpy
        memstick: jmb38x_ms: Annotate struct jmb38x_ms with __counted_by
        mmc: starfive: Change tuning implementation
        dt-bindings: mmc: starfive: Remove properties from required
        mmc: hsq: Improve random I/O write performance for 4k buffers
        mmc: core: Allow dynamical updates of the number of requests for hsq
        mmc: sdhci-pci-gli: A workaround to allow GL9750 to enter ASPM L1.2
        dt-bindings: mmc: renesas,sdhi: Document RZ/G3S support
        ...
      40aa597c
    • Linus Torvalds's avatar
      Merge tag 'for-6.7/dm-changes' of... · 0364249d
      Linus Torvalds authored
      Merge tag 'for-6.7/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper updates from Mike Snitzer:
      
       - Update DM core to directly call the map function for both the linear
         and stripe targets; which are provided by DM core
      
       - Various updates to use new safer string functions
      
       - Update DM core to respect REQ_NOWAIT flag in normal bios so that
         memory allocations are always attempted with GFP_NOWAIT
      
       - Add Mikulas Patocka to MAINTAINERS as a DM maintainer!
      
       - Improve DM delay target's handling of short delays (< 50ms) by using
         a kthread to check expiration of IOs rather than timers and a wq
      
       - Update the DM error target so that it works with zoned storage. This
         helps xfstests to provide proper IO error handling coverage when
         testing a filesystem with native zoned storage support
      
       - Update both DM crypt and integrity targets to improve performance by
         using crypto_shash_digest() rather than init+update+final sequence
      
       - Fix DM crypt target by backfilling missing memory allocation
         accounting for compound pages
      
      * tag 'for-6.7/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm crypt: account large pages in cc->n_allocated_pages
        dm integrity: use crypto_shash_digest() in sb_mac()
        dm crypt: use crypto_shash_digest() in crypt_iv_tcw_whitening()
        dm error: Add support for zoned block devices
        dm delay: for short delays, use kthread instead of timers and wq
        MAINTAINERS: add Mikulas Patocka as a DM maintainer
        dm: respect REQ_NOWAIT flag in normal bios issued to DM
        dm: enhance alloc_multiple_bios() to be more versatile
        dm: make __send_duplicate_bios return unsigned int
        dm log userspace: replace deprecated strncpy with strscpy
        dm ioctl: replace deprecated strncpy with strscpy_pad
        dm crypt: replace open-coded kmemdup_nul
        dm cache metadata: replace deprecated strncpy with strscpy
        dm: shortcut the calls to linear_map and stripe_map
      0364249d