linux-mips
[Top] [All Lists]

is remap_pfn_range should align to 2(n) * (page size) ?

To: linux-mips <linux-mips@linux-mips.org>
Subject: is remap_pfn_range should align to 2(n) * (page size) ?
From: zhuzhenhua <zzh.hust@gmail.com>
Date: Fri, 9 May 2008 14:54:29 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=IldOvj1Zno9+nqgRD3YU0CaROgbIIhfNRnj0IOnvv90=; b=lxONG9tKbS91iYCId1egijeSj8iXnua903X2hi+S8zznZQEEepv/52miiF6fPHttrwcSgAiAzTGX5ppU12nETLym2zTDt9/NDqBpbqXYVYvNO+zYVuEOHf9rNWOKCY/hs0sRH2TyqK5oIXfXdtJRShOUsMXL/wqBvBNsrjfacsQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=w6itR6IfQIoJCV721KXFkmaL352vasDehQgfLj9YZYs7FA869ASRfsoPlr5YXj+6W0+GHf6LWLln5MtqET6tDtiStd8CXDQu/Nigk+8KZt05PODJE7MUFm5dGCQ7yszpXhzDA9p3MArgtUSQaS83YFBHHZbUqSyWtOqdNvIVTQI=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
hello all
           i have a sensor driver want to malloc 2.xM SDRAM to capture data(using DMA),  so i used  remap_pfn_range to malloc 3M.
But in /proc/meminfo, it showes free memory reduce 4M. i also check the /proc/buddyinfo, it seemes too.
(i am looking inside kernel code, but not get clear at now).

 is remap_pfn_range should align to  2(n) * (page size) ? 

thanks for any hints

zzh
<Prev in Thread] Current Thread [Next in Thread>