public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] omap: dsp: fix for ioremap()
@ 2010-10-19  7:37 Felipe Contreras
  2010-10-19  7:37 ` [PATCH] omap: dsp: remove shm from normal memory Felipe Contreras
  2010-10-19  7:38 ` [PATCH] omap: dsp: fix for ioremap() Felipe Balbi
  0 siblings, 2 replies; 10+ messages in thread
From: Felipe Contreras @ 2010-10-19  7:37 UTC (permalink / raw)
  To: linux-omap
  Cc: Greg KH, Omar Ramirez Luna, Tony Lindgren, Russell King,
	Felipe Contreras

Since ioremap() on RAM will be soon disallowed, this is required.

This also requires a patch like:
http://article.gmane.org/gmane.linux.kernel/1047146

Felipe Contreras (1):
  omap: dsp: remove shm from normal memory

 arch/arm/plat-omap/devices.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

-- 
1.7.3.1.2.g7fe2b


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] omap: dsp: remove shm from normal memory
  2010-10-19  7:37 [PATCH] omap: dsp: fix for ioremap() Felipe Contreras
@ 2010-10-19  7:37 ` Felipe Contreras
  2010-11-05 16:34   ` Tony Lindgren
  2010-10-19  7:38 ` [PATCH] omap: dsp: fix for ioremap() Felipe Balbi
  1 sibling, 1 reply; 10+ messages in thread
From: Felipe Contreras @ 2010-10-19  7:37 UTC (permalink / raw)
  To: linux-omap
  Cc: Greg KH, Omar Ramirez Luna, Tony Lindgren, Russell King,
	Felipe Contreras

Also, don't be picky about the location.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 arch/arm/plat-omap/devices.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c
index 4c8f9b9..da10433 100644
--- a/arch/arm/plat-omap/devices.c
+++ b/arch/arm/plat-omap/devices.c
@@ -285,12 +285,14 @@ void __init omap_dsp_reserve_sdram_memblock(void)
 	if (!size)
 		return;
 
-	paddr = __memblock_alloc_base(size, SZ_1M, MEMBLOCK_REAL_LIMIT);
+	paddr = memblock_alloc(size, SZ_1M);
 	if (!paddr) {
 		pr_err("%s: failed to reserve %x bytes\n",
 				__func__, size);
 		return;
 	}
+	memblock_free(paddr, size);
+	memblock_remove(paddr, size);
 
 	omap_dsp_phys_mempool_base = paddr;
 }
-- 
1.7.3.1.2.g7fe2b


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: fix for ioremap()
  2010-10-19  7:37 [PATCH] omap: dsp: fix for ioremap() Felipe Contreras
  2010-10-19  7:37 ` [PATCH] omap: dsp: remove shm from normal memory Felipe Contreras
@ 2010-10-19  7:38 ` Felipe Balbi
  2010-10-19  7:39   ` Felipe Balbi
  1 sibling, 1 reply; 10+ messages in thread
From: Felipe Balbi @ 2010-10-19  7:38 UTC (permalink / raw)
  To: Felipe Contreras
  Cc: linux-omap, Greg KH, Ramirez Luna, Omar, Tony Lindgren,
	Russell King

On Tue, Oct 19, 2010 at 02:37:23AM -0500, Felipe Contreras wrote:
>Since ioremap() on RAM will be soon disallowed, this is required.
>
>This also requires a patch like:
>http://article.gmane.org/gmane.linux.kernel/1047146
>
>Felipe Contreras (1):
>  omap: dsp: remove shm from normal memory
>
> arch/arm/plat-omap/devices.c |    4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)

-ENOPATCH ??

-- 
balbi

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: fix for ioremap()
  2010-10-19  7:38 ` [PATCH] omap: dsp: fix for ioremap() Felipe Balbi
@ 2010-10-19  7:39   ` Felipe Balbi
  2010-10-19  7:43     ` Felipe Contreras
  0 siblings, 1 reply; 10+ messages in thread
From: Felipe Balbi @ 2010-10-19  7:39 UTC (permalink / raw)
  To: Balbi, Felipe
  Cc: Felipe Contreras, linux-omap, Greg KH, Ramirez Luna, Omar,
	Tony Lindgren, Russell King

On Tue, Oct 19, 2010 at 02:38:34AM -0500, Balbi, Felipe wrote:
>On Tue, Oct 19, 2010 at 02:37:23AM -0500, Felipe Contreras wrote:
>>Since ioremap() on RAM will be soon disallowed, this is required.
>>
>>This also requires a patch like:
>>http://article.gmane.org/gmane.linux.kernel/1047146
>>
>>Felipe Contreras (1):
>>  omap: dsp: remove shm from normal memory
>>
>> arch/arm/plat-omap/devices.c |    4 +++-
>> 1 files changed, 3 insertions(+), 1 deletions(-)
>
>-ENOPATCH ??

ok, now I got the patch. Just $SUBJECT is a bit misleading, sorry

-- 
balbi

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: fix for ioremap()
  2010-10-19  7:39   ` Felipe Balbi
@ 2010-10-19  7:43     ` Felipe Contreras
  0 siblings, 0 replies; 10+ messages in thread
From: Felipe Contreras @ 2010-10-19  7:43 UTC (permalink / raw)
  To: balbi; +Cc: linux-omap, Greg KH, Ramirez Luna, Omar, Tony Lindgren,
	Russell King

On Tue, Oct 19, 2010 at 10:39 AM, Felipe Balbi <balbi@ti.com> wrote:
> On Tue, Oct 19, 2010 at 02:38:34AM -0500, Balbi, Felipe wrote:
>>
>> On Tue, Oct 19, 2010 at 02:37:23AM -0500, Felipe Contreras wrote:
>>>
>>> Since ioremap() on RAM will be soon disallowed, this is required.
>>>
>>> This also requires a patch like:
>>> http://article.gmane.org/gmane.linux.kernel/1047146
>>>
>>> Felipe Contreras (1):
>>>  omap: dsp: remove shm from normal memory
>>>
>>> arch/arm/plat-omap/devices.c |    4 +++-
>>> 1 files changed, 3 insertions(+), 1 deletions(-)
>>
>> -ENOPATCH ??
>
> ok, now I got the patch. Just $SUBJECT is a bit misleading, sorry

:)

I thought on just sending the patch, but the last time there wasn't
enough explanation that it depended on another one.

-- 
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: remove shm from normal memory
  2010-10-19  7:37 ` [PATCH] omap: dsp: remove shm from normal memory Felipe Contreras
@ 2010-11-05 16:34   ` Tony Lindgren
  2010-11-05 17:53     ` Felipe Contreras
  0 siblings, 1 reply; 10+ messages in thread
From: Tony Lindgren @ 2010-11-05 16:34 UTC (permalink / raw)
  To: Felipe Contreras; +Cc: linux-omap, Greg KH, Omar Ramirez Luna, Russell King

* Felipe Contreras <felipe.contreras@gmail.com> [101019 00:28]:
> Also, don't be picky about the location.

As this code is in CONFIG_TIDSPBRIDGE block and AFAIK that is
not working, this should probably wait for the next merge window?

Regards,

Tony

 
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
>  arch/arm/plat-omap/devices.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c
> index 4c8f9b9..da10433 100644
> --- a/arch/arm/plat-omap/devices.c
> +++ b/arch/arm/plat-omap/devices.c
> @@ -285,12 +285,14 @@ void __init omap_dsp_reserve_sdram_memblock(void)
>  	if (!size)
>  		return;
>  
> -	paddr = __memblock_alloc_base(size, SZ_1M, MEMBLOCK_REAL_LIMIT);
> +	paddr = memblock_alloc(size, SZ_1M);
>  	if (!paddr) {
>  		pr_err("%s: failed to reserve %x bytes\n",
>  				__func__, size);
>  		return;
>  	}
> +	memblock_free(paddr, size);
> +	memblock_remove(paddr, size);
>  
>  	omap_dsp_phys_mempool_base = paddr;
>  }
> -- 
> 1.7.3.1.2.g7fe2b
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: remove shm from normal memory
  2010-11-05 16:34   ` Tony Lindgren
@ 2010-11-05 17:53     ` Felipe Contreras
  2010-11-05 18:16       ` Tony Lindgren
  2010-11-05 18:18       ` Ramirez Luna, Omar
  0 siblings, 2 replies; 10+ messages in thread
From: Felipe Contreras @ 2010-11-05 17:53 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap, Greg KH, Omar Ramirez Luna, Russell King

On Fri, Nov 5, 2010 at 6:34 PM, Tony Lindgren <tony@atomide.com> wrote:
> * Felipe Contreras <felipe.contreras@gmail.com> [101019 00:28]:
>> Also, don't be picky about the location.
>
> As this code is in CONFIG_TIDSPBRIDGE block and AFAIK that is
> not working, this should probably wait for the next merge window?

I plan to send a patch to revert the iommu changes to staging so that
it does work... But this patch would be needed as well.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: remove shm from normal memory
  2010-11-05 17:53     ` Felipe Contreras
@ 2010-11-05 18:16       ` Tony Lindgren
  2010-11-07 21:11         ` Felipe Contreras
  2010-11-05 18:18       ` Ramirez Luna, Omar
  1 sibling, 1 reply; 10+ messages in thread
From: Tony Lindgren @ 2010-11-05 18:16 UTC (permalink / raw)
  To: Felipe Contreras; +Cc: linux-omap, Greg KH, Omar Ramirez Luna, Russell King

* Felipe Contreras <felipe.contreras@gmail.com> [101105 10:44]:
> On Fri, Nov 5, 2010 at 6:34 PM, Tony Lindgren <tony@atomide.com> wrote:
> > * Felipe Contreras <felipe.contreras@gmail.com> [101019 00:28]:
> >> Also, don't be picky about the location.
> >
> > As this code is in CONFIG_TIDSPBRIDGE block and AFAIK that is
> > not working, this should probably wait for the next merge window?
> 
> I plan to send a patch to revert the iommu changes to staging so that
> it does work... But this patch would be needed as well.

OK. Let's wait and see what your minimal set of fixes to make it
work looks.

Regards,

Tony

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: remove shm from normal memory
  2010-11-05 17:53     ` Felipe Contreras
  2010-11-05 18:16       ` Tony Lindgren
@ 2010-11-05 18:18       ` Ramirez Luna, Omar
  1 sibling, 0 replies; 10+ messages in thread
From: Ramirez Luna, Omar @ 2010-11-05 18:18 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-omap, Greg KH, Russell King, Felipe Contreras,
	Paul Walmsley, Kevin Hilman

Hi Tony,

On Fri, Nov 5, 2010 at 12:53 PM, Felipe Contreras
<felipe.contreras@gmail.com> wrote:
> On Fri, Nov 5, 2010 at 6:34 PM, Tony Lindgren <tony@atomide.com> wrote:
>> * Felipe Contreras <felipe.contreras@gmail.com> [101019 00:28]:
>>> Also, don't be picky about the location.
>>
>> As this code is in CONFIG_TIDSPBRIDGE block and AFAIK that is
>> not working, this should probably wait for the next merge window?
>
> I plan to send a patch to revert the iommu changes to staging so that
> it does work... But this patch would be needed as well.

Would it be possible to include this series too (if nothing is
missing)? The only open question was whether to move iva2dsp.h
contents into dsp.h

tidspbridge: SCM layer violation fixes [1]

Patch 4 is to be sent through staging path, once these are pushed.

Regards,

Omar

---
[1] http://marc.info/?l=linux-omap&m=128871356703161&w=2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] omap: dsp: remove shm from normal memory
  2010-11-05 18:16       ` Tony Lindgren
@ 2010-11-07 21:11         ` Felipe Contreras
  0 siblings, 0 replies; 10+ messages in thread
From: Felipe Contreras @ 2010-11-07 21:11 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap, Greg KH, Omar Ramirez Luna, Russell King

On Fri, Nov 5, 2010 at 8:16 PM, Tony Lindgren <tony@atomide.com> wrote:
> * Felipe Contreras <felipe.contreras@gmail.com> [101105 10:44]:
>> On Fri, Nov 5, 2010 at 6:34 PM, Tony Lindgren <tony@atomide.com> wrote:
>> > * Felipe Contreras <felipe.contreras@gmail.com> [101019 00:28]:
>> >> Also, don't be picky about the location.
>> >
>> > As this code is in CONFIG_TIDSPBRIDGE block and AFAIK that is
>> > not working, this should probably wait for the next merge window?
>>
>> I plan to send a patch to revert the iommu changes to staging so that
>> it does work... But this patch would be needed as well.
>
> OK. Let's wait and see what your minimal set of fixes to make it
> work looks.

Huh? Reverting the iommu changes will affect only tidspbridge (staging
tree) the omap codes is not affected at all. I say this patch needs to
be merged regardless.

Anyway, I'm about to send a pull request.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-11-07 21:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19  7:37 [PATCH] omap: dsp: fix for ioremap() Felipe Contreras
2010-10-19  7:37 ` [PATCH] omap: dsp: remove shm from normal memory Felipe Contreras
2010-11-05 16:34   ` Tony Lindgren
2010-11-05 17:53     ` Felipe Contreras
2010-11-05 18:16       ` Tony Lindgren
2010-11-07 21:11         ` Felipe Contreras
2010-11-05 18:18       ` Ramirez Luna, Omar
2010-10-19  7:38 ` [PATCH] omap: dsp: fix for ioremap() Felipe Balbi
2010-10-19  7:39   ` Felipe Balbi
2010-10-19  7:43     ` Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox