[PATCH v2 2/2] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-08-08 Thread Luis Araneda
e4a ("arm: zynq: Add smp support") Signed-off-by: Luis Araneda Cc: sta...@vger.kernel.org --- Changes: v1 -> v2: - Reword commit message to include related commits - Add Fixes tag - Add Cc to stable --- arch/arm/mach-zynq/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 1/2] ARM: zynq: support smp in thumb mode

2019-08-08 Thread Luis Araneda
secondary CPUs on secondary_startup_arm to automatically switch from ARM to thumb on a thumb kernel Signed-off-by: Luis Araneda Suggested-by: Michal Simek --- Changes: v1 -> v2: - Reword commit message to include related commits --- arch/arm/mach-zynq/headsmp.S | 2 ++ arch/arm/mach-zynq/platsm

[PATCH v2 0/2] ARM: zynq: smp improvements

2019-08-08 Thread Luis Araneda
Digilent Zybo Z7 board --- Changes: v1 -> v2: - Reword commit messages to include related commits - Add Fixes tag to relevant commits - Add Cc to stable to relevant commits Luis Araneda (2): ARM: zynq: support smp in thumb mode ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up arch/

Re: [PATCH 2/2] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-08-06 Thread Luis Araneda
Hi Michal, On Tue, Aug 6, 2019 at 2:42 AM Michal Simek wrote: > On 06. 08. 19 5:07, Luis Araneda wrote: > > This fixes a kernel panic (read overflow) on memcpy when > > FORTIFY_SOURCE is enabled. > > > > The computed size of memcpy args are: > > - p_siz

Re: [PATCH 1/2] ARM: zynq: support smp in thumb mode

2019-08-06 Thread Luis Araneda
Hi, On Tue, Aug 6, 2019 at 2:39 AM Michal Simek wrote: > > On 06. 08. 19 5:07, Luis Araneda wrote: > > Add .arm directive to headsmp.S to ensure that the > > CPU starts in 32-bit ARM mode and the correct code > > size is copied on smp bring-up > > > > A

[PATCH 2/2] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-08-05 Thread Luis Araneda
read/write Signed-off-by: Luis Araneda --- arch/arm/mach-zynq/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-zynq/platsmp.c b/arch/arm/mach-zynq/platsmp.c index 38728badabd4..a10085be9073 100644 --- a/arch/arm/mach-zynq/platsmp.c +++ b/arch/arm/mach

[PATCH 0/2] ARM: zynq: smp improvements

2019-08-05 Thread Luis Araneda
Digilent Zybo Z7 board Luis Araneda (2): ARM: zynq: support smp in thumb mode ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up arch/arm/mach-zynq/headsmp.S | 2 ++ arch/arm/mach-zynq/platsmp.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) -- 2.22.0

[PATCH 1/2] ARM: zynq: support smp in thumb mode

2019-08-05 Thread Luis Araneda
: Luis Araneda --- arch/arm/mach-zynq/headsmp.S | 2 ++ arch/arm/mach-zynq/platsmp.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-zynq/headsmp.S b/arch/arm/mach-zynq/headsmp.S index ab85003cf9ad..3449e0d1f990 100644 --- a/arch/arm/mach-zynq/headsmp.S +++ b/arch

Re: [RFC PATCH] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-08-05 Thread Luis Araneda
Hi Michal, Thanks for the review. On Mon, Aug 5, 2019 at 5:53 AM Michal Simek wrote: > > On 31. 07. 19 6:12, Luis Araneda wrote: > > Hi Russell, > > > > Thanks for reviewing. > > > > On Tue, Jul 30, 2019 at 6:47 AM Russell King - ARM Linux admin > > w

Re: [RFC PATCH] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-07-30 Thread Luis Araneda
Hi Russell, Thanks for reviewing. On Tue, Jul 30, 2019 at 6:47 AM Russell King - ARM Linux admin wrote: > > On Tue, Jul 30, 2019 at 12:43:26AM -0400, Luis Araneda wrote: > > This fixes a kernel panic (read overflow) on memcpy when > > FORTIFY_SOURCE is enabled. [...] > >

[RFC PATCH] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up

2019-07-29 Thread Luis Araneda
read/write Signed-off-by: Luis Araneda --- For anyone trying to reproduce / debug this, it panics before the console has any output. I used JTAG to find the panic, but I had to comment-out the call to "zynq_slcr_cpu_stop" as it stops the JTAG interface and the connection is dropped, at

[PATCH v3 6/6] dt-bindings: xilinx: zynq: Add missing boards

2018-07-11 Thread Luis Araneda
The bindings were missing when the device-tree files were added Signed-off-by: Luis Araneda --- .../devicetree/bindings/arm/xilinx.txt | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/xilinx.txt b/Documentation/devicetree

[PATCH v3 5/6] dt-bindings: Move Paralella board to Xilinx

2018-07-11 Thread Luis Araneda
Move the Adapteva Parallela board to Xilinx dt-bindings, as it's based on a Zynq SoC from Xilinx Signed-off-by: Luis Araneda --- Documentation/devicetree/bindings/arm/adapteva.txt | 7 --- Documentation/devicetree/bindings/arm/xilinx.txt | 3 +++ 2 files changed, 3 insertions(

[PATCH v3 0/6] arm: dts: zynq: improvements and cleanup

2018-07-11 Thread Luis Araneda
linx's - Sort additional compatible strings alphabetically by manufacturer - Dropped patch that renamed the zedboard development board (no apparent benefit) - Dropped the patch that removed the "zynq" value from the compatible strings (breaks the ABI) Luis Araneda (6): arm: dt

[PATCH v3 4/6] dt-bindings: xilinx: zynq: Sort entries alphabetically

2018-07-11 Thread Luis Araneda
Sort additional compatible strings (boards) alphabetically by their manufacturer and model number This will help when finding a board because they will be grouped by their manufacturer Signed-off-by: Luis Araneda --- Documentation/devicetree/bindings/arm/xilinx.txt | 6 +++--- 1 file changed

[PATCH v3 3/6] dt-bindings: xilinx: zynq: Improve boards description

2018-07-11 Thread Luis Araneda
Change the description of some boards to make it similar to the value of the model property from their respective device-tree, using the format " " Signed-off-by: Luis Araneda --- Documentation/devicetree/bindings/arm/xilinx.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH v3 1/6] arm: dts: zynq: Set correct manufacturer for ZedBoard and MicroZed boards

2018-07-11 Thread Luis Araneda
Both boards are made by Avnet, Inc. So add an additional value to the compatible property Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-microzed.dts | 2 +- arch/arm/boot/dts/zynq-zed.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/zynq

[PATCH v3 2/6] arm: dts: zynq: correct and improve the model property of dt files

2018-07-11 Thread Luis Araneda
Replace the current value of the model property by a more accurate description of each board (which includes the manufacturer), as some of the boards had the same value ("Xilinx Zynq") Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-cc108.dts | 2 +- arch/arm/boo

Re: [PATCH v2 2/3] dt-bindings: xilinx: Add missing zynq boards and sort entries

2018-07-09 Thread Luis Araneda
Hi Michal, On Mon, Jul 9, 2018 at 4:18 AM Michal Simek wrote: > Please do it with more patches. There are 3 changes in one patch. Ok, I'll split it into 3 different patches on v3. Thanks, Luis Araneda.

[PATCH v2 2/3] dt-bindings: xilinx: Add missing zynq boards and sort entries

2018-07-05 Thread Luis Araneda
The bindings were missing when adding the device-tree files Also, improve description of existing boards, sort them alphabetically by manufacturer, and migrate the contents of adapteva dt dindigns into Xilinx's Signed-off-by: Luis Araneda --- Changes since v1 (RFC): - Don't remove

[PATCH v2 3/3] arm: dts: zynq: correct and improve the model property of dt files

2018-07-05 Thread Luis Araneda
Replace the current value of the model property by a more accurate description of each board (which includes the manufacturer), as some of the boards had the same value ("Xilinx Zynq") Signed-off-by: Luis Araneda --- Changes since v1 (RFC): - No changes arch/arm/boot/dts/zynq

[PATCH v2 1/3] arm: dts: zynq: Set correct manufacturer for ZedBoard and MicroZed boards

2018-07-05 Thread Luis Araneda
Both boards are made by Avnet, Inc. So add an additional value to the compatible property Signed-off-by: Luis Araneda --- Changes since v1 (RFC): - Add values to compatible property instead of replacing them arch/arm/boot/dts/zynq-microzed.dts | 2 +- arch/arm/boot/dts/zynq-zed.dts | 2

[PATCH v2 0/3] arm: dts: zynq: improvements and cleanup

2018-07-05 Thread Luis Araneda
med the zedboard development board (no apparent benefit) - Dropped the patch that removed the "zynq" value from the compatible strings (breaks the ABI) Luis Araneda (3): arm: dts: zynq: Set correct manufacturer for ZedBoard and MicroZed boards dt-bindings: xilinx: Add mis

Re: [RFC PATCH 5/5] arm: dts: zynq: remove "zynq" prefix from compatible property

2018-07-05 Thread Luis Araneda
Hi Rob, On Tue, Jul 3, 2018 at 7:07 PM Rob Herring wrote: > Maybe so, but you can't just go around changing compatible strings. Once > set, it's an ABI. Ok, I'll drop the patch from v2. Thanks, Luis Araneda.

Re: [RFC PATCH 2/5] dt-bindings: xilinx: Add missing zynq boards

2018-07-05 Thread Luis Araneda
Hi Rob, Thanks for reviewing. On Tue, Jul 3, 2018 at 7:04 PM Rob Herring wrote: > > On Thu, Jun 28, 2018 at 01:42:02AM -0400, Luis Araneda wrote: > > +- Adapteva Parallella board > > + "adapteva,parallella" > > This is documented in adapteva.txt, but I'd

Re: [RFC PATCH 5/5] arm: dts: zynq: remove "zynq" prefix from compatible property

2018-07-03 Thread Luis Araneda
ve no problem on dropping the patch if you like. There might be something that I'm not seeing or a use case that I'm missing. Thanks, Luis Araneda.

Re: [RFC PATCH 4/5] arm: dts: zynq: rename board zed to zedboard

2018-07-02 Thread Luis Araneda
ny benefit to rename this > file. If you want to state different compatible string with full board > name I am fine with that but that's it. Ok, I'll drop this patch for V2. Thanks, Luis Araneda.

Re: [RFC PATCH 2/5] dt-bindings: xilinx: Add missing zynq boards

2018-07-02 Thread Luis Araneda
Hi Michal, On Thu, Jun 28, 2018 at 2:44 AM Michal Simek wrote: > > -- Xilinx internal board cc108 > > +- Xilinx CC108 board > > No reason to remove internal word from here. Ok. Thanks, Luis Araneda.

Re: [RFC PATCH 1/5] arm: dts: zynq: Set correct manufacturer for ZedBoard and MicroZed boards

2018-07-02 Thread Luis Araneda
Hi Michal, On Thu, Jun 28, 2018 at 2:37 AM Michal Simek wrote: > > On 28.6.2018 07:42, Luis Araneda wrote: > Unfortunately we don't know who is parsing this string. It means please > keep that origin compatible string there. > > I have no problem with this. > compatible

[RFC PATCH 4/5] arm: dts: zynq: rename board zed to zedboard

2018-06-27 Thread Luis Araneda
The real name of the board is ZedBoard, from Avnet Signed-off-by: Luis Araneda --- Documentation/devicetree/bindings/arm/xilinx.txt | 2 +- arch/arm/boot/dts/Makefile| 2 +- arch/arm/boot/dts/{zynq-zed.dts => zynq-zedboard.dts} | 2 +- 3 files changed

[RFC PATCH 0/5] arm: dts: zynq: improvements and cleanup

2018-06-27 Thread Luis Araneda
e file is renamed to reflect the real model of the device I'm sending the series as an RFC because I don't know if device-tree files can be renamed and properties be changed (the last patch in particular) The patches are sorted (descending) by what I think is the probability of being acc

[RFC PATCH 2/5] dt-bindings: xilinx: Add missing zynq boards

2018-06-27 Thread Luis Araneda
The bindings were missing when adding the device-tree files Also, improve description of existing boards Signed-off-by: Luis Araneda --- .../devicetree/bindings/arm/xilinx.txt| 22 +-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Documentation

[RFC PATCH 5/5] arm: dts: zynq: remove "zynq" prefix from compatible property

2018-06-27 Thread Luis Araneda
The value "zynq" isn't officially part of the model on any board. Additionally, the value is redundant as it's included in a subsequent value of the property. Signed-off-by: Luis Araneda --- .../devicetree/bindings/arm/xilinx.txt| 22 +-- arch/arm/boo

[RFC PATCH 3/5] arm: dts: zynq: correct and improve the model property of dt files

2018-06-27 Thread Luis Araneda
Replace the current value of the model property by a more accurate description of each board (which includes the manufacturer), as some of the boards had the same value ("Xilinx Zynq") Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-cc108.dts | 2 +- arch/arm/boo

[RFC PATCH 1/5] arm: dts: zynq: Set correct manufacturer for ZedBoard and MicroZed boards

2018-06-27 Thread Luis Araneda
Both boards are made by Avnet, Inc. Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-microzed.dts | 2 +- arch/arm/boot/dts/zynq-zed.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/zynq-microzed.dts b/arch/arm/boot/dts/zynq-microzed.dts

[PATCH] dt-bindings: Add vendor prefix for AsusTek Computer Inc.

2018-06-27 Thread Luis Araneda
"AsusTek Computer Inc. is a Taiwanese multinational computer and phone hardware and electronics company headquartered in Beitou District, Taipei, Taiwan." - Wikipedia.org Website: https://www.asus.com The prefix is already in use by at least 5 ARM boards Signed-off-by: Lu

[PATCH] arm: dts: zynq: Fix memory size on the Zybo Z7 board

2018-06-26 Thread Luis Araneda
According to the reference manual, the board has two Micron MT41K256M16HA-125 DDR3L memory ICs, which have 512 MiB each Tested on a ZYBO-Z7-20 board Signed-off-by: Luis Araneda --- arch/arm/boot/dts/zynq-zybo-z7.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm