linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DSPBRIDGE: Replace page_address with kmap
@ 2010-02-08 22:14 Guzman Lugo, Fernando
  2010-02-16 23:48 ` Omar Ramirez Luna
  0 siblings, 1 reply; 2+ messages in thread
From: Guzman Lugo, Fernando @ 2010-02-08 22:14 UTC (permalink / raw)
  To: linux-omap; +Cc: Ameya Palande, Hiroshi Doyu, Felipe Contreras, Andy Shevchenko

>From 07880b3410ad19962d16ce1415f0423dfeed17da Mon Sep 17 00:00:00 2001
From: Fernando Guzman Lugo <x0095840@ti.com>
Date: Fri, 5 Feb 2010 01:35:35 -0600
Subject: [PATCH] DSPBRIDGE: Replace page_address with kmap

Replace page_address with kmap to get address in case of high mem allocation.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
---
 drivers/dsp/bridge/rmgr/proc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c
index 4f179ac..72c86df 100644
--- a/drivers/dsp/bridge/rmgr/proc.c
+++ b/drivers/dsp/bridge/rmgr/proc.c
@@ -585,11 +585,11 @@ static int memory_sync_page(struct vm_area_struct *vma, unsigned long start,
 		}
 
 		offset = start & ~PAGE_MASK;
-		kaddr = page_address(page) + offset;
+		kaddr = kmap(page) + offset;
 		rest = min_t(ssize_t, PAGE_SIZE - offset, len);
-
 		MEM_FlushCache(kaddr, rest, ftype);
 
+		kunmap(page);
 		put_page(page);
 		len -= rest;
 		start += rest;
-- 
1.6.0.4

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

* Re: DSPBRIDGE: Replace page_address with kmap
  2010-02-08 22:14 DSPBRIDGE: Replace page_address with kmap Guzman Lugo, Fernando
@ 2010-02-16 23:48 ` Omar Ramirez Luna
  0 siblings, 0 replies; 2+ messages in thread
From: Omar Ramirez Luna @ 2010-02-16 23:48 UTC (permalink / raw)
  To: Guzman Lugo, Fernando
  Cc: linux-omap, Ameya Palande, Hiroshi Doyu, Felipe Contreras,
	Andy Shevchenko

On 2/8/2010 4:14 PM, Guzman Lugo, Fernando wrote:
>  From 07880b3410ad19962d16ce1415f0423dfeed17da Mon Sep 17 00:00:00 2001
> From: Fernando Guzman Lugo<x0095840@ti.com>
> Date: Fri, 5 Feb 2010 01:35:35 -0600
> Subject: [PATCH] DSPBRIDGE: Replace page_address with kmap
>
> Replace page_address with kmap to get address in case of high mem allocation.
>
> Signed-off-by: Fernando Guzman Lugo<x0095840@ti.com>

Acked-by: Omar Ramirez Luna <omar.ramirez@ti.com>

Pushed to dspbridge

- omar

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

end of thread, other threads:[~2010-02-16 23:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-08 22:14 DSPBRIDGE: Replace page_address with kmap Guzman Lugo, Fernando
2010-02-16 23:48 ` Omar Ramirez Luna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).