~colin-king/+git/ubuntu-riscv-focal:master

Last commit made on 2021-01-08
Get this branch:
git clone -b master https://git.launchpad.net/~colin-king/+git/ubuntu-riscv-focal
Only Colin Ian King can upload to this branch. If you are Colin Ian King please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~colin-king/+git/ubuntu-riscv-focal

Recent commits

3c78377... by Colin Ian King

UBUNTU: [Config] Align configs with Unleashed defconfigs

The Unleashed defconfigs disable PM enable CPU freq with
usermode control'd cpu frequency scaling so ensure we are
following the recommended configuration. This also solves
some mysterious RCU stalling and some spurious flash drive
delays that cause boot and shutdown to become unreliable.

Signed-off-by: Colin Ian King <email address hidden>

84bbace... by Greentime Hu <email address hidden>

irqchip/sifive-plic: Fix broken irq_set_affinity() callback

It will always enable the interrupt after calling plic_set_affinity()
however it should set to it previous setting. Staying disabled or enabled.

This patch can also fix this pwm hang issue in Unleashed board.

[ 919.015783] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 919.020922] rcu: 0-...0: (0 ticks this GP)
idle=7d2/1/0x4000000000000002 softirq=1424/1424 fqs=105807
[ 919.030295] (detected by 1, t=225825 jiffies, g=1561, q=3496)
[ 919.036109] Task dump for CPU 0:
[ 919.039321] kworker/0:1 R running task 0 30 2 0x00000008
[ 919.046359] Workqueue: events set_brightness_delayed
[ 919.051302] Call Trace:
[ 919.053738] [<ffffffe000930d92>] __schedule+0x194/0x4de
[ 982.035783] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 982.040923] rcu: 0-...0: (0 ticks this GP)
idle=7d2/1/0x4000000000000002 softirq=1424/1424 fqs=113325
[ 982.050294] (detected by 1, t=241580 jiffies, g=1561, q=3509)
[ 982.056108] Task dump for CPU 0:
[ 982.059321] kworker/0:1 R running task 0 30 2 0x00000008
[ 982.066359] Workqueue: events set_brightness_delayed
[ 982.071302] Call Trace:
[ 982.073739] [<ffffffe000930d92>] __schedule+0x194/0x4de
[..]

Fixes: bb0fed1c60cc ("irqchip/sifive-plic: Switch to fasteoi flow")
Signed-off-by: Greentime Hu <email address hidden>
Reviewed-by: Anup Patel <email address hidden>
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/irqchip-sifive-plic-fix-broken-irq_set_affinity-callback.patch)
Signed-off-by: Colin Ian King <email address hidden>

170f461... by Sagar Shrikant Kadam <email address hidden>

i2c: ocores: fix polling mode workaround on FU540-C000 SoC

The FU540-C000 has a broken IRQ and support was added earlier
so that it will operate in polling mode, but seems to work only
in case interrupts property is missing from the i2c0 dt-node.
This should not be the case and the driver should handle polling
mode with the interrupt property present in i2c0 node of the
device tree.
So check if it's the FU540-C000 soc and enable polling mode master
xfers, as the IRQ for this chip is broken.

Fixes commit c45d4ba86731 ("i2c: ocores: add polling mode workaround
for Sifive FU540-C000 SoC")

Signed-off-by: Sagar Shrikant Kadam <email address hidden>
Acked-by: Peter Korsgaard <email address hidden>
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/i2c-ocores-fix-polling-mode-workaround-on-FU540-C000-SoC.patch)
Signed-off-by: Colin Ian King <email address hidden>

73dc91a... by David Abdurachmanov <email address hidden>

SiFive HiFive Unleashed: Add PWM LEDs (D1, D2, D3, D4)

By default no functions are assigned to LEDs. It's up to user/distribution
to provide udev rules to configure them.

Signed-off-by: David Abdurachmanov <email address hidden>
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/0007-Add-PWM-LEDs-D1-D2-D3-D4.patch)
Signed-off-by: Colin Ian King <email address hidden>

9e37eba... by Yash Shah <email address hidden>

riscv: dts: Add GPIO reboot method to HiFive Unleashed DTS file

Add the ability to reboot the HiFive Unleashed board via GPIO.

Signed-off-by: Yash Shah <email address hidden>
Reviewed-by: Anup Patel <email address hidden>
Signed-off-by: Palmer Dabbelt <email address hidden>
(backport from upstream commit 0a91330b2af9f71ceeeed483f92774182b58f6d9)
Signed-off-by: Colin Ian King <email address hidden>

f7769f0... by David Abdurachmanov <email address hidden>

SiFive Unleashed CPUFreq

Source: https://github.com/sifive/riscv-linux/commits/dev/paulw/cpufreq-dt-aloe-v5.3-rc4

Signed-off-by: David Abdurachmanov <email address hidden>
Upstream-Status: Not posted for a review
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/0004-SiFive-Unleashed-CPUFreq.patch)
Signed-off-by: Colin Ian King <email address hidden>

4fdd0b1... by Yash Shah <email address hidden>

riscv: dts: Add DT support for SiFive FU540 GPIO driver

Add the gpio DT node in SiFive FU540 soc-specific DT file.
Enable the gpio node in HiFive Unleashed board-specific DT file.

Signed-off-by: Yash Shah <email address hidden>
Signed-off-by: Palmer Dabbelt <email address hidden>
(cherry pick of upstream commit 61ffb9d27860769c5d5596f6e4cca3cded2755e0)
Signed-off-by: Colin Ian King <email address hidden>

131e95b... by Yash Shah <email address hidden>

riscv: dts: Add DT support for SiFive L2 cache controller

Add the L2 cache controller DT node in SiFive FU540 soc-specific DT file

Signed-off-by: Yash Shah <email address hidden>
Reviewed-by: Palmer Dabbelt <email address hidden>
Signed-off-by: Paul Walmsley <email address hidden>
(cherry pick of upstream commit cfda8617e22a8bf217a613d0b3ba3a38778443ba)
Signed-off-by: Colin Ian King <email address hidden>

bc65f5a... by Green Wan <email address hidden>

riscv: dts: add support for PDMA device of HiFive Unleashed Rev A00

Add PDMA support to (arch/riscv/boot/dts/sifive/fu540-c000.dtsi)

Signed-off-by: Green Wan <email address hidden>
Signed-off-by: Paul Walmsley <email address hidden>
(cherry pick of upstream commit c5ab54e9945b5f3dc8e9c31b93bb334fcea126f4)
Signed-off-by: Colin Ian King <email address hidden>

bfa3f1a... by David Abdurachmanov <email address hidden>

Microsemi PCIe expansion board DT entry.

Rebased on v5.5 (no actual changes).

Signed-off-by: Atish Patra <email address hidden>
Signed-off-by: Alistair Francis <email address hidden>
Signed-off-by: David Abdurachmanov <email address hidden>
Upstream-Status: Inappropriate [enable feature]
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/0002-Microsemi-PCIe-expansion-board-DT-entry.patch)
Signed-off-by: Colin Ian King <email address hidden>