From patchwork Fri Feb 28 13:08: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: 25545 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 566D820567 for ; Fri, 28 Feb 2014 13:11:20 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j7sf1379588qaq.6 for ; Fri, 28 Feb 2014 05:11:20 -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=VohaALtFkJTIAdG3Y4h+MmW6ew3bs6kBgkSFI6lWLapWn3DO6lfNunDdlTn3+5xXnB OB6yAfzU65oDxHhj0GMHwgF8LZxzNHSSVRzvpDTV4R4YUoaziTY9SLzjYZe0msOeaeyE qJ408cOgJH8NK80y+H2y7FvZtm9TdRzERw0EB9MHhipeoCci/xHbBkHm/oli6Rh71IHR 3ygBX6IGBdi5WMSePceDoMA/XaR/dWzf1U5iZLazgkjZsfMN7wU8WdIB4pesduJVi0VX tPzX4fBaZSfzJk9UW/XlLfq0ZfMnANIPZleGwEpsk+xWsSdVv2VgrW8xZ5aBRah+dD5y CB5g== X-Gm-Message-State: ALoCoQlr7ClDszVwbxnPwAomjq+hjRN17T8YShUy/py2Eb0vvElNkYB6+hRGnrpYsIOTskSXS3bh X-Received: by 10.58.136.35 with SMTP id px3mr1147655veb.31.1393593080144; Fri, 28 Feb 2014 05:11:20 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.35 with SMTP id m32ls1068672qgd.81.gmail; Fri, 28 Feb 2014 05:11:20 -0800 (PST) X-Received: by 10.58.37.232 with SMTP id b8mr2503713vek.27.1393593079970; Fri, 28 Feb 2014 05:11:19 -0800 (PST) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id wz4si555181vdc.85.2014.02.28.05.11.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Feb 2014 05:11:19 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.182 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.182; Received: by mail-ve0-f182.google.com with SMTP id jy13so710172veb.27 for ; Fri, 28 Feb 2014 05:11:19 -0800 (PST) X-Received: by 10.220.103.141 with SMTP id k13mr2460601vco.25.1393593079855; Fri, 28 Feb 2014 05:11:19 -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 u1csp52589vcs; Fri, 28 Feb 2014 05:11:19 -0800 (PST) X-Received: by 10.66.218.234 with SMTP id pj10mr3421250pac.156.1393593078586; Fri, 28 Feb 2014 05:11:18 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xe9si1986634pab.286.2014.02.28.05.11.16; Fri, 28 Feb 2014 05:11:16 -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 S1752579AbaB1NLA (ORCPT + 26 others); Fri, 28 Feb 2014 08:11:00 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:53627 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751581AbaB1NJC (ORCPT ); Fri, 28 Feb 2014 08:09:02 -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 s1SD8Xds023082; Fri, 28 Feb 2014 13:08: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 Subject: [PATCH v3 2/3] arm64: Extend the PCI I/O space to 16MB Date: Fri, 28 Feb 2014 13:08:32 +0000 Message-Id: <1393592913-24796-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393592913-24796-1-git-send-email-Liviu.Dudau@arm.com> References: <1393592913-24796-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.182 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) {