Skip to contentSkip to conversation

linux-qoriq: fix the kernel hang issue under binutils-2.26

PATCH In review Zhenhua Luo 1 participant 2 messages Jun 12, 2016 – Jun 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-qoriq: fix the kernel hang issue under binutils-2.26

Skip the incorrect instructions for e500mc to fix kernel hang issue.

---
 ...correct-instructions-to-fix-kernel-hang-i.patch | 25 ++++++++++++++++++++++
 recipes-kernel/linux/linux-qoriq_3.12.bb           |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 recipes-kernel/linux/files/skip-the-incorrect-instructions-to-fix-kernel-hang-i.patch
recipes-kernel/linux/files/skip-the-incorrect-instructions-to-fix-kernel-hang-i.patch new file +25 -0
new file mode 100644
index 0000000..cd65192
@@ -0,0 +1,25 @@
+skip the incorrect instructions for e500mc to fix kernel hang issue
+
+Signed-off-by: Zhenhua Luo <[email protected]>
+
+Upstream-Status: Pending
+---
+ arch/powerpc/kernel/idle_e500.S | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/powerpc/kernel/idle_e500.S b/arch/powerpc/kernel/idle_e500.S
+index 1544866..4e835cd 100644
+--- a/arch/powerpc/kernel/idle_e500.S
++++ b/arch/powerpc/kernel/idle_e500.S
+@@ -26,7 +26,7 @@ _GLOBAL(e500_idle)
+ 	ori	r4,r4,_TLF_NAPPING	/* so when we take an exception */
+ 	stw	r4,TI_LOCAL_FLAGS(r3)	/* it will return to our caller */
+ 
+-#ifdef CONFIG_PPC_E500MC
++#ifdef FALSE
+ 	wrteei	1
+ 1:	wait
+ 
+-- 
+2.5.0
+
recipes-kernel/linux/linux-qoriq_3.12.bb +1 -0
index 744aa4e..496d744 100644
@@ -6,5 +6,6 @@ SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;branch=sdk-v1.9.x \
     file://0001-powerpc-Align-TOC-to-256-bytes.patch \
     file://fix-the-compile-issue-under-gcc6.patch \
     file://module-remove-MODULE_GENERIC_TABLE.patch \
+    file://skip-the-incorrect-instructions-to-fix-kernel-hang-i.patch \
 "
 SRCREV = "43cecda943a6c40a833b588801b0929e8bd48813"
Signature · 1 line
2.4.11
#1 lore raw

Please ignore this patch, the following binutils patch is submitted.

http://patchwork.openembedded.org/patch/124641/

Best Regards,

Zhenhua

Quoted 68 lines

-----Original Message-----
From: Zhenhua Luo [mailto:[email protected]]
Sent: Sunday, June 12, 2016 2:08 PM
To: [email protected]
Cc: Zhenhua Luo <[email protected]>
Subject: [meta-fsl-ppc][PATCH] linux-qoriq: fix the kernel hang issue under binutils-2.26

Skip the incorrect instructions for e500mc to fix kernel hang issue.

---
 ...correct-instructions-to-fix-kernel-hang-i.patch | 25
++++++++++++++++++++++
 recipes-kernel/linux/linux-qoriq_3.12.bb           |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 recipes-kernel/linux/files/skip-the-incorrect-instructions-

to-fix-kernel-hang-i.patch

(quoted diff) +0 -0

kernel-hang-i.patch b/recipes-kernel/linux/files/skip-the-incorrect- instructions-to-fix-kernel-hang-i.patch
new file mode 100644
index 0000000..cd65192

recipes-kernel/linux/files/skip-the-incorrect-instructions-to-fix- new file +26 -0
+++ kernel-hang-i.patch
@@ -0,0 +1,25 @@
+skip the incorrect instructions for e500mc to fix kernel hang issue
+
+Signed-off-by: Zhenhua Luo <[email protected]>
+
+Upstream-Status: Pending
+---
+ arch/powerpc/kernel/idle_e500.S | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/powerpc/kernel/idle_e500.S
+b/arch/powerpc/kernel/idle_e500.S index 1544866..4e835cd 100644
+--- a/arch/powerpc/kernel/idle_e500.S
++++ b/arch/powerpc/kernel/idle_e500.S
+@@ -26,7 +26,7 @@ _GLOBAL(e500_idle)
+ 	ori	r4,r4,_TLF_NAPPING	/* so when we take an exception */
+ 	stw	r4,TI_LOCAL_FLAGS(r3)	/* it will return to our caller */
+
+-#ifdef CONFIG_PPC_E500MC
++#ifdef FALSE
+ 	wrteei	1
+ 1:	wait
+
+--
+2.5.0
+
recipes- renamed from recipes-kernel/linux/linux-qoriq_3.12.bb +0 -0

kernel/linux/linux-qoriq_3.12.bb
index 744aa4e..496d744 100644

recipes-kernel/linux/linux-qoriq_3.12.bb +1 -0
@@ -6,5 +6,6 @@ SRC_URI =
 "git://git.freescale.com/ppc/sdk/linux.git;branch=sdk-v1.9.x \
     file://0001-powerpc-Align-TOC-to-256-bytes.patch \
     file://fix-the-compile-issue-under-gcc6.patch \
     file://module-remove-MODULE_GENERIC_TABLE.patch \
+    file://skip-the-incorrect-instructions-to-fix-kernel-hang-i.patch \
 "

SRCREV = "43cecda943a6c40a833b588801b0929e8bd48813"
--
2.4.11