From patchwork Sun Apr 26 11:47:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 11510499 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0884914DD for ; Sun, 26 Apr 2020 11:49:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DDA0D206CD for ; Sun, 26 Apr 2020 11:49:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="fH+VvyM6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726165AbgDZLtW (ORCPT ); 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_Mathieu-Daud?= =?utf-8?q?=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 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@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