Skip to content
  1. Feb 03, 2021
    • Arnd Bergmann's avatar
      Merge tag 'sunxi-fixes-for-5.11-2' of... · 459630a3
      Arnd Bergmann authored
      
      Merge tag 'sunxi-fixes-for-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into arm/fixes
      
      One fix for a phy-mode ethernet issue, and one to fix the display output on
      SoCs with the Display Engine 2
      
      * tag 'sunxi-fixes-for-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode
        soc: sunxi: mbus: Remove DE2 display engine compatibles
      
      Link: https://lore.kernel.org/r/f8298059-f9ca-43b4-9e29-35bc0e0c9b15.lettre@localhost
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      459630a3
    • Alexandre Belloni's avatar
      ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL · 5638159f
      Alexandre Belloni authored
      This reverts commit c17e9377
      
      .
      
      The lpc32xx clock driver is not able to actually change the PLL rate as
      this would require reparenting ARM_CLK, DDRAM_CLK, PERIPH_CLK to SYSCLK,
      then stop the PLL, update the register, restart the PLL and wait for the
      PLL to lock and finally reparent ARM_CLK, DDRAM_CLK, PERIPH_CLK to HCLK
      PLL.
      
      Currently, the HCLK driver simply updates the registers but this has no
      real effect and all the clock rate calculation end up being wrong. This is
      especially annoying for the peripheral (e.g. UARTs, I2C, SPI).
      
      Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
      Tested-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
      Link: https://lore.kernel.org/r/20210203090320.GA3760268@piout.net'
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      5638159f
    • Hermann Lauer's avatar
      ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode · a900cac3
      Hermann Lauer authored
      BPi Pro needs TX and RX delay for Gbit to work reliable and avoid high
      packet loss rates. The realtek phy driver overrides the settings of the
      pull ups for the delays, so fix this for BananaPro.
      
      Fix the phy-mode description to correctly reflect this so that the
      implementation doesn't reconfigure the delays incorrectly. This
      happened with commit bbc4d71d ("net: phy: realtek: fix rtl8211e
      rx/tx delay config").
      
      Fixes: 10662a33
      
       ("ARM: dts: sun7i: Add dts file for Bananapro board")
      Signed-off-by: default avatarHermann Lauer <Hermann.Lauer@uni-heidelberg.de>
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      Link: https://lore.kernel.org/r/20210128111842.GA11919@lemon.iwr.uni-heidelberg.de
      a900cac3
    • Arnd Bergmann's avatar
      Merge tag 'imx-fixes-5.11-3' of... · 62c31574
      Arnd Bergmann authored
      
      Merge tag 'imx-fixes-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
      
      i.MX fixes for 5.11, round 3:
      
      - Fix DCFG address range on LS1046A SoC.
      
      * tag 'imx-fixes-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        arm64: dts: ls1046a: fix dcfg address range
      
      Link: https://lore.kernel.org/r/20210202071441.GP907@dragon
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      62c31574
    • Arnd Bergmann's avatar
      Merge tag 'ti-k3-maintainer-for-v5.12' of... · 6102f9e7
      Arnd Bergmann authored
      
      Merge tag 'ti-k3-maintainer-for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux into arm/fixes
      
      Maintainer changes for TI for v5.12 merge window:
      
      - Tero switches to kernel.org address
      
      * tag 'ti-k3-maintainer-for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux:
        MAINTAINERS: Update my email address and maintainer level status
      
      Link: https://lore.kernel.org/r/20210130131411.afna4wj72r7xscqn@skinny
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      6102f9e7
  2. Jan 30, 2021
  3. Jan 28, 2021
    • Arnd Bergmann's avatar
      Merge tag 'amlogic-fixes-3' of... · e2fc2de8
      Arnd Bergmann authored
      
      Merge tag 'amlogic-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic into arm/fixes
      
      arm64: dts: amlogic fixes for v5.11-rc (round 3)
      - fix reboot issue on odroid C4
      
      * tag 'amlogic-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic:
        arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4
      
      Link: https://lore.kernel.org/r/7hk0ryi6rs.fsf@baylibre.com
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      e2fc2de8
    • Arnd Bergmann's avatar
      Merge tag 'amlogic-fixes-2' of... · fd28a52a
      Arnd Bergmann authored
      
      Merge tag 'amlogic-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic into arm/fixes
      
      arm64: dts: amlogic fixes for v5.11-rc (round 2)
      - fix ethernet resets
      
      * tag 'amlogic-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic:
        Revert "arm64: dts: amlogic: add missing ethernet reset ID"
      
      Link: https://lore.kernel.org/r/7ho8hai7e6.fsf@baylibre.com
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      fd28a52a
    • Arnd Bergmann's avatar
      Merge tag 'v5.11-rockchip-dtsfixes1' of... · f2d514b4
      Arnd Bergmann authored
      
      Merge tag 'v5.11-rockchip-dtsfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/fixes
      
      Wrong irq number on px30 and cleanups of stuff on rk3399 regarding
      wrongly used dt properties and parts that shouldn't be enabled.
      
      * tag 'v5.11-rockchip-dtsfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
        arm64: dts: rockchip: Disable display for NanoPi R2S
        arm64: dts: rockchip: remove interrupt-names property from rk3399 vdec node
        arm64: dts: rockchip: Fix PCIe DT properties on rk3399
        arm64: dts: rockchip: Use only supported PCIe link speed on Pinebook Pro
        arm64: dts: rockchip: fix vopl iommu irq on px30
      
      Link: https://lore.kernel.org/r/5429065.DvuYhMxLoT@phil
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      f2d514b4
    • Arnd Bergmann's avatar
      Merge tag 'omap-for-v5.11/fixes-rc5' of... · 2a3e487a
      Arnd Bergmann authored
      
      Merge tag 'omap-for-v5.11/fixes-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/fixes
      
      Fixes for omaps for v5.11-rc cycle
      
      The recent changes to switch SoCs to boot with ti-sysc interconnect
      target module driver and genpd caused few regressions:
      
      - The omap_prm reset driver needs to clear any reset bits deasserted by
        the bootloader or kexec boot for the three reset bit cases. Otherwise
        we can have an oops with accelerators starting to boot with potentially
        unconfigured MMU for example
      
      - Custom kernel configs are not automatically selecting simple-pm-bus
        driver that we now need to probe interconnects so we need to select it
        always
      
      - We are not passing legacy platform data in auxdata with simple-pm-bus
        like we do for simple-bus. We need to pass auxdata to simple-pm-bus so
        it can pass it to of_platform_populate()
      
      Then recent RCU changes started causing splats for cpuidle44xx that now
      need RCU_NONIDLE added to the calls in several places
      
      And then we have few device specific fixes:
      
      - We need to remove legacy spi-cs-hig for gta04 display to work, and
        set the gpio to active low
      
      - Omap1 specific ohci-omap needs to call gpio_free()
      
      - Droid4 needs to use padconf interrupt for the slider as the edge
        gpio interrupts may be lost for deeper idle states
      
      * tag 'omap-for-v5.11/fixes-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
        ARM: dts: omap4-droid4: Fix lost keypad slide interrupts for droid4
        drivers: bus: simple-pm-bus: Fix compatibility with simple-bus for auxdata
        ARM: OMAP2+: Fix booting for am335x after moving to simple-pm-bus
        ARM: OMAP2+: Fix suspcious RCU usage splats for omap_enter_idle_coupled
        ARM: dts; gta04: SPI panel chip select is active low
        soc: ti: omap-prm: Fix boot time errors for rst_map_012 bits 0 and 1
        ARM: OMAP1: OSK: fix ohci-omap breakage
        DTS: ARM: gta04: remove legacy spi-cs-high to make display work again
      
      Link: https://lore.kernel.org/r/pull-1611818709-243493@atomide.com
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      2a3e487a
    • Paul Kocialkowski's avatar
      soc: sunxi: mbus: Remove DE2 display engine compatibles · 530fe6bf
      Paul Kocialkowski authored
      The DE2 display engine hardware takes physical addresses that do not
      need PHYS_BASE subtracted. As a result, they should not be present
      on the mbus driver match list. Remove them.
      
      This was tested on the A83T, along with the patch allowing the DMA
      range map to be non-NULL and restores a working display.
      
      Fixes: b4bdc4fb
      
       ("soc: sunxi: Deal with the MBUS DMA offsets in a central place")
      Signed-off-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      Link: https://lore.kernel.org/r/20210115175831.1184260-2-paul.kocialkowski@bootlin.com
      530fe6bf
    • Marek Szyprowski's avatar
      arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4 · daf12bee
      Marek Szyprowski authored
      
      
      For the proper reboot Odroid-C4 board requires to switch TFLASH_VDD_EN
      pin to the high impedance mode, otherwise the board is stuck in the
      middle of loading early stages of the bootloader from SD card.
      
      This can be achieved by using the OPEN_DRAIN flag instead of the
      ACTIVE_HIGH, what will leave the pin in input mode to achieve high state
      (pin has the pull-up) and solve the issue.
      
      Suggested-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
      Fixes: 326e5751
      
       ("arm64: dts: meson-sm1: add support for Hardkernel ODROID-C4")
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Acked-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
      Link: https://lore.kernel.org/r/20210122055218.27241-1-m.szyprowski@samsung.com
      daf12bee
  4. Jan 27, 2021
    • Arnd Bergmann's avatar
      Merge tag 'qcom-arm64-defconfig-fixes-for-5.11' of... · 08215386
      Arnd Bergmann authored
      
      Merge tag 'qcom-arm64-defconfig-fixes-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
      
      Qualcomm ARM64 defconfig fixes for v5.11
      
      Devicetree patches for SDM845 introduced in v5.11 requires the
      platform's interconnect driver to be buildin, or the kernel will fail to
      provide a valid console when we hit userspace.
      
      * tag 'qcom-arm64-defconfig-fixes-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux:
        arm64: defconfig: Make INTERCONNECT_QCOM_SDM845 builtin
      
      Link: https://lore.kernel.org/r/20210125232412.642834-1-bjorn.andersson@linaro.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      08215386
    • Arnd Bergmann's avatar
      Merge tag 'qcom-arm64-fixes-for-5.11' of... · 3de834b2
      Arnd Bergmann authored
      
      Merge tag 'qcom-arm64-fixes-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
      
      Qualcomm ARM64 fixes for 5.11
      
      This fixes a regression in Lenovo Yoga C630, where the touchpad in some
      units stopped working, by re-enabling the "tsc2" device.
      
      It also marks the LPASS related clocks as protected to allow DB845c and
      the Lenovo Yoga C630 to boot even if CONFIG_SDM_LPASSCC_845 is enabled.
      
      * tag 'qcom-arm64-fixes-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux:
        arm64: dts: qcom: sdm845: Reserve LPASS clocks in gcc
        arm64: dts: qcom: c630: keep both touchpad devices enabled
      
      Link: https://lore.kernel.org/r/20210125232039.642565-1-bjorn.andersson@linaro.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      3de834b2
    • Arnd Bergmann's avatar
      Merge tag 'amlogic-fixes' of... · c25644d5
      Arnd Bergmann authored
      
      Merge tag 'amlogic-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic into arm/fixes
      
      arm64: dts: amlogic: fixes for v5.11-rc
      - meson-g12: Set FL-adj property value
      
      * tag 'amlogic-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic:
        arm64: dts: amlogic: meson-g12: Set FL-adj property value
      
      Link: https://lore.kernel.org/r/7hk0s0x3im.fsf@baylibre.com
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      c25644d5
    • Arnd Bergmann's avatar
      Merge tag 'stm32-dt-for-v5.11-fixes-1' of... · e6777b8d
      Arnd Bergmann authored
      
      Merge tag 'stm32-dt-for-v5.11-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32 into arm/fixes
      
      STM32 DT fixes for v5.11, round 1
      
      Highlights:
      -----------
      
       -Fixes are for DHCOM/DHCOR boards:
        - Fix DRC02 uSD card detect polarity
        - use uSD card detect on DHCOM
        - Disable uSD WP on DHCOM
        - Disable TSC2004 on DRC02
        - Fix GPIO hogs on DHCOM boards
      
      * tag 'stm32-dt-for-v5.11-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32:
        ARM: dts: stm32: Fix GPIO hog flags on DHCOM DRC02
        ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX
        ARM: dts: stm32: Fix GPIO hog names on DHCOM
        ARM: dts: stm32: Disable optional TSC2004 on DRC02 board
        ARM: dts: stm32: Disable WP on DHCOM uSD slot
        ARM: dts: stm32: Connect card-detect signal on DHCOM
        ARM: dts: stm32: Fix polarity of the DH DRC02 uSD card detect
      
      Link: https://lore.kernel.org/r/b7379980-857e-736a-85d8-58e2bd300141@foss.st.com
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      e6777b8d
    • Neil Armstrong's avatar
      Revert "arm64: dts: amlogic: add missing ethernet reset ID" · 19f6fe97
      Neil Armstrong authored
      It has been reported on IRC and in KernelCI boot tests, this change breaks
      internal PHY support on the Amlogic G12A/SM1 Based boards.
      
      We suspect the added signal to reset more than the Ethernet MAC but also
      the MDIO/(RG)MII mux used to redirect the MAC signals to the internal PHY.
      
      This reverts commit f3362f0c
      
       while we find
      and acceptable solution to cleanly reset the Ethernet MAC.
      
      Reported-by: default avatarCorentin Labbe <clabbe@baylibre.com>
      Acked-by: default avatarJérôme Brunet <jbrunet@baylibre.com>
      Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
      Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
      Link: https://lore.kernel.org/r/20210126080951.2383740-1-narmstrong@baylibre.com
      19f6fe97
  5. Jan 26, 2021
    • Robin Murphy's avatar
      arm64: dts: rockchip: Disable display for NanoPi R2S · 74532de4
      Robin Murphy authored
      
      
      NanoPi R2S is headless, so rightly does not enable any of the display
      interface hardware, which currently provokes an obnoxious error in the
      boot log from the fake DRM device failing to find anything to bind to.
      It probably isn't *too* hard to obviate the fake device shenanigans
      entirely with a bit of driver reshuffling, but for now let's just
      disable it here to shut up the spurious error.
      
      Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
      Link: https://lore.kernel.org/r/c4553dfad1ad6792c4f22454c135ff55de77e2d6.1611186099.git.robin.murphy@arm.com
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      74532de4
  6. Jan 25, 2021
  7. Jan 23, 2021
  8. Jan 22, 2021
    • Arnd Bergmann's avatar
      Merge tag 'optee-rcu-sched-trace-for-v5.11' of... · 156d0291
      Arnd Bergmann authored
      
      Merge tag 'optee-rcu-sched-trace-for-v5.11' of git://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
      
      Fix rcu_sched trace from OP-TEE invoke
      
      Replaces might_sleep() with a conditional call to cond_resched()
      in order to avoid the rcu_sched trace in some corner cases.
      
      * tag 'optee-rcu-sched-trace-for-v5.11' of git://git.linaro.org/people/jens.wiklander/linux-tee:
        tee: optee: replace might_sleep with cond_resched
      
      Link: https://lore.kernel.org/r/20210122074234.GA1074747@jade
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      156d0291
  9. Jan 21, 2021
    • Rouven Czerwinski's avatar
      tee: optee: replace might_sleep with cond_resched · dcb3b06d
      Rouven Czerwinski authored
      might_sleep() is a debugging aid and triggers rescheduling only for
      certain kernel configurations. Replace with an explicit check and
      reschedule to work for all kernel configurations. Fixes the following
      trace:
      
        [  572.945146] rcu: INFO: rcu_sched self-detected stall on CPU
        [  572.949275] rcu:     0-....: (2099 ticks this GP) idle=572/1/0x40000002 softirq=7412/7412 fqs=974
        [  572.957964]  (t=2100 jiffies g=10393 q=21)
        [  572.962054] NMI backtrace for cpu 0
        [  572.965540] CPU: 0 PID: 165 Comm: xtest Not tainted 5.8.7 #1
        [  572.971188] Hardware name: STM32 (Device Tree Support)
        [  572.976354] [<c011163c>] (unwind_backtrace) from [<c010b7f8>] (show_stack+0x10/0x14)
        [  572.984080] [<c010b7f8>] (show_stack) from [<c0511e4c>] (dump_stack+0xc4/0xd8)
        [  572.991300] [<c0511e4c>] (dump_stack) from [<c0519abc>] (nmi_cpu_backtrace+0x90/0xc4)
        [  572.999130] [<c0519abc>] (nmi_cpu_backtrace) from [<c0519bdc>] (nmi_trigger_cpumask_backtrace+0xec/0x130)
        [  573.008706] [<c0519bdc>] (nmi_trigger_cpumask_backtrace) from [<c01a5184>] (rcu_dump_cpu_stacks+0xe8/0x110)
        [  573.018453] [<c01a5184>] (rcu_dump_cpu_stacks) from [<c01a4234>] (rcu_sched_clock_irq+0x7fc/0xa88)
        [  573.027416] [<c01a4234>] (rcu_sched_clock_irq) from [<c01acdd0>] (update_process_times+0x30/0x8c)
        [  573.036291] [<c01acdd0>] (update_process_times) from [<c01bfb90>] (tick_sched_timer+0x4c/0xa8)
        [  573.044905] [<c01bfb90>] (tick_sched_timer) from [<c01adcc8>] (__hrtimer_run_queues+0x174/0x358)
        [  573.053696] [<c01adcc8>] (__hrtimer_run_queues) from [<c01aea2c>] (hrtimer_interrupt+0x118/0x2bc)
        [  573.062573] [<c01aea2c>] (hrtimer_interrupt) from [<c09ad664>] (arch_timer_handler_virt+0x28/0x30)
        [  573.071536] [<c09ad664>] (arch_timer_handler_virt) from [<c0190f50>] (handle_percpu_devid_irq+0x8c/0x240)
        [  573.081109] [<c0190f50>] (handle_percpu_devid_irq) from [<c018ab8c>] (generic_handle_irq+0x34/0x44)
        [  573.090156] [<c018ab8c>] (generic_handle_irq) from [<c018b194>] (__handle_domain_irq+0x5c/0xb0)
        [  573.098857] [<c018b194>] (__handle_domain_irq) from [<c052ac50>] (gic_handle_irq+0x4c/0x90)
        [  573.107209] [<c052ac50>] (gic_handle_irq) from [<c0100b0c>] (__irq_svc+0x6c/0x90)
        [  573.114682] Exception stack(0xd90dfcf8 to 0xd90dfd40)
        [  573.119732] fce0:                                                       ffff0004 00000000
        [  573.127917] fd00: 00000000 00000000 00000000 00000000 00000000 00000000 d93493cc ffff0000
        [  573.136098] fd20: d2bc39c0 be926998 d90dfd58 d90dfd48 c09f3384 c01151f0 400d0013 ffffffff
        [  573.144281] [<c0100b0c>] (__irq_svc) from [<c01151f0>] (__arm_smccc_smc+0x10/0x20)
        [  573.151854] [<c01151f0>] (__arm_smccc_smc) from [<c09f3384>] (optee_smccc_smc+0x3c/0x44)
        [  573.159948] [<c09f3384>] (optee_smccc_smc) from [<c09f4170>] (optee_do_call_with_arg+0xb8/0x154)
        [  573.168735] [<c09f4170>] (optee_do_call_with_arg) from [<c09f4638>] (optee_invoke_func+0x110/0x190)
        [  573.177786] [<c09f4638>] (optee_invoke_func) from [<c09f1ebc>] (tee_ioctl+0x10b8/0x11c0)
        [  573.185879] [<c09f1ebc>] (tee_ioctl) from [<c029f62c>] (ksys_ioctl+0xe0/0xa4c)
        [  573.193101] [<c029f62c>] (ksys_ioctl) from [<c0100060>] (ret_fast_syscall+0x0/0x54)
        [  573.200750] Exception stack(0xd90dffa8 to 0xd90dfff0)
        [  573.205803] ffa0:                   be926bf4 be926a78 00000003 8010a403 be926908 004e3cf8
        [  573.213987] ffc0: be926bf4 be926a78 00000000 00000036 be926908 be926918 be9269b0 bffdf0f8
        [  573.222162] ffe0: b6d76fb0 be9268fc b6d66621 b6c7e0d8
      
      seen on STM32 DK2 with CONFIG_PREEMPT_NONE.
      
      Fixes: 9f02b8f6
      
       ("tee: optee: add might_sleep for RPC requests")
      Signed-off-by: default avatarRouven Czerwinski <r.czerwinski@pengutronix.de>
      Tested-by: default avatarSumit Garg <sumit.garg@linaro.org>
      [jw: added fixes tag + small adjustments in the code]
      Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      dcb3b06d
  10. Jan 18, 2021
  11. Jan 16, 2021
    • Linus Walleij's avatar
      ARM: dts: ux500: Reserve memory carveouts · 8a996b2d
      Linus Walleij authored
      The Ux500 platforms have some memory carveouts set aside for
      communicating with the modem and for the initial secure software
      (ISSW). These areas are protected by the memory controller
      and will result in an external abort if accessed like common
      read/write memory.
      
      On the legacy boot loaders, these were set aside by using
      cmdline arguments such as this:
      
        mem=96M@0 mem_mtrace=15M@96M mem_mshared=1M@111M
        mem_modem=16M@112M mali.mali_mem=32M@128M mem=96M@160M
        hwmem=127M@256M mem_issw=1M@383M mem_ram_console=1M@384M
        mem=638M@385M
      
      Reserve the relevant areas in the device tree instead. The
      "mali", "hwmem", "mem_ram_console" and the trailing 1MB at the
      end of the memory reservations in the list are not relevant for
      the upstream kernel as these are nowadays replaced with
      upstream technologies such as CMA. The modem and ISSW
      reservations are necessary.
      
      This was manifested in a bug that surfaced in response to
      commit 7fef431b
      
       ("mm/page_alloc: place pages to tail in __free_pages_core()")
      which changes the behaviour of memory allocations
      in such a way that the platform will sooner run into these
      dangerous areas, with "Unhandled fault: imprecise external
      abort (0xc06) at 0xb6fd83dc" or similar: the real reason
      turns out to be that the PTE is pointing right into one of
      the reserved memory areas. We were just lucky until now.
      
      We need to augment the DB8500 and DB8520 SoCs similarly
      and also create a new include for the DB9500 used in the
      Snowball since this does not have a modem and thus does
      not need the modem memory reservation, albeit it needs
      the ISSW reservation.
      
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Cc: stable@vger.kernel.org
      Cc: David Hildenbrand <david@redhat.com>
      Link: https://lore.kernel.org/r/20201213225517.3838501-1-linus.walleij@linaro.org'
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      8a996b2d
    • Nishanth Menon's avatar
      arm64: defconfig: Drop unused K3 SoC specific options · 2004e62a
      Nishanth Menon authored
      
      
      With [1] integrated and all users of the config symbols removed, we
      can safely remove the options from defconfig.
      
      [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20201026170624.24241-1-nm@ti.com/
      
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Link: https://lore.kernel.org/r/20210107132228.6577-1-nm@ti.com'
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      2004e62a
    • Sumera Priyadarsini's avatar
      bus: arm-integrator-lm: Add of_node_put() before return statement · 1740e673
      Sumera Priyadarsini authored
      
      
      Every iteration of for_each_available_child_of_node() decrements
      the reference count of the previous node, however when control is
      transferred from the middle of the loop, as in the case of a return
      or break or goto, there is no decrement thus ultimately resulting in
      a memory leak.
      
      Fix a potential memory leak in arm-integrator-lm.c by inserting
      of_node_put() before a return statement.
      
      Issue found with Coccinelle.
      
      Signed-off-by: default avatarSumera Priyadarsini <sylphrenadin@gmail.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Link: https://lore.kernel.org/r/20200829174154.GA9319@Kaladin
      Link: https://lore.kernel.org/r/20210112092549.251548-1-linus.walleij@linaro.org'
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      1740e673
    • Arnd Bergmann's avatar
      Merge tag 'imx-fixes-5.11' of... · 8880bf6d
      Arnd Bergmann authored
      
      Merge tag 'imx-fixes-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
      
      i.MX fixes for 5.11:
      
      - Fix backlight pwm on imx6qdl-kontron-samx6i which is lost from
        #pwm-cells conversion.
      - Fix duplicated bus node name for i.MX8MN SoC.
      - Fix reset register offset on LS1028A SoC.
      - Rename MMC node aliases for imx6q-tbs2910 to keep the MMC device
        index consistent with previous kernel version.
      - Selecting ARM_GIC_V3 on non-CP15 processors to fix one build failure
        with i.MX8M SoC driver.
      - Fix typos with status property on imx6qdl-kontron-samx6i board.
      - Fix duplicated regulator-name on imx6qdl-gw52xx board.
      
      * tag 'imx-fixes-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        ARM: dts: imx6qdl-gw52xx: fix duplicate regulator naming
        ARM: dts: imx6qdl-kontron-samx6i: fix i2c_lcd/cam default status
        ARM: imx: fix imx8m dependencies
        ARM: dts: tbs2910: rename MMC node aliases
        arm64: dts: ls1028a: fix the offset of the reset register
        arm64: dts: imx8mn: Fix duplicate node name
        ARM: dts: imx6qdl-kontron-samx6i: fix pwms for lcd-backlight
      
      Link: https://lore.kernel.org/r/20210112131224.GI28365@dragon
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      8880bf6d
  12. Jan 15, 2021
    • Tony Lindgren's avatar
      drivers: bus: simple-pm-bus: Fix compatibility with simple-bus for auxdata · eda080ea
      Tony Lindgren authored
      After converting am335x to probe devices with simple-pm-bus I noticed
      that we are not passing auxdata for of_platform_populate() like we do
      with simple-bus.
      
      While device tree using SoCs should no longer need platform data, there
      are still quite a few drivers that still need it as can be seen with
      git grep OF_DEV_AUXDATA. We want to have simple-pm-bus be usable as a
      replacement for simple-bus also for cases where OF_DEV_AUXDATA is still
      needed.
      
      Let's fix the issue by passing auxdata as platform data to simple-pm-bus.
      That way the SoCs needing this can pass the auxdata with OF_DEV_AUXDATA.
      And let's pass the auxdata for omaps to fix the issue for am335x.
      
      As an alternative solution, adding simple-pm-bus handling directly to
      drivers/of/platform.c was considered, but we would still need simple-pm-bus
      device driver. So passing auxdata as platform data seems like the simplest
      solution.
      
      Fixes: 5a230524
      
       ("ARM: dts: Use simple-pm-bus for genpd for am3 l4_wkup")
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Acked-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      eda080ea
    • Tony Lindgren's avatar
      ARM: OMAP2+: Fix booting for am335x after moving to simple-pm-bus · 2a39af38
      Tony Lindgren authored
      
      
      We now depend on SIMPLE_PM_BUS for probing devices. While we have it
      selected in omap2plus_defconfig, custom configs can fail if it's missing.
      
      As SIMPLE_PM_BUS depends on OF and PM, we must now select PM in Kconfig.
      We have already OF selected by ARCH_MULTIPLATFORM.
      
      Let's also drop the earlier PM dependency entries as suggested by
      Geert Uytterhoeven <geert@linux-m68k.org>.
      
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Reported-by: default avatarMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
      Fixes: 5a230524
      
       ("ARM: dts: Use simple-pm-bus for genpd for am3 l4_wkup")
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      2a39af38
    • Tony Lindgren's avatar
      Merge branch 'cpuidle-fix' into fixes · 715a1284
      Tony Lindgren authored
      715a1284
    • Tony Lindgren's avatar
      ARM: OMAP2+: Fix suspcious RCU usage splats for omap_enter_idle_coupled · 06862d78
      Tony Lindgren authored
      We get suspcious RCU usage splats with cpuidle in several places in
      omap_enter_idle_coupled() with the kernel debug options enabled:
      
      RCU used illegally from extended quiescent state!
      ...
      (_raw_spin_lock_irqsave)
      (omap_enter_idle_coupled+0x17c/0x2d8)
      (omap_enter_idle_coupled)
      (cpuidle_enter_state)
      (cpuidle_enter_state_coupled)
      (cpuidle_enter)
      
      Let's use RCU_NONIDLE to suppress these splats. Things got changed around
      with commit 1098582a ("sched,idle,rcu: Push rcu_idle deeper into the
      idle path") that started triggering these warnings.
      
      For the tick_broadcast related calls, ideally we'd just switch over to
      using CPUIDLE_FLAG_TIMER_STOP for omap_enter_idle_coupled() to have the
      generic cpuidle code handle the tick_broadcast related calls for us and
      then just drop the tick_broadcast calls here.
      
      But we're currently missing the call in the common cpuidle code for
      tick_broadcast_enable() that CPU1 hotplug needs as described in earlier
      commit 50d6b3cf
      
       ("ARM: OMAP2+: fix lack of timer interrupts on CPU1
      after hotplug").
      
      Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
      Cc: Paul E. McKenney <paulmck@kernel.org>
      Cc: Russell King <rmk+kernel@armlinux.org.uk>
      Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      06862d78