* [PATCH] OMAP: Increase VMALLOC_END to allow 256MB RAM
@ 2008-10-02 8:36 Mans Rullgard
2008-10-02 9:29 ` Kevin Hilman
0 siblings, 1 reply; 4+ messages in thread
From: Mans Rullgard @ 2008-10-02 8:36 UTC (permalink / raw)
To: linux-omap
This increases VMALLOC_END to 0x18000000, making room for 256MB
RAM with the default 128MB vmalloc region.
Signed-off-by: Mans Rullgard <mans@mansr.com>
---
arch/arm/plat-omap/include/mach/vmalloc.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-omap/include/mach/vmalloc.h b/arch/arm/plat-omap/include/mach/vmalloc.h
index d8515cb..b97dfaf 100644
--- a/arch/arm/plat-omap/include/mach/vmalloc.h
+++ b/arch/arm/plat-omap/include/mach/vmalloc.h
@@ -17,5 +17,5 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define VMALLOC_END (PAGE_OFFSET + 0x17000000)
+#define VMALLOC_END (PAGE_OFFSET + 0x18000000)
--
1.6.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP: Increase VMALLOC_END to allow 256MB RAM
2008-10-02 8:36 [PATCH] OMAP: Increase VMALLOC_END to allow 256MB RAM Mans Rullgard
@ 2008-10-02 9:29 ` Kevin Hilman
2008-10-04 9:38 ` Koen Kooi
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2008-10-02 9:29 UTC (permalink / raw)
To: Mans Rullgard; +Cc: linux-omap
Mans Rullgard <mans@mansr.com> writes:
> This increases VMALLOC_END to 0x18000000, making room for 256MB
> RAM with the default 128MB vmalloc region.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
> arch/arm/plat-omap/include/mach/vmalloc.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-omap/include/mach/vmalloc.h b/arch/arm/plat-omap/include/mach/vmalloc.h
> index d8515cb..b97dfaf 100644
> --- a/arch/arm/plat-omap/include/mach/vmalloc.h
> +++ b/arch/arm/plat-omap/include/mach/vmalloc.h
> @@ -17,5 +17,5 @@
> * along with this program; if not, write to the Free Software
> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> */
> -#define VMALLOC_END (PAGE_OFFSET + 0x17000000)
> +#define VMALLOC_END (PAGE_OFFSET + 0x18000000)
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
I have a similar patch locally, but the problem I currently have with
it is that there is no longer any hole between vmalloc space and the
beginning of IO space (the first virtual mappings start at
0xd8000000.)
It's a bit unsafe, but IMO it's is probably OK for the short term.
Longer term I think the virtual address space of the OMAP kernels
needs to be reworked. It currenly just maps directly onto the
physical address space, which makes the IO_ADDRESS() conversion macros
simple, but leaves lots of wasted space in the virtual address space.
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP: Increase VMALLOC_END to allow 256MB RAM
2008-10-02 9:29 ` Kevin Hilman
@ 2008-10-04 9:38 ` Koen Kooi
2008-10-06 7:16 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2008-10-04 9:38 UTC (permalink / raw)
To: linux-omap@vger.kernel.org List
[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]
Op 2 okt 2008, om 11:29 heeft Kevin Hilman het volgende geschreven:
> Mans Rullgard <mans@mansr.com> writes:
>
>> This increases VMALLOC_END to 0x18000000, making room for 256MB
>> RAM with the default 128MB vmalloc region.
>>
>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>> ---
>> arch/arm/plat-omap/include/mach/vmalloc.h | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/plat-omap/include/mach/vmalloc.h b/arch/arm/
>> plat-omap/include/mach/vmalloc.h
>> index d8515cb..b97dfaf 100644
>> --- a/arch/arm/plat-omap/include/mach/vmalloc.h
>> +++ b/arch/arm/plat-omap/include/mach/vmalloc.h
>> @@ -17,5 +17,5 @@
>> * along with this program; if not, write to the Free Software
>> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
>> 02111-1307 USA
>> */
>> -#define VMALLOC_END (PAGE_OFFSET + 0x17000000)
>> +#define VMALLOC_END (PAGE_OFFSET + 0x18000000)
>
> Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
>
> I have a similar patch locally, but the problem I currently have with
> it is that there is no longer any hole between vmalloc space and the
> beginning of IO space (the first virtual mappings start at
> 0xd8000000.)
>
> It's a bit unsafe, but IMO it's is probably OK for the short term.
> Longer term I think the virtual address space of the OMAP kernels
> needs to be reworked. It currenly just maps directly onto the
> physical address space, which makes the IO_ADDRESS() conversion macros
> simple, but leaves lots of wasted space in the virtual address space.
I was told that omap3 support 512MB of ram, so is it possible to
account for that as well, or can we revisit that when the actual LP-
DDR become available?
regards,
Koen
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP: Increase VMALLOC_END to allow 256MB RAM
2008-10-04 9:38 ` Koen Kooi
@ 2008-10-06 7:16 ` Tony Lindgren
0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2008-10-06 7:16 UTC (permalink / raw)
To: Koen Kooi; +Cc: linux-omap@vger.kernel.org List
* Koen Kooi <k.kooi@student.utwente.nl> [081004 12:39]:
>
> Op 2 okt 2008, om 11:29 heeft Kevin Hilman het volgende geschreven:
>
>> Mans Rullgard <mans@mansr.com> writes:
>>
>>> This increases VMALLOC_END to 0x18000000, making room for 256MB
>>> RAM with the default 128MB vmalloc region.
>>>
>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>> ---
>>> arch/arm/plat-omap/include/mach/vmalloc.h | 2 +-
>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/arch/arm/plat-omap/include/mach/vmalloc.h b/arch/arm/
>>> plat-omap/include/mach/vmalloc.h
>>> index d8515cb..b97dfaf 100644
>>> --- a/arch/arm/plat-omap/include/mach/vmalloc.h
>>> +++ b/arch/arm/plat-omap/include/mach/vmalloc.h
>>> @@ -17,5 +17,5 @@
>>> * along with this program; if not, write to the Free Software
>>> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
>>> 02111-1307 USA
>>> */
>>> -#define VMALLOC_END (PAGE_OFFSET + 0x17000000)
>>> +#define VMALLOC_END (PAGE_OFFSET + 0x18000000)
>>
>> Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
>>
>> I have a similar patch locally, but the problem I currently have with
>> it is that there is no longer any hole between vmalloc space and the
>> beginning of IO space (the first virtual mappings start at
>> 0xd8000000.)
>>
>> It's a bit unsafe, but IMO it's is probably OK for the short term.
>> Longer term I think the virtual address space of the OMAP kernels
>> needs to be reworked. It currenly just maps directly onto the
>> physical address space, which makes the IO_ADDRESS() conversion macros
>> simple, but leaves lots of wasted space in the virtual address space.
Seems to be also safe for omap1, so I've pushed it.
> I was told that omap3 support 512MB of ram, so is it possible to account
> for that as well, or can we revisit that when the actual LP-DDR become
> available?
Well, to make room for a long term solution let's do the following:
- Use OMAP1_IO_ADDRESS and OMAP2_IO_ADDRES and get rid of
OMAP_IO_ADDRESS. This allows compiling in more code into a single
binary
- Remove the remaining io_v2p() and any XXX_IO_ADDRESS()
in the drivers. Drivers should be now using ioremap() as noted
earlier
- Then we can further split OMAP2_IO_ADDRESS() into L3_IO_ADDRESS()
and L4_IO_ADDRESS(), which allows us to move L4_XXXX_VIRT out
of the way
Anybody got better ideas?
Regards,
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-06 7:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 8:36 [PATCH] OMAP: Increase VMALLOC_END to allow 256MB RAM Mans Rullgard
2008-10-02 9:29 ` Kevin Hilman
2008-10-04 9:38 ` Koen Kooi
2008-10-06 7:16 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox