Skip to content
  1. Dec 07, 2020
  2. Dec 06, 2020
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 33256ce1
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Some more I2C driver updates. IMX updates are a tad bigger, but not
        exceptionally big"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: mlxbf: Fix the return check of devm_ioremap and ioremap
        i2c: mlxbf: select CONFIG_I2C_SLAVE
        i2c: imx: Don't generate STOP condition if arbitration has been lost
        i2c: imx: Check for I2SR_IAL after every byte
        i2c: imx: Fix reset of I2SR_IAL flag
        i2c: qcom: Fix IRQ error misassignement
        i2c: qup: Fix error return code in qup_i2c_bam_schedule_desc()
      33256ce1
    • Linus Torvalds's avatar
      Merge tag 'block-5.10-2020-12-05' of git://git.kernel.dk/linux-block · be1515ba
      Linus Torvalds authored
      Pull block fix from Jens Axboe:
       "Single fix for an issue with chunk_sectors and stacked devices"
      
      * tag 'block-5.10-2020-12-05' of git://git.kernel.dk/linux-block:
        block: use gcd() to fix chunk_sectors limit stacking
      be1515ba
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.10-2020-12-05' of git://git.kernel.dk/linux-block · 619ca266
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a small fix this time, for an issue with 32-bit compat apps and
        buffer selection with recvmsg"
      
      * tag 'io_uring-5.10-2020-12-05' of git://git.kernel.dk/linux-block:
        io_uring: fix recvmsg setup with compat buf-select
      619ca266
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 32f741b0
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "Some more powerpc fixes for 5.10:
      
         - Three commits fixing possible missed TLB invalidations for
           multi-threaded processes when CPUs are hotplugged in and out.
      
         - A fix for a host crash triggerable by host userspace (qemu) in KVM
           on Power9.
      
         - A fix for a host crash in machine check handling when running HPT
           guests on a HPT host.
      
         - One commit fixing potential missed TLB invalidations when using the
           hash MMU on Power9 or later.
      
         - A regression fix for machines with CPUs on node 0 but no memory.
      
        Thanks to Aneesh Kumar K.V, Cédric Le Goater, Greg Kurz, Milan
        Mohanty, Milton Miller, Nicholas Piggin, Paul Mackerras, and Srikar
        Dronamraju"
      
      * tag 'powerpc-5.10-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s/powernv: Fix memory corruption when saving SLB entries on MCE
        KVM: PPC: Book3S HV: XIVE: Fix vCPU id sanity check
        powerpc/numa: Fix a regression on memoryless node 0
        powerpc/64s: Trim offlined CPUs from mm_cpumasks
        kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling
        powerpc/64s/pseries: Fix hash tlbiel_all_isa300 for guest kernels
        powerpc/64s: Fix hash ISA v3.0 TLBIEL instruction generation
      32f741b0
    • Linus Torvalds's avatar
      Merge tag '5.10-rc6-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · d4e90419
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Three smb3 fixes (two for stable) fixing
      
         - a null pointer issue in a DFS error path
      
         - a problem with excessive padding when mounted with "idsfromsid"
           causing owner fields to get corrupted
      
         - a more recent problem with compounded reparse point query found in
           testing to the Linux kernel server"
      
      * tag '5.10-rc6-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: refactor create_sd_buf() and and avoid corrupting the buffer
        cifs: add NULL check for ses->tcon_ipc
        smb3: set COMPOUND_FID to FileID field of subsequent compound request
      d4e90419
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 312b0bcd
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Four small fixes in two drivers.
      
        The mpt3sas fixes are all problems with timeout under unusual
        conditions, and the storvsc is a missed incoming packet validation
        and a missed error return"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: mpt3sas: Increase IOCInit request timeout to 30s
        scsi: mpt3sas: Fix ioctl timeout
        scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()
        scsi: storvsc: Fix error return in storvsc_probe()
      312b0bcd
    • Linus Torvalds's avatar
      Merge tag 'for-5.10/dm-fixes-2' of... · 87623405
      Linus Torvalds authored
      Merge tag 'for-5.10/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull fix for device mapper fixes from Mike Snitzer:
       "Apologies for the glaring bug I introduced with my previous pull
        request!
      
        Fix incorrect branching at top of blk_max_size_offset()"
      
      * tag 'for-5.10/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        block: fix incorrect branching in blk_max_size_offset()
      87623405
  3. Dec 05, 2020
    • Wang Xiaojun's avatar
      i2c: mlxbf: Fix the return check of devm_ioremap and ioremap · 2bf95456
      Wang Xiaojun authored
      
      
      devm_ioremap and ioremap may return NULL which cannot be checked
      by IS_ERR.
      
      Signed-off-by: default avatarWang Xiaojun <wangxiaojun11@huawei.com>
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Acked-by: default avatarKhalil Blaiech <kblaiech@nvidia.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      2bf95456
    • Arnd Bergmann's avatar
      i2c: mlxbf: select CONFIG_I2C_SLAVE · c62dac0a
      Arnd Bergmann authored
      If this is not enabled, the interfaces used in this driver do not work:
      
      drivers/i2c/busses/i2c-mlxbf.c:1888:3: error: implicit declaration of function 'i2c_slave_event' [-Werror,-Wimplicit-function-declaration]
                      i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value);
                      ^
      drivers/i2c/busses/i2c-mlxbf.c:1888:26: error: use of undeclared identifier 'I2C_SLAVE_WRITE_REQUESTED'
                      i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value);
                                             ^
      drivers/i2c/busses/i2c-mlxbf.c:1890:32: error: use of undeclared identifier 'I2C_SLAVE_WRITE_RECEIVED'
                      ret = i2c_slave_event(slave, I2C_SLAVE_WRITE_RECEIVED,
                                                   ^
      drivers/i2c/busses/i2c-mlxbf.c:1892:26: error: use of undeclared identifier 'I2C_SLAVE_STOP'
                      i2c_slave_event(slave, I2C_SLAVE_STOP, &value);
                                             ^
      
      Fixes: b5b5b320
      
       ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKhalil Blaiech <kblaiech@nvidia.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      c62dac0a
    • Mike Snitzer's avatar
      block: fix incorrect branching in blk_max_size_offset() · 65f33b35
      Mike Snitzer authored
      If non-zero 'chunk_sectors' is passed in to blk_max_size_offset() that
      override will be incorrectly ignored.
      
      Old blk_max_size_offset() branching, prior to commit 3ee16db3,
      must be used only if passed 'chunk_sectors' override is zero.
      
      Fixes: 3ee16db3
      
       ("dm: fix IO splitting")
      Cc: stable@vger.kernel.org # 5.9
      Reported-by: default avatarJohn Dorminy <jdorminy@redhat.com>
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      65f33b35
    • Linus Torvalds's avatar
      Merge tag 'for-5.10/dm-fixes' of... · b3298500
      Linus Torvalds authored
      Merge tag 'for-5.10/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix DM's bio splitting changes that were made during v5.9. This
         restores splitting in terms of varied per-target ti->max_io_len
         rather than use block core's single stacked 'chunk_sectors' limit.
      
       - Like DM crypt, update DM integrity to not use crypto drivers that
         have CRYPTO_ALG_ALLOCATES_MEMORY set.
      
       - Fix DM writecache target's argument parsing and status display.
      
       - Remove needless BUG() from dm writecache's persistent_memory_claim()
      
       - Remove old gcc workaround in DM cache target's block_div() for ARM
         link errors now that gcc >= 4.9 is required.
      
       - Fix RCU locking in dm_blk_report_zones and dm_dax_zero_page_range.
      
       - Remove old, and now frowned upon, BUG_ON(in_interrupt()) in
         dm_table_event().
      
       - Remove invalid sparse annotations from dm_prepare_ioctl() and
         dm_unprepare_ioctl().
      
      * tag 'for-5.10/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm: remove invalid sparse __acquires and __releases annotations
        dm: fix double RCU unlock in dm_dax_zero_page_range() error path
        dm: fix IO splitting
        dm writecache: remove BUG() and fail gracefully instead
        dm table: Remove BUG_ON(in_interrupt())
        dm: fix bug with RCU locking in dm_blk_report_zones
        Revert "dm cache: fix arm link errors with inline"
        dm writecache: fix the maximum number of arguments
        dm writecache: advance the number of arguments when reporting max_age
        dm integrity: don't use drivers that have CRYPTO_ALG_ALLOCATES_MEMORY
      b3298500
    • Mike Snitzer's avatar
      dm: remove invalid sparse __acquires and __releases annotations · bde3808b
      Mike Snitzer authored
      Fixes sparse warnings:
      drivers/md/dm.c:508:12: warning: context imbalance in 'dm_prepare_ioctl' - wrong count at exit
      drivers/md/dm.c:543:13: warning: context imbalance in 'dm_unprepare_ioctl' - wrong count at exit
      
      Fixes: 971888c4
      
       ("dm: hold DM table for duration of ioctl rather than use blkdev_get")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      bde3808b
    • Mike Snitzer's avatar
      dm: fix double RCU unlock in dm_dax_zero_page_range() error path · f05c4403
      Mike Snitzer authored
      Remove redundant dm_put_live_table() in dm_dax_zero_page_range() error
      path to fix sparse warning:
      drivers/md/dm.c:1208:9: warning: context imbalance in 'dm_dax_zero_page_range' - unexpected unlock
      
      Fixes: cdf6cdcd
      
       ("dm,dax: Add dax zero_page_range operation")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      f05c4403
    • Mike Snitzer's avatar
      dm: fix IO splitting · 3ee16db3
      Mike Snitzer authored
      Commit 882ec4e6 ("dm table: stack 'chunk_sectors' limit to account
      for target-specific splitting") caused a couple regressions:
      1) Using lcm_not_zero() when stacking chunk_sectors was a bug because
         chunk_sectors must reflect the most limited of all devices in the
         IO stack.
      2) DM targets that set max_io_len but that do _not_ provide an
         .iterate_devices method no longer had there IO split properly.
      
      And commit 5091cdec ("dm: change max_io_len() to use
      blk_max_size_offset()") also caused a regression where DM no longer
      supported varied (per target) IO splitting. The implication being the
      potential for severely reduced performance for IO stacks that use a DM
      target like dm-cache to hide performance limitations of a slower
      device (e.g. one that requires 4K IO splitting).
      
      Coming full circle: Fix all these issues by discontinuing stacking
      chunk_sectors up using ti->max_io_len in dm_calculate_queue_limits(),
      add optional chunk_sectors override argument to blk_max_size_offset()
      and update DM's max_io_len() to pass ti->max_io_len to its
      blk_max_size_offset() call.
      
      Passing in an optional chunk_sectors override to blk_max_size_offset()
      allows for code reuse of block's centralized calculation for max IO
      size based on provided offset and split boundary.
      
      Fixes: 882ec4e6 ("dm table: stack 'chunk_sectors' limit to account for target-specific splitting")
      Fixes: 5091cdec
      
       ("dm: change max_io_len() to use blk_max_size_offset()")
      Cc: stable@vger.kernel.org
      Reported-by: default avatarJohn Dorminy <jdorminy@redhat.com>
      Reported-by: default avatarBruce Johnston <bjohnsto@redhat.com>
      Reported-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
      Reviewed-by: default avatarJohn Dorminy <jdorminy@redhat.com>
      Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
      Reviewed-by: default avatarJens Axboe <axboe@kernel.dk>
      3ee16db3
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2020-12-04' of git://anongit.freedesktop.org/drm/drm · e87297fa
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "This week's regular fixes.
      
        i915 has fixes for a few races, use-after-free, and gpu hangs. Tegra
        just has some minor fixes that I didn't see much point in hanging on
        to. The nouveau fix is for all pre-nv50 cards and was reported a few
        times. Otherwise it's just some amdgpu, and a few misc fixes.
      
        Summary:
      
        amdgpu:
         - SMU11 manual fan fix
         - Renoir display clock fix
         - VCN3 dynamic powergating fix
      
        i915:
         - Program mocs:63 for cache eviction on gen9 (Chris)
         - Protect context lifetime with RCU (Chris)
         - Split the breadcrumb spinlock between global and contexts (Chris)
         - Retain default context state across shrinking (Venkata)
         - Limit frequency drop to RPe on parking (Chris)
         - Return earlier from intel_modeset_init() without display (Jani)
         - Defer initial modeset until after GGTT is initialized (Chris)
      
        nouveau:
         - pre-nv50 regression fix
      
        rockchip:
         - uninitialised LVDS property fix
      
        omap:
         - bridge fix
      
        panel:
         - race fix
      
        mxsfb:
         - fence sync fix
         - modifiers fix
      
        tegra:
         - idr init fix
         - sor fixes
         - output/of cleanup fix"
      
      * tag 'drm-fixes-2020-12-04' of git://anongit.freedesktop.org/drm/drm: (22 commits)
        drm/amdgpu/vcn3.0: remove old DPG workaround
        drm/amdgpu/vcn3.0: stall DPG when WPTR/RPTR reset
        drm/amd/display: Init clock value by current vbios CLKs
        drm/amdgpu/pm/smu11: Fix fan set speed bug
        drm/i915/display: Defer initial modeset until after GGTT is initialised
        drm/i915/display: return earlier from intel_modeset_init() without display
        drm/i915/gt: Limit frequency drop to RPe on parking
        drm/i915/gt: Retain default context state across shrinking
        drm/i915/gt: Split the breadcrumb spinlock between global and contexts
        drm/i915/gt: Protect context lifetime with RCU
        drm/i915/gt: Program mocs:63 for cache eviction on gen9
        drm/omap: sdi: fix bridge enable/disable
        drm/panel: sony-acx565akm: Fix race condition in probe
        drm/rockchip: Avoid uninitialized use of endpoint id in LVDS
        drm/tegra: sor: Disable clocks on error in tegra_sor_init()
        drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve
        drm: mxsfb: Implement .format_mod_supported
        drm: mxsfb: fix fence synchronization
        drm/tegra: output: Do not put OF node twice
        drm/tegra: replace idr_init() by idr_init_base()
        ...
      e87297fa
  4. Dec 04, 2020