From patchwork Thu Jan 9 09:19:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: panchaxari X-Patchwork-Id: 22996 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 75C53216DD for ; Thu, 9 Jan 2014 09:19:58 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id o15sf4712255qap.10 for ; Thu, 09 Jan 2014 01:19:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=mUWMJTFN2Ruaw3GtUaFRvzGSnM2CfLT1Ng+Tz8Yga84=; b=OxO3o9lCEOY8mk2mjkchJvw4l1YoS68I8zOxsNPO0DqhtreRqTYkC3DiTR+LEajfSL h6sY9Li88n57LVlLKw0D4jKLl518+qcWVKT8HeBPchwQGGpp1aCywLlmor4ZmOhtiQOm gWCWj2Tc95KQ/I3XztIoWBsn4Dkp0ZNgH4azWJy2bZxk0lE+zt9R3SweBNUc96Fg5VL3 cvzhEAABE8CTvhjAoNR6QcKish56rOO6BEjTSz5E+brmlw42JhAiUNT8VxCfNYRzTGrp 73PUt5Y75rbF8wy5nlOsZmEouFTeAbMgd+VMhnS8bDbSS5ZPOdlEvjqxLGRkFURQVubJ PzQw== X-Gm-Message-State: ALoCoQlSJC1Fj9T7uu5r5m5FByIKNSkSPo0HLXvgJPsHRk0N3F7oxmZe496b9VWa6gJfkSOnr1VP X-Received: by 10.58.237.102 with SMTP id vb6mr750034vec.31.1389259197661; Thu, 09 Jan 2014 01:19:57 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.62.199 with SMTP id a7ls1055903qes.87.gmail; Thu, 09 Jan 2014 01:19:57 -0800 (PST) X-Received: by 10.58.145.3 with SMTP id sq3mr132589veb.54.1389259197520; Thu, 09 Jan 2014 01:19:57 -0800 (PST) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id gx6si2428534vdc.154.2014.01.09.01.19.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 01:19:57 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so2215597veb.11 for ; Thu, 09 Jan 2014 01:19:57 -0800 (PST) X-Received: by 10.58.69.41 with SMTP id b9mr1324510veu.5.1389259197390; Thu, 09 Jan 2014 01:19:57 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp279909ved; Thu, 9 Jan 2014 01:19:56 -0800 (PST) X-Received: by 10.66.25.165 with SMTP id d5mr2520856pag.24.1389259193971; Thu, 09 Jan 2014 01:19:53 -0800 (PST) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx.google.com with ESMTPS id nu8si3345131pbb.42.2014.01.09.01.19.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 01:19:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of panchaxari.prasannamurthy@linaro.org) client-ip=209.85.160.54; Received: by mail-pb0-f54.google.com with SMTP id un15so2764181pbc.41 for ; Thu, 09 Jan 2014 01:19:45 -0800 (PST) X-Received: by 10.68.248.100 with SMTP id yl4mr2437509pbc.41.1389259184908; Thu, 09 Jan 2014 01:19:44 -0800 (PST) Received: from si-panchaxari.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id g6sm10562726pat.2.2014.01.09.01.19.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 01:19:44 -0800 (PST) From: panchaxari To: hsweeten@visionengravers.com Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, panchaxari.prasannamurthy@linaro.org, Ryan Mallon , Linus Walleij , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH CFT] ARM:EP93XX: Enable ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR by default Date: Thu, 9 Jan 2014 14:49:24 +0530 Message-Id: <1389259164-7442-1-git-send-email-panchaxari.prasannamurthy@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: panchaxari.prasannamurthy@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch enables ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR as default configs to EP93XX platforms from Cirrus. Introduction of PHYS_VIRT config as default config enables phy-to-virt and virt-to-phy translation functions at boot and module loading time, and enforce dynamic reallocation of memory. PHYS_VIRT config is mutually exclusive to XIP_KERNEL, XIP_KERNEL is used in systems with NOR flash devices. AUTO_ZRELADDR config enables auto calculation of the decompressed kernel image address. AUTO_ZRELADDR config is mutually exclusive to ZBOOT_ROM, and also assumes zImage to be loaded in the first 128MiB from start of memory. CFT::Call For Testing Requesting maintainers of EP93XX platform to evaluate the changes on the board and comment, as I dont have the board for testing and also requesting an ACK. Signed-off-by: panchaxari Cc: Hartley Sweeten Cc: Ryan Mallon Cc: Linus Walleij Cc: Russell King Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- Below lkml link is a quoting by Russell which explains more on concept of PHYS_VIRT and ZRELADDR ------------------------------------------------- https://lkml.org/lkml/2011/10/14/434 ------------------------------------------------- --- arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3501362..077ef9d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -420,10 +420,12 @@ config ARCH_EBSA110 config ARCH_EP93XX bool "EP93xx-based" select ARCH_HAS_HOLES_MEMORYMODEL + select ARCH_PATCH_PHYS_VIRT select ARCH_REQUIRE_GPIOLIB select ARCH_USES_GETTIMEOFFSET select ARM_AMBA select ARM_VIC + select AUTO_ZRELADDR select CLKDEV_LOOKUP select CPU_ARM920T select NEED_MACH_MEMORY_H