Re: [PATCH CFT] ARM:S3C24XX: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default

2013-12-13 Thread Heiko Stübner
Am Freitag, 13. Dezember 2013, 12:28:25 schrieb panchaxari:
> Configs ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR are enabled as default
> to platform S3C24XX.
> 
> Introduction of PHYS_VIRT config as default would enable phy-to-virt and
> virt-to-phy translation function at boot and module loading time
> and enforce dynamic reallocation of memory. AUTO_ZRELADDR config would
> enable calculation of kernel load address at run time.
> 
> PHYS_VIRT config is mutually exclusive to XIP_KERNEL, XIP_KERNEL is used in
> systems with NOR flash devices, and ZRELADDR config is mutually exclusive
> to ZBOOT_ROM.
> 
> CFT::Call For Testing
> 
> Requesting maintainers of S3C24XX  platforms to evaluate the changes on the
> board and comment, as I dont have the board for testing and also requesting
> an ACK the changes.
> 
> Signed-off-by: panchaxari 
> Cc: Heiko Stuebner 
> Cc: Ben Dooks 
> Cc: Kukjin Kim 
> Cc: Russell King 
> Cc: Linus Walleij 
> Cc: linux-arm-ker...@lists.infradead.org
> Cc: linux-samsung-...@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org

apart from the possible issue Vasily pointed out, my current kernels for 
s3c2442 and s3c2416 seem to work flawlessly with AUTO_ZRELADDR and 
ARM_PATCH_PHYS_VIRT.

I just checked the configs and it seems these options get automatically 
selected and must be specially deselected by the user.


Heiko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH CFT] ARM:S3C24XX: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default

2013-12-13 Thread Vasily Khoruzhick
On Fri, Dec 13, 2013 at 2:28 PM, panchaxari
 wrote:
> Configs ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR are enabled as default
> to platform S3C24XX.
>
> Introduction of PHYS_VIRT config as default would enable phy-to-virt and
> virt-to-phy translation function at boot and module loading time
> and enforce dynamic reallocation of memory. AUTO_ZRELADDR config would
> enable calculation of kernel load address at run time.
>
> PHYS_VIRT config is mutually exclusive to XIP_KERNEL, XIP_KERNEL is used in
> systems with NOR flash devices, and ZRELADDR config is mutually exclusive
> to ZBOOT_ROM.
>
> CFT::Call For Testing
>
> Requesting maintainers of S3C24XX  platforms to evaluate the changes on the
> board and comment, as I dont have the board for testing and also requesting
> an ACK the changes.

Hi,

I guess AUTO_ZRELADDR will break S2RAM on h1940/rx1950 and rx3715
machines. Those machines require reservation of 4k at 0x30003000 and
4k at 0x30081000, because bootloader
will corrupt these areas on resume. See .reserve callback in
arch/arm/mach-s3c24xx/mach-{h1940,rx1950,rx3715}

Regards
Vasily

>
> Signed-off-by: panchaxari 
> Cc: Heiko Stuebner 
> Cc: Ben Dooks 
> Cc: Kukjin Kim 
> Cc: Russell King 
> Cc: Linus Walleij 
> Cc: linux-arm-ker...@lists.infradead.org
> Cc: linux-samsung-...@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
>
> ---
> S3C24XX is basically a Samsung SOC with ARM920T instruction set, and has
> an operating frquency of 203MHz, it also has enhanced MMU architecture
> to support WinCE, EPOC 32 and Linux.
>
> This SOC is an Integrated system for hand-held devices and general
> embedded systems.
>
> Supports various types of ROM for booting (NOR/NAND Flash, EEPROM, and 
> others).
> Supports 8 memory banks, 128M for each bank, with a total of 1GB.
> ---
>  arch/arm/Kconfig |2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 32acacb..ec1faea 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -708,6 +708,8 @@ config ARCH_S3C24XX
> bool "Samsung S3C24XX SoCs"
> select ARCH_HAS_CPUFREQ
> select ARCH_REQUIRE_GPIOLIB
> +   select ARM_PATCH_PHYS_VIRT
> +   select AUTO_ZRELADDR
> select CLKDEV_LOOKUP
> select CLKSRC_SAMSUNG_PWM
> select GENERIC_CLOCKEVENTS
> --
> 1.7.10.4
>
>
> ___
> linux-arm-kernel mailing list
> linux-arm-ker...@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH CFT] ARM:S3C24XX: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default

2013-12-13 Thread panchaxari
Configs ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR are enabled as default
to platform S3C24XX.

Introduction of PHYS_VIRT config as default would enable phy-to-virt and
virt-to-phy translation function at boot and module loading time
and enforce dynamic reallocation of memory. AUTO_ZRELADDR config would
enable calculation of kernel load address at run time.

PHYS_VIRT config is mutually exclusive to XIP_KERNEL, XIP_KERNEL is used in
systems with NOR flash devices, and ZRELADDR config is mutually exclusive
to ZBOOT_ROM.

CFT::Call For Testing

Requesting maintainers of S3C24XX  platforms to evaluate the changes on the
board and comment, as I dont have the board for testing and also requesting
an ACK the changes.

Signed-off-by: panchaxari 
Cc: Heiko Stuebner 
Cc: Ben Dooks 
Cc: Kukjin Kim 
Cc: Russell King 
Cc: Linus Walleij 
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-samsung-...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
S3C24XX is basically a Samsung SOC with ARM920T instruction set, and has
an operating frquency of 203MHz, it also has enhanced MMU architecture
to support WinCE, EPOC 32 and Linux.

This SOC is an Integrated system for hand-held devices and general
embedded systems.

Supports various types of ROM for booting (NOR/NAND Flash, EEPROM, and others).
Supports 8 memory banks, 128M for each bank, with a total of 1GB.
---
 arch/arm/Kconfig |2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 32acacb..ec1faea 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -708,6 +708,8 @@ config ARCH_S3C24XX
bool "Samsung S3C24XX SoCs"
select ARCH_HAS_CPUFREQ
select ARCH_REQUIRE_GPIOLIB
+   select ARM_PATCH_PHYS_VIRT
+   select AUTO_ZRELADDR
select CLKDEV_LOOKUP
select CLKSRC_SAMSUNG_PWM
select GENERIC_CLOCKEVENTS
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH CFT] ARM:S3C24XX: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default

2013-12-13 Thread panchaxari
Configs ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR are enabled as default
to platform S3C24XX.

Introduction of PHYS_VIRT config as default would enable phy-to-virt and
virt-to-phy translation function at boot and module loading time
and enforce dynamic reallocation of memory. AUTO_ZRELADDR config would
enable calculation of kernel load address at run time.

PHYS_VIRT config is mutually exclusive to XIP_KERNEL, XIP_KERNEL is used in
systems with NOR flash devices, and ZRELADDR config is mutually exclusive
to ZBOOT_ROM.

CFT::Call For Testing

Requesting maintainers of S3C24XX  platforms to evaluate the changes on the
board and comment, as I dont have the board for testing and also requesting
an ACK the changes.

Signed-off-by: panchaxari panchaxari.prasannamur...@linaro.org
Cc: Heiko Stuebner he...@sntech.de
Cc: Ben Dooks ben-li...@fluff.org
Cc: Kukjin Kim kgene@samsung.com
Cc: Russell King li...@arm.linux.org.uk
Cc: Linus Walleij linus.wall...@linaro.org
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-samsung-...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
S3C24XX is basically a Samsung SOC with ARM920T instruction set, and has
an operating frquency of 203MHz, it also has enhanced MMU architecture
to support WinCE, EPOC 32 and Linux.

This SOC is an Integrated system for hand-held devices and general
embedded systems.

Supports various types of ROM for booting (NOR/NAND Flash, EEPROM, and others).
Supports 8 memory banks, 128M for each bank, with a total of 1GB.
---
 arch/arm/Kconfig |2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 32acacb..ec1faea 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -708,6 +708,8 @@ config ARCH_S3C24XX
bool Samsung S3C24XX SoCs
select ARCH_HAS_CPUFREQ
select ARCH_REQUIRE_GPIOLIB
+   select ARM_PATCH_PHYS_VIRT
+   select AUTO_ZRELADDR
select CLKDEV_LOOKUP
select CLKSRC_SAMSUNG_PWM
select GENERIC_CLOCKEVENTS
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH CFT] ARM:S3C24XX: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default

2013-12-13 Thread Vasily Khoruzhick
On Fri, Dec 13, 2013 at 2:28 PM, panchaxari
panchaxari.prasannamur...@linaro.org wrote:
 Configs ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR are enabled as default
 to platform S3C24XX.

 Introduction of PHYS_VIRT config as default would enable phy-to-virt and
 virt-to-phy translation function at boot and module loading time
 and enforce dynamic reallocation of memory. AUTO_ZRELADDR config would
 enable calculation of kernel load address at run time.

 PHYS_VIRT config is mutually exclusive to XIP_KERNEL, XIP_KERNEL is used in
 systems with NOR flash devices, and ZRELADDR config is mutually exclusive
 to ZBOOT_ROM.

 CFT::Call For Testing

 Requesting maintainers of S3C24XX  platforms to evaluate the changes on the
 board and comment, as I dont have the board for testing and also requesting
 an ACK the changes.

Hi,

I guess AUTO_ZRELADDR will break S2RAM on h1940/rx1950 and rx3715
machines. Those machines require reservation of 4k at 0x30003000 and
4k at 0x30081000, because bootloader
will corrupt these areas on resume. See .reserve callback in
arch/arm/mach-s3c24xx/mach-{h1940,rx1950,rx3715}

Regards
Vasily


 Signed-off-by: panchaxari panchaxari.prasannamur...@linaro.org
 Cc: Heiko Stuebner he...@sntech.de
 Cc: Ben Dooks ben-li...@fluff.org
 Cc: Kukjin Kim kgene@samsung.com
 Cc: Russell King li...@arm.linux.org.uk
 Cc: Linus Walleij linus.wall...@linaro.org
 Cc: linux-arm-ker...@lists.infradead.org
 Cc: linux-samsung-...@vger.kernel.org
 Cc: linux-kernel@vger.kernel.org

 ---
 S3C24XX is basically a Samsung SOC with ARM920T instruction set, and has
 an operating frquency of 203MHz, it also has enhanced MMU architecture
 to support WinCE, EPOC 32 and Linux.

 This SOC is an Integrated system for hand-held devices and general
 embedded systems.

 Supports various types of ROM for booting (NOR/NAND Flash, EEPROM, and 
 others).
 Supports 8 memory banks, 128M for each bank, with a total of 1GB.
 ---
  arch/arm/Kconfig |2 ++
  1 file changed, 2 insertions(+)

 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
 index 32acacb..ec1faea 100644
 --- a/arch/arm/Kconfig
 +++ b/arch/arm/Kconfig
 @@ -708,6 +708,8 @@ config ARCH_S3C24XX
 bool Samsung S3C24XX SoCs
 select ARCH_HAS_CPUFREQ
 select ARCH_REQUIRE_GPIOLIB
 +   select ARM_PATCH_PHYS_VIRT
 +   select AUTO_ZRELADDR
 select CLKDEV_LOOKUP
 select CLKSRC_SAMSUNG_PWM
 select GENERIC_CLOCKEVENTS
 --
 1.7.10.4


 ___
 linux-arm-kernel mailing list
 linux-arm-ker...@lists.infradead.org
 http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH CFT] ARM:S3C24XX: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default

2013-12-13 Thread Heiko Stübner
Am Freitag, 13. Dezember 2013, 12:28:25 schrieb panchaxari:
 Configs ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR are enabled as default
 to platform S3C24XX.
 
 Introduction of PHYS_VIRT config as default would enable phy-to-virt and
 virt-to-phy translation function at boot and module loading time
 and enforce dynamic reallocation of memory. AUTO_ZRELADDR config would
 enable calculation of kernel load address at run time.
 
 PHYS_VIRT config is mutually exclusive to XIP_KERNEL, XIP_KERNEL is used in
 systems with NOR flash devices, and ZRELADDR config is mutually exclusive
 to ZBOOT_ROM.
 
 CFT::Call For Testing
 
 Requesting maintainers of S3C24XX  platforms to evaluate the changes on the
 board and comment, as I dont have the board for testing and also requesting
 an ACK the changes.
 
 Signed-off-by: panchaxari panchaxari.prasannamur...@linaro.org
 Cc: Heiko Stuebner he...@sntech.de
 Cc: Ben Dooks ben-li...@fluff.org
 Cc: Kukjin Kim kgene@samsung.com
 Cc: Russell King li...@arm.linux.org.uk
 Cc: Linus Walleij linus.wall...@linaro.org
 Cc: linux-arm-ker...@lists.infradead.org
 Cc: linux-samsung-...@vger.kernel.org
 Cc: linux-kernel@vger.kernel.org

apart from the possible issue Vasily pointed out, my current kernels for 
s3c2442 and s3c2416 seem to work flawlessly with AUTO_ZRELADDR and 
ARM_PATCH_PHYS_VIRT.

I just checked the configs and it seems these options get automatically 
selected and must be specially deselected by the user.


Heiko
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/