From patchwork Sat May 8 17:55:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12246191 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,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 E6124C433ED for ; Sat, 8 May 2021 17:57:46 +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 4BC24610FA for ; Sat, 8 May 2021 17:57:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4BC24610FA 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=HpOjB7a5ibZwmdYQiibt69k9npqGG47OkoBhc8gYWFQ=; b=kO2JBHqVuWDrmp26waNwZt6ZGE rcBf/LZ+e6tocyrbg3VS6NHds1PoN2QYELfzGLXI4KJ9q0+/b8XmneTUHHEZEWmB8cvsJSHDcYQDx qrSRRPE0uxUXpDlsBoPTspGI0+SVhMjUrV9p8qEqJcN9vRgsjhi2be9dD7KeqNQd/AsKQsoroCKF5 QCPvN2j6kwmsVfS5W/uir3MFfnQtGeLb5ny2leA+kYN7N+Ja9lMLj8toTLF+++T984lSyoQ7x4tkl SoxHlDOtn/8GqIZm5jAav5MHcYysl6PUynJDWbKS0jFGlHKRISHREcqTmiGQszWQ/tD73L//+tj8i nT6nBDTg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lfRBC-00A3do-Il; Sat, 08 May 2021 17:55:55 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lfRBA-00A3da-BP for linux-arm-kernel@desiato.infradead.org; Sat, 08 May 2021 17:55:52 +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=AtrZK8p1bxA/0S7KZ9KGxrz9Kd73OP1j4xQqST3FpQM=; b=qHhls8yrZ5U/KzsF45EU1QIeUN XEJ0wqhbpbtCt8qBR9wJR+XP30oa+O4J5tv4k2FxkyIGIzGq3+RRy/3AGj1Sl+z2IM46nJIpk7DFS jWyGe1dsOvmMF9WiGDqLO+vSqeTbW1v+4G5qkmOc8W9Nq8on4ECh7RidaFU7zDlOKcmKMzBZvw5RY DAeFji2hByjlp41sAe79s+yQLAlB9FKkfXSqeLQ+3NoW55DXSOkq1ROtre0/KULpbYR8D9caQwgMy 2SYW7FUMPI3lPfyVKcPo9R8nj8y/1fNqYWh5+g7TUfDKf9ypzL3oLKuaFJ/nJODtU3TXT/t4wBX9T NMjzyBSw==; Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lfRB7-007ews-Ve for linux-arm-kernel@lists.infradead.org; Sat, 08 May 2021 17:55:51 +0000 Received: by mail-ed1-x532.google.com with SMTP id g14so14015360edy.6 for ; Sat, 08 May 2021 10:55:48 -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=AtrZK8p1bxA/0S7KZ9KGxrz9Kd73OP1j4xQqST3FpQM=; b=rYLF2tQNY98nt0Q4C4cxJl5OCR2GGIyrS0eOTczS4Q9dLJJrmss/1Kg4tta1Lq6QZw 0XeSeh82SWbpGRo5jBf5w9hrGQH9NG3jeRUtcjOWhmaZNU6iF067DOMg/kw/w118Iv6z 4gwqAurx0sZP2WY0VZ1k4aS1Xr3wfYZEyKnTo/e4kkDHL2TZdkhqX9V69hOyzCZfJQgX BD8q8Hu5hmE1StvxEEKf7YR+vELWA7fykR+Ss81JxN2O1I7IJTPFBCL44to6kSrFzSGT HSKhB8vfAeRo61tIRnIp79Xkq8J3VmRYZ/6g1yUZsCQxkxipTd/pekWRVVOmX0zKUATR B/HA== 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=AtrZK8p1bxA/0S7KZ9KGxrz9Kd73OP1j4xQqST3FpQM=; b=POT+gw5CRNZyEm8MSe/tntE34om6fFj8uvKUPfHO41LhoY4F2lHQ9xyrgWxFzxCFPC LKkf+Sj70YtejfGZwq1LE+Tx91steercIYhM0mpgnCswcMrlfDwYyOHrx41M8/NxxY+M ybaEem9uP4a3c1Rzr89gpzQeTWCYHjcEpBlfKxu4gMgXk9NplvRwdWSFtlhSoIQk6Yqc +MwDtE0nu3gPLnjBU3XyuaUr2CVROSmCgwxaV+liHg+uODOTKsmQJFdC595yeuD5Bdv+ fcql2OWKkTFBRWct4gt5p2/fB2x8Yw9u5KjGSmJ319a33BBJN+n45y/s4xbTwAbtH1W+ 64Sw== X-Gm-Message-State: AOAM530ExB1igHTshBd1Fbp2LitinTf1qFU7SGV5RBfTPM+4DjyqJXf0 Fpr5yUBBFNmGjmYbQ0gv5e8= X-Google-Smtp-Source: ABdhPJwWeu784vMbi58aOXEGdWyc5pSUwA6HilBGdnTfSWOQMVuPBnnD76ctJKchXIPyLKmoYMQYrQ== X-Received: by 2002:a05:6402:683:: with SMTP id f3mr18591580edy.22.1620496547401; Sat, 08 May 2021 10:55:47 -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 j4sm5622474ejk.37.2021.05.08.10.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 10:55:47 -0700 (PDT) From: Ansuel Smith To: Russell King Cc: Ansuel Smith , stable@vger.kernel.org, Palmer Dabbelt , Luis Chamberlain , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] arm: Enlarge IO_SPACE_LIMIT needed for some SoC Date: Sat, 8 May 2021 19:55:35 +0200 Message-Id: <20210508175537.202-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-20210508_105550_043565_4B7F074B X-CRM114-Status: GOOD ( 12.17 ) 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 or second and third pci port fails to register the IO addresses and connected device doesn't work. Cc: # 4.9+ Signed-off-by: Ansuel Smith --- arch/arm/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index fc748122f1e0..6f3e89f08bd8 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)0xffffff) #define __io(a) __typesafe_io(PCI_IO_VIRT_BASE + ((a) & IO_SPACE_LIMIT)) #else #define __io(a) __typesafe_io((a) & IO_SPACE_LIMIT)