linux/arch/arc
Noam Camus 15ca68a993 ARC: Make vmalloc size configurable
On ARC, lower 2G of address space is translated and used for
 - user vaddr space (region 0 to 5)
 - unused kernel-user gutter (region 6)
 - kernel vaddr space (region 7)

where each region simply represents 256MB of address space.

The kernel vaddr space of 256MB is used to implement vmalloc, modules
So far this was enough, but not on EZChip system with 4K CPUs (given
that per cpu mechanism uses vmalloc for allocating chunks)

So allow VMALLOC_SIZE to be configurable by expanding down into the unused
kernel-user gutter region which at default 256M was excessive anyways.

Also use _BITUL() to fix a build error since PGDIR_SIZE cannot use "1UL"
as called from assembly code in mm/tlbex.S

Signed-off-by: Noam Camus <noamc@ezchip.com>
[vgupta: rewrote changelog, debugged bootup crash due to int vs. hex]
Acked-by: Vineet Gupta <vgupta@synopsys.com>
2016-05-09 09:32:32 +05:30
..
boot ARC: [dts] Introduce Timer bindings 2016-05-09 09:32:29 +05:30
configs ARC: [plat-axs103] Enable loop block devices 2016-04-07 14:59:09 +05:30
include ARC: Make vmalloc size configurable 2016-05-09 09:32:32 +05:30
kernel ARC: RIP arc_{get|set}_core_freq() clk API 2016-05-09 09:32:31 +05:30
lib ARCv2: lib: memcpy: use local symbols 2015-11-03 17:33:00 +05:30
mm ARC: Make vmalloc size configurable 2016-05-09 09:32:32 +05:30
oprofile ARC: OProfile support 2013-02-15 23:16:00 +05:30
plat-axs10x ARC: Don't try to use value of top level clock-frequency in DT 2016-05-09 09:32:30 +05:30
plat-sim ARC: remove extraneous header include 2015-11-14 13:11:38 +05:30
plat-tb10x ARC: [plat*] move code out of .init_machine into common 2014-10-13 14:46:13 +05:30
Kbuild
Kconfig ARC: Make vmalloc size configurable 2016-05-09 09:32:32 +05:30
Kconfig.debug ARC: With earlycon in use, retire EARLY_PRINTK 2015-05-11 11:20:21 +05:30
Makefile ARC: build: Turn off -Wmaybe-uninitialized for ARC gcc 4.8 2016-03-18 16:22:36 +05:30