From patchwork Tue May 11 02:16:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12250403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF71DC433ED for ; Tue, 11 May 2021 10:11:51 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 20396610C9 for ; Tue, 11 May 2021 10:11:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20396610C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=d7E1+mdUh5TmxMnIhsvODNr9zbISWJ1aCM6Kfu6DZiw=; b=GNo84G324SyXnP7pgKYqURPpkM BxwUdwSBkZcyke9btIT22fBTko+FZMdzXQJNQ7kvs5vk+X83LbuVeKQ4JCbEDeuQu177VfhthUulj MlwaXj3gTdYKELm62gCbe/m9sFqLCKtLxeSEFTBWnDhRoBpRNqPNknploy59xpdlc0lOzVSNPEUiL m94H4CvRV+RqbCovfxpjLXkKywEZzXp0v02gDOgkTh1u5M1BMZnwJmuFmcW1NrQf13HOIHMHPr9xf H2nxmBfCEJs1/bWLejqbPxtYsRJDyX+bYt+JFP3tIsGWUq052bY9h11AjPWnucodmp9dkV4TrWTPL ENaWWUTQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgPLQ-00Gql7-Rq; Tue, 11 May 2021 10:10:29 +0000 Received: from [2607:7c80:54:e::133] (helo=bombadil.infradead.org) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgHxL-00G5xO-AF for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 02:17:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=/CKoqFTpb+P15Tc2VdjW4Tup4wwaQBmtzCdHHZT/d/U=; b=fU+NeyGkch+pLZTGuWxjHfONIB pCVu/pP09//IU1umSAKZIwLNO0Buf2U8dLfmWVqPTwPA9j4wIov83uEWllbS6DfdBv37BBi8QP1kg nBpjk8ls0OEMCb86pjGYEhYROoa20W85SPGDt6MOBaDNv1CLq9LCn3pNsNuX1QQSOFejuKZqhhQw0 5vVCGMWYbUgjqPND9SwMa9Fl1H4Xh2nwCIIIRj0KH39W3IYdkrB+0th8MSM+RduwglRXjfKEXeodK hIj/LKT81zAQF1E+FZObAQhJGnzhjmAwFwysMY4+KcrJYs4FEGnDE7UdG23hDpuSjoIg6hcEWIJ20 nCxxhaoQ==; Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgHxH-009FxK-7t for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 02:17:04 +0000 Received: by mail-wm1-x32f.google.com with SMTP id b19-20020a05600c06d3b029014258a636e8so363334wmn.2 for ; Mon, 10 May 2021 19:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/CKoqFTpb+P15Tc2VdjW4Tup4wwaQBmtzCdHHZT/d/U=; b=Ms192diDwaJIei7rAzHkvTsDDUpZ93ASGGzx4L4ALY/zDdkx6lNhIGbfk5H8j9x+ku I/bU029i6ByxFnfIeiOrF1QyUVWJ5S9KbL0dvjehrmeO8UuF66Jgh2vhcu+EGxEGMfEu Dcc3ucdDaRLpu+mWJ5KnP+wD/oWFMiIdzdByx2LrF1SqwofJGKdTKyIK//m19gD1xgj6 uTtuXNSkyFN1NGlrbdFYEEyLsDSosr2lmd9kV2agLLfYmuIsr4ryJZffaMarvlKDe0Tc dQZnn1xKxvHBgB6GPADVIDH0zWaQ/SJ5lvvEamiE7u9IUIYRXImqu9vHfa3RW5USUYrH 7pbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/CKoqFTpb+P15Tc2VdjW4Tup4wwaQBmtzCdHHZT/d/U=; b=n71+CN+znunRgD6B9L7F5TO2AKIFDrOElMrV3fLcfImrOQSkDcUO8knn08TUl1/B6+ afxKUZZvnuZo40RJmseRIEq3P26c51VFZHzWFrtXzaXzFVM93bpEcBLRZMp45SaVtaYH b6mALGboF29QL1+WWddff/m4umvB+3qyuRbjoy9af8oR+7kt+sWxzf/3qIQ5D/JAMIKw M0IWlOHYQ+zw5Bmh0QGwuV3Q6a68PjxntIa3KpW02PwS7aL3meeRyrW3gD7fKio8MGsb uJKq3r72Zx+BPmVjcjVjQpyVVFqw5OmIO2uURmYFT1sB3VZosCeEtTAzHRD1Mj4LowNI XghQ== X-Gm-Message-State: AOAM532D86aGq4LDqbR3WVD1qCTo4TYzMmj91BCgDDQanOVDGuHx5K/n ta9NYlRDYUAFmVIaZjyaVic= X-Google-Smtp-Source: ABdhPJwZ9fFwHaCaULSS1k2d/D3QgdkciE/XuWIAiJ33S4I7EtHzqK3fQiFVVZCfLrbK56osnkCMFg== X-Received: by 2002:a1c:7d92:: with SMTP id y140mr29752104wmc.41.1620699420831; Mon, 10 May 2021 19:17:00 -0700 (PDT) Received: from Ansuel-xps.localdomain (93-35-189-2.ip56.fastwebnet.it. [93.35.189.2]) by smtp.googlemail.com with ESMTPSA id p1sm17628998wrs.50.2021.05.10.19.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 19:17:00 -0700 (PDT) From: Ansuel Smith To: Russell King Cc: Ansuel Smith , Jonathan Corbet , Ard Biesheuvel , Linus Walleij , Florian Fainelli , Abbott Liu , Luis Chamberlain , Palmer Dabbelt , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm: Enlarge IO_SPACE_LIMIT needed for some SoC Date: Tue, 11 May 2021 04:16:54 +0200 Message-Id: <20210511021656.17719-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_191703_300665_7AEE44B9 X-CRM114-Status: GOOD ( 16.29 ) /bin/ln: failed to access 'reaver_cache/texts/20210510_191703_300665_7AEE44B9': No such file or directory X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_191703_300665_7AEE44B9 X-CRM114-Status: GOOD ( 12.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Ipq8064 SoC requires larger IO_SPACE_LIMIT on second and third pci port. Each pci line I/O space require 0x100000 and the current limit in the specific case of ipq8064 cause the malfunction of the second and the third line that are commonly used for wifi cards. Current IO space is set to support only 0x100000 space while for ipq806x if all 3 pcie lines are connected, it's required 0x300000 of space. Update the IO_SPACE_LIMIT to permit this larger space and update the documentation for the Mapping PCI I/O space memory end to the new value of ff0fffff. Signed-off-by: Ansuel Smith --- Documentation/arm/memory.rst | 2 +- arch/arm/include/asm/io.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/arm/memory.rst b/Documentation/arm/memory.rst index 0cb1e2938823..938fe74c9020 100644 --- a/Documentation/arm/memory.rst +++ b/Documentation/arm/memory.rst @@ -53,7 +53,7 @@ ffc00000 ffc7ffff Guard region ff800000 ffbfffff Permanent, fixed read-only mapping of the firmware provided DT blob -fee00000 feffffff Mapping of PCI I/O space. This is a static +fee00000 ff0fffff Mapping of PCI I/O space. This is a static mapping within the vmalloc space. VMALLOC_START VMALLOC_END-1 vmalloc() / ioremap() space. diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index fc748122f1e0..76f1c668df5e 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -197,7 +197,7 @@ void __iomem *pci_remap_cfgspace(resource_size_t res_cookie, size_t size); #ifdef CONFIG_NEED_MACH_IO_H #include #elif defined(CONFIG_PCI) -#define IO_SPACE_LIMIT ((resource_size_t)0xfffff) +#define IO_SPACE_LIMIT ((resource_size_t)0x2fffff) #define __io(a) __typesafe_io(PCI_IO_VIRT_BASE + ((a) & IO_SPACE_LIMIT)) #else #define __io(a) __typesafe_io((a) & IO_SPACE_LIMIT)