1. 26 Jun, 2022 10 commits
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.19-2022-06-26' of git://git.infradead.org/users/hch/dma-mapping · c898c67d
      Linus Torvalds authored
      Pull dma-mapping fix from Christoph Hellwig:
      
       - pass the correct size to dma_set_encrypted() when freeing memory
         (Dexuan Cui)
      
      * tag 'dma-mapping-5.19-2022-06-26' of git://git.infradead.org/users/hch/dma-mapping:
        dma-direct: use the correct size for dma_set_encrypted()
      c898c67d
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/fbdev-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · be129fab
      Linus Torvalds authored
      Pull fbdev fixes from Helge Deller:
       "Two bug fixes for the pxa3xx and intelfb drivers:
      
         - pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write
      
         - intelfb: Initialize value of stolen size
      
        The other changes are small cleanups, simplifications and
        documentation updates to the cirrusfb, skeletonfb, omapfb,
        intelfb, au1100fb and simplefb drivers"
      
      * tag 'for-5.19/fbdev-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
        video: fbdev: omap: Remove duplicate 'the' in comment
        video: fbdev: omapfb: Align '*' in comment
        video: fbdev: simplefb: Check before clk_put() not needed
        video: fbdev: au1100fb: Drop unnecessary NULL ptr check
        video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write
        video: fbdev: skeletonfb: Convert to generic power management
        video: fbdev: cirrusfb: Remove useless reference to PCI power management
        video: fbdev: intelfb: Initialize value of stolen size
        video: fbdev: intelfb: Use aperture size from pci_resource_len
        video: fbdev: skeletonfb: Fix syntax errors in comments
      be129fab
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/parisc-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · c0c6a7bd
      Linus Torvalds authored
      Pull parisc architecture fixes from Helge Deller:
      
       - enable ARCH_HAS_STRICT_MODULE_RWX to prevent a boot crash on c8000
         machines
      
       - flush all mappings of a shared anonymous page on PA8800/8900 machines
         via flushing the whole data cache. This may slow down such machines
         but makes sure that the cache is consistent
      
       - Fix duplicate definition build error regarding fb_is_primary_device()
      
      * tag 'for-5.19/parisc-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Enable ARCH_HAS_STRICT_MODULE_RWX
        parisc: Fix flush_anon_page on PA8800/PA8900
        parisc: align '*' in comment in math-emu code
        parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI
      c0c6a7bd
    • Linus Torvalds's avatar
      Merge tag 'xtensa-20220626' of https://github.com/jcmvbkbc/linux-xtensa · e963d685
      Linus Torvalds authored
      Pull xtensa fixes from Max Filippov:
      
       - fix OF reference leaks in xtensa arch code
      
       - replace '.bss' with '.section .bss' to fix entry.S build with old
         assembler
      
      * tag 'xtensa-20220626' of https://github.com/jcmvbkbc/linux-xtensa:
        xtensa: change '.bss' to '.section .bss'
        xtensa: xtfpga: Fix refcount leak bug in setup
        xtensa: Fix refcount leak bug in time.c
      e963d685
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 8100775d
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - A fix for a CMA change that broke booting guests with > 2G RAM on
         Power8 hosts.
      
       - Fix the RTAS call filter to allow a special case that applications
         rely on.
      
       - A change to our execve path, to make the execve syscall exit
         tracepoint work.
      
       - Three fixes to wire up our various RNGs earlier in boot so they're
         available for use in the initial seeding in random_init().
      
       - A build fix for when KASAN is enabled along with
         STRUCTLEAK_BYREF_ALL.
      
      Thanks to Andrew Donnellan, Aneesh Kumar K.V, Christophe Leroy, Jason
      Donenfeld, Nathan Lynch, Naveen N. Rao, Sathvika Vasireddy, Sumit
      Dubey2, Tyrel Datwyler, and Zi Yan.
      
      * tag 'powerpc-5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/powernv: wire up rng during setup_arch
        powerpc/prom_init: Fix build failure with GCC_PLUGIN_STRUCTLEAK_BYREF_ALL and KASAN
        powerpc/rtas: Allow ibm,platform-dump RTAS call with null buffer address
        powerpc: Enable execve syscall exit tracepoint
        powerpc/pseries: wire up rng during setup_arch()
        powerpc/microwatt: wire up rng during setup_arch()
        powerpc/mm: Move CMA reservations after initmem_init()
      8100775d
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.19-2' of... · 393ed5d8
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix modpost to detect EXPORT_SYMBOL marked as __init or__exit
      
       - Update the supported arch list in the LLVM document
      
       - Avoid the second link of vmlinux for CONFIG_TRIM_UNUSED_KSYMS
      
       - Avoid false __KSYM___this_module define in include/generated/autoksyms.h
      
      * tag 'kbuild-fixes-v5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: Ignore __this_module in gen_autoksyms.sh
        kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS (2nd attempt)
        Documentation/llvm: Update Supported Arch table
        modpost: fix section mismatch check for exported init/exit sections
      393ed5d8
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · 97d4d026
      Linus Torvalds authored
      Pull exfat fix from Namjae Jeon:
      
       - Use updated exfat_chain directly instead of snapshot values in
         rename.
      
      * tag 'exfat-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        exfat: use updated exfat_chain directly during renaming
      97d4d026
    • Linus Torvalds's avatar
      Merge tag '5.19-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 918c30df
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
       "Fixes addressing important multichannel, and reconnect issues.
      
        Multichannel mounts when the server network interfaces changed, or ip
        addresses changed, uncovered problems, especially in reconnect, but
        the patches for this were held up until recently due to some lock
        conflicts that are now addressed.
      
        Included in this set of fixes:
      
         - three fixes relating to multichannel reconnect, dynamically
           adjusting the list of server interfaces to avoid problems during
           reconnect
      
         - a lock conflict fix related to the above
      
         - two important fixes for negotiate on secondary channels (null
           netname can unintentionally cause multichannel to be disabled to
           some servers)
      
         - a reconnect fix (reporting incorrect IP address in some cases)"
      
      * tag '5.19-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: update cifs_ses::ip_addr after failover
        cifs: avoid deadlocks while updating iface
        cifs: periodically query network interfaces from server
        cifs: during reconnect, update interface if necessary
        cifs: change iface_list from array to sorted linked list
        smb3: use netname when available on secondary channels
        smb3: fix empty netname context on secondary channels
      918c30df
    • Helge Deller's avatar
      parisc: Enable ARCH_HAS_STRICT_MODULE_RWX · 0a1355db
      Helge Deller authored
      Fix a boot crash on a c8000 machine as reported by Dave.  Basically it changes
      patch_map() to return an alias mapping to the to-be-patched code in order to
      prevent writing to write-protected memory.
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Suggested-by: default avatarJohn David Anglin <dave.anglin@bell.net>
      Cc: stable@vger.kernel.org   # v5.2+
      Link: https://lore.kernel.org/all/e8ec39e8-25f8-e6b4-b7ed-4cb23efc756e@bell.net/
      0a1355db
    • John David Anglin's avatar
      parisc: Fix flush_anon_page on PA8800/PA8900 · e9ed22e6
      John David Anglin authored
      Anonymous pages are allocated with the shared mappings colouring,
      SHM_COLOUR. Since the alias boundary on machines with PA8800 and
      PA8900 processors is unknown, flush_user_cache_page() might not
      flush all mappings of a shared anonymous page. Flushing the whole
      data cache flushes all mappings.
      
      This won't fix all coherency issues with shared mappings but it
      seems to work well in practice.  I haven't seen any random memory
      faults in almost a month on a rp3440 running as a debian buildd
      machine.
      
      There is a small preformance hit.
      Signed-off-by: default avatarJohn David Anglin <dave.anglin@bell.net>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org   # v5.18+
      e9ed22e6
  2. 25 Jun, 2022 14 commits
    • Jiang Jian's avatar
      d16c5c7c
    • Sami Tolvanen's avatar
      kbuild: Ignore __this_module in gen_autoksyms.sh · ff139766
      Sami Tolvanen authored
      Module object files can contain an undefined reference to __this_module,
      which isn't resolved until we link the final .ko. The kernel doesn't
      export this symbol, so ignore it in gen_autoksyms.sh.
      Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
      Tested-by: default avatarSteve Muckle <smuckle@google.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Tested-by: default avatarRamji Jiyani <ramjiyani@google.com>
      ff139766
    • Masahiro Yamada's avatar
      kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS (2nd attempt) · 53632ba8
      Masahiro Yamada authored
      If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from
      a pristine state, the vmlinux is linked twice.
      
      Commit 3fdc7d3f ("kbuild: link vmlinux only once for
      CONFIG_TRIM_UNUSED_KSYMS") explains why this happens, but it did not fix
      the issue at all.
      
      Now I realized I had applied a wrong patch.
      
      In v1 patch [1], the autoksyms_recursive target correctly recurses to
      "$(MAKE) -f $(srctree)/Makefile autoksyms_recursive".
      
      In v2 patch [2], I accidentally dropped the diff line, and it recurses to
      "$(MAKE) -f $(srctree)/Makefile vmlinux".
      
      Restore the code I intended in v1.
      
      [1]: https://lore.kernel.org/linux-kbuild/1521045861-22418-8-git-send-email-yamada.masahiro@socionext.com/
      [2]: https://lore.kernel.org/linux-kbuild/1521166725-24157-8-git-send-email-yamada.masahiro@socionext.com/
      
      Fixes: 3fdc7d3f ("kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS")
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Tested-by: default avatarSami Tolvanen <samitolvanen@google.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      53632ba8
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 0840a791
      Linus Torvalds authored
      Pull IIO driver fixes from Greg KH:
       "Here are a set of IIO driver fixes for 5.19-rc4. Jonathan said it best
        in his pull request to me, so I'll just quote it here below, as that's
        the only changes we have right now for the char-misc driver tree:
      
        testing:
            - Fix a missing MODULE_LICENSE() warning by restricting possible
              build configs.
      
        Various drivers:
            - Fix ordering of iio_get_trigger() being called before
              iio_trigger_register()
      
        adi,admv1014:
            - Fix dubious x & !y warning.
      
        adi,axi-adc:
            - Fix missing of_node_put() in error and normal paths.
      
        aspeed,adc:
            - Add missing of_node_put()
      
        fsl,mma8452:
            - Fix broken probing from device tree.
            - Drop check on return value of i2c write to device to cause reset
              as ACK will be missing (device reset before sending it).
      
        fsl,vf610:
            - Fix documentation of in_conversion_mode ABI.
      
        iio-trig-sysfs:
            - Ensure irq work has finished before freeing the trigger.
      
        invensense,mpu3050:
            - Disable regulators in error path.
      
        invensense,icm42600:
            - Fix collision of enum value of 0 with error path where 0 is no
              match.
      
        renesas,rzg2l_Adc:
            - Add missing fwnode_handle_put() in error path.
      
        rescale:
            - Fix a boolean logic bug for detection of raw + scale affecting
              an obscure corner case.
      
        semtech,sx9324:
            - Check return value of read of pin_defs
      
        st,stm32-adc:
            - Fix interaction across ADC instances for some supported devices.
            - Drop false spurious IRQ messages.
            - Fix calibration value handling. If we can't calibrate don't
              expose the vref_int channel.
            - Fix maximum clock rate for stm32pm15x
      
        ti,ads131e08:
            - Add missing fwnode_handle_put() in error paths.
      
        xilinx,ams:
            - Fix variable checked for error from platform_get_irq()
      
        x-powers,axp288:
            - Overide TS_PIN bias current for boards where it is not correctly
              initialized.
      
        yamaha,yas530:
            - Fix inverted check on calibration data being all zeros.
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'char-misc-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (26 commits)
        iio:proximity:sx9324: Check ret value of device_property_read_u32_array()
        iio: accel: mma8452: ignore the return value of reset operation
        iio: adc: stm32: fix maximum clock rate for stm32mp15x
        iio: adc: stm32: fix vrefint wrong calibration value handling
        iio: imu: inv_icm42600: Fix broken icm42600 (chip id 0 value)
        iio: adc: vf610: fix conversion mode sysfs node name
        iio: adc: adi-axi-adc: Fix refcount leak in adi_axi_adc_attach_client
        iio: test: fix missing MODULE_LICENSE for IIO_RESCALE=m
        iio:humidity:hts221: rearrange iio trigger get and register
        iio:chemical:ccs811: rearrange iio trigger get and register
        iio:accel:mxc4005: rearrange iio trigger get and register
        iio:accel:kxcjk-1013: rearrange iio trigger get and register
        iio:accel:bma180: rearrange iio trigger get and register
        iio: afe: rescale: Fix boolean logic bug
        iio: adc: aspeed: Fix refcount leak in aspeed_adc_set_trim_data
        iio: adc: stm32: Fix IRQs on STM32F4 by removing custom spurious IRQs message
        iio: adc: stm32: Fix ADCs iteration in irq handler
        iio: adc: ti-ads131e08: add missing fwnode_handle_put() in ads131e08_alloc_channels()
        iio: adc: rzg2l_adc: add missing fwnode_handle_put() in rzg2l_adc_parse_properties()
        iio: trigger: sysfs: fix use-after-free on remove
        ...
      0840a791
    • Linus Torvalds's avatar
      Merge tag 'usb-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · c24eb8d6
      Linus Torvalds authored
      Pull USB driver fixes from Greg KH:
       "Here are some small USB driver fixes and new device ids for 5.19-rc4
        for a few small reported issues. They include:
      
         - new usb-serial driver ids
      
         - MAINTAINERS file update to properly catch the USB dts files
      
         - dt-bindings fixes for reported build warnings
      
         - xhci driver fixes for reported problems
      
         - typec Kconfig dependancy fix
      
         - raw_gadget fuzzing fixes found by syzbot
      
         - chipidea driver bugfix
      
         - usb gadget uvc bugfix
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: chipidea: udc: check request status before setting device address
        USB: gadget: Fix double-free bug in raw_gadget driver
        xhci-pci: Allow host runtime PM as default for Intel Meteor Lake xHCI
        xhci-pci: Allow host runtime PM as default for Intel Raptor Lake xHCI
        xhci: turn off port power in shutdown
        xhci: Keep interrupt disabled in initialization until host is running.
        USB: serial: option: add Quectel RM500K module support
        USB: serial: option: add Quectel EM05-G modem
        USB: serial: pl2303: add support for more HXN (G) types
        usb: typec: wcove: Drop wrong dependency to INTEL_SOC_PMIC
        usb: gadget: uvc: fix list double add in uvcg_video_pump
        dt-bindings: usb: ehci: Increase the number of PHYs
        dt-bindings: usb: ohci: Increase the number of PHYs
        usb: gadget: Fix non-unique driver names in raw-gadget driver
        MAINTAINERS: add include/dt-bindings/usb to USB SUBSYSTEM
        USB: serial: option: add Telit LE910Cx 0x1250 composition
      c24eb8d6
    • Linus Torvalds's avatar
      Merge tag 'loongarch-fixes-5.19-3' of... · cb84318b
      Linus Torvalds authored
      Merge tag 'loongarch-fixes-5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch fixes from Huacai Chen:
       "Some bug fixes and a trivial cleanup"
      
      * tag 'loongarch-fixes-5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        LoongArch: Make compute_return_era() return void
        LoongArch: Fix wrong fpu version
        LoongArch: Fix EENTRY/MERRENTRY setting in setup_tlb_handler()
        LoongArch: Fix sleeping in atomic context in setup_tlb_handler()
        LoongArch: Fix the _stext symbol address
        LoongArch: Fix the !THP build
      cb84318b
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 29eeafc6
      Linus Torvalds authored
      Pull f2fs fixes from Jaegeuk Kim:
       "Some urgent fixes to avoid generating corrupted inodes caused by
        compressed and inline_data files.
      
        In addition, avoid a wrong error report which prevents a roll-forward
        recovery"
      
      * tag 'f2fs-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs:
        f2fs: do not count ENOENT for error case
        f2fs: fix iostat related lock protection
        f2fs: attach inline_data after setting compression
      29eeafc6
    • Tiezhu Yang's avatar
      LoongArch: Make compute_return_era() return void · ea18d434
      Tiezhu Yang authored
      compute_return_era() always returns 0, make it return void,
      and then no need to check its return value for its callers.
      Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      ea18d434
    • Tiezhu Yang's avatar
      LoongArch: Fix wrong fpu version · ad82eef3
      Tiezhu Yang authored
      According to the configuration information accessible by the CPUCFG
      instruction in LoongArch Reference Manual [1], FP_ver is stored in
      bit [5: 3] of CPUCFG2, the current code to get fpu version is wrong,
      use CPUCFG2_FPVERS to fix it.
      
      [1] https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
      
      Fixes: 628c3bb4 ("LoongArch: Add boot and setup routines")
      Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      ad82eef3
    • Huacai Chen's avatar
      LoongArch: Fix EENTRY/MERRENTRY setting in setup_tlb_handler() · 26808ceb
      Huacai Chen authored
      setup_tlb_handler() is expected to set per-cpu exception handlers, but
      it only set the TLBRENTRY successfully because of copy & paste errors,
      so fix it.
      Reviewed-by: default avatarWANG Xuerui <git@xen0n.name>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      26808ceb
    • Huacai Chen's avatar
      LoongArch: Fix sleeping in atomic context in setup_tlb_handler() · bab1c299
      Huacai Chen authored
      Since setup_tlb_handler() is executed in atomic context, we should use
      GFP_ATOMIC instead of GFP_KERNEL to alloc pages. Otherwise we will get
      a "sleeping in atomic context" error:
      
      [    0.013118] BUG: sleeping function called from invalid context at mm/page_alloc.c:5158
      [    0.013126] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 0, name: swapper/1
      [    0.013131] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.19-rc3+ #1008 1a223086d14d07967cc427f15d52139422271360
      [    0.013136] Hardware name: Loongson Loongson-3A5000-7A1000-1w-V0.1-CRB/Loongson-LS3A5000-7A1000-1w-EVB-V1.21, BIOS Loongson-UDK2018-V2.0.04082-beta7 04/27
      [    0.013140] Stack : 90000000015fc990 9000000100493c18 9000000000df3370 9000000100490000
      [    0.013151]         9000000100493b50 0000000000000000 9000000100493b58 9000000001417ef0
      [    0.013160]         900000000199e54e 0000000000000040 9000000100493c18 90000000015f7a98
      [    0.013168]         ffffffffffffffff 6de72f8b42179d1e 9000000100403b80 90000000015f7890
      [    0.013176]         0000000000000001 00000000fffff175 9000000000eb9860 9000000001530b4b
      [    0.013184]         9000000000e99e60 0000000000000013 0000000006ecc000 0000000000000001
      [    0.013193]         90000000015f7a98 9000000001417ef0 0000000000000004 0000000000000000
      [    0.013201]         0000000000000cc0 0000000000000000 0000000000000001 90000000015fc990
      [    0.013209]         9000000000217e74 9000000001603b6b 9000000000208640 0000000000000000
      [    0.013217]         00000000000000b0 0000000000000004 0000000000000000 0000000000070000
      [    0.013225]         ...
      [    0.013229] Call Trace:
      [    0.013230] [<9000000000208640>] show_stack+0x4c/0x14c
      [    0.013240] [<9000000000df3370>] dump_stack_lvl+0x70/0xac
      [    0.013246] [<9000000000270c8c>] ___might_sleep+0x104/0x124
      [    0.013253] [<9000000000477e84>] __alloc_pages+0x240/0x464
      [    0.013260] [<9000000000214214>] setup_tlb_handler+0x104/0x1e8
      [    0.013265] [<9000000000214324>] tlb_init+0x2c/0x3c
      [    0.013270] [<9000000000208b74>] per_cpu_trap_init+0xec/0x108
      [    0.013275] [<9000000000202850>] cpu_probe+0x400/0x8a4
      [    0.013279] [<900000000020d160>] start_secondary+0x5c/0x3d4
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      bab1c299
    • Huacai Chen's avatar
      LoongArch: Fix the _stext symbol address · 92264f2d
      Huacai Chen authored
      _stext means the start of .text section (see __is_kernel_text()), but we
      put its definition in .ref.text by mistake. Fix it by defining it in the
      vmlinux.lds.S.
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      92264f2d
    • Huacai Chen's avatar
      LoongArch: Fix the !THP build · 501dcbe4
      Huacai Chen authored
      Fix the !THP build by making pmd_pfn() available in all configurations.
      Because pmd_pfn() is used in mm/page_vma_mapped.c whether or not THP is
      configured.
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      501dcbe4
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 8c23f235
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - make the irqchip immutable in gpio-realtek-otto
      
       - fix error code propagation in gpio-winbond
      
       - fix device removing in gpio-grgpio
      
       - fix a typo in gpio-mxs which indicates the driver is for a different
         model
      
       - documentation fixes
      
       - MAINTAINERS file updates
      
      * tag 'gpio-fixes-for-v5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: mxs: Fix header comment
        gpio: Fix kernel-doc comments to nested union
        gpio: grgpio: Fix device removing
        gpio: winbond: Fix error code in winbond_gpio_get()
        gpio: realtek-otto: Make the irqchip immutable
        docs: driver-api: gpio: Fix filename mismatch
        MAINTAINERS: add include/dt-bindings/gpio to GPIO SUBSYSTEM
      8c23f235
  3. 24 Jun, 2022 16 commits
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 6a0a17e6
      Linus Torvalds authored
      Pull mtd fixes from Miquel RAynal:
       "NAND controller fix:
         - gpmi: Fix busy timeout setting (wrong calculation)
      
        NAND chip driver fix:
         - Thoshiba: Revert the commit introducing support for a chip that
           might have been counterfeit"
      
      * tag 'mtd/fixes-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: gpmi: Fix setting busy timeout setting
        Revert "mtd: rawnand: add support for Toshiba TC58NVG0S3HTA00 NAND flash"
      6a0a17e6
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 4039974f
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A bunch of driver specific fixes, plus a fix for spi-mem's status
        polling for devices that use GPIO chip selects and a DT bindings
        examples fix that helps with the validation work"
      
      * tag 'spi-fix-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: rockchip: Unmask IRQ at the final to avoid preemption
        spi: dt-bindings: Fix unevaluatedProperties warnings in examples
        spi: spi-mem: Fix spi_mem_poll_status()
        spi: cadence: Detect transmit FIFO depth
        spi: spi-cadence: Fix SPI CS gets toggling sporadically
      4039974f
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.19-rc3' of... · bed05181
      Linus Torvalds authored
      Merge tag 'regulator-fix-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fix from Mark Brown:
       "One fix for an incorrect device description for MP5496"
      
      * tag 'regulator-fix-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: qcom_smd: correct MP5496 ranges
      bed05181
    • Linus Torvalds's avatar
      Merge tag 'regmap-fix-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · 7bc83546
      Linus Torvalds authored
      Pull regmap fixes from Mark Brown:
       "Two sets of fixes - one for things that were missed with the support
        for custom bulk I/O operations introduced in the last merge window,
        and another for some long standing issues with regmap-irq which affect
        a fairly small subset of devices"
      
      * tag 'regmap-fix-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap-irq: Fix offset/index mismatch in read_sub_irq_data()
        regmap-irq: Fix a bug in regmap_irq_enable() for type_in_mask chips
        regmap: Wire up regmap_config provided bulk write in missed functions
        regmap: Make regmap_noinc_read() return -ENOTSUPP if map->read isn't set
        regmap: Re-introduce bulk read support check in regmap_bulk_read()
      7bc83546
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · bc3b8977
      Linus Torvalds authored
      Pull iommu fixes from Joerg Roedel:
      
       - Add a new IOMMU mailing list to the MAINTAINERS file to prepare for
         the a list migration happening on July 5th. The old list needs to
         stay in place until the switch happens to guarantee seemless
         archiving of list email.
      
       - Fix compatible device-tree string for rcar-gen4 in Renesas IOMMU
         driver.
      
      * tag 'iommu-fixes-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        MAINTAINERS: Add new IOMMU development mailing list
        iommu/ipmmu-vmsa: Fix compatible for rcar-gen4
      bc3b8977
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 70d605cb
      Linus Torvalds authored
      Pull RISC-V fix from Palmer Dabbelt:
      
       - fix the T-Head memory type errata workaround to avoid behavior
         that is unsupported in the LLVM assembler
      
      * tag 'riscv-for-linus-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: Fix ALT_THEAD_PMA's asm parameters
      70d605cb
    • Linus Torvalds's avatar
      Merge tag 's390-5.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · f6e9d014
      Linus Torvalds authored
      Pull s390 fixes from Alexander Gordeev:
      
       - Fix perf stat accounting for cryptography counters when multiple
         events are installed concurrently.
      
       - Prevent installation of unsupported perf events for cryptography
         counters.
      
       - Treat perf events cpum_cf/CPU_CYCLES/ and cpu_cf/INSTRUCTIONS/
         identical to basic events CPU_CYCLES" and INSTRUCTIONS, since they
         address the same hardware.
      
       - Restore kcrash operation which was broken by commit 5d8de293
         ("vmcore: convert copy_oldmem_page() to take an iov_iter").
      
      * tag 's390-5.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/pai: Fix multiple concurrent event installation
        s390/pai: Prevent invalid event number for pai_crypto PMU
        s390/cpumf: Handle events cycles and instructions identical
        s390/crash: make copy_oldmem_page() return number of bytes copied
        s390/crash: add missing iterator advance in copy_oldmem_page()
      f6e9d014
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.19a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 2c39d612
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - A rare deadlock in Qubes-OS between the i915 driver and Xen grant
         unmapping, solved by making the unmapping fully asynchronous
      
       - A bug in the Xen blkfront driver caused by incomplete error handling
      
       - A fix for undefined behavior (shifting a signed int by 31 bits)
      
       - A fix in the Xen drmfront driver avoiding a WARN()
      
      * tag 'for-linus-5.19a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/gntdev: Avoid blocking in unmap_grant_pages()
        drm/xen: Add missing VM_DONTEXPAND flag in mmap callback
        x86/xen: Remove undefined behavior in setup_features()
        xen-blkfront: Handle NULL gendisk
      2c39d612
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · e9465549
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM64:
      
         - Fix a regression with pKVM when kmemleak is enabled
      
         - Add Oliver Upton as an official KVM/arm64 reviewer
      
        selftests:
      
         - deal with compiler optimizations around hypervisor exits
      
        x86:
      
         - MAINTAINERS reorganization
      
         - Two SEV fixes"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: SEV: Init target VMCBs in sev_migrate_from
        KVM: x86/svm: add __GFP_ACCOUNT to __sev_dbg_{en,de}crypt_user()
        MAINTAINERS: Reorganize KVM/x86 maintainership
        selftests: KVM: Handle compiler optimizations in ucall
        KVM: arm64: Add Oliver as a reviewer
        KVM: arm64: Prevent kmemleak from accessing pKVM memory
        tools/kvm_stat: fix display of error when multiple processes are found
      e9465549
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-06-24' of git://anongit.freedesktop.org/drm/drm · 38bc4ac4
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Fixes for this week, bit larger than normal, but I think the last
        couple have been quieter, and it's only rc4.
      
        There are a lot of small msm fixes, and a slightly larger set of vc4
        fixes. The vc4 fixes clean up a lot of crashes around the rPI4
        hardware differences from earlier ones, and problems in the page flip
        and modeset code which assumed earlier hw, so I thought it would be
        okay to keep them in.
      
        Otherwise, it's a few amdgpu, i915, sun4i and a panel quirk.
      
        amdgpu:
         - Adjust GTT size logic
         - eDP fix for RMB
         - DCN 3.15 fix
         - DP training fix
         - Color encoding fix for DCN2+
      
        sun4i:
         - multiple suspend fixes
      
        vc4:
         - rework driver split for rpi4, fixes mulitple crashers.
      
        panel:
         - quirk for Aya Neo Next
      
        i915:
         - Revert low voltage SKU check removal to fix display issues
         - Apply PLL DCO fraction workaround for ADL-S
         - Don't show engine classes not present in client fdinfo
      
        msm:
         - Workaround for parade DSI bridge power sequencing
         - Fix for multi-planar YUV format offsets
         - Limiting WB modes to max sspp linewidth
         - Fixing the supported rotations to add 180 back for IGT
         - Fix to handle pm_runtime_get_sync() errors to avoid unclocked
           access in the bind() path for dpu driver
         - Fix the irq_free() without request issue which was a being hit
           frequently in CI.
         - Fix to add minimum ICC vote in the msm_mdss pm_resume path to
           address bootup splats
         - Fix to avoid dereferencing without checking in WB encoder
         - Fix to avoid crash during suspend in DP driver by ensuring
           interrupt mask bits are updated
         - Remove unused code from dpu_encoder_virt_atomic_check()
         - Fix to remove redundant init of dsc variable
         - Fix to ensure mmap offset is initialized to avoid memory corruption
           from unpin/evict
         - Fix double runpm disable in probe-defer path
         - VMA fenced-unpin fixes
         - Fix for WB max-width
         - Fix for rare dp resolution change issue"
      
      * tag 'drm-fixes-2022-06-24' of git://anongit.freedesktop.org/drm/drm: (41 commits)
        amd/display/dc: Fix COLOR_ENCODING and COLOR_RANGE doing nothing for DCN20+
        drm/amd/display: Fix typo in override_lane_settings
        drm/amd/display: Fix DC warning at driver load
        drm/amd: Revert "drm/amd/display: keep eDP Vdd on when eDP stream is already enabled"
        drm/amdgpu: Adjust logic around GTT size (v3)
        drm/sun4i: Return if frontend is not present
        drm/vc4: fix error code in vc4_check_tex_size()
        drm/sun4i: Add DMA mask and segment size
        drm/vc4: hdmi: Fixed possible integer overflow
        drm/i915/display: Re-add check for low voltage sku for max dp source rate
        drm/i915/fdinfo: Don't show engine classes not present
        drm/i915: Implement w/a 22010492432 for adl-s
        drm: panel-orientation-quirks: Add quirk for Aya Neo Next
        drm/msm/dp: force link training for display resolution change
        drm/msm/dpu: limit wb modes based on max_mixer_width
        drm/msm/dp: check core_initialized before disable interrupts at dp_display_unbind()
        drm/msm/mdp4: Fix refcount leak in mdp4_modeset_init_intf
        drm/msm: Don't overwrite hw fence in hw_init
        drm/msm: Drop update_fences()
        drm/vc4: Warn if some v3d code is run on BCM2711
        ...
      38bc4ac4
    • Paulo Alcantara's avatar
      cifs: update cifs_ses::ip_addr after failover · af3a6d10
      Paulo Alcantara authored
      cifs_ses::ip_addr wasn't being updated in cifs_session_setup() when
      reconnecting SMB sessions thus returning wrong value in
      /proc/fs/cifs/DebugData.
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
      Cc: stable@kernel.org
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      af3a6d10
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/dm-fixes-4' of... · cbe232ab
      Linus Torvalds authored
      Merge tag 'for-5.19/dm-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix DM era to commit metadata during suspend using drain_workqueue
         instead of flush_workqueue.
      
       - Fix DM core's dm_io_complete to not return early if io error is
         BLK_STS_AGAIN but bio polling is not in use.
      
       - Fix DM core's dm_io_complete BLK_STS_DM_REQUEUE handling when dm_io
         represents a split bio.
      
       - Fix recent DM mirror log regression by clearing bits up to
         BITS_PER_LONG boundary.
      
      * tag 'for-5.19/dm-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm mirror log: clear log bits up to BITS_PER_LONG boundary
        dm: fix BLK_STS_DM_REQUEUE handling when dm_io represents split bio
        dm: do not return early from dm_io_complete if BLK_STS_AGAIN without polling
        dm era: commit metadata in postsuspend after worker stops
      cbe232ab
    • Linus Torvalds's avatar
      Merge tag 'ata-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · 43627618
      Linus Torvalds authored
      Pull ATA fix from Damien Le Moal:
      
       - a single patch to fix tracing of command completion (Edward)
      
      * tag 'ata-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: libata: add qc->flags in ata_qc_complete_template tracepoint
      43627618
    • Linus Torvalds's avatar
      Merge tag 'block-5.19-2022-06-24' of git://git.kernel.dk/linux-block · a237cfd6
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Series fixing issues with sysfs locking and name reuse (Christoph)
      
       - NVMe pull request via Christoph:
            - Fix the mixed up CRIMS/CRWMS constants (Joel Granados)
            - Add another broken identifier quirk (Leo Savernik)
            - Fix up a quirk because Samsung reuses PCI IDs over different
              products (Christoph Hellwig)
      
       - Remove old WARN_ON() that doesn't apply anymore (Li)
      
       - Fix for using a stale cached request value for rq-qos throttling
         mechanisms that may schedule(), like iocost (me)
      
       - Remove unused parameter to blk_independent_access_range() (Damien)
      
      * tag 'block-5.19-2022-06-24' of git://git.kernel.dk/linux-block:
        block: remove WARN_ON() from bd_link_disk_holder
        nvme: move the Samsung X5 quirk entry to the core quirks
        nvme: fix the CRIMS and CRWMS definitions to match the spec
        nvme: add a bogus subsystem NQN quirk for Micron MTFDKBA2T0TFH
        block: pop cached rq before potentially blocking rq_qos_throttle()
        block: remove queue from struct blk_independent_access_range
        block: freeze the queue earlier in del_gendisk
        block: remove per-disk debugfs files in blk_unregister_queue
        block: serialize all debugfs operations using q->debugfs_mutex
        block: disable the elevator int del_gendisk
      a237cfd6
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.19-2022-06-24' of git://git.kernel.dk/linux-block · 598f2404
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "A few fixes that should go into the 5.19 release. All are fixing
        issues that either happened in this release, or going to stable.
      
        In detail:
      
         - A small series of fixlets for the poll handling, all destined for
           stable (Pavel)
      
         - Fix a merge error from myself that caused a potential -EINVAL for
           the recv/recvmsg flag setting (me)
      
         - Fix a kbuf recycling issue for partial IO (me)
      
         - Use the original request for the inflight tracking (me)
      
         - Fix an issue introduced this merge window with trace points using a
           custom decoder function, which won't work for perf (Dylan)"
      
      * tag 'io_uring-5.19-2022-06-24' of git://git.kernel.dk/linux-block:
        io_uring: use original request task for inflight tracking
        io_uring: move io_uring_get_opcode out of TP_printk
        io_uring: fix double poll leak on repolling
        io_uring: fix wrong arm_poll error handling
        io_uring: fail links when poll fails
        io_uring: fix req->apoll_events
        io_uring: fix merge error in checking send/recv addr2 flags
        io_uring: mark reissue requests with REQ_F_PARTIAL_IO
      598f2404
    • Linus Torvalds's avatar
      Merge tag 'printk-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux · 9d882352
      Linus Torvalds authored
      Pull printk kernel thread revert from Petr Mladek:
       "Revert printk console kthreads.
      
        The testing of 5.19 release candidates revealed issues that did not
        happen when all consoles were serialized using the console semaphore.
      
        More time is needed to check expectations of the existing console
        drivers and be confident that they can be safely used in parallel"
      
      * tag 'printk-for-5.19-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
        Revert "printk: add functions to prefer direct printing"
        Revert "printk: add kthread console printers"
        Revert "printk: extend console_lock for per-console locking"
        Revert "printk: remove @console_locked"
        Revert "printk: Block console kthreads when direct printing will be required"
        Revert "printk: Wait for the global console lock when the system is going down"
      9d882352