From patchwork Thu Nov 22 19:45:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vojtech Bocek X-Patchwork-Id: 201548 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id BA2012C0090 for ; Mon, 26 Nov 2012 02:26:42 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tce6I-0001PR-Jq; Sun, 25 Nov 2012 15:26:30 +0000 Received: from mail-ee0-f49.google.com ([74.125.83.49]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tbcid-0003P4-QS for kernel-team@lists.ubuntu.com; Thu, 22 Nov 2012 19:45:51 +0000 Received: by mail-ee0-f49.google.com with SMTP id c4so3783109eek.8 for ; Thu, 22 Nov 2012 11:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=rpbT8MVug+nSaJIYS9ltPZaCOesQ1J9LIyCt4C65LTk=; b=bRsbebUnxwEGAPEBwpDOAsIBl4VN4OVigf/pSMzzc0TvzGHGmByKR00T9lMS7pEOkf xn/ZTLce0jXtWAFBDZO3WVO1ySfhKa6Ft8WQtQkeL8yibxJV5l3tVVva7/uvDz2tyh4v gT3P9qXS2+gqjjlxIh1jch8nZ6QUqZEj6PUgmqTDk/ax2B8gwS6WC4NM5du1wvei+OvE S15IhbWiGTQAQzLfjX7d4PbMsfiiZxkXth1UJtUyUNrVGQSEClpAKNTmvhz1OqOP9xC5 9NvAP3yHxzt4t4ETDr4/Xd6jwL2ePAYCbvNv0UII/uftIDdlmFoj7lSW6UCt09S3BhqS cS0w== Received: by 10.14.211.135 with SMTP id w7mr4812623eeo.4.1353613551735; Thu, 22 Nov 2012 11:45:51 -0800 (PST) Received: from nymeria.cust.nbox.cz (ip4-83-240-110-90.cust.nbox.cz. [83.240.110.90]) by mx.google.com with ESMTPS id o49sm8870267eep.5.2012.11.22.11.45.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 11:45:50 -0800 (PST) From: Vojtech Bocek To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/2] UBUNTU: Enable caching and buffering of whole RAM in the decompressor Date: Thu, 22 Nov 2012 20:45:32 +0100 Message-Id: <1353613533-15835-2-git-send-email-vbocek@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353613533-15835-1-git-send-email-vbocek@gmail.com> References: <1353613533-15835-1-git-send-email-vbocek@gmail.com> X-Mailman-Approved-At: Sun, 25 Nov 2012 15:26:29 +0000 Cc: Vojtech Bocek X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com OriginalAuthor: Mike Kasick This is to speed-up booting if this kernel is booted using kexec-hardboot. Without this patch, decompressor is very slow to decompress, because it is located far above the kernel destination. Signed-off-by: Vojtech Bocek --- arch/arm/boot/compressed/head.S | 6 ++++++ arch/arm/mach-tegra/include/mach/memory.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index 24701d6..401efb4 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S @@ -9,6 +9,7 @@ * published by the Free Software Foundation. */ #include +#include /* * Debugging stuff @@ -467,9 +468,14 @@ __setup_mmu: sub r3, r4, #16384 @ Page directory size * bits for the RAM area only. */ mov r0, r3 +#if defined(PLAT_PHYS_OFFSET) && defined(END_MEM) + mov r9, #PLAT_PHYS_OFFSET @ start of RAM + ldr r10, =END_MEM @ end of RAM +#else mov r9, r0, lsr #18 mov r9, r9, lsl #18 @ start of RAM add r10, r9, #0x10000000 @ a reasonable RAM size +#endif mov r1, #0x12 orr r1, r1, #3 << 10 add r2, r3, #16384 diff --git a/arch/arm/mach-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h index 5f51066..c243a32 100644 --- a/arch/arm/mach-tegra/include/mach/memory.h +++ b/arch/arm/mach-tegra/include/mach/memory.h @@ -29,6 +29,10 @@ #define PLAT_PHYS_OFFSET UL(0x80000000) #endif +#if defined(CONFIG_MACH_GROUPER) +#define END_MEM UL(0xBEA00000) +#endif + /* * Unaligned DMA causes tegra dma to place data on 4-byte boundary after * expected address. Call to skb_reserve(skb, NET_IP_ALIGN) was causing skb