1. 19 Oct, 2021 2 commits
  2. 16 Oct, 2021 27 commits
  3. 15 Oct, 2021 11 commits
    • Guenter Roeck's avatar
      csky: Make HAVE_TCM depend on !COMPILE_TEST · e21e52ad
      Guenter Roeck authored
      Building csky:allmodconfig results in the following build errors.
      
      arch/csky/mm/tcm.c:9:2: error:
      		#error "You should define ITCM_RAM_BASE"
          9 | #error "You should define ITCM_RAM_BASE"
            |  ^~~~~
      arch/csky/mm/tcm.c:14:2: error:
      		#error "You should define DTCM_RAM_BASE"
         14 | #error "You should define DTCM_RAM_BASE"
            |  ^~~~~
      arch/csky/mm/tcm.c:18:2: error:
      		#error "You should define correct DTCM_RAM_BASE"
         18 | #error "You should define correct DTCM_RAM_BASE"
      
      This is seen with compile tests since those enable HAVE_TCM,
      but do not provide useful default values for ITCM_RAM_BASE or
      DTCM_RAM_BASE. Disable HAVE_TCM for commpile tests to avoid
      the error.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
      e21e52ad
    • Guenter Roeck's avatar
      csky: bitops: Remove duplicate __clear_bit define · fb5d69a5
      Guenter Roeck authored
      Building csky:allmodconfig results in the following build error.
      
      In file included from ./include/linux/bitops.h:33,
                       from ./include/linux/log2.h:12,
                       from kernel/bounds.c:13:
      ./arch/csky/include/asm/bitops.h:77: error: "__clear_bit" redefined
      
      Since commit 9248e52f ("locking/atomic: simplify non-atomic wrappers"),
      __clear_bit is defined in include/asm-generic/bitops/non-atomic.h,
      and the define in the csky include file is no longer necessary or useful.
      Remove it.
      
      Fixes: 9248e52f ("locking/atomic: simplify non-atomic wrappers")
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
      fb5d69a5
    • Guenter Roeck's avatar
      csky: Select ARCH_WANT_FRAME_POINTERS only if compiler supports it · aeba0b84
      Guenter Roeck authored
      Compiling csky:allmodconfig with an upstream C compiler results
      in the following error.
      
      csky-linux-gcc: error:
      	unrecognized command-line option '-mbacktrace';
      	did you mean '-fbacktrace'?
      
      Select ARCH_WANT_FRAME_POINTERS only if gcc supports it to
      avoid the error.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
      aeba0b84
    • Guo Ren's avatar
      csky: Fixup regs.sr broken in ptrace · af89ebaa
      Guo Ren authored
      gpr_get() return the entire pt_regs (include sr) to userspace, if we
      don't restore the C bit in gpr_set, it may break the ALU result in
      that context. So the C flag bit is part of gpr context, that's why
      riscv totally remove the C bit in the ISA. That makes sr reg clear
      from userspace to supervisor privilege.
      Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: stable@vger.kernel.org
      af89ebaa
    • Al Viro's avatar
      csky: don't let sigreturn play with priveleged bits of status register · fbd63c08
      Al Viro authored
      csky restore_sigcontext() blindly overwrites regs->sr with the value
      it finds in sigcontext.  Attacker can store whatever they want in there,
      which includes things like S-bit.  Userland shouldn't be able to set
      that, or anything other than C flag (bit 0).
      
      Do the same thing other architectures with protected bits in flags
      register do - preserve everything that shouldn't be settable in
      user mode, picking the rest from the value saved is sigcontext.
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
      Cc: stable@vger.kernel.org
      fbd63c08
    • Arnd Bergmann's avatar
      Merge tag 'imx-fixes-5.15-3' of... · 011ace4a
      Arnd Bergmann authored
      Merge tag 'imx-fixes-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
      
      i.MX fixes for 5.15, round 3:
      
      - Add platform device for i.MX System Reset Controller (SRC) to fix
        a regression caused by fw_devlink change.
      
      * tag 'imx-fixes-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        ARM: imx: register reset controller from a platform driver
      
      Link: https://lore.kernel.org/r/20211015070017.GI22881@dragonSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      011ace4a
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 8fe31e09
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - fix module autoloading on gpio-74x164 after a revert of OF modaliases
      
       - fix problems with the bias setting in gpio-pca953x
      
       - fix a use-after-free bug in gpio-mockup by using software nodes
      
      * tag 'gpio-fixes-for-v5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: mockup: Convert to use software nodes
        gpio: pca953x: Improve bias setting
        gpio: 74x164: Add SPI device ID table
      8fe31e09
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 985f6ab9
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A few small fixes.
      
        Mostly driver specific but there's one in the core which fixes a
        deadlock when adding devices on spi-mux that's triggered because
        spi-mux is a SPI device which is itself a SPI controller and so can
        instantiate devices when registered.
      
        We were using a global lock to protect against reusing chip selects
        but they're a per controller thing so moving the lock per controller
        resolves that"
      
      * tag 'spi-fix-v5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi-mux: Fix false-positive lockdep splats
        spi: Fix deadlock when adding SPI controllers on SPI buses
        spi: bcm-qspi: clear MSPI spifie interrupt during probe
        spi: spi-nxp-fspi: don't depend on a specific node name erratum workaround
        spi: mediatek: skip delays if they are 0
        spi: atmel: Fix PDC transfer setup bug
        spi: spidev: Add SPI ID table
        spi: Use 'flash' node name instead of 'spi-flash' in example
      985f6ab9
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v5.15-rc5' of... · ccb6a666
      Linus Torvalds authored
      Merge tag 'regulator-fix-v5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fix from Mark Brown:
       "Just a trivial fix to the MAINTAINERS file for an update missed during
        conversion of the DT bindings to YAML format"
      
      * tag 'regulator-fix-v5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        MAINTAINERS: rectify entry for SY8106A REGULATOR DRIVER
      ccb6a666
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 9e795d94
      Linus Torvalds authored
      Pull mtd fix from Miquel Raynal:
       "Raw NAND controller driver fix:
      
         - Qcom: Update code word value for raw reads (QPIC v2+)"
      
      * tag 'mtd/fixes-for-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: qcom: Update code word value for raw read
      9e795d94
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-10-15-1' of git://anongit.freedesktop.org/drm/drm · 591a495d
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "It has a few scattered msm and i915 fixes, a few core fixes and a
        mediatek feature revert.
      
        I've had to pick a bunch of patches into this, as the drm-misc-fixes
        tree had a bunch of vc4 patches I wasn't comfortable with sending to
        you at least as part of this, they were delayed due to your reverts.
        If it's really useful as fixes I'll do a separate pull.
      
        Summary:
      
        Core:
         - clamp fbdev size
         - edid cap blocks read to avoid out of bounds
      
        panel:
         - fix missing crc32 dependency
      
        msm:
         - Fix a new crash on dev file close if the dev file was opened when
           GPU is not loaded (such as missing fw in initrd)
         - Switch to single drm_sched_entity per priority level per drm_file
           to unbreak multi-context userspace
         - Serialize GMU access to fix GMU OOB errors
         - Various error path fixes
         - A couple integer overflow fixes
         - Fix mdp5 cursor plane WARNs
      
        i915:
         - Fix ACPI object leak
         - Fix context leak in user proto-context creation
         - Fix missing i915_sw_fence_fini call
      
        hyperv:
         - hide hw pointer
      
        nouveau:
         - fix engine selection bit
      
        r128:
         - fix UML build
      
        rcar-du:
         - unconncted LVDS regression fix
      
        mediatek:
         - revert CMDQ refinement patches"
      
      * tag 'drm-fixes-2021-10-15-1' of git://anongit.freedesktop.org/drm/drm: (34 commits)
        drm/panel: olimex-lcd-olinuxino: select CRC32
        drm/r128: fix build for UML
        drm/nouveau/fifo: Reinstate the correct engine bit programming
        drm/hyperv: Fix double mouse pointers
        drm/fbdev: Clamp fbdev surface size if too large
        drm/edid: In connector_bad_edid() cap num_of_ext by num_blocks read
        drm/i915: Free the returned object of acpi_evaluate_dsm()
        drm/i915: Fix bug in user proto-context creation that leaked contexts
        drm: rcar-du: Don't create encoder for unconnected LVDS outputs
        drm/msm/dsi: fix off by one in dsi_bus_clk_enable error handling
        drm/msm/dsi: Fix an error code in msm_dsi_modeset_init()
        drm/msm/dsi: dsi_phy_14nm: Take ready-bit into account in poll_for_ready
        drm/msm/dsi/phy: fix clock names in 28nm_8960 phy
        drm/msm/dpu: Fix address of SM8150 PINGPONG5 IRQ register
        drm/msm: Do not run snapshot on non-DPU devices
        drm/msm/a3xx: fix error handling in a3xx_gpu_init()
        drm/msm/a4xx: fix error handling in a4xx_gpu_init()
        drm/msm: Fix null pointer dereference on pointer edp
        drm/msm/mdp5: fix cursor-related warnings
        drm/msm: Avoid potential overflow in timeout_to_jiffies()
        ...
      591a495d