Re: macb broken on HiFive Unleashed

2021-03-13 Thread Emil Renner Berthing
Hi Andreas On Wed, 10 Mar 2021 at 20:55, Andreas Schwab wrote: > On Mär 09 2021, claudiu.bez...@microchip.com wrote: > > I don't have a SiFive HiFive Unleashed to investigate this. Can you check > > if reverting commits on macb driver b/w 5.10 and 5.11 solves your issues: > > > > git log

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-25 Thread Emil Renner Berthing
bling call from callable instruction > with modified stack frame > > Use BUG() instead of unreachable() to avoid the undefined behavior > if it does happen. > > Fixes: 65498c6ae241 ("spi: rockchip: support 4bit words") > Signed-off-by: Arnd Bergmann Acked-by: Emil Re

[tip: irq/core] genirq: Use new tasklet API for resend_tasklet

2021-02-15 Thread tip-bot2 for Emil Renner Berthing
The following commit has been merged into the irq/core branch of tip: Commit-ID: c260954177c4f1926b423823bca5728f19b40d67 Gitweb: https://git.kernel.org/tip/c260954177c4f1926b423823bca5728f19b40d67 Author:Emil Renner Berthing AuthorDate:Sat, 23 Jan 2021 19:24:56 +01:00

[PATCH] mmc: cb710: Use new tasklet API

2021-02-08 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/cb710-mmc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/d

[PATCH] net: wan: farsync: use new tasklet API

2021-02-04 Thread Emil Renner Berthing
ather than DECLARE_TASLKLET_OLD. Signed-off-by: Emil Renner Berthing --- drivers/net/wan/farsync.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index b50cf11d197d..686a25d3b512 100644 --- a/drivers/net/wan/farsync.c +++

[PATCH 3/9] mmc: dw_mmc: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/dw_mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH 4/9] mmc: omap: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/omap.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/h

[PATCH 7/9] mmc: uniphier-sd: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/uniphier-sd.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git

[PATCH 8/9] mmc: via-sdmmc: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/via-sdmmc.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/driver

[PATCH 9/9] mmc: wbsd: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/wbsd.c | 35 +++ 1 file changed, 15 insertions(+), 20 deletion

[PATCH 5/9] mmc: s3cmci: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/s3cmci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH 6/9] mmc: tifm_sd: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/tifm_sd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/driver

[PATCH 2/9] mmc: au1xmmc: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/au1xmmc.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/d

[PATCH 0/9] drivers: mmc: Update trivial tasklet_init() callers

2021-02-04 Thread Emil Renner Berthing
t; identifier match.callback; @@ - tasklet_init(>tasklet, callback, (unsigned long)container); + tasklet_setup(>tasklet, callback); Emil Renner Berthing (9): mmc: atmel-mci: Use new tasklet API mmc: au1xmmc: Use new tasklet API mmc: dw_mmc: Use new tasklet API mmc: omap:

[PATCH 1/9] mmc: atmel-mci: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/atmel-mci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH 6/9] net: usb: lan78xx: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/lan78xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH 5/9] net: usb: hso: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/hso.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net

[PATCH 7/9] net: usb: pegasus: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/pegasus.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drive

[PATCH 8/9] net: usb: r8152: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/r8152.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/u

[PATCH 9/9] net: usb: rtl8150: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/rtl8150.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/u

[PATCH 3/9] ifb: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/ifb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ifb.c

[PATCH 2/9] caif_virtio: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/caif/caif_virtio.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/driver

[PATCH 4/9] ppp: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the async and synctty drivers to use the new tasklet API n commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/ppp/ppp_async.c | 8 drivers/net/ppp/ppp_synctty.c | 8 2 files

[PATCH 0/9] drivers: net: update tasklet_init callers

2021-01-30 Thread Emil Renner Berthing
h2) @ match.T *container; identifier match.tasklet; identifier match.callback; @@ - tasklet_init(>tasklet, callback, (unsigned long)container); + tasklet_setup(>tasklet, callback); Emil Renner Berthing (9): arcnet: use new tasklet API caif_virtio: use new tasklet API ifb: use ne

[PATCH 1/9] arcnet: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/arcnet/arcnet.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/

[PATCH] net: usb: cdc_ncm: use new API for bh tasklet

2021-01-30 Thread Emil Renner Berthing
more users of the old API left and we can remove the data value and flag from the tasklet struct. Signed-off-by: Emil Renner Berthing --- Let me know if you know of a better way to get the usbnet device from the cdc_ncn_ctx context. drivers/net/usb/cdc_ncm.c | 12 +++- include/linux/usb

[PATCH 1/2] net: atm: pppoatm: use tasklet_init to initialize wakeup tasklet

2021-01-27 Thread Emil Renner Berthing
Previously a temporary tasklet structure was initialized on the stack using DECLARE_TASKLET_OLD() and then copied over and modified. Nothing else in the kernel seems to use this pattern, so let's just call tasklet_init() like everyone else. Signed-off-by: Emil Renner Berthing --- net/atm

[PATCH 2/2] net: atm: pppoatm: use new API for wakeup tasklet

2021-01-27 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- net/atm/pppoatm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/atm/pppoatm.c

[PATCH v2] vt: keyboard, use new API for keyboard_tasklet

2021-01-27 Thread Emil Renner Berthing
D() rather than DECLARE_TASKLET_DISABLED_OLD(). Signed-off-by: Emil Renner Berthing --- v2: Rebased on Greg's tty/tty-next tree. --- drivers/tty/vt/keyboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c index 9f

Re: [PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-27 Thread Emil Renner Berthing
On Wed, 27 Jan 2021 at 16:33, Kalle Valo wrote: > ... > Forgot to mention that I can remove the Fixes tags during commit, so no > need to resend just because of those. Cool, thanks. > > I can definitely see how you can reasonably disagree, but I would not > > be comfortable having code that

Re: [PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-27 Thread Emil Renner Berthing
On Wed, 27 Jan 2021 at 16:20, Kalle Valo wrote: > > Willem de Bruijn writes: > > > On Wed, Jan 27, 2021 at 5:23 AM Emil Renner Berthing > > wrote: > >> > >> In commit d3ccc14dfe95 most of the tasklets in this driver was > >> updated to t

[PATCH] drm/i915/gt: use new tasklet API in execlist selftest

2021-01-26 Thread Emil Renner Berthing
This converts the execlist selftest to use the new tasklet API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- Hi Chris, I seem to have missed some tasklist manipulation in the execlist selftest. Feel free to squash th

[PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-26 Thread Emil Renner Berthing
t properly and set rx_work_tasklet.use_callback = true so that the callback is called as t->callback(t); without all the casting. Fixes: 6b8c7574a5f8 ("rtlwifi: fix build warning") Fixes: d3ccc14dfe95 ("rtlwifi/rtw88: convert tasklets to use new tasklet_setup() API") Signed-off-b

Re: [PATCH v2] drm/i915/gt: use new tasklet API for execution list

2021-01-26 Thread Emil Renner Berthing
On Tue, 26 Jan 2021 at 16:13, Chris Wilson wrote: > Quoting Emil Renner Berthing (2021-01-26 15:01:55) > > This converts the driver to use the new tasklet API introduced in > > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") > > > >

[PATCH v2] drm/i915/gt: use new tasklet API for execution list

2021-01-26 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- v2: Rebased on drm-intel-next Tested on my Dell XPS 13 9300. --- drivers/gpu/drm/i915/gt/intel_engine_cs.

Re: [PATCH] kgdb: use new API for breakpoint tasklet

2021-01-25 Thread Emil Renner Berthing
On Mon, 25 Jan 2021 at 12:03, Daniel Thompson wrote: > > On Sat, Jan 23, 2021 at 07:42:37PM +0100, Emil Renner Berthing wrote: > > This converts the kgdb_tasklet_breakpoint to use the new API in > > commit 12cc923f1ccc ("tasklet: Introduce new initialization API")

[PATCH] vt: keyboard, use new API for keyboard_tasklet

2021-01-23 Thread Emil Renner Berthing
D() rather than DECLARE_TASKLET_DISABLED_OLD(). Signed-off-by: Emil Renner Berthing --- drivers/tty/vt/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c index 52922d21a49f..6c85f024bec4 100644 --- a/driv

[PATCH] kernel/backtracetest: use new API for backtrace tasklet

2021-01-23 Thread Emil Renner Berthing
ather than DECLARE_TASKLET_OLD(). Signed-off-by: Emil Renner Berthing --- kernel/backtracetest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/backtracetest.c b/kernel/backtracetest.c index 370217dd7e39..70a3da716f01 100644 --- a/kernel/backtracetest.c ++

[PATCH] kgdb: use new API for breakpoint tasklet

2021-01-23 Thread Emil Renner Berthing
T() rather than DECLARE_TASKLET_OLD(). Signed-off-by: Emil Renner Berthing --- kernel/debug/debug_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index af6e8b4fb359..98d44c2bb0a4 100644 --- a/kernel/debug/debug_co

[PATCH] genirq: use new tasklet API for resend_tasklet

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the resend_tasklet to use the new API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") The new API changes the argument passed to the callback function, but fortunately the argument isn't used so it is straight forw

[PATCH] drm/i915/gt: use new tasklet API for execution list

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- Tested on my Dell XPS 13 9300. drivers/gpu/drm/i915/gt/intel_engine_cs.

[PATCH 1/2] net: usbnet: initialize tasklet using tasklet_init

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing Initialize tasklet using tasklet_init() rather than open-coding it. Signed-off-by: Emil Renner Berthing --- drivers/net/usb/usbnet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index

[PATCH 2/2] net: usbnet: use new tasklet API

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/usbnet.c | 8 1 file changed, 4 insertions(+), 4 deletion

[PATCH 0/2] net: usbnet: convert to new tasklet API

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the usbnet driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") It is split into two commits for ease of reviewing. Emil Renner Berthing (2): net: usbnet: use tasklet_init net: u

Re: [PATCH v1 2/2] riscv: Clean up module relocations

2020-08-05 Thread Emil Renner Berthing
On Thu, 30 Jul 2020 at 20:53, Luke Nelson wrote: > > Thanks for the patch! > > > Also RISC-V has a number of instruction pairs to > > generate 32bit immediates or jump/call offsets. Eg.: > > > > lui rd, hi20 > > addi rd, rd, lo12 > > On RV64, both hi20 from lui and lo12 from addi are

[PATCH] riscv: Grab text_mutex before patching jump-labels

2020-07-23 Thread Emil Renner Berthing
Like other arch's we use patch_text_nosync or equivalent to patch the jump-labels, but also like other arch's we need to hold the text_mutex before calling that. Signed-off-by: Emil Renner Berthing --- Fixes: b6e0878a4ec8 ("riscv: Add jump-label implementation") ..that is alread

[PATCH v1 1/2] riscv: Avoid unaligned access when relocating modules

2020-07-22 Thread Emil Renner Berthing
ian RISC-V machine. Fix rcv -> rvc typo while we're at it. Signed-off-by: Emil Renner Berthing --- arch/riscv/kernel/module.c | 155 +++-- 1 file changed, 79 insertions(+), 76 deletions(-) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index

[PATCH v1 2/2] riscv: Clean up module relocations

2020-07-22 Thread Emil Renner Berthing
unts to the same: imm - hi20 may be become negative/underflow, but it doesn't change the lower 12 bits. Signed-off-by: Emil Renner Berthing --- My hope is that we can eventually factor out the code to generate immediates and instructions so it can be reused both here, in the jump-label code and in

Re: [PATCH v2 3/3] spi: rockchip: Fix error in SPI slave pio read

2020-07-22 Thread Emil Renner Berthing
On Wed, 22 Jul 2020 at 10:38, Jon Lin wrote: > > The RXFLR is possible larger than rx_left in Rockchip SPI, fix it. > > Signed-off-by: Jon Lin > Reviewed-by: Heiko Stuebner In addition to my review and test you should probably also add Fixes: 01b59ce5dac8 ("spi: rockchip: use irq rather than

Re: [PATCH v2 1/3] spi: rockchip: Config spi rx dma burst size depend on xfer length

2020-07-22 Thread Emil Renner Berthing
On Wed, 22 Jul 2020 at 10:41, Jon Lin wrote: > > The burst length can be adjusted according to the transmission > length to improve the transmission rate > > Signed-off-by: Jon Lin For the whole series you can add Reviewed-by: Emil Renner Berthing Tested-by: Emil

Re: [PATCH] riscv: Select ARCH_HAS_DEBUG_VM_PGTABLE

2020-07-21 Thread Emil Renner Berthing
On Tue, 21 Jul 2020 at 06:04, Palmer Dabbelt wrote: > > On Tue, 14 Jul 2020 20:20:54 PDT (-0700), anshuman.khand...@arm.com wrote: > > > > > > On 07/15/2020 02:56 AM, Emil Renner Berthing wrote: > >> This allows the pgtable tests to be built. > >>

Re: [PATCH] asm-generic/mmiowb: Allow mmiowb_set_pending() when preemptible()

2020-07-16 Thread Emil Renner Berthing
y: Palmer Dabbelt Nice. This fixes the problems I saw both in Qemu and on the HiFive Unleashed. Btw. I was the one who originally stumbled upon this problem and send the mail to linux-riscv that Palmer CC'ed you on, so I think this ought to be Reported-by: Emil Renner Berthing In any case you

Re: [PATCH v3 0/4] Dedicated CLINT timer driver

2020-07-15 Thread Emil Renner Berthing
On Wed, 15 Jul 2020 at 09:15, Anup Patel wrote: > The current RISC-V timer driver is convoluted and implements two > distinct timers: > 1. S-mode timer: This is for Linux RISC-V S-mode with MMU. The > clocksource is implemented using TIME CSR and clockevent device > is implemented using

[PATCH] riscv: Select ARCH_HAS_DEBUG_VM_PGTABLE

2020-07-14 Thread Emil Renner Berthing
This allows the pgtable tests to be built. Signed-off-by: Emil Renner Berthing --- The tests seem to succeed both in Qemu and on the HiFive Unleashed Both with and without the recent additions in https://lore.kernel.org/linux-riscv/1594610587-4172-1-git-send-email-anshuman.khand...@arm.com

[PATCH v3 2/2] riscv: Add jump-label implementation

2020-07-14 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version and add CONFIG_JUMP_LABEL=y to the defconfigs. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel Tested-by: Björn Töpel --- Tested on the HiFive Unleashed board. Changes since v2: - Add missing asm/asm.h include. Reported

[PATCH v3 1/2] riscv: Support R_RISCV_ADD64 and R_RISCV_SUB64 relocs

2020-07-14 Thread Emil Renner Berthing
These are needed for the __jump_table in modules using static keys/jump-labels with the layout from HAVE_ARCH_JUMP_LABEL_RELATIVE on 64bit kernels. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel Tested-by: Björn Töpel --- Tested on the HiFive Unleashed board. No changes since v2

[PATCH v2 2/2] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version and add CONFIG_JUMP_LABEL=y to the defconfigs. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel --- Tested on the HiFive Unleashed board. Changes since v1: - WARN and give up gracefully if the jump offset cannot

[PATCH v2 1/2] riscv: Support R_RISCV_ADD64 and R_RISCV_SUB64 relocs

2020-07-08 Thread Emil Renner Berthing
These are needed for the __jump_table in modules using static keys/jump-labels with the layout from HAVE_ARCH_JUMP_LABEL_RELATIVE on 64bit kernels. Signed-off-by: Emil Renner Berthing --- Tested on the HiFive Unleashed board. This patch is new in v2. It fixes an error loading modules

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
On Wed, 8 Jul 2020 at 09:42, Björn Töpel wrote: > > On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > > > Add jump-label implementation based on the ARM64 version. > > > > Tested on the HiFive Unleashed board. > > > > I took your p

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
On Wed, 8 Jul 2020 at 08:28, Björn Töpel wrote: > On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > > > Add jump-label implementation based on the ARM64 version. > > > > Thanks for working on this! > > > Tested on the HiFive Unleashed board. > &g

[PATCH v1] riscv: Add jump-label implementation

2020-07-07 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version. Tested on the HiFive Unleashed board. Signed-off-by: Emil Renner Berthing --- Changes since RFC: - Use RISCV_PTR and RISCV_LGPTR macros to match struct jump_table also in 32bit kernels. - Remove unneeded branch ? 1 : 0, thanks Björn

Re: [RFC] riscv: Add jump-label implementation

2020-07-04 Thread Emil Renner Berthing
On Sat, 4 Jul 2020 at 13:23, Björn Töpel wrote: > On Fri, 3 Jul 2020 at 17:43, Emil Renner Berthing wrote: > > On Thu, 2 Jul 2020 at 22:07, Emil Renner Berthing wrote: > > > > > > Add basic jump-label implementation heavily based > > > on the ARM64 versi

Re: [RFC] riscv: Add jump-label implementation

2020-07-03 Thread Emil Renner Berthing
On Thu, 2 Jul 2020 at 22:07, Emil Renner Berthing wrote: > > Add basic jump-label implementation heavily based > on the ARM64 version. > > Tested on the HiFive Unleashed. > > Signed-off-by: Emil Renner Berthing > --- > > This seems to work on my HiFive Unleas

[RFC] riscv: Add jump-label implementation

2020-07-02 Thread Emil Renner Berthing
Add basic jump-label implementation heavily based on the ARM64 version. Tested on the HiFive Unleashed. Signed-off-by: Emil Renner Berthing --- This seems to work on my HiFive Unleashed. At least boots, runs fine and the static key self-tests doesn't complain, but I'm sure I've missed

Re: [PATCH v0 1/1] spi: spi-rockchip: add support for spi slave_mode

2020-05-10 Thread Emil Renner Berthing
Hi Chris, On Sat, 9 May 2020 at 02:10, Chris Ruehl wrote: > > Hi Emil, > > thanks for the review and your comments > > On 8/5/2020 9:13 pm, Emil Renner Berthing wrote: > > Hi Chris, > > > > On Fri, 8 May 2020 at 10:47, Chris Ruehl wrote: > >>

Re: [PATCH v0 1/1] spi: spi-rockchip: add support for spi slave_mode

2020-05-08 Thread Emil Renner Berthing
Hi Chris, On Fri, 8 May 2020 at 15:13, Emil Renner Berthing wrote: > If you do something like this you won't need the temporary num_cs variable: > > if (of_property_read_u32(np, "num-cs", >num_chipselect)) > master->num_chipselect = 1; Sorry, that should be

Re: [PATCH v0 1/1] spi: spi-rockchip: add support for spi slave_mode

2020-05-08 Thread Emil Renner Berthing
Hi Chris, On Fri, 8 May 2020 at 10:47, Chris Ruehl wrote: > > This patch aim to add spi slave mode support to the rockchip driver. > Fix the wrong usage of num_cs set fix to ROCKCHIP_SPI_MAX_CS_NUM, > instead use max_native_cs flag to set the limit of native chip-select. > Enable

Re: Asus C101P Chromeboot fails to boot with Linux 5.2

2019-07-12 Thread Emil Renner Berthing
Hi Alex, On Fri, 12 Jul 2019 at 17:02, Alex Dewar wrote: > When I try to boot the screen just gets flooded with messages like this: > http://users.sussex.ac.uk/~ad374/boot_fail.jpg Those seem to be only audit messages. You can try booting with audit=0 on the kernel command line to get rid of

Re: Applied "spi: rockchip: turn down tx dma bursts" to the spi tree

2019-06-05 Thread Emil Renner Berthing
On Wed, 5 Jun 2019 at 21:55, Mark Brown wrote: > > On Wed, Jun 05, 2019 at 09:36:44PM +0200, Emil Renner Berthing wrote: > > On Wed, 8 May 2019 at 12:34, Mark Brown wrote: > > > >spi: rockchip: turn down tx dma bursts > > > I've tried looking in the for-next

Re: Applied "spi: rockchip: turn down tx dma bursts" to the spi tree

2019-06-05 Thread Emil Renner Berthing
Hi Mark On Wed, 8 May 2019 at 12:34, Mark Brown wrote: > > The patch > >spi: rockchip: turn down tx dma bursts > > has been applied to the spi tree at > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git > > All being well this means that it will be integrated into the

[PATCH] spi: rockchip: turn down tx dma bursts

2019-04-12 Thread Emil Renner Berthing
igned to word." So this relies on fifo_len being a multiple of 16 such that the burst length (= fifo_len / 4) is a multiple of 4 and the addresses will be word-aligned. Fixes: dcfc861d24ec ("spi: rockchip: adjust dma watermark and burstlen") Signed-off-by: Emil Renner Berthing

Re: [BUG] Rockchip SPI: long burst writes produce unexpected result

2019-04-07 Thread Emil Renner Berthing
Hi Vicente, On Sat, 6 Apr 2019 at 19:35, Vicente Bergas wrote: > > Hi, > i have been experiencing issues writing to NOR-Flash SPI Memories > from two RK3399-based platforms: gru-kevin and sapphire board. > For kevin, this resulted in a bricked device because that memory > is the only boot

Re: [PATCH v3 2/2] tty: serial: add driver for the SiFive UART

2018-11-15 Thread Emil Renner Berthing
Hi Paul, Thanks for the patch! On Sat, 20 Oct 2018 at 12:12, Paul Walmsley wrote: > +/* > + * > + */ Interesting comment ;) > +static int __init sifive_serial_console_setup(struct console *co, char > *options) Unfortunately I get this error unless I remove the __init: ... GEN .version

Re: [PATCH v3 2/2] tty: serial: add driver for the SiFive UART

2018-11-15 Thread Emil Renner Berthing
Hi Paul, Thanks for the patch! On Sat, 20 Oct 2018 at 12:12, Paul Walmsley wrote: > +/* > + * > + */ Interesting comment ;) > +static int __init sifive_serial_console_setup(struct console *co, char > *options) Unfortunately I get this error unless I remove the __init: ... GEN .version

Re: [RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-13 Thread Emil Renner Berthing
Hi Mark, On Tue, 13 Nov 2018 at 19:35, Mark Brown wrote: > On Mon, Nov 12, 2018 at 03:27:36PM +0100, Emil Renner Berthing wrote: > > > I know the discussions about the sifive devicetree compatible > > strings haven't come to a conclusion, so I'm sending this as > > an

Re: [RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-13 Thread Emil Renner Berthing
Hi Mark, On Tue, 13 Nov 2018 at 19:35, Mark Brown wrote: > On Mon, Nov 12, 2018 at 03:27:36PM +0100, Emil Renner Berthing wrote: > > > I know the discussions about the sifive devicetree compatible > > strings haven't come to a conclusion, so I'm sending this as > > an

[RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-12 Thread Emil Renner Berthing
From: Palmer Dabbelt Add driver for the SiFive SPI controller on the HiFive Unleashed board. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing --- .../devicetree/bindings/spi/spi-sifive.txt| 29 ++ drivers/spi/Kconfig | 6 + drivers/spi

[RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-12 Thread Emil Renner Berthing
From: Palmer Dabbelt Add driver for the SiFive SPI controller on the HiFive Unleashed board. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing --- .../devicetree/bindings/spi/spi-sifive.txt| 29 ++ drivers/spi/Kconfig | 6 + drivers/spi

[PATCH v1 02/14] spi: rockchip: use designated init for dma config

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Use C99 designated initializers for dma slave config structures. This also makes sure uninitialized fields are zeroed so we don't need an explicit memset. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 26 ++ 1 file

[PATCH v1 02/14] spi: rockchip: use designated init for dma config

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Use C99 designated initializers for dma slave config structures. This also makes sure uninitialized fields are zeroed so we don't need an explicit memset. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 26 ++ 1 file

[PATCH v1 03/14] spi: rockchip: always use SPI mode

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The hardware supports 3 different variants of SPI and there were some code around it, but nothing to actually set it to anything but "Motorola SPI". Just drop that code and always use that mode. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockc

[PATCH v1 03/14] spi: rockchip: always use SPI mode

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The hardware supports 3 different variants of SPI and there were some code around it, but nothing to actually set it to anything but "Motorola SPI". Just drop that code and always use that mode. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockc

[PATCH v1 04/14] spi: rockchip: use atomic_t state

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The state field is currently only used to make sure only the last of the tx and rx dma callbacks issue an spi_finalize_current_transfer. Rather than using a spinlock we can get away with just turning the state field into an atomic_t. Signed-off-by: Emil Renner

[PATCH v1 04/14] spi: rockchip: use atomic_t state

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The state field is currently only used to make sure only the last of the tx and rx dma callbacks issue an spi_finalize_current_transfer. Rather than using a spinlock we can get away with just turning the state field into an atomic_t. Signed-off-by: Emil Renner

[PATCH v1 06/14] spi: rockchip: read transfer info directly

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Just read transfer info directly from the spi device and transfer structures rather than storing it in driver data first. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 70 +- 1 file changed, 24 insertions

[PATCH v1 14/14] spi: rockchip: support lsb-first mode

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Add missing support for lsb-first mode. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 9e47e81553a1..3912526ead66

[PATCH v1 06/14] spi: rockchip: read transfer info directly

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Just read transfer info directly from the spi device and transfer structures rather than storing it in driver data first. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 70 +- 1 file changed, 24 insertions

[PATCH v1 14/14] spi: rockchip: support lsb-first mode

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Add missing support for lsb-first mode. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 9e47e81553a1..3912526ead66

[PATCH v1 07/14] spi: rockchip: don't store dma channels twice

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The spi master (aka spi controller) structure already has two fields for storing the rx and tx dma channels. Just use them rather than duplicating them in driver data. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 76

[PATCH v1 09/14] spi: rockchip: simplify use_dma logic

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing We only need to know if we're using dma when setting up the transfer, so just use a local variable for that. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git

[PATCH v1 07/14] spi: rockchip: don't store dma channels twice

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The spi master (aka spi controller) structure already has two fields for storing the rx and tx dma channels. Just use them rather than duplicating them in driver data. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 76

[PATCH v1 09/14] spi: rockchip: simplify use_dma logic

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing We only need to know if we're using dma when setting up the transfer, so just use a local variable for that. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git

[PATCH v1 10/14] spi: rockchip: set min/max speed

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The driver previously checked each transfer if the requested speed was higher than possible with the current spi clock rate and raised the clock rate accordingly. However, there is no check to see if the spi clock was actually set that high and no way to dynamically

[PATCH v1 08/14] spi: rockchip: remove master pointer from dev data

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing In almost all cases we already have a pointer to the spi master structure where we have the driver data. The only exceptions are the dma callbacks which are easily fixed by passing them the master and using spi_master_get_devdata to retrieve the driver data. Signed

[PATCH v1 13/14] spi: rockchip: support 4bit words

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The hardware supports 4, 8 and 16bit spi words, so add the missing support for 4bit words. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 41 +++--- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git

[PATCH v1 11/14] spi: rockchip: precompute rx sample delay

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Now that we no longer potentially change spi clock at runtime we can precompute the rx sample delay at probe time rather than for each transfer. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 36 ++-- 1 file

[PATCH v1 05/14] spi: rockchip: disable spi on error

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Successful transfers leave the spi disabled, so if we just make sure to disable the spi on error there should be no need to disable the spi from master->unprepare_message. This also flushes the tx and rx fifos, so no need to do that manually. Signed-off-by: E

[PATCH v1 12/14] spi: rockchip: use irq rather than polling

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Register an interrupt handler to fill/empty the tx and rx fifos rather than busy-looping. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 155 ++--- 1 file changed, 92 insertions(+), 63 deletions(-) diff --git

[PATCH v1 10/14] spi: rockchip: set min/max speed

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The driver previously checked each transfer if the requested speed was higher than possible with the current spi clock rate and raised the clock rate accordingly. However, there is no check to see if the spi clock was actually set that high and no way to dynamically

[PATCH v1 08/14] spi: rockchip: remove master pointer from dev data

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing In almost all cases we already have a pointer to the spi master structure where we have the driver data. The only exceptions are the dma callbacks which are easily fixed by passing them the master and using spi_master_get_devdata to retrieve the driver data. Signed

  1   2   >