diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2022-07-25 12:17:39 +0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2022-07-30 11:59:02 +0300 |
commit | 3e3114ac460e94825e34d1fed6a48a9ce4b07689 (patch) | |
tree | ebacf59e70ccdb12a760b188d3215ccb14847bfd /arch/mips | |
parent | d3cd4d9fc1f024b09967e672fb0ef82f05444b75 (diff) | |
download | linux-3e3114ac460e94825e34d1fed6a48a9ce4b07689.tar.xz |
MIPS: Introduce CAVIUM_RESERVE32 Kconfig option
This options is used to reserve a shared memory region for user processes
to use for hardware memory buffers. The actual code to support the option
comes in the following patch.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/cavium-octeon/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/cavium-octeon/Kconfig b/arch/mips/cavium-octeon/Kconfig index 4984e462be30..c1899f109e19 100644 --- a/arch/mips/cavium-octeon/Kconfig +++ b/arch/mips/cavium-octeon/Kconfig @@ -67,6 +67,18 @@ config CAVIUM_OCTEON_LOCK_L2_MEMCPY help Lock the kernel's implementation of memcpy() into L2. +config CAVIUM_RESERVE32 + int "Memory to reserve for user processes shared region (MB)" + range 0 1536 + default "0" + help + Reserve a shared memory region for user processes to use for hardware + memory buffers. This is required for 32bit applications to be able to + send and receive packets directly. Applications access this memory by + memory mapping /dev/mem for the addresses in /proc/octeon_info. For + optimal performance with HugeTLBs, keep this size an even number of + megabytes. + config OCTEON_ILM tristate "Module to measure interrupt latency using Octeon CIU Timer" help |