From: Alexander A Sverdlin <alexander.sverdlin@nokia.com>
To: linux-mips@vger.kernel.org, Joe Perches <joe@perches.com>
Cc: Alexander Sverdlin <alexander.sverdlin@nokia.com>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Corey Minyard <cminyard@mvista.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] MIPS: Introduce CAVIUM_RESERVE32 Kconfig option
Date: Mon, 25 Jul 2022 11:17:39 +0200 [thread overview]
Message-ID: <20220725091740.28188-2-alexander.sverdlin@nokia.com> (raw)
In-Reply-To: <20220725091740.28188-1-alexander.sverdlin@nokia.com>
From: Alexander Sverdlin <alexander.sverdlin@nokia.com>
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>
---
arch/mips/cavium-octeon/Kconfig | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/mips/cavium-octeon/Kconfig b/arch/mips/cavium-octeon/Kconfig
index 4984e46..c1899f1 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
--
2.10.2
next prev parent reply other threads:[~2022-07-25 9:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-25 9:17 [PATCH 0/2] MIPS: Restore CONFIG_CAVIUM_RESERVE32 Alexander A Sverdlin
2022-07-25 9:17 ` Alexander A Sverdlin [this message]
2022-08-30 3:02 ` [PATCH 1/2] MIPS: Introduce CAVIUM_RESERVE32 Kconfig option Yu Zhao
2022-09-05 18:50 ` Yu Zhao
2022-09-06 7:55 ` Alexander Sverdlin
2022-07-25 9:17 ` [PATCH 2/2] Revert "MIPS: octeon: Remove vestiges of CONFIG_CAVIUM_RESERVE32" Alexander A Sverdlin
2022-07-30 17:18 ` Joe Perches
2022-07-30 9:02 ` [PATCH 0/2] MIPS: Restore CONFIG_CAVIUM_RESERVE32 Thomas Bogendoerfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220725091740.28188-2-alexander.sverdlin@nokia.com \
--to=alexander.sverdlin@nokia.com \
--cc=cminyard@mvista.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®