Skip to content
  1. Sep 13, 2020
  2. Sep 12, 2020
    • Stafford Horne's avatar
      openrisc: Fix issue with get_user for 64-bit values · d877322b
      Stafford Horne authored
      A build failure was raised by kbuild with the following error.
      
          drivers/android/binder.c: Assembler messages:
          drivers/android/binder.c:3861: Error: unrecognized keyword/register name `l.lwz ?ap,4(r24)'
          drivers/android/binder.c:3866: Error: unrecognized keyword/register name `l.addi ?ap,r0,0'
      
      The issue is with 64-bit get_user() calls on openrisc.  I traced this to
      a problem where in the internally in the get_user macros there is a cast
      to long __gu_val this causes GCC to think the get_user call is 32-bit.
      This binder code is really long and GCC allocates register r30, which
      triggers the issue. The 64-bit get_user asm tries to get the 64-bit pair
      register, which for r30 overflows the general register names and returns
      the dummy register ?ap.
      
      The fix here is to move the temporary variables into the asm macros.  We
      use a 32-bit __gu_tmp for 32-bit and smaller macro and a 64-bit tmp in
      the 64-bit macro.  The cast in the 64-bit macro has a trick of casting
      through __typeof__((x)-(x)) which avoids the below warning.  This was
      barrowed from riscv.
      
          arch/openrisc/include/asm/uaccess.h:240:8: warning: cast to pointer from integer of different size
      
      I tested this in a small unit test to check reading between 64-bit and
      32-bit pointers to 64-bit and 32-bit values in all combinations.  Also I
      ran make C=1 to confirm no new sparse warnings came up.  It all looks
      clean to me.
      
      Link: https://lore.kernel.org/lkml/202008200453.ohnhqkjQ%25lkp@intel.com/
      
      
      Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
      Reviewed-by: default avatarLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
      d877322b
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-5.9-rc5' of git://github.com/ceph/ceph-client · 729e3d09
      Linus Torvalds authored
      Pull ceph fix from Ilya Dryomov:
       "Add missing capability checks in rbd, marked for stable"
      
      * tag 'ceph-for-5.9-rc5' of git://github.com/ceph/ceph-client:
        rbd: require global CAP_SYS_ADMIN for mapping and unmapping
      729e3d09
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · e9287bd2
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "Usual driver bugfixes for the I2C subsystem"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: algo: pca: Reapply i2c bus settings after reset
        i2c: npcm7xx: Fix timeout calculation
        misc: eeprom: at24: register nvmem only after eeprom is ready to use
      e9287bd2
    • Linus Torvalds's avatar
      Merge tag 'pm-5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 566e24ee
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix three pieces of documentation and add new CPU IDs to the
        Intel RAPL power capping driver.
      
        Specifics:
      
         - Add CPU IDs of the TigerLake Desktop, RocketLake and AlderLake
           chips to the Intel RAPL power capping driver (Zhang Rui).
      
         - Add the missing energy model performance domain item to the struct
           device kerneldoc comment (Randy Dunlap).
      
         - Fix the struct powercap_control_type kerneldoc comment to match the
           actual definition of that structure and add missing item to the
           struct powercap_zone_ops kerneldoc comment (Amit Kucheria)"
      
      * tag 'pm-5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        powercap: make documentation reflect code
        PM: <linux/device.h>: fix @em_pd kernel-doc warning
        powercap/intel_rapl: add support for AlderLake
        powercap/intel_rapl: add support for RocketLake
        powercap/intel_rapl: add support for TigerLake Desktop
      566e24ee
    • Linus Torvalds's avatar
      Merge tag 'block-5.9-2020-09-11' of git://git.kernel.dk/linux-block · 7b8731d9
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Fix a regression in bdev partition locking (Christoph)
      
       - NVMe pull request from Christoph:
            - cancel async events before freeing them (David Milburn)
            - revert a broken race fix (James Smart)
            - fix command processing during resets (Sagi Grimberg)
      
       - Fix a kyber crash with requeued flushes (Omar)
      
       - Fix __bio_try_merge_page() same_page error for no merging (Ritesh)
      
      * tag 'block-5.9-2020-09-11' of git://git.kernel.dk/linux-block:
        block: Set same_page to false in __bio_try_merge_page if ret is false
        nvme-fabrics: allow to queue requests for live queues
        block: only call sched requeue_request() for scheduled requests
        nvme-tcp: cancel async events before freeing event struct
        nvme-rdma: cancel async events before freeing event struct
        nvme-fc: cancel async events before freeing event struct
        nvme: Revert: Fix controller creation races with teardown flow
        block: restore a specific error code in bdev_del_partition
      7b8731d9
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · e8878ab8
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "There's some driver specific fixes here plus one core fix for memory
        leaks that could be triggered by a potential race condition when
        cleaning up after we have split transfers to fit into what the
        controller can support"
      
      * tag 'spi-fix-v5.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: stm32: fix pm_runtime_get_sync() error checking
        spi: Fix memory leak on splited transfers
        spi: spi-cadence-quadspi: Fix mapping of buffers for DMA reads
        spi: stm32: Rate-limit the 'Communication suspended' message
        spi: spi-loopback-test: Fix out-of-bounds read
        spi: spi-cadence-quadspi: Populate get_name() interface
        MAINTAINERS: add myself as maintainer for spi-fsl-dspi driver
      e8878ab8
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.9-rc4' of... · 8b6ce251
      Linus Torvalds authored
      Merge tag 'regulator-fix-v5.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "The biggest set of fixes here is those from Michał Mirosław fixing
        some locking issues with coupled regulators that are triggered in
        cases where a coupled regulator is used by a device involved in
        fs_reclaim like eMMC storage.
      
        These are relatively serious for the affected systems, though the
        circumstances where they trigger are very rare"
      
      * tag 'regulator-fix-v5.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: pwm: Fix machine constraints application
        regulator: core: Fix slab-out-of-bounds in regulator_unlock_recursive()
        regulator: remove superfluous lock in regulator_resolve_coupling()
        regulator: cleanup regulator_ena_gpio_free()
        regulator: plug of_node leak in regulator_register()'s error path
        regulator: push allocation in set_consumer_device_supply() out of lock
        regulator: push allocations in create_regulator() outside of lock
        regulator: push allocation in regulator_ena_gpio_request() out of lock
        regulator: push allocation in regulator_init_coupling() outside of lock
        regulator: fix spelling mistake "Cant" -> "Can't"
        regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call
      8b6ce251
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 063d6a4c
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - sdio: Restore ~20% performance drop for SDHCI drivers, by using
           mmc_pre_req() and mmc_post_req() for SDIO requests.
      
        MMC host:
         - sdhci-of-esdhc: Fix support for erratum eSDHC7
         - mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset
         - sdhci-msm: Use retries to fix tuning
         - sdhci-acpi: Fix resume for eMMC HS400 mode"
      
      * tag 'mmc-v5.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sdio: Use mmc_pre_req() / mmc_post_req()
        mmc: sdhci-of-esdhc: Don't walk device-tree on every interrupt
        mmc: mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset
        mmc: sdhci-msm: Add retries when all tuning phases are found valid
        mmc: sdhci-acpi: Clear amd_sdhci_host on reset
      063d6a4c
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2020-09-11' of git://anongit.freedesktop.org/drm/drm · d67f2ec1
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular fixes, not much a major amount. One thing though is Laurent
        fixed some Kconfig issues, and I'm carrying the rapidio kconfig change
        so the drm one for xlnx driver works. He hadn't got a response from
        rapidio maintainers.
      
        Otherwise, virtio, sun4i, tve200, ingenic have some fixes, one audio
        fix for i915 and a core docs fix.
      
        kconfig:
         - rapidio/xlnx kconfig fix
      
        core:
         - Documentation fix
      
        i915:
         - audio regression fix
      
        virtio:
         - Fix double free in virtio
         - Fix virtio unblank
         - Remove output->enabled from virtio, as it should use crtc_state
      
        sun4i:
         - Add missing put_device in sun4i, and other fixes
         - Handle sun4i alpha on lowest plane correctly
      
        tv200:
         - Fix tve200 enable/disable
      
        ingenic
         - Small ingenic fixes"
      
      * tag 'drm-fixes-2020-09-11' of git://anongit.freedesktop.org/drm/drm:
        drm/i915: fix regression leading to display audio probe failure on GLK
        drm: xlnx: dpsub: Fix DMADEVICES Kconfig dependency
        rapidio: Replace 'select' DMAENGINES 'with depends on'
        drm/virtio: drop virtio_gpu_output->enabled
        drm/sun4i: backend: Disable alpha on the lowest plane on the A20
        drm/sun4i: backend: Support alpha property on lowest plane
        drm/sun4i: Fix DE2 YVU handling
        drm/tve200: Stabilize enable/disable
        dma-buf: fence-chain: Document missing dma_fence_chain_init() parameter in kerneldoc
        dma-buf: Fix kerneldoc of dma_buf_set_name()
        drm/virtio: fix unblank
        Documentation: fix dma-buf.rst underline length warning
        drm/sun4i: Fix dsi dcs long write function
        drm/ingenic: Fix driver not probing when IPU port is missing
        drm/ingenic: Fix leak of device_node pointer
        drm/sun4i: add missing put_device() call in sun8i_r40_tcon_tv_set_mux()
        drm/virtio: Revert "drm/virtio: Call the right shmem helpers"
      d67f2ec1
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · b1df2a07
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "A number of driver bug fixes and a few recent regressions:
      
         - Several bug fixes for bnxt_re. Crashing, incorrect data reported,
           and corruption on new HW
      
         - Memory leak and crash in rxe
      
         - Fix sysfs corruption in rxe if the netdev name is too long
      
         - Fix a crash on error unwind in the new cq_pool code
      
         - Fix kobject panics in rtrs by working device lifetime properly
      
         - Fix a data corruption bug in iser target related to misaligned
           buffers"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        IB/isert: Fix unaligned immediate-data handling
        RDMA/rtrs-srv: Set .release function for rtrs srv device during device init
        RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx'
        RDMA/core: Fix reported speed and width
        RDMA/core: Fix unsafe linked list traversal after failing to allocate CQ
        RDMA/bnxt_re: Remove the qp from list only if the qp destroy succeeds
        RDMA/bnxt_re: Fix driver crash on unaligned PSN entry address
        RDMA/bnxt_re: Restrict the max_gids to 256
        RDMA/bnxt_re: Static NQ depth allocation
        RDMA/bnxt_re: Fix the qp table indexing
        RDMA/bnxt_re: Do not report transparent vlan from QP1
        RDMA/mlx4: Read pkey table length instead of hardcoded value
        RDMA/rxe: Fix panic when calling kmem_cache_create()
        RDMA/rxe: Fix memleak in rxe_mem_init_user
        RDMA/rxe: Fix the parent sysfs read when the interface has 15 chars
        RDMA/rtrs-srv: Replace device_register with device_initialize and device_add
      b1df2a07
    • Peter Oberparleiter's avatar
      gcov: add support for GCC 10.1 · 40249c69
      Peter Oberparleiter authored
      
      
      Using gcov to collect coverage data for kernels compiled with GCC 10.1
      causes random malfunctions and kernel crashes.  This is the result of a
      changed GCOV_COUNTERS value in GCC 10.1 that causes a mismatch between
      the layout of the gcov_info structure created by GCC profiling code and
      the related structure used by the kernel.
      
      Fix this by updating the in-kernel GCOV_COUNTERS value.  Also re-enable
      config GCOV_KERNEL for use with GCC 10.
      
      Reported-by: default avatarColin Ian King <colin.king@canonical.com>
      Reported-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: default avatarPeter Oberparleiter <oberpar@linux.ibm.com>
      Tested-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Tested-and-Acked-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      40249c69
  3. Sep 11, 2020
  4. Sep 10, 2020
  5. Sep 09, 2020