From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by kanga.kvack.org (Postfix) with ESMTP id 8121F6B0036 for ; Thu, 2 Jan 2014 21:52:58 -0500 (EST) Received: by mail-pd0-f179.google.com with SMTP id r10so14861951pdi.38 for ; Thu, 02 Jan 2014 18:52:58 -0800 (PST) Received: from LGEMRELSE1Q.lge.com (LGEMRELSE1Q.lge.com. [156.147.1.111]) by mx.google.com with ESMTP id ez5si44203148pab.251.2014.01.02.18.52.55 for ; Thu, 02 Jan 2014 18:52:56 -0800 (PST) From: "Gioh Kim" References: <002001cf07a1$fd4bdc10$f7e39430$@lge.com> <20140102101359.GU6589@tarshish> <002e01cf081c$44a11e70$cde35b50$@lge.com> <20140103004716.GG7383@n2100.arm.linux.org.uk> In-Reply-To: <20140103004716.GG7383@n2100.arm.linux.org.uk> Subject: RE: ARM: mm: Could I change module space size or place modules in vmalloc area? Date: Fri, 3 Jan 2014 11:52:54 +0900 Message-ID: <005801cf082e$e688da40$b39a8ec0$@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Content-Language: ko Sender: owner-linux-mm@kvack.org List-ID: To: 'Russell King - ARM Linux' Cc: 'Baruch Siach' , linux-mm@kvack.org, 'linux-arm-kernel' , 'HyoJun Im' > -----Original Message----- > From: Russell King - ARM Linux [mailto:linux@arm.linux.org.uk] > Sent: Friday, January 03, 2014 9:47 AM > To: Gioh Kim > Cc: 'Baruch Siach'; linux-mm@kvack.org; 'linux-arm-kernel'; 'HyoJun Im' > Subject: Re: ARM: mm: Could I change module space size or place modules in > vmalloc area? > > On Fri, Jan 03, 2014 at 09:39:31AM +0900, Gioh Kim wrote: > > Thank you for reply. > > > > > -----Original Message----- > > > From: Baruch Siach [mailto:baruch@tkos.co.il] > > > Sent: Thursday, January 02, 2014 7:14 PM > > > To: Gioh Kim > > > Cc: Russell King; linux-mm@kvack.org; linux-arm-kernel; HyoJun Im > > > Subject: Re: ARM: mm: Could I change module space size or place > > > modules in vmalloc area? > > > > > > Hi Gioh, > > > > > > On Thu, Jan 02, 2014 at 07:04:13PM +0900, Gioh Kim wrote: > > > > I run out of module space because I have several big driver modules. > > > > I know I can strip the modules to decrease size but I need debug > > > > info > > > now. > > > > > > Are you sure you need the debug info in kernel memory? I don't think > > > the kernel is actually able to parse DWARF. You can load stripped > > > binaries into the kernel, and still use the debug info with whatever > tool you have. > > > > I agree you but driver developers of another team don't agree. > > I don't know why but they say they will strip drivers later :-( So I > > need to increase modules space size. > > ARM can only branch relatively within +/- 32MB. Hence, with a module > space of 16MB, modules can reach up to a maximum 16MB into the direct- > mapped kernel image. As module space increases in size, so that figure > decreases. So, if module space were to be 40MB, the maximum size of the > kernel binary would be 8MB. > > You want to look at a line similar to this: > > .text : 0xc0008000 - 0xc031eda0 (3164 kB) > > Also, note this: > > modules : 0xbf000000 - 0xc0000000 ( 16 MB) > > If the difference between the lowest module address (0xbf000000) and the > highest of .text is greater than 32MB, it's impossible to load modules - > they will fail to link. > > What is the size of your kernel text? (show us the line(s) like the above.) My kernel size is about 8MB as below. [ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB) [ 0.000000] .text : 0x80008000 - 0x8085d2b0 (8533 kB) I think I can increase the modules space size into 20MB. Thanks for your reply. > > Thanks. > > -- > FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up. Estimation in > database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad. > Estimate before purchase was "up to 13.2Mbit". -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org