From: Rodolfo Giometti <giometti@enneenne.com>
To: linux-arm@vger.kernel.org
Cc: Eric Miao <eric.miao@marvell.com>,
Russell King <linux@arm.linux.org.uk>,
linux-kernel@vger.kernel.org,
Rodolfo Giometti <giometti@linux.it>
Subject: [PATCH 2/2] PXA: add configurable consistent memory DMA size.
Date: Wed, 10 Sep 2008 10:07:36 +0200 [thread overview]
Message-ID: <1221034056-16587-3-git-send-email-giometti@enneenne.com> (raw)
In-Reply-To: <1221034056-16587-2-git-send-email-giometti@enneenne.com>
From: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
---
arch/arm/mach-pxa/include/mach/memory.h | 13 +++++++++++++
drivers/video/Kconfig | 11 +++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/include/mach/memory.h b/arch/arm/mach-pxa/include/mach/memory.h
index 552eb7f..247c2ef 100644
--- a/arch/arm/mach-pxa/include/mach/memory.h
+++ b/arch/arm/mach-pxa/include/mach/memory.h
@@ -49,4 +49,17 @@ void cmx270_pci_adjust_zones(int node, unsigned long *size,
#define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_64M - 1)
#endif
+/* Override the ARM default */
+#ifdef CONFIG_FB_PXA_CONSISTENT_DMA_SIZE
+
+#if (CONFIG_FB_PXA_CONSISTENT_DMA_SIZE == 0)
+#undef CONFIG_FB_PXA_CONSISTENT_DMA_SIZE
+#define CONFIG_FB_PXA_CONSISTENT_DMA_SIZE 2
+#endif
+
+#define CONSISTENT_DMA_SIZE \
+ (((CONFIG_FB_PXA_CONSISTENT_DMA_SIZE + 1) & ~1) * 1024 * 1024)
+
+#endif
+
#endif
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 5d5c8c8..6720d78 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -1808,6 +1808,17 @@ config FB_PXA_OVERLAY
---help---
Frame buffer overlay driver for PXA27x
+config FB_PXA_CONSISTENT_DMA_SIZE
+ int "Consistent DMA memory size (MB)"
+ depends on FB_PXA
+ range 1 14
+ default 2
+ help
+ Increase the DMA consistent memory size according to your video
+ memory needs, for example if you want to use overlay support.
+ The size must be 2MB aligned.
+ If unsure say 2.
+
config FB_PXA_PARAMETERS
bool "PXA LCD command line parameters"
default n
--
1.5.4.3
next prev parent reply other threads:[~2008-09-13 8:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-10 8:07 PXA fb overlay support (RESUBMIT 2) Rodolfo Giometti
2008-09-10 8:07 ` [PATCH 1/2] pxafb: frame buffer overlay support for PXA27x Rodolfo Giometti
2008-09-10 8:07 ` Rodolfo Giometti [this message]
2008-09-13 10:05 ` Andrew Morton
2008-09-13 10:20 ` Russell King - ARM Linux
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=1221034056-16587-3-git-send-email-giometti@enneenne.com \
--to=giometti@enneenne.com \
--cc=eric.miao@marvell.com \
--cc=giometti@linux.it \
--cc=linux-arm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
/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