ARM: EXYNOS5: Fix kernel dump in AFTR idle mode
PATCH 1/1 ARM: EXYNOS5: Fix kernel dump in AFTR idle mode
This patch looks like it should be in the 3.9-stable tree, should we apply it?
------------------
From: "Inderpal Singh <[email protected]>"
commit 088584618836b159947bc4ab5011a5cf1f081a62 upstream
The kernel crashes while resuming from AFTR idle mode. It happens because L2 cache was not going into retention state.
This patch configures the USE_RETENTION bit of ARM_L2_OPTION register so that it does not depend on MANUAL_L2RSTDISABLE_CONTROL of ARM_COMMON_OPTION register for L2RSTDISABLE signal.
--- arch/arm/mach-exynos/include/mach/regs-pmu.h | 1 + arch/arm/mach-exynos/pmu.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-)
(quoted diff) +0 -0
b/arch/arm/mach-exynos/include/mach/regs-pmu.h
index 3f30aa1..57344b7 100644
arch/arm/mach-exynos/include/mach/regs-pmu.h +0 -0
@@ -344,6 +344,7 @@#define EXYNOS5_FSYS_ARM_OPTION
S5P_PMUREG(0x2208)
#define EXYNOS5_ISP_ARM_OPTIONS5P_PMUREG(0x2288)
#define EXYNOS5_ARM_COMMON_OPTIONS5P_PMUREG(0x2408)
+#define EXYNOS5_ARM_L2_OPTIONS5P_PMUREG(0x2608)
#define EXYNOS5_TOP_PWR_OPTIONS5P_PMUREG(0x2C48)
#define EXYNOS5_TOP_PWR_SYSMEM_OPTIONS5P_PMUREG(0x2CC8)
#define EXYNOS5_JPEG_MEM_OPTIONS5P_PMUREG(0x2F48)
arch/arm/mach-exynos/pmu.c +0 -0
@@ -228,6 +228,7 @@ static struct exynos_pmu_conf exynos5250_pmu_config[] =
{
{ EXYNOS5_DIS_IRQ_ISP_ARM_CENTRAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} },
{ EXYNOS5_ARM_COMMON_SYS_PWR_REG, { 0x0, 0x0, 0x2} },
{ EXYNOS5_ARM_L2_SYS_PWR_REG, { 0x3, 0x3, 0x3} },
+ { EXYNOS5_ARM_L2_OPTION, { 0x10, 0x10, 0x0 }
},
{ EXYNOS5_CMU_ACLKSTOP_SYS_PWR_REG, { 0x1, 0x0, 0x1} },
{ EXYNOS5_CMU_SCLKSTOP_SYS_PWR_REG, { 0x1, 0x0, 0x1} },
{ EXYNOS5_CMU_RESET_SYS_PWR_REG, { 0x1, 0x1, 0x0} },
@@ -353,11 +354,9 @@ static void exynos5_init_pmu(void)
/*
* SKIP_DEACTIVATE_ACEACP_IN_PWDN_BITFIELD Enable
- * MANUAL_L2RSTDISABLE_CONTROL_BITFIELD Enable
*/
tmp = __raw_readl(EXYNOS5_ARM_COMMON_OPTION);
- tmp |= (EXYNOS5_MANUAL_L2RSTDISABLE_CONTROL |
- EXYNOS5_SKIP_DEACTIVATE_ACEACP_IN_PWDN);
+ tmp |= EXYNOS5_SKIP_DEACTIVATE_ACEACP_IN_PWDN;
__raw_writel(tmp, EXYNOS5_ARM_COMMON_OPTION);
/*
Signature · 1 line
1.7.9.5
Quoted 2 lines · Jonghwan Choi
This patch looks like it should be in the 3.9-stable tree, should we apply it?
Would you agree that this could also be applied to the 3.5 kernel as well?
Cheers,
--
Luis
Quoted 77 lines
------------------
From: "Inderpal Singh <[email protected]>"
commit
088584618836b159947bc4ab5011a5cf1f081a62upstreamThe kernel crashes while resuming from AFTR idle mode. It happens because L2 cache was not going into retention state.
This patch configures the
USE_RETENTIONbit ofARM_L2_OPTIONregister so that it does not depend onMANUAL_L2RSTDISABLE_CONTROLofARM_COMMON_OPTIONregister for L2RSTDISABLE signal.Signed-off-by Inderpal Singh <[email protected]>Tested-by Chander Kashyap <[email protected]>Signed-off-by Olof Johansson <[email protected]>Signed-off-by Jonghwan Choi <[email protected]>--- arch/arm/mach-exynos/include/mach/regs-pmu.h | 1 + arch/arm/mach-exynos/pmu.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-exynos/include/mach/regs-pmu.h +1
-0@@ -344,6 +344,7 @@#define EXYNOS5_FSYS_ARM_OPTION S5P_PMUREG(0x2208)#define EXYNOS5_ISP_ARM_OPTION S5P_PMUREG(0x2288)#define EXYNOS5_ARM_COMMON_OPTION S5P_PMUREG(0x2408) +#define EXYNOS5_ARM_L2_OPTION
S5P_PMUREG(0x2608)
#defineEXYNOS5_TOP_PWR_OPTIONS5P_PMUREG(0x2C48)
#defineEXYNOS5_TOP_PWR_SYSMEM_OPTIONS5P_PMUREG(0x2CC8)
#defineEXYNOS5_JPEG_MEM_OPTIONS5P_PMUREG(0x2F48)arch/arm/mach-exynos/pmu.c +1
-0@@ -228,6 +228,7 @@ static struct exynos_pmu_conf exynos5250_pmu_config[] = { { EXYNOS5_DIS_IRQ_ISP_ARM_CENTRAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, { EXYNOS5_ARM_COMMON_SYS_PWR_REG, { 0x0, 0x0, 0x2} }, { EXYNOS5_ARM_L2_SYS_PWR_REG, { 0x3, 0x3, 0x3} }, + { EXYNOS5_ARM_L2_OPTION, { 0x10, 0x10, 0x0 } }, { EXYNOS5_CMU_ACLKSTOP_SYS_PWR_REG, { 0x1, 0x0, 0x1} },arch/arm/mach-exynos/pmu.c +1
-3{ EXYNOS5_CMU_SCLKSTOP_SYS_PWR_REG, { 0x1, 0x0, 0x1} }, { EXYNOS5_CMU_RESET_SYS_PWR_REG, { 0x1, 0x1, 0x0} },@@ -353,11 +354,9 @@ static void exynos5_init_pmu(void)/* * SKIP_DEACTIVATE_ACEACP_IN_PWDN_BITFIELD Enable -* MANUAL_L2RSTDISABLE_CONTROL_BITFIELD Enable */ tmp =__raw_readl (EXYNOS5_ARM_COMMON_OPTION ); - tmp |= (EXYNOS5_MANUAL_L2RSTDISABLE_CONTROL | -EXYNOS5_SKIP_DEACTIVATE_ACEACP_IN_PWDN ); + tmp |=EXYNOS5_SKIP_DEACTIVATE_ACEACP_IN_PWDN ;__raw_writel (tmp,EXYNOS5_ARM_COMMON_OPTION );/* Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · jonghwan Choi
Quoted 1 line
Would you agree that this could also be applied to the 3.5 kernel as well?
I believe this is applicable to the 3.5.x kernel tree.
Thanks.
Great, thanks. I'll queue it for 3.5 kernel.
Cheers,
--
Luis
Quoted 100 lines
Quoted 95 lines · Luis Henriques
Quoted 1 line · Jonghwan Choi
This patch looks like it should be in the 3.9-stable tree, should we
apply
Quoted 1 line
it?
Would you agree that this could also be applied to the 3.5 kernel as well?
Cheers,
--
Luisarch/arm/mach-exynos/pmu.c static struct exynos_pmu_conf
Quoted 48 lines
------------------
From: "Inderpal Singh <[email protected]>"
commit
088584618836b159947bc4ab5011a5cf1f081a62upstreamThe kernel crashes while resuming from AFTR idle mode. It happens because L2 cache was not going into retention state.
This patch configures the
USE_RETENTIONbit ofARM_L2_OPTIONregister so that it does not depend onMANUAL_L2RSTDISABLE_CONTROLofARM_COMMON_OPTIONregister for L2RSTDISABLE signal.Signed-off-by Inderpal Singh <[email protected]>Tested-by Chander Kashyap <[email protected]>Signed-off-by Olof Johansson <[email protected]>Signed-off-by Jonghwan Choi <[email protected]>--- arch/arm/mach-exynos/include/mach/regs-pmu.h | 1 + arch/arm/mach-exynos/pmu.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-exynos/include/mach/regs-pmu.h +1
-0@@ -344,6 +344,7 @@#define EXYNOS5_FSYS_ARM_OPTION S5P_PMUREG(0x2208)#define EXYNOS5_ISP_ARM_OPTION S5P_PMUREG(0x2288)#define EXYNOS5_ARM_COMMON_OPTION S5P_PMUREG(0x2408) +#define EXYNOS5_ARM_L2_OPTION
S5P_PMUREG(0x2608)
#defineEXYNOS5_TOP_PWR_OPTIONS5P_PMUREG(0x2C48)
#defineEXYNOS5_TOP_PWR_SYSMEM_OPTIONS5P_PMUREG(0x2CC8)
#defineEXYNOS5_JPEG_MEM_OPTIONS5P_PMUREG(0x2F48)arch/arm/mach-exynos/pmu.c +0
-0@@ -228,6 +228,7 @@ static struct exynos_pmu_confexynos5250_pmu_config[] =
Quoted 25 lines
arch/arm/mach-exynos/pmu.c +1
-0{ { EXYNOS5_DIS_IRQ_ISP_ARM_CENTRAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, { EXYNOS5_ARM_COMMON_SYS_PWR_REG, { 0x0, 0x0, 0x2} }, { EXYNOS5_ARM_L2_SYS_PWR_REG, { 0x3, 0x3, 0x3} }, + { EXYNOS5_ARM_L2_OPTION, { 0x10, 0x10, 0x0 } }, { EXYNOS5_CMU_ACLKSTOP_SYS_PWR_REG, { 0x1, 0x0, 0x1} },{ EXYNOS5_CMU_SCLKSTOP_SYS_PWR_REG, { 0x1, 0x0, 0x1} }, { EXYNOS5_CMU_RESET_SYS_PWR_REG, { 0x1, 0x1, 0x0} },arch/arm/mach-exynos/pmu.c +1
-4@@ -353,11 +354,9 @@ static void exynos5_init_pmu(void)/* * SKIP_DEACTIVATE_ACEACP_IN_PWDN_BITFIELD Enable -* MANUAL_L2RSTDISABLE_CONTROL_BITFIELD Enable */ tmp =__raw_readl (EXYNOS5_ARM_COMMON_OPTION ); - tmp |= (EXYNOS5_MANUAL_L2RSTDISABLE_CONTROL | -EXYNOS5_SKIP_DEACTIVATE_ACEACP_IN_PWDN ); + tmp |=EXYNOS5_SKIP_DEACTIVATE_ACEACP_IN_PWDN ;__raw_writel (tmp,EXYNOS5_ARM_COMMON_OPTION );/* -- 1.7.9.5
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html