]> Git Repo - linux.git/commitdiff
MIPS: Introduce CAVIUM_RESERVE32 Kconfig option
authorAlexander Sverdlin <[email protected]>
Mon, 25 Jul 2022 09:17:39 +0000 (11:17 +0200)
committerThomas Bogendoerfer <[email protected]>
Sat, 30 Jul 2022 08:59:02 +0000 (10:59 +0200)
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]>
arch/mips/cavium-octeon/Kconfig

index 4984e462be303cbc34832d91cd96b566a62e57be..c1899f109e19cdd5d13d26bf99c9deb58250b9b5 100644 (file)
@@ -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
This page took 0.0651 seconds and 4 git commands to generate.