MIPS: BMIPS: Fix missing cbr address
Subsystems (2)
PATCH 1/1 MIPS: BMIPS: Fix missing cbr address
Fixes NULL pointer access in BMIPS3300 RAC flush.
Fixes 738a3f79027b ("MIPS: BMIPS: Add early CPU initialization code")
Signed-off-by Jaedon Shin <[email protected]>
--- arch/mips/kernel/smp-bmips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/kernel/smp-bmips.c +2 -2
@@ -589,11 +589,11 @@ void __init bmips_cpu_setup(void)/* Flush and enable RAC */ cfg =__raw_readl (cbr +BMIPS_RAC_CONFIG ); -__raw_writel (cfg |0x100 ,BMIPS_RAC_CONFIG ); +__raw_writel (cfg |0x100 , cbr +BMIPS_RAC_CONFIG );__raw_readl (cbr +BMIPS_RAC_CONFIG ); cfg =__raw_readl (cbr +BMIPS_RAC_CONFIG ); -__raw_writel (cfg |0xf ,BMIPS_RAC_CONFIG ); +__raw_writel (cfg |0xf , cbr +BMIPS_RAC_CONFIG );__raw_readl (cbr +BMIPS_RAC_CONFIG ); cfg =__raw_readl (cbr +BMIPS_RAC_ADDRESS_RANGE );
Signature · 1 line
2.13.1
Quoted 4 lines · Jaedon Shin
Fixes NULL pointer access in BMIPS3300 RAC flush.
Fixes 738a3f79027b ("MIPS: BMIPS: Add early CPU initialization code")Signed-off-by Jaedon Shin <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Good catch, sorry about that!
Signature · 1 line
Florian
Quoted 4 lines · Jaedon Shin
Fixes NULL pointer access in BMIPS3300 RAC flush.
Fixes 738a3f79027b ("MIPS: BMIPS: Add early CPU initialization code")Signed-off-by Jaedon Shin <[email protected]>
Thanks. Applied for 4.14.
Cheers
James
Quoted 26 lines
--- arch/mips/kernel/smp-bmips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/mips/kernel/smp-bmips.c +2
-2@@ -589,11 +589,11 @@ void __init bmips_cpu_setup(void)/* Flush and enable RAC */ cfg =__raw_readl (cbr +BMIPS_RAC_CONFIG ); -__raw_writel (cfg |0x100 ,BMIPS_RAC_CONFIG ); +__raw_writel (cfg |0x100 , cbr +BMIPS_RAC_CONFIG );__raw_readl (cbr +BMIPS_RAC_CONFIG ); cfg =__raw_readl (cbr +BMIPS_RAC_CONFIG ); -__raw_writel (cfg |0xf ,BMIPS_RAC_CONFIG ); +__raw_writel (cfg |0xf , cbr +BMIPS_RAC_CONFIG );__raw_readl (cbr +BMIPS_RAC_CONFIG ); cfg =__raw_readl (cbr +BMIPS_RAC_ADDRESS_RANGE );Signature · 1 line
2.13.1