Skip to contentSkip to conversation

update axs10x defconfigs

PATCH New Vlad Zakharov 2 participants 4 messages Apr 11, 2017 – Apr 12, 2017

lore
Share & tools
lore
#0 lore raw

cover update axs10x defconfigs

With this patch series we bump Linux kernel to v4.10.8 and U-Boot to v2017.01.

Also it contatins a couple of U-Boot patches for axs103 that introduce important updates for new axs103 hardware version.

Vlad Zakharov (2):
config: update linux and u-boot in axs10x defconfigs
arc: u-boot: Support slave core kick-start on axs103 v1.1

 ...ake-sure-busy-bit-is-set-properly-on-SLC-.patch | 41 ++++++++++++
 .../0001-axs103-Clean-up-smp_kick_all_cpus.patch   | 48 +++++++++++++++
 ...ort-slave-core-kick-start-on-axs103-v1.1-.patch | 72 ++++++++++++++++++++++
 ...s101_defconfig => snps_arc700_axs101_defconfig} |  9 +--
 ...103_defconfig => snps_archs38_axs103_defconfig} | 10 +--
 5 files changed, 172 insertions(+), 8 deletions(-)
 create mode 100644 board/synopsys/axs10x/patches/linux/0001-ARCv2-SLC-Make-sure-busy-bit-is-set-properly-on-SLC-.patch
 create mode 100644 board/synopsys/axs10x/patches/u-boot/0001-axs103-Clean-up-smp_kick_all_cpus.patch
 create mode 100644 board/synopsys/axs10x/patches/u-boot/0002-axs103-Support-slave-core-kick-start-on-axs103-v1.1-.patch
 rename configs/{snps_axs101_defconfig => snps_arc700_axs101_defconfig} (68%)
 rename configs/{snps_axs103_defconfig => snps_archs38_axs103_defconfig} (64%)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 config: update linux and u-boot in axs10x defconfigs

With this commit we update axs10x defconfigs with the following:

- rename "snps_axs101_defconfig" and "snps_axs103_defconfig" with
"snps_arc700_axs101_defconfig" and "snps_archs38_axs103_defconfig"
- bump linux kernel version to 4.10.8
- set up host linux headers to 4.10
- bump u-boot version to 2017.01

---
 configs/{snps_axs101_defconfig => snps_arc700_axs101_defconfig}  | 8 ++++----
 configs/{snps_axs103_defconfig => snps_archs38_axs103_defconfig} | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
 rename configs/{snps_axs101_defconfig => snps_arc700_axs101_defconfig} (74%)
 rename configs/{snps_axs103_defconfig => snps_archs38_axs103_defconfig} (74%)
configs/snps_arc700_axs101_defconfig renamed from configs/snps_axs101_defconfig +4 -4
similarity index 74%
rename from configs/snps_axs101_defconfig
rename to configs/snps_arc700_axs101_defconfig
index 48372ac..dc1810c 100644
@@ -8,19 +8,19 @@ BR2_TARGET_ROOTFS_INITRAMFS=y
 BR2_SYSTEM_DHCP="eth0"
 BR2_ROOTFS_OVERLAY="board/synopsys/axs10x/fs-overlay"
 
-# Linux headers same as kernel, a 4.9 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
+# Linux headers same as kernel, a 4.10 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_10=y
 
 # Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.6"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.10.9"
 BR2_LINUX_KERNEL_DEFCONFIG="axs101"
 
 # Bootloader
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.11"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.01"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="axs101"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
configs/snps_archs38_axs103_defconfig renamed from configs/snps_axs103_defconfig +4 -4
similarity index 74%
rename from configs/snps_axs103_defconfig
rename to configs/snps_archs38_axs103_defconfig
index eb16b70..7100998 100644
@@ -9,19 +9,19 @@ BR2_TARGET_ROOTFS_INITRAMFS=y
 BR2_SYSTEM_DHCP="eth0"
 BR2_ROOTFS_OVERLAY="board/synopsys/axs10x/fs-overlay"
 
-# Linux headers same as kernel, a 4.9 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
+# Linux headers same as kernel, a 4.10 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_10=y
 
 # Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.6"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.10.9"
 BR2_LINUX_KERNEL_DEFCONFIG="axs103_smp"
 
 # Bootloader
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.11"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.01"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="axs103"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 arc: u-boot: Support slave core kick-start on axs103 v1.1

In reply to Vlad Zakharov

With this patch we add a couple of of-the-tree patches for u-boot.

We have an update in hardware that changed the kick-start slave cores procedure. So these patches introduce fixes to work with new axs103 version correctly.

They have been already accepted in upstream u-boot so we need to get rid of them as soon as these updates will get available in buildroot.

---
 .../0001-axs103-Clean-up-smp_kick_all_cpus.patch   | 48 +++++++++++++++
 ...ort-slave-core-kick-start-on-axs103-v1.1-.patch | 72 ++++++++++++++++++++++
 configs/snps_archs38_axs103_defconfig              |  1 +
 3 files changed, 121 insertions(+)
 create mode 100644 board/synopsys/axs10x/patches/u-boot/0001-axs103-Clean-up-smp_kick_all_cpus.patch
 create mode 100644 board/synopsys/axs10x/patches/u-boot/0002-axs103-Support-slave-core-kick-start-on-axs103-v1.1-.patch
board/synopsys/axs10x/patches/u-boot/0001-axs103-Clean-up-smp_kick_all_cpus.patch new file +48 -0
new file mode 100644
index 0000000..cf5122e
@@ -0,0 +1,48 @@
+From ee5a5a51780bcb17e5240335ddfa9c98a0e6f890 Mon Sep 17 00:00:00 2001
+From: Alexey Brodkin <[email protected]>
+Date: Thu, 30 Mar 2017 19:18:30 +0300
+Subject: [PATCH 1/2] axs103: Clean-up smp_kick_all_cpus()
+
+ * Rely on default pulse polarity value
+ * Don't mess with "multicore" value as it doesn't affect execution
+
+In essence we now do a bare minimal stuff:
+ 1) Select HS38x2_1 with CORE_SEL=1 bits
+ 2) Select "manual" core start (via CREG) with START_MODE=0
+ 3) Generate cpu_start pulse with START=1
+
+Signed-off-by: Alexey Brodkin <[email protected]>
+Signed-off-by: Vlad Zakharov <[email protected]>
+---
+ board/synopsys/axs10x/axs10x.c | 12 +++++-------
+ 1 file changed, 5 insertions(+), 7 deletions(-)
+
+diff --git a/board/synopsys/axs10x/axs10x.c b/board/synopsys/axs10x/axs10x.c
+index a5e774b2cf7b..57c790220f71 100644
+--- a/board/synopsys/axs10x/axs10x.c
++++ b/board/synopsys/axs10x/axs10x.c
+@@ -61,16 +61,14 @@ void smp_kick_all_cpus(void)
+ {
+ /* CPU start CREG */
+ #define AXC003_CREG_CPU_START	0xF0001400
+-
+ /* Bits positions in CPU start CREG */
+ #define BITS_START	0
+-#define BITS_POLARITY	8
++#define BITS_START_MODE	4
+ #define BITS_CORE_SEL	9
+-#define BITS_MULTICORE	12
+-
+-#define CMD	(1 << BITS_MULTICORE) | (1 << BITS_CORE_SEL) | \
+-		(1 << BITS_POLARITY) | (1 << BITS_START)
+ 
+-	writel(CMD, (void __iomem *)AXC003_CREG_CPU_START);
++	int cmd = readl((void __iomem *)AXC003_CREG_CPU_START);
++	cmd |= (1 << BITS_CORE_SEL) | (1 << BITS_START);
++	cmd &= ~(1 << BITS_START_MODE);
++	writel(cmd, (void __iomem *)AXC003_CREG_CPU_START);
+ }
+ #endif
+-- 
+2.7.4
+
board/synopsys/axs10x/patches/u-boot/0002-axs103-Support-slave-core-kick-start-on-axs103-v1.1-.patch new file +72 -0

72 lines not on this page · raw message

configs/snps_archs38_axs103_defconfig +1 -0
index 7100998..9021f99 100644
@@ -23,5 +23,6 @@ BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.01"
+BR2_TARGET_UBOOT_PATCH="board/synopsys/axs10x/patches/u-boot"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="axs103"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
Signature · 1 line
2.7.4
#3 lore raw

cover update axs10x defconfigs

In reply to Vlad Zakharov

Hello,

Quoted 2 lines · Vlad Zakharov

config: update linux and u-boot in axs10x defconfigs
arc: u-boot: Support slave core kick-start on axs103 v1.1

I've applied both patches, after tweaking the commit title and commit logs.

For the commit title, could you in the future use:

configs/<name of defconfig>: <what you're doing>

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com