From patchwork Sun Feb 28 14:44:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12108503 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=-12.2 required=3.0 tests=BAYES_00,DATE_IN_PAST_06_12, 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 E5F61C433DB for ; Sun, 28 Feb 2021 23:11:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 9FE4364E27 for ; Sun, 28 Feb 2021 23:11:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9FE4364E27 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=22Ffhns4wD4PEtrwhezo14Tfbv1mK6yd+wVg8EbPck0=; b=FKnhlTkaFXmt2JtygA43KQ526q FcA1c/ws82KfhSq7Wakud4ipNUCOfe0SRJ5G37RY7OYiyvHOqmk3qN1FAPVIs0MOwepx3CfpsotTZ reb3pR9w3th0tK+oiN4IKAG0dSc91X4OlBOXV+IkpEdTQVdw74xTDH0NzPFfqFcOGhM/Mh+dJ05XH 9/z5xh4dSA0cubNMByq1kxn+la4NVhZJ+A3O6TM8eMrsgZDqg0oJgLmghXOma65RFHBqDVs5CAYUi LBSFZIGsgyi4aNmZZwlu6qVTA7ykmj1OUISV2HDM39y2f4/bVUoO6To99GzRC9aWQ9IYXr9EufmVJ VbDfcarw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lGVCh-0006TT-U9; Sun, 28 Feb 2021 23:10:23 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lGVCf-0006T0-7b for linux-arm-kernel@lists.infradead.org; Sun, 28 Feb 2021 23:10:22 +0000 Received: by mail-ej1-x62e.google.com with SMTP id do6so24886752ejc.3 for ; Sun, 28 Feb 2021 15:10:18 -0800 (PST) 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=wdxemGBy4u4SaMjaDQDpqTi0AcRXyjzG6DEYFc4fJWY=; b=TC5ZxJiYcJnAR6DNazwFrjmw0QYBNQsYxt7nvbT0zVx744R7RKUCmxNFiptYCl8nUk nycT3ydDClpQQTgqFI0TlxIpuNA+XQ2GPzHBQ0uqwdgzytp+4948VyiR0Bhe1/BhmDbu NLnizk1AnqIRKi6K9KktXSDSUzzQ7DZ40oopV+26aVrMp6NTYxApW0GRskZ9a2uSjyFN uc3YO4Dq6zYi59Ljt8cVtJgQi/9Bc6Ckl7g41isKlyobXr0ojp0cT6EtxpeK6F2cbNBL gWGGtY1rGBLuIiaB35bn7s6EChJYw1I8JnSpDdDKDJ8+Uo6pz2lWc/7WbKg6odXfWTjt rt0g== 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=wdxemGBy4u4SaMjaDQDpqTi0AcRXyjzG6DEYFc4fJWY=; b=b/v05oUWjPe2f5TDH8ybocKnKMO/nP79+KSOjs12/qzMxB+UUOBButuzlnhDk9Acaq pXM6iFSNqlUNs0ns1SiK7XPHbusCH7PKy8/lYkY8v/9Pw1OO7HULrIKqMxlef0pAh0KB pgSyjjoC2u5CjNhpBZtNIJSgY2/EnNonkSKtZcoD16uSDD9aNIbUWIAARN9EJQiZGj84 HpQI8CaAxvGcaZ7EtlyuB5zbthj1qc3LIzgS2RmILQE9PTHViSQ+qwUUAnqV+vTxZdqi 5dNcdMc/YdnxmWT6zb9mM2wjFmWiv6VsA87QboHQ5tuIMc4XNDf0eMw3io3Mbsaqn0ZX 7cPA== X-Gm-Message-State: AOAM532FMRfHjDCcEJ1w9k2gRjca24ZcvhZM49lkmps7acnVAhaseKEL fIJzEXVxsaMwXDswwd1AJHkH8lSvCk4= X-Google-Smtp-Source: ABdhPJwS0btJKYVpA+Ovf535h7FGg54S2ASq/ImH7vMDej4WPkIOnOeRfSY+/yYNhtBIM4KTwxPBKA== X-Received: by 2002:a17:906:3444:: with SMTP id d4mr13200598ejb.410.1614553817920; Sun, 28 Feb 2021 15:10:17 -0800 (PST) Received: from Ansuel-xps.localdomain (host-79-26-248-106.retail.telecomitalia.it. [79.26.248.106]) by smtp.googlemail.com with ESMTPSA id r24sm6048132edw.11.2021.02.28.15.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 15:10:17 -0800 (PST) From: Ansuel Smith To: linux-kernel@vger.kernel.org Subject: [PATCH] arm: Enlarge IO_SPACE_LIMIT needed for some SoC Date: Sun, 28 Feb 2021 15:44:04 +0100 Message-Id: <20210228144405.24979-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210228_181021_327550_263E14F3 X-CRM114-Status: GOOD ( 12.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Palmer Dabbelt , Russell King , stable@vger.kernel.org, Luis Chamberlain , Ansuel Smith , linux-arm-kernel@lists.infradead.org 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)