diff mbox

[1/2] ARM: shmobile: r8a7790: smp: remap whole apmu region

Message ID 1422975462-6037-1-git-send-email-wsa@the-dreams.de (mailing list archive)
State Accepted
Commit 1d66f72d2c79b76b7353ea4e42f33521fa839f81
Delegated to: Simon Horman
Headers show

Commit Message

Wolfram Sang Feb. 3, 2015, 2:57 p.m. UTC
From: Wolfram Sang <wsa+renesas@sang-engineering.com>

Documentation says the last register is at 0x184 (CAxCPUCMCR), so use
proper length. Current APMU code accesses CAxCPUnCR which is currently
outside of the remapped area.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 arch/arm/mach-shmobile/smp-r8a7790.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Horman Feb. 11, 2015, 12:33 a.m. UTC | #1
On Tue, Feb 03, 2015 at 03:57:41PM +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> Documentation says the last register is at 0x184 (CAxCPUCMCR), so use
> proper length. Current APMU code accesses CAxCPUnCR which is currently
> outside of the remapped area.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Thanks, and sorry for letting this slip.
I have queued up this and the subsequent patch for v3.21.


> ---
>  arch/arm/mach-shmobile/smp-r8a7790.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c
> index 9c3da1345b8b..a5bef873d37e 100644
> --- a/arch/arm/mach-shmobile/smp-r8a7790.c
> +++ b/arch/arm/mach-shmobile/smp-r8a7790.c
> @@ -37,11 +37,11 @@ static struct rcar_sysc_ch r8a7790_ca7_scu = {
>  
>  static struct rcar_apmu_config r8a7790_apmu_config[] = {
>  	{
> -		.iomem = DEFINE_RES_MEM(0xe6152000, 0x88),
> +		.iomem = DEFINE_RES_MEM(0xe6152000, 0x188),
>  		.cpus = { 0, 1, 2, 3 },
>  	},
>  	{
> -		.iomem = DEFINE_RES_MEM(0xe6151000, 0x88),
> +		.iomem = DEFINE_RES_MEM(0xe6151000, 0x188),
>  		.cpus = { 0x100, 0x0101, 0x102, 0x103 },
>  	}
>  };
> -- 
> 2.1.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-shmobile/smp-r8a7790.c b/arch/arm/mach-shmobile/smp-r8a7790.c
index 9c3da1345b8b..a5bef873d37e 100644
--- a/arch/arm/mach-shmobile/smp-r8a7790.c
+++ b/arch/arm/mach-shmobile/smp-r8a7790.c
@@ -37,11 +37,11 @@  static struct rcar_sysc_ch r8a7790_ca7_scu = {
 
 static struct rcar_apmu_config r8a7790_apmu_config[] = {
 	{
-		.iomem = DEFINE_RES_MEM(0xe6152000, 0x88),
+		.iomem = DEFINE_RES_MEM(0xe6152000, 0x188),
 		.cpus = { 0, 1, 2, 3 },
 	},
 	{
-		.iomem = DEFINE_RES_MEM(0xe6151000, 0x88),
+		.iomem = DEFINE_RES_MEM(0xe6151000, 0x188),
 		.cpus = { 0x100, 0x0101, 0x102, 0x103 },
 	}
 };