From: Ben Dooks <ben-linux@fluff.org>
To: Kukjin Kim <kgene.kim@samsung.com>
Cc: linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, ben-linux@fluff.org
Subject: Re: [PATCH] ARM: S3C24XX: Fix the S3C24XX_VA_GPIO mapping
Date: Thu, 21 Oct 2010 23:25:46 +0100 [thread overview]
Message-ID: <4CC0BDEA.8090407@fluff.org> (raw)
In-Reply-To: <1287581622-8335-1-git-send-email-kgene.kim@samsung.com>
On 20/10/10 14:33, Kukjin Kim wrote:
> This patch changes the S3C24XX_VA_GPIO for to fix following BUG.
> BUG: not creating mapping for 0x56000000 at 0x01000000 in user region
>
> It is due to commit 8fecfe9d(ARM: SAMSUNG: Move the start address of
> Samsung SoCs' VA space) which changes S3C_ADDR_BASE from 0xF4000000
> to 0xFA000000.
>
> Reported-by: Abhilash Kesavan <a.kesavan@samsung.com>
> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> Cc: Ben Dooks <ben-linux@fluff.org>
> ---
> arch/arm/plat-s3c24xx/include/plat/map.h | 14 +++-----------
> 1 files changed, 3 insertions(+), 11 deletions(-)
>
> diff --git a/arch/arm/plat-s3c24xx/include/plat/map.h b/arch/arm/plat-s3c24xx/include/plat/map.h
> index bd534d3..771491e 100644
> --- a/arch/arm/plat-s3c24xx/include/plat/map.h
> +++ b/arch/arm/plat-s3c24xx/include/plat/map.h
> @@ -61,17 +61,9 @@
>
> /* GPIO ports */
>
> -/* the calculation for the VA of this must ensure that
> - * it is the same distance apart from the UART in the
> - * phsyical address space, as the initial mapping for the IO
> - * is done as a 1:1 mapping. This puts it (currently) at
> - * 0xFA800000, which is not in the way of any current mapping
> - * by the base system.
> -*/
This comment is really important, and it is possible this will
break some of the s3c24xx platforms duing the boot process as
there can be problems during the changes of mmu when booting.
> -#define S3C2410_PA_GPIO (0x56000000)
> -#define S3C24XX_VA_GPIO ((S3C24XX_PA_GPIO - S3C24XX_PA_UART) + S3C24XX_VA_UART)
> -#define S3C24XX_SZ_GPIO SZ_1M
> +#define S3C2410_PA_GPIO (0x56000000)
> +#define S3C24XX_VA_GPIO S3C2410_ADDR(0x00F00000)
> +#define S3C24XX_SZ_GPIO SZ_1M
>
>
> /* ISA style IO, for each machine to sort out mappings for, if it
WARNING: multiple messages have this Message-ID (diff)
From: ben-linux@fluff.org (Ben Dooks)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: S3C24XX: Fix the S3C24XX_VA_GPIO mapping
Date: Thu, 21 Oct 2010 23:25:46 +0100 [thread overview]
Message-ID: <4CC0BDEA.8090407@fluff.org> (raw)
In-Reply-To: <1287581622-8335-1-git-send-email-kgene.kim@samsung.com>
On 20/10/10 14:33, Kukjin Kim wrote:
> This patch changes the S3C24XX_VA_GPIO for to fix following BUG.
> BUG: not creating mapping for 0x56000000 at 0x01000000 in user region
>
> It is due to commit 8fecfe9d(ARM: SAMSUNG: Move the start address of
> Samsung SoCs' VA space) which changes S3C_ADDR_BASE from 0xF4000000
> to 0xFA000000.
>
> Reported-by: Abhilash Kesavan <a.kesavan@samsung.com>
> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> Cc: Ben Dooks <ben-linux@fluff.org>
> ---
> arch/arm/plat-s3c24xx/include/plat/map.h | 14 +++-----------
> 1 files changed, 3 insertions(+), 11 deletions(-)
>
> diff --git a/arch/arm/plat-s3c24xx/include/plat/map.h b/arch/arm/plat-s3c24xx/include/plat/map.h
> index bd534d3..771491e 100644
> --- a/arch/arm/plat-s3c24xx/include/plat/map.h
> +++ b/arch/arm/plat-s3c24xx/include/plat/map.h
> @@ -61,17 +61,9 @@
>
> /* GPIO ports */
>
> -/* the calculation for the VA of this must ensure that
> - * it is the same distance apart from the UART in the
> - * phsyical address space, as the initial mapping for the IO
> - * is done as a 1:1 mapping. This puts it (currently) at
> - * 0xFA800000, which is not in the way of any current mapping
> - * by the base system.
> -*/
This comment is really important, and it is possible this will
break some of the s3c24xx platforms duing the boot process as
there can be problems during the changes of mmu when booting.
> -#define S3C2410_PA_GPIO (0x56000000)
> -#define S3C24XX_VA_GPIO ((S3C24XX_PA_GPIO - S3C24XX_PA_UART) + S3C24XX_VA_UART)
> -#define S3C24XX_SZ_GPIO SZ_1M
> +#define S3C2410_PA_GPIO (0x56000000)
> +#define S3C24XX_VA_GPIO S3C2410_ADDR(0x00F00000)
> +#define S3C24XX_SZ_GPIO SZ_1M
>
>
> /* ISA style IO, for each machine to sort out mappings for, if it
next prev parent reply other threads:[~2010-10-21 22:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 13:33 [PATCH] ARM: S3C24XX: Fix the S3C24XX_VA_GPIO mapping Kukjin Kim
2010-10-20 13:33 ` Kukjin Kim
2010-10-21 22:25 ` Ben Dooks [this message]
2010-10-21 22:25 ` Ben Dooks
2010-10-22 1:41 ` Kukjin Kim
2010-10-22 1:41 ` Kukjin Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CC0BDEA.8090407@fluff.org \
--to=ben-linux@fluff.org \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.