Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1812808ybz; Sun, 26 Apr 2020 04:53:27 -0700 (PDT) X-Google-Smtp-Source: APiQypIdBvCe0PMWBXt9LTl/se6UThSGLkapisxONQquxRFlkpnp/VLoJ2d6kIgct/38gosn8m2F X-Received: by 2002:aa7:dd14:: with SMTP id i20mr14201432edv.225.1587902006918; Sun, 26 Apr 2020 04:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587902006; cv=none; d=google.com; s=arc-20160816; b=PVD6e9yajORAcNccWoczDWr+sAeGDy0lTqJJsJJmIHtCZcWB9uw8nZwOgXMPgjNtDA EYeZylIi/XrvYSnihNuyVJSVgbw327gr3qSgO92b1z6cJHtDH0jTy2E2dj9J+qiA+2ON 07Rky/aELb0i6HeQHmH9uS4HodeJrOrmvETAYc/6IGLPDZZ20QJh8YcSEFjGuvBJ7agH UbQbI/LBcnVzdsiAbcM+bMcbxd/LtBpO13VML9itNclrxJIqjJ+VIMrHjX3Kk9Ekw/rA tdrdXlH0pUx50wsALXV15lxwv0+h9XEZe8Bwn/rn4HS6npuE9bQ1hFw9g6wBIchatfbI lpxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0kAFn/4GzGOC/7+l/L4gOtQmkkfIAPfdKI6TAusXZYg=; b=EH1KHVtPRpC4/EbdKFikjqgPZP/4kndIhCZqHibDiv42oSJMrOfAtNiygE3pDBotOs 9Ms40lfMruxNHv9OBdD+RAPtcdqyy8cAdQ/mbb5XaxcAcd6+xfEuj8QxyJ4Eq4IrLwtr umZ2u4mihRTQFjvylww0p8IL/RIzdCNqd9NcFhrndc6QGAmdYjca5C/dwDDuvjIB/i2M iOQ+xHW/M8aZt8fG+Jr1Tkgb/0zAqm8W7pBL4yLtHfFcscQB8XjNfn4an+XLSe409vCm BIqt4vuD069SLioAm39EVIbz4Sj1IfB7X566zU5+cs1SA8yr7go2b94B/x4sFLQySmJj ry8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=fH+VvyM6; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si2250969eda.9.2020.04.26.04.53.04; Sun, 26 Apr 2020 04:53:26 -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=fail header.i=@flygoat.com header.s=vultr header.b=fH+VvyM6; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726264AbgDZLtW (ORCPT + 99 others); Sun, 26 Apr 2020 07:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbgDZLtW (ORCPT ); Sun, 26 Apr 2020 07:49:22 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F665C061A0E; Sun, 26 Apr 2020 04:49:20 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 89E4420CDC; Sun, 26 Apr 2020 11:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1587901757; bh=r1y8SvWtc1gITjpG4/8SCMLhvpr+40ZG9Q9GWxOeYcU=; h=From:To:Cc:Subject:Date:From; b=fH+VvyM6my7OULyg0hlzUAoDF2Byd/WxGPNJBUYurFDCPOFSsANyB8eP2lxDP6n54 f8UugSOSk8MD9KuLNmZoIME02cQSxbmgI3eiOuTdj9ZxikG8UrHUfp732mEvVsQAEm iHRIdzKrzPUXefgq5cD0tgKW5m2oELmHIWfbXwcJ/IslP3dHqu6KfpxtAuh8n+jzpM vdjSrLlMVUchz0cu7vum/vWG5eStHnXMZKndk9UAyYhs0ahXPRR20IzOSLlIyxsmMz q467ekCEZiXekKKwJ1Lb4lcR0z1CYz4o+7QeERsATa6iOfhMdq68SHYZNxGwXx/Kpi 1awAYIadNQrdg== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Thomas Bogendoerfer , Huacai Chen , Paul Burton , Arnd Bergmann , Thomas Gleixner , Stephen Kitt , Nick Desaulniers , Serge Semin , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Morton , Anshuman Khandual , Geert Uytterhoeven , Daniel Silsby , Mike Rapoport , Paul Cercueil , Mark Tomlinson , Greg Kroah-Hartman , Allison Randal , Tiezhu Yang , Wei Xu , John Garry , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] MIPS: Loongson64: Use logic_pio Date: Sun, 26 Apr 2020 19:47:33 +0800 Message-Id: <20200426114806.1176629-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To add I/O ports for PCI host bridge via devicetree, we have to use logic_pio mechanism. That would require convert I/O ports into virt memory map. Jiaxun Yang (4): MIPS: Massage address spaces headers MIPS: Introduce PCI_IO_VMMAP lib: logic_pio: Introduce MMIO_LOWER_RESERVED MIPS: Loongson64: Enable PCI_IO_VMMAP arch/mips/Kconfig | 4 ++ arch/mips/include/asm/addrspace.h | 4 +- arch/mips/include/asm/io.h | 40 ++++++++++++++++---- arch/mips/include/asm/mach-generic/spaces.h | 42 +++++++++++++++------ arch/mips/include/asm/page-def.h | 28 ++++++++++++++ arch/mips/include/asm/page.h | 21 ----------- arch/mips/include/asm/pgtable-32.h | 2 - arch/mips/include/asm/pgtable-64.h | 10 +---- arch/mips/include/asm/sync.h | 2 + arch/mips/kernel/cps-vec.S | 3 +- arch/mips/kernel/setup.c | 2 + arch/mips/lib/iomap-pci.c | 2 +- arch/mips/lib/uncached.c | 6 +-- arch/mips/loongson64/init.c | 12 ++++-- arch/mips/loongson64/pci.c | 2 +- lib/logic_pio.c | 6 ++- 16 files changed, 122 insertions(+), 64 deletions(-) create mode 100644 arch/mips/include/asm/page-def.h -- 2.26.0.rc2