[PATCH net] dwc_eth_qos: do not register semi-initialized device

2016-09-08 Thread Lars Persson
We move register_netdev() to the end of dwceqos_probe() to close any races where the netdev callbacks are called before the initialization has finished. Reported-by: Pavel Andrianov Signed-off-by: Lars Persson --- drivers/net/ethernet/synopsys/dwc_eth_qos.c | 38

Re: [PATCH] drivers/crypto: Convert timers to use timer_setup()

2017-10-26 Thread Lars Persson
On 10/25/2017 12:18 PM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Herbert Xu Cc: Jesper Nilsson Cc: Lars Persson Cc

Re: [PATCH] ethernet: synopsys: SYNOPSYS_DWC_ETH_QOS should depend on HAS_DMA

2015-09-04 Thread Lars Persson
s/dwc_eth_qos.ko] > undefined! > ERROR: "dma_map_single" [drivers/net/ethernet/synopsys/dwc_eth_qos.ko] > undefined! > > Signed-off-by: Geert Uytterhoeven Acked-by: Lars Persson > --- > drivers/net/ethernet/synopsys/Kconfig | 2 +- > 1 file changed, 1 i

[RFC] arm: Add generic smc wrapper

2015-10-01 Thread Lars Persson
This adds an smc wrapper according to the ARM standard for secure monitor calling conventions (ARM DEN 0028A). Signed-off-by: Lars Persson --- arch/arm/include/asm/smc-call.h | 12 arch/arm/kernel/Makefile| 2 ++ arch/arm/kernel/smc-call.S | 22

Re: [PATCH 4.9 069/101] ubi: fastmap: Correctly handle interrupted erasures in EBA

2018-10-08 Thread Lars Persson
On Mon, Sep 24, 2018 at 8:32 AM Richard Weinberger wrote: > > Lars, > > Am Sonntag, 23. September 2018, 15:49:42 CEST schrieb Lars Persson: > > Hi Richard > > > > Sorry, I assumed this omission from -stable was a mistake. > > > > The timing for our boot

Re: [PATCH] Revert "MIPS: Remove race window in page fault handling"

2014-12-05 Thread Lars Persson
MA FS in a couple of our customers. > Without it the non-DMA root FS crashes are catastrophic in aliasing > systems but it is still a problem for I-cache too but much rare. > > Unfortunately, it is also a performance hit, however is less than run a > page cache flush at eac

Re: [PATCH] Revert "MIPS: Remove race window in page fault handling"

2014-12-08 Thread Lars Persson
if page_mapped() will return true at that point. If it does, then your proposed patch for flush_icache_page is a better fix. - Lars On fre, 2014-12-05 at 22:41 +0100, Leonid Yegoshin wrote: > Lars, > > On 12/05/2014 01:32 AM, Lars Persson wrote: > > Hi > > > > Our setup

[PATCH] MIPS: Fix highmem crash in __update_cache.

2015-04-15 Thread Lars Persson
Due to a change in flush_dcache_page, highmem pages may have the dcache dirty flag set. Until there is proper support for highmen in cache.c we must filter out highmem pages to avoid NULL pointer dereferences. Signed-off-by: Lars Persson --- arch/mips/mm/cache.c |4 1 file changed, 4

Re: [PATCH 0/2] New fix for icache coherency race

2015-04-09 Thread Lars Persson
:53 skrev Paul Burton : > >> On Thu, Feb 26, 2015 at 02:16:01PM +0100, Lars Persson wrote: >> This patch set proposes an improved fix for the race condition that >> originally was fixed in commit 2a4a8b1e5d9d ("MIPS: Remove race window >> in page fault

[PATCH v2] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-03-15 Thread Lars Persson
nce inside move_to_new_page to make it common for both cases. Cc: sta...@vger.kernel.org Fixes: 97ee0524614 ("flush cache before installing new page at migraton") Reviewed-by: Paul Burton Acked-by: Mel Gorman Signed-off-by: Lars Persson --- v2: Added a Fixes footer and CC for stable.

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-26 Thread Lars Persson
On 2/25/19 4:07 PM, Vlastimil Babka wrote: On 2/19/19 1:32 PM, Lars Persson wrote: Our MIPS 1004Kc SoCs were seeing random userspace crashes with SIGILL and SIGSEGV that could not be traced back to a userspace code bug. They had all the magic signs of an I/D cache coherency issue. Now

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-26 Thread Lars Persson
On Tue, Feb 26, 2019 at 10:23 AM Anshuman Khandual wrote: > On 02/19/2019 06:02 PM, Lars Persson wrote: > > Our MIPS 1004Kc SoCs were seeing random userspace crashes with SIGILL > > and SIGSEGV that could not be traced back to a userspace code > > bug. They had all the magic

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-26 Thread Lars Persson
On 2/26/19 11:07 AM, Vlastimil Babka wrote: On 2/26/19 9:40 AM, Lars Persson wrote: What about CC stable and a Fixes tag, would it be applicable here? Yes this is candidate for stable so let's add: Cc: I do not find a good candidate for a Fixes tag. How bout a version range wher

[PATCH] crypto: aead - fix for multiple operations on AF_ALG sockets

2015-08-25 Thread Lars Persson
The tsgl scatterlist must be re-initialized after each operation. Otherwise the sticky bits in the page_link will corrupt the list with pre-mature termination or false chaining. Signed-off-by: Lars Persson --- crypto/algif_aead.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto

[PATCH net-next 1/4] dwc_eth_qos: Add Synopsys DWC Ethernet QoS bindings

2015-07-28 Thread Lars Persson
Add device tree binding documentation for the Synopsys DWC Ethernet QoS driver supporting revision 4.10a of the hardware IP. Signed-off-by: Lars Persson --- .../bindings/net/snps,dwc-qos-ethernet.txt | 75 ++ 1 file changed, 75 insertions(+) create mode 100644

[PATCH net-next 3/4] dwc_eth_qos: Add the synopsys folder to the build system.

2015-07-28 Thread Lars Persson
Signed-off-by: Lars Persson --- drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index f3bb178..05aa759 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net

[PATCH net-next 0/4] dwc_eth_qos: Add support for Synopsys DWC Ethernet QoS

2015-07-28 Thread Lars Persson
total available feature set. Currently it supports: * TSO * Checksum offload for RX and TX. * Energy efficient ethernet. * GMII phy interface. * The statistics module. * Single RX and TX queue. Lars Persson (4): dwc_eth_qos: Add Synopsys DWC Ethernet QoS bindings dwc_eth_qos: Add support for

[PATCH net-next 2/4] dwc_eth_qos: Add support for Synopsys DWC Ethernet QoS

2015-07-28 Thread Lars Persson
This patch adds a platform driver for the new generation of the gigabit ethernet IP from Synopsys. It is developed for version 4.10a of the IP core. Signed-off-by: Lars Persson --- drivers/net/ethernet/synopsys/Kconfig | 27 + drivers/net/ethernet/synopsys/Makefile |5

[PATCH net-next 4/4] dwc_eth_qos: Add maintainer info

2015-07-28 Thread Lars Persson
Add maintainer information for the Synopsys DWC Ethernet QOS driver. Signed-off-by: Lars Persson --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a226416..0c78766 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8903,6 +8903,13 @@ F

Re: [PATCH 1/2] clk: add device tree binding for artpec-6 pll1 clock

2016-02-17 Thread Lars Persson
On 02/17/2016 12:59 AM, Michael Turquette wrote: Quoting Lars Persson (2016-02-14 00:03:06) On 02/12/2016 05:39 PM, Rob Herring wrote: On Thu, Feb 11, 2016 at 05:01:03PM +0100, Lars Persson wrote: Add device tree documentation for the main PLL in the Artpec-6 SoC. Roughly how many clocks

Re: [PATCH 2/2] clk: add artpec-6 pll1 clock driver

2016-02-17 Thread Lars Persson
On 02/17/2016 01:02 AM, Michael Turquette wrote: Hi Lars, Quoting Lars Persson (2016-02-11 08:01:04) The PLL1 clock is a fixed-factor clock with factors derived from boot mode pins. This driver is a simple wrapper to register the fixed factor clock according to the pin settings. Signed-off

[PATCH 0/8] arm: Add Artpec-6 SoC

2016-02-10 Thread Lars Persson
Basic support for the Axis Artpec-6 ARM SoC. Timers, interrupts, UARTs and ethernet are wired up. Lars Persson (8): clk: add device tree binding for artpec-6 pll1 clock clk: add artpec-6 pll1 clock driver arm: add device-tree SoC bindings for Axis Artpec-6 arm: dts: add Artpec-6 soc dtsi

[PATCH 4/8] arm: dts: add Artpec-6 soc dtsi file

2016-02-10 Thread Lars Persson
Signed-off-by: Lars Persson --- arch/arm/boot/dts/artpec6.dtsi | 238 + 1 file changed, 238 insertions(+) create mode 100644 arch/arm/boot/dts/artpec6.dtsi diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi new file mode 100644

[PATCH 7/8] arm: multi_v7_defconfig: add MACH_ARTPEC6

2016-02-10 Thread Lars Persson
Signed-off-by: Lars Persson --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 8e8b2ac..bf3840e 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs

[PATCH 2/8] clk: add artpec-6 pll1 clock driver

2016-02-10 Thread Lars Persson
The PLL1 clock is a fixed-factor clock with factors derived from boot mode pins. This driver is a simple wrapper to register the fixed factor clock according to the pin settings. Signed-off-by: Lars Persson --- drivers/clk/Makefile | 1 + drivers/clk/clk-artpec6.c | 70

[PATCH 6/8] arm: initial machine port for artpec-6 SoC

2016-02-10 Thread Lars Persson
Basic machine port for the Artpec-6 SoC from Axis Communications. Signed-off-by: Lars Persson --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile| 1 + arch/arm/mach-artpec/Kconfig | 22 arch/arm/mach-artpec/Makefile| 1 + arch

[PATCH 5/8] arm: dts: add Artpec-6 development board dts

2016-02-10 Thread Lars Persson
Signed-off-by: Lars Persson --- arch/arm/boot/dts/Makefile | 2 ++ arch/arm/boot/dts/artpec6-devboard.dts | 57 ++ 2 files changed, 59 insertions(+) create mode 100644 arch/arm/boot/dts/artpec6-devboard.dts diff --git a/arch/arm/boot/dts/Makefile b

[PATCH 3/8] arm: add device-tree SoC bindings for Axis Artpec-6

2016-02-10 Thread Lars Persson
Signed-off-by: Lars Persson --- Documentation/devicetree/bindings/arm/axis.txt | 8 1 file changed, 8 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/axis.txt diff --git a/Documentation/devicetree/bindings/arm/axis.txt b/Documentation/devicetree/bindings/arm

[PATCH 8/8] arm: mach-artpec: add entry to MAINTAINERS

2016-02-10 Thread Lars Persson
Signed-off-by: Lars Persson Signed-off-by: Jesper Nilsson --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7f1fa4f..d32c1aa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -932,6 +932,16 @@ M: Tsahee Zidenberg S: Maintained F

[PATCH 1/8] clk: add device tree binding for artpec-6 pll1 clock

2016-02-10 Thread Lars Persson
Signed-off-by: Lars Persson --- Documentation/devicetree/bindings/clock/artpec6.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/artpec6.txt diff --git a/Documentation/devicetree/bindings/clock/artpec6.txt b/Documentation

[PATCH net 0/5] dwc_eth_qos: stability fixes and support for CMA

2016-02-29 Thread Lars Persson
. The memory allocation was improved to support use of the CMA as DMA allocator backend. Lars Persson (2): dwc_eth_qos: release descriptors outside netif_tx_lock dwc_eth_qos: do phy_start before resetting hardware Rabin Vincent (3): dwc_eth_qos: fix race condition in dwceqos_start_xmit

[PATCH net 4/5] dwc_eth_qos: use DWCEQOS_MSG_DEFAULT

2016-02-29 Thread Lars Persson
Signed-off-by: Lars Persson --- drivers/net/ethernet/synopsys/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/synopsys/dwc_eth_qos.c b/drivers/net/ethernet/synopsys/dwc_eth_qos.c index 3ca2d5c..6897c1d 100644 --- a/drivers/net/ethernet/synopsys

[PATCH net 1/5] dwc_eth_qos: fix race condition in dwceqos_start_xmit

2016-02-29 Thread Lars Persson
From: Rabin Vincent The xmit handler and the tx_reclaim tasklet had a race on the tx_free variable which could lead to a tx timeout if tx_free was updated after the tx complete interrupt. Signed-off-by: Rabin Vincent Signed-off-by: Lars Persson --- drivers/net/ethernet/synopsys/dwc_eth_qos.c

[PATCH net 5/5] dwc_eth_qos: do phy_start before resetting hardware

2016-02-29 Thread Lars Persson
o plug the race with the phy state machine we defer link speed setting until the hardware init has finished. Signed-off-by: Lars Persson --- drivers/net/ethernet/synopsys/dwc_eth_qos.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/net/etherne

[PATCH net 2/5] dwc_eth_qos: release descriptors outside netif_tx_lock

2016-02-29 Thread Lars Persson
. Signed-off-by: Lars Persson --- drivers/net/ethernet/synopsys/dwc_eth_qos.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/synopsys/dwc_eth_qos.c b/drivers/net/ethernet/synopsys/dwc_eth_qos.c index 926db2d..53d48c0 100644 --- a/drivers/net

[PATCH net 3/5] dwc_eth_qos: use GFP_KERNEL in dma_alloc_coherent()

2016-02-29 Thread Lars Persson
From: Rabin Vincent Since we are in non-atomic context here we can pass GFP_KERNEL to dma_alloc_coherent(). This enables use of the CMA. Signed-off-by: Rabin Vincent Signed-off-by: Lars Persson --- drivers/net/ethernet/synopsys/dwc_eth_qos.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH 1/2] clk: add device tree binding for artpec-6 pll1 clock

2016-02-14 Thread Lars Persson
On 02/12/2016 05:39 PM, Rob Herring wrote: On Thu, Feb 11, 2016 at 05:01:03PM +0100, Lars Persson wrote: Add device tree documentation for the main PLL in the Artpec-6 SoC. Roughly how many clocks does this SoC have? It will have 17 clocks declared in the device tree and three SoC-specific

Re: [PATCH 2/2] MIPS: Flush highmem pages from dcache in __flush_icache_page

2016-02-24 Thread Lars Persson
e, before the page is provided to userland. Reviewed-by: Lars Persson Signed-off-by: Paul Burton --- arch/mips/mm/cache.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 3f159ca..734cb2f 100644 --- a/arc

[PATCH v3 1/2] clk: add device tree binding for Artpec-6 clock controller

2016-02-24 Thread Lars Persson
Add device tree documentation for the main clock controller in the Artpec-6 SoC. Acked-by: Rob Herring Signed-off-by: Lars Persson --- .../devicetree/bindings/clock/artpec6.txt | 41 ++ include/dt-bindings/clock/axis,artpec6-clkctrl.h | 38 2

[PATCH v3 0/2] clk: Add Artpec-6 SoC support

2016-02-24 Thread Lars Persson
s from the main clock controller block through one DT node. - Added a header file for the clock indexes. - Refer to clock-bindings.txt in the bindings document. A platform driver was not possible because the clocks are needed earlier in the kernel startup. Lars Persson (2): clk: add device tr

[PATCH v3 2/2] clk: add artpec-6 clock controller

2016-02-24 Thread Lars Persson
Add a driver for the main clock controller of the Artpec-6 Soc. Signed-off-by: Lars Persson --- drivers/clk/Makefile | 1 + drivers/clk/axis/Makefile | 1 + drivers/clk/axis/clk-artpec6.c | 177 + 3 files changed, 179 insertions

[PATCH] ARM: dts: artpec: dual-license on artpec6.dtsi

2016-02-25 Thread Lars Persson
Relaxed the license on the dtsi to permit use in other projects. Signed-off-by: Lars Persson --- arch/arm/boot/dts/artpec6.dtsi | 40 +--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts

[PATCH] ARM: dts: artpec: update clock bindings in artpec6.dtsi

2016-02-25 Thread Lars Persson
The clock bindings for the main clock controller was changed to an indexed controller style binding on request of the clk maintainers. This updates the dtsi to use the new bindings. Signed-off-by: Lars Persson --- Note: This patch depends on a header file delivered through the clk tree in &quo

[PATCH v4 2/2] clk: add artpec-6 clock controller

2016-02-25 Thread Lars Persson
Add a driver for the main clock controller of the Artpec-6 Soc. Signed-off-by: Lars Persson --- drivers/clk/Makefile | 1 + drivers/clk/axis/Makefile | 1 + drivers/clk/axis/clk-artpec6.c | 189 + 3 files changed, 191 insertions

[PATCH v4 1/2] clk: add device tree binding for Artpec-6 clock controller

2016-02-25 Thread Lars Persson
Add device tree documentation for the main clock controller in the Artpec-6 SoC. Acked-by: Rob Herring Signed-off-by: Lars Persson --- .../devicetree/bindings/clock/artpec6.txt | 41 ++ include/dt-bindings/clock/axis,artpec6-clkctrl.h | 38 2

[PATCH v4 0/2] clk: Add Artpec-6 SoC support

2016-02-25 Thread Lars Persson
le for the clock indexes. - Refer to clock-bindings.txt in the bindings document. A platform driver was not possible because the clocks are needed earlier in the kernel startup. Lars Persson (2): clk: add device tree binding for Artpec-6 clock controller clk: add artpec-6 clock controller .../

Re: [PATCH] Revert "MIPS: Remove race window in page fault handling"

2014-12-03 Thread Lars Persson
Hi Leonid First let me describe the mechanism of this race condition, which was a fault in the kernel's MIPS architecture code. Specifically in its implementation of lazy dcache flushing. AFAIK, it would only hit on systems where the pagein code path writes to the page from the CPU. The order of

Re: [PATCH] Revert "MIPS: Remove race window in page fault handling"

2014-12-03 Thread Lars Persson
It is the flush_dcache_page() that was called from the file-system reading the page contents into memory. - Lars On Wed, 2014-12-03 at 14:42 +0100, Ralf Baechle wrote: > Lars, > > normally set_pte_at() is invoked in a > > cache_flush_*() > set_pte_at() > tlb_flush_*() > > sequence. So

Re: [PATCH] Revert "MIPS: Remove race window in page fault handling"

2014-12-03 Thread Lars Persson
Ralf I remember now that we have applied to our tree the proposed patch titled "MIPS HIGHMEM fixes for cache aliasing and non-DMA I/O". This patch changes the semantics of flush_dcache_page() by using page_mapped() instead of mapping_mapped() to decide if the flush should be lazy. Is it this chan

[PATCH 2/2] MIPS: Fix race condition in lazy cache flushing.

2015-02-26 Thread Lars Persson
race window. It also reduces the amount of flushes on non-executable mappings because we never enter __flush_dcache_page() for non-aliasing CPUs. Regressions can occur in drivers that mistakenly relies on the flush_dcache_page() in get_user_pages() for DMA operations. Signed-off-by: Lars Persson

[PATCH 0/2] New fix for icache coherency race

2015-02-26 Thread Lars Persson
tion about the executability of the mapping in set_pte_at() and thus we would have to flush all pages to be safe. http://lists.infradead.org/pipermail/linux-arm-kernel/2010-November/030915.html Lars Persson (2): Revert "MIPS: Remove race window in page fault handling" MIPS: Fix ra

[PATCH 1/2] Revert "MIPS: Remove race window in page fault handling"

2015-02-26 Thread Lars Persson
Revert commit 2a4a8b1e5d9d ("MIPS: Remove race window in page fault handling") because it increased the number of flushed dcache pages and became a performance problem for some workloads. Signed-off-by: Lars Persson --- arch/mips/include/asm/pgtable.h | 10 ++ arch/mips/

[PATCH net v2] net: sched: do not requeue a NULL skb

2016-04-10 Thread Lars Persson
edule call conditional to avoid scheduling an empty queue. Fixes: 55a93b3ea780 ("qdisc: validate skb without holding lock") Signed-off-by: Lars Persson --- net/sched/sch_generic.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/net/sched/sch_generi

Re: [PATCH net v2] net: sched: do not requeue a NULL skb

2016-04-11 Thread Lars Persson
On 04/11/2016 03:23 PM, Eric Dumazet wrote: On Mon, 2016-04-11 at 08:24 +0200, Lars Persson wrote: A failure in validate_xmit_skb_list() triggered an unconditional call to dev_requeue_skb with skb=NULL. This slowly grows the queue discipline's qlen count until all traffic through the

[PATCH net] net: sched: do not requeue a NULL skb

2016-04-06 Thread Lars Persson
A failure in validate_xmit_skb_list() triggered an unconditional call to dev_requeue_skb with skb=NULL. This slowly grows the queue discipline's qlen count until all traffic through the queue stops. Fixes: 55a93b3ea780 ("qdisc: validate skb without holding lock") Signed-off-b

Re: [PATCH v2] ARM: dts: artpec: update clock bindings in artpec6.dtsi

2016-04-24 Thread Lars Persson
> 24 apr. 2016 kl. 01:31 skrev Arnd Bergmann : > >> On Monday 14 March 2016, Lars Persson wrote: >> The clock binding for the main clock controller was changed to an >> indexed controller style binding on request of the clk >> maintainers. This updates th

[PATCH v5 1/2] clk: add device tree binding for Artpec-6 clock controller

2016-03-31 Thread Lars Persson
Add device tree documentation for the main clock controller in the Artpec-6 SoC. Acked-by: Rob Herring Signed-off-by: Lars Persson --- .../devicetree/bindings/clock/artpec6.txt | 41 ++ include/dt-bindings/clock/axis,artpec6-clkctrl.h | 38 2

[PATCH v5 2/2] clk: add artpec-6 clock controller

2016-03-31 Thread Lars Persson
Add a driver for the main clock controller of the Artpec-6 Soc. Signed-off-by: Lars Persson --- MAINTAINERS| 2 +- drivers/clk/Makefile | 1 + drivers/clk/axis/Makefile | 1 + drivers/clk/axis/clk-artpec6.c | 230

[PATCH v5 0/2] clk: Add Artpec-6 SoC support

2016-03-31 Thread Lars Persson
bindings. Changes since v1: - The driver now provides all clocks from the main clock controller block through one DT node. - Added a header file for the clock indexes. - Refer to clock-bindings.txt in the bindings document. Lars Persson (2): clk: add device tree binding for Artpec-6 clock

Re: [PATCH v5 2/2] clk: add artpec-6 clock controller

2016-04-04 Thread Lars Persson
On 04/02/2016 03:39 AM, Stephen Boyd wrote: On 03/31, Lars Persson wrote: diff --git a/drivers/clk/axis/Makefile b/drivers/clk/axis/Makefile new file mode 100644 index 000..628c9d3 --- /dev/null +++ b/drivers/clk/axis/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_MACH_ARTPEC6) += clk-artpec6.o

[PATCH v6 0/2] clk: Add Artpec-6 SoC support

2016-04-04 Thread Lars Persson
the clock indexes. - Refer to clock-bindings.txt in the bindings document. Lars Persson (2): clk: add device tree binding for Artpec-6 clock controller clk: add artpec-6 clock controller Lars Persson (2): clk: add device tree binding for Artpec-6 clock controller clk: add artpec-6 clock

[PATCH v6 2/2] clk: add artpec-6 clock controller

2016-04-04 Thread Lars Persson
Add a driver for the main clock controller of the Artpec-6 Soc. Signed-off-by: Lars Persson --- MAINTAINERS| 2 +- drivers/clk/Makefile | 1 + drivers/clk/axis/Makefile | 1 + drivers/clk/axis/clk-artpec6.c | 242

[PATCH v6 1/2] clk: add device tree binding for Artpec-6 clock controller

2016-04-04 Thread Lars Persson
Add device tree documentation for the main clock controller in the Artpec-6 SoC. Acked-by: Rob Herring Signed-off-by: Lars Persson --- .../devicetree/bindings/clock/artpec6.txt | 41 ++ include/dt-bindings/clock/axis,artpec6-clkctrl.h | 38 2

Re: [PATCH net v2] net: sched: do not requeue a NULL skb

2016-04-11 Thread Lars Persson
On 04/11/2016 04:22 PM, Eric Dumazet wrote: On Mon, 2016-04-11 at 15:38 +0200, Lars Persson wrote: I though it would be prudent because the queue can be non-empty even for the case of skb=NULL. So should it be there in this patch, another patch or not at all ? Then maybe change return code

[PATCH net v3] net: sched: do not requeue a NULL skb

2016-04-11 Thread Lars Persson
known if later packets also will fail in the validate path. Fixes: 55a93b3ea780 ("qdisc: validate skb without holding lock") Signed-off-by: Lars Persson --- v3: After a discussion with Eric and Cong I went back to v1 and added the likely() for the common path. --- net/sched/sch_generic

[PATCH 0/1] arm: Add generic smc wrapper

2015-10-09 Thread Lars Persson
This is intended for new machines that call secure monitors compliant with ARM DEN 0028A. Changes since RFC: * Build only for V6 and V7 CPUs. Lars Persson (1): arm: Add generic smc wrapper arch/arm/include/asm/smc-call.h | 12 arch/arm/kernel/Makefile| 3 +++ arch/arm

[PATCH 1/1] arm: Add generic smc wrapper

2015-10-09 Thread Lars Persson
This adds an smc wrapper according to the ARM standard for secure monitor calling conventions (ARM DEN 0028A). Signed-off-by: Lars Persson --- arch/arm/include/asm/smc-call.h | 12 arch/arm/kernel/Makefile| 3 +++ arch/arm/kernel/smc-call.S | 22

[PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-19 Thread Lars Persson
nce inside move_to_new_page to make it common for both cases. Signed-off-by: Lars Persson --- mm/migrate.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index d4fd680be3b0..80fc19e610b5 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -248

Re: [PATCH 3/7] crypto: axis: no need to check return value of debugfs_create functions

2019-01-22 Thread Lars Persson
On 1/22/19 4:14 PM, Greg Kroah-Hartman wrote: When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Jesper Nilsson Cc: Lars Persson Cc: Herbert Xu Cc: "

Re: [PATCH v2] mm: page_mapped: don't assume compound page is huge or THP

2019-02-04 Thread Lars Persson
On Fri, Nov 30, 2018 at 1:07 PM Jan Stancek wrote: > > LTP proc01 testcase has been observed to rarely trigger crashes > on arm64: > page_mapped+0x78/0xb4 > stable_page_flags+0x27c/0x338 > kpageflags_read+0xfc/0x164 > proc_reg_read+0x7c/0xb8 > __vfs_read+0x58/0x178 > vfs_re

Re: [PATCH 4.14 082/115] cifs: fix memory leak in SMB2_read

2019-05-23 Thread Lars Persson
On Wed, May 15, 2019 at 1:19 PM Greg Kroah-Hartman wrote: > > [ Upstream commit 05fd5c2c61732152a6bddc318aae62d7e436629b ] > > Commit 088aaf17aa79300cab14dbee2569c58cfafd7d6e introduced a leak where > if SMB2_read() returned an error we would return without freeing the > request buffer. > > Cc: St

Re: [PATCH] mmc: remove another TMIO MMC variant usdhi6rol0.c

2019-06-24 Thread Lars Persson
On Fri, Jun 21, 2019 at 12:50 PM Wolfram Sang wrote: > > Hi, > > On Fri, Jun 21, 2019 at 03:16:11PM +0900, Masahiro Yamada wrote: > > (Added Lars Persson, Guennadi Liakhovetski) > > > > On Fri, Jun 21, 2019 at 3:06 PM Masahiro Yamada > > wrote: > > >

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-22 Thread Lars Persson
On Mon, Jul 22, 2019 at 12:18 PM Ilias Apalodimas wrote: > > On Thu, Jul 18, 2019 at 07:48:04AM +, Jose Abreu wrote: > > From: Jon Hunter > > Date: Jul/17/2019, 19:58:53 (UTC+00:00) > > > > > Let me know if you have any thoughts. > > > > Can you try attached patch ? > > > > The log says some

[PATCH] mmc: usdhi6rol0: Add maintainers

2019-07-09 Thread Lars Persson
: I38b6fd0addc1d93ae172332b67e6eb71c0871508 Signed-off-by: Lars Persson --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 677ef41cb012..a91d04e5c084 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1432,6 +1432,7 @@ F:arch/arm/mach-artpec F: arch/arm/boot/dts/artpec6* F

Re: [PATCH v2] mm: page_mapped: don't assume compound page is huge or THP

2019-02-18 Thread Lars Persson
On Tue, Feb 5, 2019 at 8:14 AM Jan Stancek wrote: > Hi, > > are you using THP (CONFIG_TRANSPARENT_HUGEPAGE)? > > The changed line should affect only THP and normal compound pages, > so a test with THP disabled might be interesting. > > > > > The breakage consists of random processes dying with SIG

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-03-07 Thread Lars Persson
On 2/26/19 12:57 PM, Lars Persson wrote: On 2/26/19 11:07 AM, Vlastimil Babka wrote: On 2/26/19 9:40 AM, Lars Persson wrote: What about CC stable and a Fixes tag, would it be applicable here? Yes this is candidate for stable so let's add: Cc: I do not find a good candidate

Re: [PATCH 4.9 069/101] ubi: fastmap: Correctly handle interrupted erasures in EBA

2018-09-23 Thread Lars Persson
ly handle interrupted erasures in EBA This will in turn require also this follow-up patch: 25677478474a91fa1b46f19a4a591a9848bca6fb ubi: Initialize Fastmap checkmapping correctly BR, Lars Persson

Re: [PATCH 4.9 069/101] ubi: fastmap: Correctly handle interrupted erasures in EBA

2018-09-23 Thread Lars Persson
On Sun, Sep 23, 2018 at 2:58 PM Richard Weinberger wrote: > > Lars, > > Am Sonntag, 23. September 2018, 14:49:23 CEST schrieb Lars Persson: > > On Sun, Jul 1, 2018 at 6:27 PM Greg Kroah-Hartman > > wrote: > > > > > > 4.9-stable review patch. I

Re: Synopsys Ethernet QoS Driver

2016-11-23 Thread Lars Persson
> 23 nov. 2016 kl. 12:11 skrev Joao Pinto : > > Hi Peppe and Lars, > >> On 23-11-2016 10:59, Giuseppe CAVALLARO wrote: >> Hello Joao, Lars. >> >>> On 11/22/2016 3:16 PM, Joao Pinto wrote: > Ok, it makes sense. > Just for curiosity the target setup is the following: > https://www.you

Re: Synopsys Ethernet QoS Driver

2016-11-21 Thread Lars Persson
> 21 nov. 2016 kl. 13:53 skrev Giuseppe CAVALLARO : > > Hello Joao > >> On 11/21/2016 1:32 PM, Joao Pinto wrote: >> Hello, >> >>> On 21-11-2016 05:29, Rayagond Kokatanur wrote: On Sat, Nov 19, 2016 at 7:26 PM, Rabin Vincent wrote: > On Fri, Nov 18, 2016 at 02:20:27PM +, Joao Pint

Re: Synopsys Ethernet QoS Driver

2016-11-21 Thread Lars Persson
> 21 nov. 2016 kl. 16:06 skrev Joao Pinto : > >> On 21-11-2016 14:25, Giuseppe CAVALLARO wrote: >>> On 11/21/2016 2:28 PM, Lars Persson wrote: >>> >>> >>>> 21 nov. 2016 kl. 13:53 skrev Giuseppe CAVALLARO : >>>> >>>>

Re: [PATCH] ARM: dts: artpec: update clock bindings in artpec6.dtsi

2016-03-14 Thread Lars Persson
On 03/13/2016 01:14 AM, Olof Johansson wrote: On Thu, Feb 25, 2016 at 10:34:14AM +0100, Lars Persson wrote: The clock bindings for the main clock controller was changed to an indexed controller style binding on request of the clk maintainers. This updates the dtsi to use the new bindings

[PATCH v2] ARM: dts: artpec: update clock bindings in artpec6.dtsi

2016-03-14 Thread Lars Persson
The clock binding for the main clock controller was changed to an indexed controller style binding on request of the clk maintainers. This updates the dtsi to use the new bindings. Signed-off-by: Lars Persson --- v2: Use numerical clock indexes to enable merge before the clock driver bindings

Re: [PATCH 1/4] MIPS: Flush dcache for flush_kernel_dcache_page

2016-03-04 Thread Lars Persson
> 1 mars 2016 kl. 03:38 Paul Burton : > > The flush_kernel_dcache_page function was previously essentially a nop. > This is incorrect for MIPS, where if a page has been modified & either > it aliases or it's executable & the icache doesn't fill from dcache then > the content needs to be written

Re: [PATCH 4/4] MIPS: Sync icache & dcache in set_pte_at

2016-03-04 Thread Lars Persson
d code, typically resulting in a reserved > instruction exception, a trap or a segfault. > > Fix this race condition fully by performing any cache maintenance > required to keep the icache & dcache in sync in set_pte_at, before the > page is made valid. This has the added bonus

Re: [PATCH v4 0/2] clk: Add Artpec-6 SoC support

2016-03-23 Thread Lars Persson
gh a platform driver. Is this the style we should implement ? Best Regards, Lars Persson On 02/25/2016 03:58 PM, Lars Persson wrote: Add clock support for the Artpec-6 SoC port. The ARM parts are in the series "arm: Add Artpec-6 SoC" and it goes through the arm-soc tree. Changes s

[PATCH v2 1/2] clk: add device tree binding for Artpec-6 clock controller

2016-02-19 Thread Lars Persson
Add device tree documentation for the main clock controller in the Artpec-6 SoC. Signed-off-by: Lars Persson --- .../devicetree/bindings/clock/artpec6.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/artpec6

[PATCH v2 0/2] clk: Add Artpec-6 SoC support

2016-02-19 Thread Lars Persson
the clock indexes. - Refer to clock-bindings.txt in the bindings document. A platform driver was not possible because the clocks are needed earlier in the kernel startup. Lars Persson (2): clk: add device tree binding for Artpec-6 clock controller clk: add artpec-6 clock controller .../devicetre

[PATCH v2 2/2] clk: add artpec-6 clock controller

2016-02-19 Thread Lars Persson
Add a driver for the main clock controller of the Artpec-6 Soc. Signed-off-by: Lars Persson --- drivers/clk/Makefile | 1 + drivers/clk/axis/Makefile| 1 + drivers/clk/axis/clk-artpec6.c | 177

[PATCH v2 5/8] arm: dts: add Artpec-6 development board dts

2016-02-11 Thread Lars Persson
Signed-off-by: Lars Persson --- arch/arm/boot/dts/Makefile | 2 ++ arch/arm/boot/dts/artpec6-devboard.dts | 64 ++ 2 files changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/artpec6-devboard.dts diff --git a/arch/arm/boot/dts/Makefile b

[PATCH v2 3/8] arm: add device-tree SoC bindings for Axis Artpec-6

2016-02-11 Thread Lars Persson
This adds device tree bindings for the Artpec-6 SoC. Signed-off-by: Lars Persson --- Documentation/devicetree/bindings/arm/axis.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/axis.txt diff --git a/Documentation

[PATCH v2 6/8] arm: initial machine port for artpec-6 SoC

2016-02-11 Thread Lars Persson
Basic machine port for the Artpec-6 SoC from Axis Communications. Signed-off-by: Lars Persson --- arch/arm/Kconfig | 2 + arch/arm/Makefile| 1 + arch/arm/mach-artpec/Kconfig | 20 ++ arch/arm/mach-artpec/Makefile| 1 + arch/arm

[PATCH v2 2/8] clk: add artpec-6 pll1 clock driver

2016-02-11 Thread Lars Persson
The PLL1 clock is a fixed-factor clock with factors derived from boot mode pins. This driver is a simple wrapper to register the fixed factor clock according to the pin settings. Signed-off-by: Lars Persson --- drivers/clk/Makefile | 1 + drivers/clk/clk-artpec6.c | 70

[PATCH v2 1/8] clk: add device tree binding for artpec-6 pll1 clock

2016-02-11 Thread Lars Persson
Add device tree documentation for the main PLL in the Artpec-6 SoC. Signed-off-by: Lars Persson --- Documentation/devicetree/bindings/clock/artpec6.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/artpec6.txt diff --git a

[PATCH v2 4/8] arm: dts: add Artpec-6 SoC dtsi file

2016-02-11 Thread Lars Persson
Initial device tree for the Artpec-6 SoC. Signed-off-by: Lars Persson --- arch/arm/boot/dts/artpec6.dtsi | 236 + 1 file changed, 236 insertions(+) create mode 100644 arch/arm/boot/dts/artpec6.dtsi diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm

[PATCH v2 7/8] arm: multi_v7_defconfig: add MACH_ARTPEC6

2016-02-11 Thread Lars Persson
Signed-off-by: Lars Persson --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 8e8b2ac..1149642 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs

[PATCH v2 8/8] arm: mach-artpec: add entry to MAINTAINERS

2016-02-11 Thread Lars Persson
Signed-off-by: Lars Persson Signed-off-by: Jesper Nilsson --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7f1fa4f..d32c1aa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -932,6 +932,16 @@ M: Tsahee Zidenberg S: Maintained F

[PATCH v2 0/8] arm: Add Artpec-6 SoC

2016-02-11 Thread Lars Persson
CONFIG_SYNOPSYS_DWC_ETH_QOS to multi_v7_defconfig. - Added binding documentation for axis,artpec6-dev-board. Lars Persson (8): clk: add device tree binding for artpec-6 pll1 clock clk: add artpec-6 pll1 clock driver arm: add device-tree SoC bindings for Axis Artpec-6 arm: dts: add Artpec-6 SoC

[PATCH 0/2] clk: Add Artpec-6 SoC support

2016-02-11 Thread Lars Persson
Add clock support for the Artpec-6 SoC port. The ARM parts are in the series "arm: Add Artpec-6 SoC" and it goes through the arm-soc tree. Lars Persson (2): clk: add device tree binding for artpec-6 pll1 clock clk: add artpec-6 pll1 clock driver .../devicetree/bindings/clock/a

[PATCH 2/2] clk: add artpec-6 pll1 clock driver

2016-02-11 Thread Lars Persson
The PLL1 clock is a fixed-factor clock with factors derived from boot mode pins. This driver is a simple wrapper to register the fixed factor clock according to the pin settings. Signed-off-by: Lars Persson --- drivers/clk/Makefile | 1 + drivers/clk/clk-artpec6.c | 70

  1   2   >