summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0031-DSS2-do-bootmem-reserve-for-exclusive-access.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0031-DSS2-do-bootmem-reserve-for-exclusive-access.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0031-DSS2-do-bootmem-reserve-for-exclusive-access.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0031-DSS2-do-bootmem-reserve-for-exclusive-access.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0031-DSS2-do-bootmem-reserve-for-exclusive-access.patch
new file mode 100644
index 0000000000..ae777ed04e
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0031-DSS2-do-bootmem-reserve-for-exclusive-access.patch
@@ -0,0 +1,33 @@
1From 30c40f5e6b1794430f678bf23d3319354321cab7 Mon Sep 17 00:00:00 2001
2From: Imre Deak <imre.deak@nokia.com>
3Date: Tue, 14 Apr 2009 14:50:11 +0200
4Subject: [PATCH] DSS2: do bootmem reserve for exclusive access
5
6BOOTMEM_DEFAULT would allow multiple reservations for the same location,
7we need to reserve the region for our exclusive use. Also check if the
8reserve succeeded.
9
10Signed-off-by: Imre Deak <imre.deak@nokia.com>
11---
12 arch/arm/plat-omap/vram.c | 5 ++++-
13 1 files changed, 4 insertions(+), 1 deletions(-)
14
15diff --git a/arch/arm/plat-omap/vram.c b/arch/arm/plat-omap/vram.c
16index f24a110..520f260 100644
17--- a/arch/arm/plat-omap/vram.c
18+++ b/arch/arm/plat-omap/vram.c
19@@ -524,7 +524,10 @@ void __init omapfb_reserve_sdram(void)
20 return;
21 }
22
23- reserve_bootmem(paddr, size, BOOTMEM_DEFAULT);
24+ if (reserve_bootmem(paddr, size, BOOTMEM_EXCLUSIVE) < 0) {
25+ pr_err("FB: failed to reserve VRAM\n");
26+ return;
27+ }
28 } else {
29 if (size > sdram_size) {
30 printk(KERN_ERR "Illegal SDRAM size for VRAM\n");
31--
321.5.6.5
33