Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1540311

Re: Re: [PATCH 1/1] arm/module: maximum utilization of module area.

From Russell King - ARM Linux <linux@armlinux.org.uk>
Newsgroups linux.kernel
Subject Re: Re: [PATCH 1/1] arm/module: maximum utilization of module area.
Date 2016-12-12 14:00 +0100
Message-ID <sNyn0-4pg-11@gated-at.bofh.it> (permalink)
References <sLjBL-8aU-19@gated-at.bofh.it> <sNxAD-49G-67@gated-at.bofh.it> <sNxAD-49G-65@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Dec 12, 2016 at 11:22:30AM +0000, Vaneet Narang wrote:
> Hi,
> 
> >A PC24 relocation has a range of +/-32MB.  This means that where-ever
> >the module is placed, it must be capable of reaching any function
> >within the kernel text, which may itself be quite large (eg, 8MB, or
> >possibly larger).  The module area exists to allow modules to be
> >located in an area where PC24 relocations are able to reach all of the
> >kernel text on sensibly configured kernels, thereby allowing for
> >optimal performance.
> >
> >If you wish to load large modules, then enable ARM_MODULE_PLTS, which
> >will use the less efficient PLT method (which is basically an indirect
> >function call) for relocations that PC24 can't handle, and will allow
> >the module to be loaded into the vmalloc area.
> >
> >Growing the module area so that smaller modules also get penalised by
> >the PLT indirection is not sane.
> 
> This is exactly what i am saying. These changes are useful to accomdate
> 22MB modules without enabling ARM_MODULE_PLTS. 

Obviously I wasn't clear enough.

No, I do not like your change for the reasons given above.  I'm not going
to accept it.

If you want to use 22MB modules, enable ARM_MODULE_PLTS.

Thank you.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] arm/module: maximum utilization of module area. Maninder Singh <maninder1.s@samsung.com> - 2016-12-06 09:50 +0100
  Re: [PATCH 1/1] arm/module: maximum utilization of module area. Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-12-06 10:20 +0100
  Re: [PATCH 1/1] arm/module: maximum utilization of module area. Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-12-06 17:00 +0100
  Re: [PATCH 1/1] arm/module: maximum utilization of module area. Vaneet Narang <v.narang@samsung.com> - 2016-12-12 11:20 +0100
  Re: [PATCH 1/1] arm/module: maximum utilization of module area. Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-12-12 11:30 +0100
  RE: Re: [PATCH 1/1] arm/module: maximum utilization of module area. Vaneet Narang <v.narang@samsung.com> - 2016-12-12 13:10 +0100
    Re: Re: [PATCH 1/1] arm/module: maximum utilization of module area. Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-12-12 14:00 +0100
    RE: Re: [PATCH 1/1] arm/module: maximum utilization of module  area. Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-12-12 16:30 +0100
      Re: Re: [PATCH 1/1] arm/module: maximum utilization of module area. Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-12-12 18:00 +0100

csiph-web