From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] ARM: OMAP: VMALLOC Size Date: Fri, 16 Nov 2007 15:51:40 -0800 Message-ID: <20071116235139.GM32675@atomide.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com Errors-To: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com To: "Choraria, Rohit" Cc: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org * Choraria, Rohit [071107 06:13]: > Hi, > > This patch increases the size of VMALLOC to accommodate the bigger DDR and > NOR flashes being used now. Since SRAM is allocated at the end of VMALLOC > area, moving the SRAM virtual address also. > > Regards, > Rohit > > Signed-off-by: Rohit Choraria > --- > arch/arm/plat-omap/sram.c | 6 +++--- > include/asm-arm/arch-omap/vmalloc.h | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) > > Index: linux-omap/include/asm-arm/arch-omap/vmalloc.h > =================================================================== > --- linux-omap.orig/include/asm-arm/arch-omap/vmalloc.h 2007-11-07 06:34:19.062643728 -0500 > +++ linux-omap/include/asm-arm/arch-omap/vmalloc.h 2007-11-07 06:34:58.255685480 -0500 > @@ -17,5 +17,5 @@ > * along with this program; if not, write to the Free Software > * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > */ > -#define VMALLOC_END (PAGE_OFFSET + 0x10000000) > +#define VMALLOC_END (PAGE_OFFSET + 0x17000000) > > Index: linux-omap/arch/arm/plat-omap/sram.c > =================================================================== > --- linux-omap.orig/arch/arm/plat-omap/sram.c 2007-11-07 06:34:19.062643728 -0500 > +++ linux-omap/arch/arm/plat-omap/sram.c 2007-11-07 09:58:34.914471048 -0500 > @@ -25,11 +25,11 @@ > #include > > #define OMAP1_SRAM_PA 0x20000000 > -#define OMAP1_SRAM_VA 0xd0000000 > +#define OMAP1_SRAM_VA VMALLOC_END > #define OMAP2_SRAM_PA 0x40200000 > #define OMAP2_SRAM_PUB_PA 0x4020f800 > -#define OMAP2_SRAM_VA 0xd0000000 > -#define OMAP2_SRAM_PUB_VA 0xd0000800 > +#define OMAP2_SRAM_VA VMALLOC_END > +#define OMAP2_SRAM_PUB_VA (VMALLOC_END + 0x800) > > #if defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX) > #define SRAM_BOOTLOADER_SZ 0x00 Pushing today. Tony