Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753518AbcLFP5Z (ORCPT ); Tue, 6 Dec 2016 10:57:25 -0500 Received: from mail-oi0-f53.google.com ([209.85.218.53]:35391 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752892AbcLFP5X (ORCPT ); Tue, 6 Dec 2016 10:57:23 -0500 Date: Tue, 6 Dec 2016 10:57:21 -0500 (EST) From: Nicolas Pitre To: Maninder Singh cc: Russell King - ARM Linux , ssantosh@kernel.org, panand@redhat.com, Arnd Bergmann , chris.brandt@renesas.com, Vaneet Narang , linux-kernel@vger.kernel.org, ajeet.y@samsung.com, linux-arm-kernel@lists.infradead.org, pankaj.m@samsung.com Subject: Re: [PATCH 1/1] arm/module: maximum utilization of module area. In-Reply-To: <1481012975-44478-1-git-send-email-maninder1.s@samsung.com> Message-ID: References: <1481012975-44478-1-git-send-email-maninder1.s@samsung.com> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 605 Lines: 27 On Tue, 6 Dec 2016, Maninder Singh wrote: > This patch defines new macro MODULE_START to ensure kernel text > and module remains within 32 MB of address range. > > Tried this patch by inserting 20 MB size module on 4.1 kernel:- > > Earlier:- > ========== > sh# insmod size.ko > .... > insmod: ERROR: could not insert module size.ko: Cannot allocate memory > sh# > > With this patch > =============== > sh# insmod size.ko > ... > sh# lsmod > Module Size Used by > size 20972425 0 Could you please try enabling CONFIG_ARM_MODULE_PLTS instead of this patch? Nicolas