From patchwork Thu Feb 27 13:09:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 25451 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4086920447 for ; Thu, 27 Feb 2014 13:11:51 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf3082744pdb.5 for ; Thu, 27 Feb 2014 05:11:50 -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=X/6A2Y2azXEf/nghf6gtVpgIokUrURpvIsjkcRlmKMOf46sH86qgkjm5UPS3h+Odq6 ofo18K/QxaOW50/ho60ywmYLB/s1JEhp+RLTKFTMjVgFHuwbSn0orpQuf/22/C3bV/OU hOHSyCLMkydaCCas3VIsSlCGYbdgHlo36EVwIs9ZZOH+DDNWoj0qZx2+3RTnC4UcWsga tZWXfveuVe4bjK/yg6ETqXehbpet+6iQiZwtjFLNccj1beQRwqy+wGwAX/5SR+x7EKzF Cy/L8/hIcX94i1OLXeTSaoWXfdmz9HI8CcTPKGi2OWKIAhIIeS+y4kXrlYfJfC0AB+PL 9jng== X-Gm-Message-State: ALoCoQmoUt3+wo6e5NL7Qq46d5iIsBRZeOJD8fLHO3AM692yBQ1iBvfiL2gC50PO/bQqpzh9ocvo X-Received: by 10.66.66.163 with SMTP id g3mr5807112pat.3.1393506710446; Thu, 27 Feb 2014 05:11:50 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.240 with SMTP id b103ls654554qge.57.gmail; Thu, 27 Feb 2014 05:11:50 -0800 (PST) X-Received: by 10.220.182.137 with SMTP id cc9mr2937vcb.62.1393506710265; Thu, 27 Feb 2014 05:11:50 -0800 (PST) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id n17si1129260vcq.135.2014.02.27.05.11.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Feb 2014 05:11:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.178 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.178; Received: by mail-ve0-f178.google.com with SMTP id jy13so3750710veb.37 for ; Thu, 27 Feb 2014 05:11:50 -0800 (PST) X-Received: by 10.220.251.76 with SMTP id mr12mr240971vcb.39.1393506709992; Thu, 27 Feb 2014 05:11:49 -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.174.196 with SMTP id u4csp15853vcz; Thu, 27 Feb 2014 05:11:49 -0800 (PST) X-Received: by 10.66.13.138 with SMTP id h10mr15083545pac.148.1393506709077; Thu, 27 Feb 2014 05:11:49 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mp8si4531561pbc.292.2014.02.27.05.11.48; Thu, 27 Feb 2014 05:11:48 -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 S1752976AbaB0NLd (ORCPT + 26 others); Thu, 27 Feb 2014 08:11:33 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:50525 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751646AbaB0NKa (ORCPT ); Thu, 27 Feb 2014 08:10:30 -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 s1RD9xr2019375; Thu, 27 Feb 2014 13:09:59 GMT From: Liviu Dudau To: linux-pci , Bjorn Helgaas , Catalin Marinas , Will Deacon , linaro-kernel Cc: LKML , "devicetree@vger.kernel.org" , LAKML Subject: [PATCH v2 2/3] arm64: Extend the PCI I/O space to 16MB Date: Thu, 27 Feb 2014 13:09:58 +0000 Message-Id: <1393506599-11561-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393506599-11561-1-git-send-email-Liviu.Dudau@arm.com> References: <1393506599-11561-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.128.178 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) {