User/kernel memory split
Hi All
Has anyone tried 3.5G/1.5G user/kernel memory split. Are there any know issues in this.
Thanks
Hemanth
arch/arm/Kconfig
choice
prompt "Memory split"
default VMSPLIT_3G
help
Select the desired split between kernel and user memory.
If you are not absolutely sure what you are doing, leave this option alone!
config VMSPLIT_3G
bool "3G/1G user/kernel split"
config VMSPLIT_2G
bool "2G/2G user/kernel split"
config VMSPLIT_1G
bool "1G/3G user/kernel split"
Quoted 1 line · Hemanth V
Has anyone tried 3.5G/1.5G user/kernel memory split.
No such thing is possible. 3.5G/0.5G or 2.5G/1.5G both fit in the available 4G.
However, what I suggest is looking at highmem rather than changing the split.
Hemanth,
Why do you want the split? Do you have physical mem > 1G in your system?
Thanks,
-Romit
Quoted 37 lines
-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of V, Hemanth
Sent: Monday, July 06, 2009 3:23 PM
To: [email protected]; [email protected]
Subject: User/kernel memory splitHi All
Has anyone tried 3.5G/1.5G user/kernel memory split. Are there any know issues in this.
Thanks
Hemanth
arch/arm/Kconfig
choice
prompt "Memory split"
defaultVMSPLIT_3G
help
Select the desired split between kernel and user memory.If you are not absolutely sure what you are doing, leave this option alone!
config
VMSPLIT_3G
bool "3G/1G user/kernel split"
configVMSPLIT_2G
bool "2G/2G user/kernel split"
configVMSPLIT_1G
bool "1G/3G user/kernel split"--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
----- Original Message ----- From: "Dasgupta, Romit" <[email protected]>
Hemanth,
Why do you want the split? Do you have physical mem > 1G
in your system?
We want to fit 512MB RAM on 2.6.27 Kernel which doesnot have highmem option. We also donot want to disturb the current I/O memory map
Quoted 37 lines
-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of V, Hemanth
Sent: Monday, July 06, 2009 3:23 PM
To: [email protected]; [email protected]
Subject: User/kernel memory splitHi All
Has anyone tried 3.5G/1.5G user/kernel memory split. Are there any know issues in this.
Thanks
Hemanth
arch/arm/Kconfig
choice
prompt "Memory split"
defaultVMSPLIT_3G
help
Select the desired split between kernel and user memory.If you are not absolutely sure what you are doing, leave this option alone!
config
VMSPLIT_3G
bool "3G/1G user/kernel split"
configVMSPLIT_2G
bool "2G/2G user/kernel split"
configVMSPLIT_1G
bool "1G/3G user/kernel split"--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hemanth,
I might be missing something but please see below:
Quoted 8 lines
Hemanth,
Why do you want the split? Do you have physical mem > 1G
in your system?We want to fit 512MB RAM on 2.6.27 Kernel which doesnot have highmem option. We also donot want to disturb the current I/O memory map
[Romit] As long as your physical memory is slightly less than 1GB, I do not think highmem is necessary.
For I/O map: Kernel virtual addresses start from 0xC0000000. Adding 512M to it gives 0xE0000000. So the virtual memory for IO space needs to be after this.
Currently the IO Map is
#define L4_WK_34XX_PHYS L4_WK_34XX_BASE /* 0x48300000 */ #define L4_WK_34XX_VIRT 0xd8300000 #define L4_WK_34XX_SIZE SZ_1M
#define L4_PER_34XX_VIRT 0xd9000000 #define L4_PER_34XX_SIZE SZ_1M #define L4_EMU_34XX_VIRT 0xe4000000 #define L4_EMU_34XX_SIZE SZ_64M
#define OMAP34XX_GPMC_PHYS OMAP34XX_GPMC_BASE /* 0x6E000000 */ #define OMAP34XX_GPMC_VIRT 0xFE000000 #define OMAP34XX_GPMC_SIZE SZ_1M
#define OMAP343X_SMS_VIRT 0xFC000000
#define OMAP343X_SMS_SIZE SZ_1M
#define OMAP343X_SDRC_PHYS OMAP343X_SDRC_BASE /* 0x6D000000 */ #define OMAP343X_SDRC_VIRT 0xFD000000 #define OMAP343X_SDRC_SIZE SZ_1M
This is a problem as the existing virtual memory maps for I/O space would overlap with 512M SDRAM. So, we need to redefine the virtual mapping after 0xe0000000. The IO_OFFSET is 0x90000000 currently.
For L4_WK_34XX_VIRT we need a minimum of 0xe0000000 - 0x48300000 i.e. 0x97D00000 as the new IO_OFFSET. But using this new IO_OFFSET for mapping OMAP343x_GPMC_VIRT would result in an overflow(0x6E000000 + 0x97D00000 = 0x105D00000).
Using ioremap for these regions might help. But this needs changes to most drivers. In that case these static mappings could go away and I think they should. Some ARM kernel expert may comment!
-Romit
Romit,
Quoted 58 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dasgupta, Romit
Sent: Monday, July 06, 2009 5:00 PM
To: V, Hemanth; [email protected]; [email protected]
Subject: RE: User/kernel memory splitHemanth,
I might be missing something but please see below:Quoted 4 lines
Hemanth,
Why do you want the split? Do you havephysical mem > 1G
Quoted 3 lines
in your system?
We want to fit 512MB RAM on 2.6.27 Kernel which doesnot have
highmem option.
Quoted 1 line
We also donot want to disturb the current I/O memory map
[Romit] As long as your physical memory is slightly less than 1GB, I do not think highmem is necessary.
For I/O map: Kernel virtual addresses start from0xC0000000. Adding 512M to it gives0xE0000000. So the virtual memory for IO space needs to be after this.Currently the IO Map is
#define L4_WK_34XX_PHYS L4_WK_34XX_BASE /* 0x48300000 */ #define L4_WK_34XX_VIRT 0xd8300000 #define L4_WK_34XX_SIZE SZ_1M#define L4_PER_34XX_VIRT 0xd9000000 #define L4_PER_34XX_SIZE SZ_1M #define L4_EMU_34XX_VIRT 0xe4000000 #define L4_EMU_34XX_SIZE SZ_64M#define OMAP34XX_GPMC_PHYS OMAP34XX_GPMC_BASE /* 0x6E000000 */ #define OMAP34XX_GPMC_VIRT 0xFE000000 #define OMAP34XX_GPMC_SIZE SZ_1M#define
OMAP343X_SMS_VIRT0xFC000000
#defineOMAP343X_SMS_SIZESZ_1M#define OMAP343X_SDRC_PHYS OMAP343X_SDRC_BASE /* 0x6D000000 */ #define OMAP343X_SDRC_VIRT 0xFD000000 #define OMAP343X_SDRC_SIZE SZ_1MThis is a problem as the existing virtual memory maps for I/O space would overlap with 512M SDRAM. So, we need to redefine the virtual mapping after
0xe0000000. TheIO_OFFSETis0x90000000currently.For
L4_WK_34XX_VIRTwe need a minimum of0xe0000000-0x48300000i.e.0x97D00000as the newIO_OFFSET. But using this newIO_OFFSETfor mappingOMAP343x_GPMC_VIRTwould result in an overflow(0x6E000000 +0x97D00000=0x105D00000).
Quoted 4 lines
Using ioremap for these regions might help. But this needs changes to most drivers. In that case these static mappings could go away and I think they should. Some ARM kernel expert may comment!
These points were discussed in below thread.
http://lists.arm.linux.org.uk/lurker/message/20090626.181403.55450a9c.en.html
So are driver owners going to transition to ioremap/iounmap soon?
Quoted 2 lines
These points were discussed in below thread.
http://lists.arm.linux.org.uk/lurker/message/20090626.181403.55450a9c.en.html