Skip to content

Commit 3e3114a

Browse files
asverdlintsbogend
authored andcommitted
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 <[email protected]> Signed-off-by: Alexander Sverdlin <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent d3cd4d9 commit 3e3114a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/mips/cavium-octeon/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ config CAVIUM_OCTEON_LOCK_L2_MEMCPY
6767
help
6868
Lock the kernel's implementation of memcpy() into L2.
6969

70+
config CAVIUM_RESERVE32
71+
int "Memory to reserve for user processes shared region (MB)"
72+
range 0 1536
73+
default "0"
74+
help
75+
Reserve a shared memory region for user processes to use for hardware
76+
memory buffers. This is required for 32bit applications to be able to
77+
send and receive packets directly. Applications access this memory by
78+
memory mapping /dev/mem for the addresses in /proc/octeon_info. For
79+
optimal performance with HugeTLBs, keep this size an even number of
80+
megabytes.
81+
7082
config OCTEON_ILM
7183
tristate "Module to measure interrupt latency using Octeon CIU Timer"
7284
help

0 commit comments

Comments
 (0)