From patchwork Mon Mar 3 17:33:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 25621 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 87AD7206F3 for ; Mon, 3 Mar 2014 17:34:45 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id v1sf11224203yhn.10 for ; Mon, 03 Mar 2014 09:34:45 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=04S9dmA9uGj5yHuEfr8o4BPw8GdZZvnX0WqgEU7WE3w=; b=cnlDoDmhhyK47tqepeBmzkYGOcS1ClLp+LJVr07502681jzJs16aSwps4FkyeyDTUK Yb8ZoG/8f5rm8tqRLOYg6o57SQdlZW29WsBsrnGDWkn4Iv7WU8PxP9Sx4BApY3kmYmM2 X22flpQ3YlR3tjoXxfu4fF2y53Pv/lk3XglICv8TgxNlIaRhMne4r9F8lRbMbm8lftSb 0jT86owzF6rfJRFCiFnJry1yx3Eg9fC8JIIVeMXVL6Z4K0rKaYC1584WhCTnD9ZFOkLs c7llbjYN7hiCJBwLRbHEt1fBmqagmdH6V7BVqLm9EwstXTxTgaYlogs/Sja4FwcRqkHy anpg== X-Gm-Message-State: ALoCoQmiRiKMm+NteS+5dJl+6FXt3g/EatamE4W5WJlAOG2gnEB5BclLfgvATzHNrG7QRLlc/tu1 X-Received: by 10.58.58.41 with SMTP id n9mr8464680veq.23.1393868085245; Mon, 03 Mar 2014 09:34:45 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.33.203 with SMTP id j69ls2101351qgj.27.gmail; Mon, 03 Mar 2014 09:34:45 -0800 (PST) X-Received: by 10.220.88.204 with SMTP id b12mr18196814vcm.3.1393868085071; Mon, 03 Mar 2014 09:34:45 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id fi2si3673516vdb.127.2014.03.03.09.34.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 09:34:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so3848720vcb.36 for ; Mon, 03 Mar 2014 09:34:45 -0800 (PST) X-Received: by 10.58.100.100 with SMTP id ex4mr18188466veb.2.1393868084981; Mon, 03 Mar 2014 09:34:44 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.130.193 with SMTP id u1csp69828vcs; Mon, 3 Mar 2014 09:34:44 -0800 (PST) X-Received: by 10.66.240.4 with SMTP id vw4mr865983pac.26.1393868083477; Mon, 03 Mar 2014 09:34:43 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id se8si11362603pbb.276.2014.03.03.09.34.42; Mon, 03 Mar 2014 09:34:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754262AbaCCReh (ORCPT + 26 others); Mon, 3 Mar 2014 12:34:37 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:53965 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754165AbaCCRef (ORCPT ); Mon, 3 Mar 2014 12:34:35 -0500 Received: from e106497-lin.cambridge.arm.com (e106497-lin.cambridge.arm.com [10.1.195.170]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id s23HXXBt016091; Mon, 3 Mar 2014 17:33:33 GMT From: Liviu Dudau To: linux-pci , Bjorn Helgaas , Catalin Marinas , Will Deacon , linaro-kernel Cc: Benjamin Herrenschmidt , LKML , "devicetree@vger.kernel.org" , LAKML , Tanmay Inamdar Subject: [PATCH v4 2/3] arm64: Extend the PCI I/O space to 16MB Date: Mon, 3 Mar 2014 17:33:32 +0000 Message-Id: <1393868013-32345-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393868013-32345-1-git-send-email-Liviu.Dudau@arm.com> References: <1393868013-32345-1-git-send-email-Liviu.Dudau@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: liviu.dudau@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Catalin Marinas The patch moves the PCI I/O space (currently at 64K) before the earlyprintk mapping and extends it to 16MB. Signed-off-by: Catalin Marinas diff --git a/Documentation/arm64/memory.txt b/Documentation/arm64/memory.txt index 5e054bf..85e24c4 100644 --- a/Documentation/arm64/memory.txt +++ b/Documentation/arm64/memory.txt @@ -35,11 +35,13 @@ ffffffbc00000000 ffffffbdffffffff 8GB vmemmap ffffffbe00000000 ffffffbffbbfffff ~8GB [guard, future vmmemap] -ffffffbffbc00000 ffffffbffbdfffff 2MB earlyprintk device +ffffffbffa000000 ffffffbffaffffff 16MB PCI I/O space + +ffffffbffb000000 ffffffbffbbfffff 12MB [guard] -ffffffbffbe00000 ffffffbffbe0ffff 64KB PCI I/O space +ffffffbffbc00000 ffffffbffbdfffff 2MB earlyprintk device -ffffffbffbe10000 ffffffbcffffffff ~2MB [guard] +ffffffbffbe00000 ffffffbffbffffff 2MB [guard] ffffffbffc000000 ffffffbfffffffff 64MB modules @@ -60,11 +62,13 @@ fffffdfc00000000 fffffdfdffffffff 8GB vmemmap fffffdfe00000000 fffffdfffbbfffff ~8GB [guard, future vmmemap] -fffffdfffbc00000 fffffdfffbdfffff 2MB earlyprintk device +fffffdfffa000000 fffffdfffaffffff 16MB PCI I/O space + +fffffdfffb000000 fffffdfffbbfffff 12MB [guard] -fffffdfffbe00000 fffffdfffbe0ffff 64KB PCI I/O space +fffffdfffbc00000 fffffdfffbdfffff 2MB earlyprintk device -fffffdfffbe10000 fffffdfffbffffff ~2MB [guard] +fffffdfffbe00000 fffffdfffbffffff 2MB [guard] fffffdfffc000000 fffffdffffffffff 64MB modules diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 4cc813e..7846a6b 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -121,7 +121,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr) * I/O port access primitives. */ #define IO_SPACE_LIMIT 0xffff -#define PCI_IOBASE ((void __iomem *)(MODULES_VADDR - SZ_2M)) +#define PCI_IOBASE ((void __iomem *)(MODULES_VADDR - SZ_32M)) static inline u8 inb(unsigned long addr) {