Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3113898pxj; Mon, 10 May 2021 19:17:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBWfleZTnNPQNbso04+H8Rd9K0fV+A6IE973EW6mhntNRVF+5n2GkSchM4PuEdWLiIgZeJ X-Received: by 2002:a92:ce90:: with SMTP id r16mr24810036ilo.220.1620699472634; Mon, 10 May 2021 19:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620699472; cv=none; d=google.com; s=arc-20160816; b=kCf6oHvItbrDxRAud1KIm9K1L6tjgXhI6sG8P1l2K9y7zlhENlpR9/2TxHYaey5ehB 7IDP6EXsyyRsB3WJa9HAS0XHp34BFB1Wx713wPK5i0eF7kqXk8YVu2YCwrap/zB5qL4I zhRQu+210rVQdGCzBhM/x/n1AtRpG68gR1VtuXY3Re8I2jQpbGqKUkDvApl00i2ZCSSf AAbslkzHeDPP8TfOnLR0/GE++38Ex+w5XO6YuYvsjOsNcLmBLbkG9J8naug54ve5Bh8M MQhBDNjwyLJZODSBJz/yPaQEItYd3iI3qIyXUNiu4P0MkWHI9Q5Cu+uLHb8GaamDI/LP Raxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/CKoqFTpb+P15Tc2VdjW4Tup4wwaQBmtzCdHHZT/d/U=; b=q8tVBfVJ+xHOvndKCM1RATr7GPbmDFcVNPBcaUwi+ljHuK7zuitcGc1ZCprsbpB094 lCmu3u3BrqNqg5zT7epF7zgbMR14SxFp1rfWXzIyvbJ6rBHGgQmk+GFDGPbf39saQISh gyl7AiZAGLTV04+Gw3KKTgT/Ccn/vg+5RA6LSR8xhnHwuzaHs7r1G/B15o0w4Wv1X4dP XMkPupRX8s4sFEFlZyzNE2MpGAc74UjSDCajiaray3W8GMioFv+L4BrpTynjtxzRTaia yHCMetSeCtWgU1tQcvsLbyECtQTWsYjj87hbXd5NnMl+CpCUd58YLrcgg5rpb8G0AAfS 1yMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ms192diD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f21si17500850ioo.37.2021.05.10.19.17.39; Mon, 10 May 2021 19:17:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ms192diD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbhEKCSL (ORCPT + 99 others); Mon, 10 May 2021 22:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbhEKCSJ (ORCPT ); Mon, 10 May 2021 22:18:09 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAE2C061574; Mon, 10 May 2021 19:17:02 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id n84so10238778wma.0; 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=hE2BPeT8zVJ7EOaVf69+mslrW8oBSc/v9zeqL9t34+mWrbyRNTCh9o+YQte3cTABA2 lupT+MMKAoPiZzKBgYT1bIJi4JGsCCfwyVNdg00UzyIXzCbEfXcUsTDi9Ww9pBZZSa9i 20XQ3VZAhht/+QLhF64OMhAqtfYy9BHWMee1vJg1h+NAIYJhQUfy7gc8Gjwcf8e8KeUN mwe+Hu9SLl9Nb8Fadspg19MizDsZeZqDWiuYH/LL0xuuwFVw+WHFYsMTqQmpJeLj/KQ6 dVMtCPkMwiv8W8PHOPrsFQ+GmmVjYmJjeV6l0e08lg5YcnnJOglQrbZGZXVt4HinyoRp GKVQ== X-Gm-Message-State: AOAM530s2QTVzTBKoLij0w5zrOO6WK7FXcxCPSYQHr3T+PDa/T4LHlmm 7qMZEcVHljYXstehqEnyBxU= 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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) -- 2.30.2