Skip to contentSkip to conversation

ARCH OMAP : enable ARCH_HAS_HOLES_MEMORYMODEL for OMAP

PATCH In review Sriramakrishnan 3 participants 7 messages Jan 7, 2010 – Jan 11, 2010 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARCH OMAP : enable ARCH_HAS_HOLES_MEMORYMODEL for OMAP

From: Sriram <[email protected]>

OMAP platforms(like OMAP3530) include DSP or other co-processors for media acceleration. when carving out memory for the accelerators we can end up creating a hole in the memory map of sort:
<kernel memory><hole(memory for accelerator)><kernel memory>

To handle such a memory configuration ARCH_HAS_HOLES_MEMORYMODEL has to be enabled. For further information refer discussion at:
http://www.mail-archive.com/[email protected]/msg15262.html.

---
 arch/arm/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/Kconfig +1 -0
index 5e0bcc5..88f628b 100644
@@ -699,6 +699,7 @@ config ARCH_OMAP
 	select ARCH_HAS_CPUFREQ
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
+	select ARCH_HAS_HOLES_MEMORYMODEL
 	help
 	  Support for TI's OMAP platform (OMAP1 and OMAP2).
 
Signature · 1 line
1.6.2.4
#1 lore raw

Govindarajan, Sriramakrishnan had written, on 01/07/2010 06:30 AM, the following:

Quoted 11 lines

From: Sriram <[email protected]>

OMAP platforms(like OMAP3530) include DSP or other co-processors for media acceleration. when carving out memory for the accelerators we can end up creating a hole in the memory map of sort:
<kernel memory><hole(memory for accelerator)><kernel memory>

To handle such a memory configuration ARCH_HAS_HOLES_MEMORYMODEL has to be enabled. For further information refer discussion at:
http://www.mail-archive.com/[email protected]/msg15262.html.

pls check the link: I see "The document you were looking for was not found."

Quoted 11 lines
---
 arch/arm/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/Kconfig +0 -0
index 5e0bcc5..88f628b 100644

arch/arm/Kconfig config ARCH_OMAP · line 702

Quoted 4 lines
arch/arm/Kconfig +1 -0
@@ -699,6 +699,7 @@ config ARCH_OMAP
 	select ARCH_HAS_CPUFREQ
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
+	select ARCH_HAS_HOLES_MEMORYMODEL

why enable this for all OMAPs?

Quoted 3 lines
arch/arm/Kconfig +0 -0
 	help
 	  Support for TI's OMAP platform (OMAP1 and OMAP2).
 
Signature · 2 lines
Regards,
Nishanth Menon
#2 lore raw
Quoted 13 lines

From: Menon, Nishanth
Govindarajan, Sriramakrishnan had written, on 01/07/2010 06:30 AM, the following:

Quoted 8 lines

From: Sriram <[email protected]>

OMAP platforms(like OMAP3530) include DSP or other co-processors for media acceleration. when carving out memory for the accelerators we can end up creating a hole in the memory map of sort:
<kernel memory><hole(memory for accelerator)><kernel memory>

Quoted 6 lines
Quoted 3 lines

To handle such a memory configuration ARCH_HAS_HOLES_MEMORYMODEL has to be enabled. For further information refer discussion at:
http://www.mail-archive.com/[email protected]/msg15262.html.

pls check the link: I see "The document you were looking for was not found."

The URL is spelt incorrectly. Here is the correct URL:
http://www.mail-archive.com/[email protected]/msg15262.html

Quoted 4 lines

arch/arm/Kconfig config ARCH_OMAP · line 702

Quoted 3 lines
arch/arm/Kconfig +1 -0
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
+	select ARCH_HAS_HOLES_MEMORYMODEL

why enable this for all OMAPs?

I have tested this on several OMAP3 platforms and this feature is required Wherever some memory needs to be reserved for media accelerators - hence it Would be handy for earlier OMAP platforms as well

Regards
Sriram

#3 lore raw

Govindarajan, Sriramakrishnan had written, on 01/08/2010 02:15 AM, the following:

Quoted 21 lines
Quoted 12 lines

From: Menon, Nishanth
Govindarajan, Sriramakrishnan had written, on 01/07/2010 06:30 AM, the following:

Quoted 8 lines

From: Sriram <[email protected]>

OMAP platforms(like OMAP3530) include DSP or other co-processors for media acceleration. when carving out memory for the accelerators we can end up creating a hole in the memory map of sort:
<kernel memory><hole(memory for accelerator)><kernel memory>

Quoted 5 lines
Quoted 3 lines

To handle such a memory configuration ARCH_HAS_HOLES_MEMORYMODEL has to be enabled. For further information refer discussion at:
http://www.mail-archive.com/[email protected]/msg15262.html.

pls check the link: I see "The document you were looking for was not found."

The URL is spelt incorrectly. Here is the correct URL:
http://www.mail-archive.com/[email protected]/msg15262.html

Quoted 8 lines
Quoted 4 lines

arch/arm/Kconfig config ARCH_OMAP · line 702

Quoted 3 lines
arch/arm/Kconfig +1 -0
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
+	select ARCH_HAS_HOLES_MEMORYMODEL

why enable this for all OMAPs?

I have tested this on several OMAP3 platforms and this feature is required Wherever some memory needs to be reserved for media accelerators - hence it Would be handy for earlier OMAP platforms as well

I understand that you have tested with OMAP3. my question is you have handled this as per the diff @@ -699,6 +699,7 @@ config ARCH_OMAP
to ARCH_OMAP

is this good for OMAP1510, 1610, 1710, 2420,2430, 770 etc..?

if this is an OMAP3 requirement why not add it there?

Signature · 2 lines
Regards,
Nishanth Menon
#4 lore raw

From: Menon, Nishanth

Quoted 44 lines

Sent: Friday, January 08, 2010 8:33 PM
To: Govindarajan, Sriramakrishnan
Cc: [email protected]; Syed Mohammed, Khasim; Nori, Sekhar
Subject: Re: [PATCH] ARCH OMAP : enable ARCH_HAS_HOLES_MEMORYMODEL for OMAP

Govindarajan, Sriramakrishnan had written, on 01/08/2010 02:15 AM, the following:

Quoted 21 lines
Quoted 12 lines

From: Menon, Nishanth
Govindarajan, Sriramakrishnan had written, on 01/07/2010 06:30 AM, the following:

Quoted 8 lines

From: Sriram <[email protected]>

OMAP platforms(like OMAP3530) include DSP or other co-processors for media acceleration. when carving out memory for the accelerators we can end up creating a hole in the memory map of sort:
<kernel memory><hole(memory for accelerator)><kernel memory>

Quoted 5 lines
Quoted 3 lines

To handle such a memory configuration ARCH_HAS_HOLES_MEMORYMODEL has to be enabled. For further information refer discussion at:
http://www.mail-archive.com/[email protected]/msg15262.html.

pls check the link: I see "The document you were looking for was not found."

The URL is spelt incorrectly. Here is the correct URL:
http://www.mail-archive.com/[email protected]/msg15262.html

Quoted 6 lines
Quoted 4 lines

arch/arm/Kconfig config ARCH_OMAP · line 702

Quoted 3 lines
arch/arm/Kconfig +1 -0
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
+	select ARCH_HAS_HOLES_MEMORYMODEL

why enable this for all OMAPs?

I have tested this on several OMAP3 platforms and this feature is

required

Quoted 1 line

Wherever some memory needs to be reserved for media accelerators - hence

it

Quoted 1 line

Would be handy for earlier OMAP platforms as well

I understand that you have tested with OMAP3. my question is you have handled this as per the diff

(quoted diff) +0 -0
@@ -699,6 +699,7 @@ config ARCH_OMAP

to ARCH_OMAP

Quoted 1 line

is this good for OMAP1510, 1610, 1710, 2420,2430, 770 etc..?

I do not have other OMAP platforms for me to validate this patch on. I believe the nature of change is generic and benefit other OMAP Platforms as well.

Regards
Sriram

#5 lore raw
Quoted 45 lines · Govindarajan, Sriramakrishnan

From: Menon, Nishanth

Quoted 44 lines

Sent: Friday, January 08, 2010 8:33 PM
To: Govindarajan, Sriramakrishnan
Cc: [email protected]; Syed Mohammed, Khasim; Nori, Sekhar
Subject: Re: [PATCH] ARCH OMAP : enable ARCH_HAS_HOLES_MEMORYMODEL for OMAP

Govindarajan, Sriramakrishnan had written, on 01/08/2010 02:15 AM, the following:

Quoted 21 lines
Quoted 12 lines

From: Menon, Nishanth
Govindarajan, Sriramakrishnan had written, on 01/07/2010 06:30 AM, the following:

Quoted 8 lines

From: Sriram <[email protected]>

OMAP platforms(like OMAP3530) include DSP or other co-processors for media acceleration. when carving out memory for the accelerators we can end up creating a hole in the memory map of sort:
<kernel memory><hole(memory for accelerator)><kernel memory>

Quoted 5 lines
Quoted 3 lines

To handle such a memory configuration ARCH_HAS_HOLES_MEMORYMODEL has to be enabled. For further information refer discussion at:
http://www.mail-archive.com/[email protected]/msg15262.html.

pls check the link: I see "The document you were looking for was not found."

The URL is spelt incorrectly. Here is the correct URL:
http://www.mail-archive.com/[email protected]/msg15262.html

Quoted 6 lines
Quoted 4 lines

arch/arm/Kconfig config ARCH_OMAP · line 702

Quoted 3 lines
arch/arm/Kconfig +1 -0
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
+	select ARCH_HAS_HOLES_MEMORYMODEL

why enable this for all OMAPs?

I have tested this on several OMAP3 platforms and this feature is

required

Quoted 1 line

Wherever some memory needs to be reserved for media accelerators - hence

it

Quoted 1 line

Would be handy for earlier OMAP platforms as well

I understand that you have tested with OMAP3. my question is you have handled this as per the diff

(quoted diff) +0 -0
@@ -699,6 +699,7 @@ config ARCH_OMAP

to ARCH_OMAP

Quoted 5 lines
Quoted 1 line

is this good for OMAP1510, 1610, 1710, 2420,2430, 770 etc..?

I do not have other OMAP platforms for me to validate this patch on. I believe the nature of change is generic and benefit other OMAP Platforms as well.

Sounds like the issue is a slight performance penalty when not used. But considering all the coprocessors, I'd say let's apply this so the checks are in place when using the coprocessors.

Regards,

Tony

#6 lore raw

[APPLIED] > [PATCH] ARCH OMAP : enable ARCH_HAS_HOLES_MEMORYMODEL for

In reply to Sriramakrishnan

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: for-next

Initial commit ID (Likely to change): 0824be87f0fea5f4be0c5fd9effc337c0741a9d6

PatchWorks
http://patchwork.kernel.org/patch/71579/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=0824be87f0fea5f4be0c5fd9effc337c0741a9d6