Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3592738ybz; Mon, 27 Apr 2020 19:17:57 -0700 (PDT) X-Google-Smtp-Source: APiQypIggwCT2v9vFrKD7l8kkuluSkKVVufXPW+92gys788L/H2ZDrNfdenXJ7ypICaWVs/5pRwo X-Received: by 2002:a05:6402:1713:: with SMTP id y19mr21765533edu.40.1588040277756; Mon, 27 Apr 2020 19:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588040277; cv=none; d=google.com; s=arc-20160816; b=hg/mvfLQLboaX3OlnkpZ0hWm7KYnudmmX5+32TAmgQevCYNoUPvkZrcZYlnfuaxMYM C64nKAf9EGzP/BIPyNpKetNbQU88RWv0+g3VEwrjQavV0HUhptR0RFrS0DxgCDKXgR1U 867xIGnUK8NjVY8x99dU2iyigH7t/fKFP7ii8i8Rz2otDbCnZhBxvJNaz6N6Sk++y07f upTAF10tCPw1V+0kFHOSoV+ltRTERyNHmUFSSuH9K7B508n1BD0oY6rZA3tZx/HtopKk 97R4qPwMdNX93ZSM88KHql/WdZuDp6Pg56M9tpYsob2YT2StCOQ+J7d2nxxi9T2XWMSj tSag== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OtyicAwcWST4C7AGdniBshihDGUbcDgFdjKpaGvTLT8=; b=DE9poHxkA31EFXEL2WY5rPjK+hvIps7JqSL7L6eleJQi1LqB6R43X097lJ5ggMLHSN NBfBeKGz937ict/+wheMARdOHJ6LrHHuLAWepfhUX6zKMsGUcJ0llmPOoEg2mcQvGSna biHdsfIND1wACg5o2SxkwdlQYJ5N4HNqFa19oaAd/7ZMmimQv//u5eF40qtLbTdkoIEl Uds8oVF1FhXdfrm+rpy70LwqR/W7qlz6VVm3SjtX2aTkkuSkO8d15CHYbMDLMC/AZct4 4ZbVL1yNqth2bc/ri7tN2z+Zf0B8WyFVGR75zoHJBI+oRVHUhIq1UTnT2V/a/10vLxCR crFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=OIVpEj1h; 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 c3si814013eja.251.2020.04.27.19.17.34; Mon, 27 Apr 2020 19:17:57 -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=OIVpEj1h; 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 S1726345AbgD1CPM (ORCPT + 99 others); Mon, 27 Apr 2020 22:15:12 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:60356 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbgD1CPM (ORCPT ); Mon, 27 Apr 2020 22:15:12 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id AEAE82049B; Tue, 28 Apr 2020 02:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588040111; bh=GkNn6QDS6+1D5/N1KKM+IIJftlwxUET+1TaEhVK7DDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OIVpEj1hTI1EHHTITeN/a1gvWSbzafVeYpfsmb75lfz6g/nL2w4GrzGORSelO7hbD oRp2k5LOGOVeNTCWmHN2LxvYXwnyHVqcKZHLJLZNmPqDLdnqijvUoh7CyRyAy4CfQl nh/n3L237Z0j/6rduYk5N531su177IfvlZRmXKr3ceUwiVKBX59u5KFtfpaYd4fUOr AFVnLc9v9KYtYclP0X7fi1vrbCtIKdcA/yy1VcPoOANm+EZqz4hCs0G+HQcE/kGp0F cpagZKT3yYTU3C+1bzZQQm33JkQphVpVTTrAyPPU3W02nyyclYzqiB3bWv5h0z0nni GvTV/1vNZ4L5Q== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: john.garry@huawei.com, Jiaxun Yang , Thomas Bogendoerfer , Huacai Chen , Paul Burton , Serge Semin , Nathan Chancellor , Nick Desaulniers , Stephen Kitt , Andrew Morton , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Vlastimil Babka , Anshuman Khandual , Mike Rapoport , Paul Cercueil , Daniel Silsby , Mark Tomlinson , Thomas Gleixner , Greg Kroah-Hartman , Allison Randal , Tiezhu Yang , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] MIPS: Loongson64: Use logic_pio v2 Date: Tue, 28 Apr 2020 10:14:11 +0800 Message-Id: <20200428021437.2000066-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: 20200426114806.1176629-1-jiaxun.yang@flygoat.com References: 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. v2: Register a logic_pio range instead of reserve in logic_pio system. Jiaxun Yang (3): MIPS: Massage address spaces headers MIPS: Introduce PCI_IO_VMMAP MIPS: Loongson64: Enable PCI_IO_VMMAP arch/mips/Kconfig | 4 ++ arch/mips/include/asm/addrspace.h | 4 +- arch/mips/include/asm/io.h | 36 ++++++++++++---- arch/mips/include/asm/mach-generic/spaces.h | 42 ++++++++++++++----- .../include/asm/mach-loongson64/loongson.h | 2 + arch/mips/include/asm/page-def.h | 29 +++++++++++++ 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 | 34 +++++++++++++-- arch/mips/loongson64/pci.c | 2 +- 16 files changed, 138 insertions(+), 63 deletions(-) create mode 100644 arch/mips/include/asm/page-def.h -- 2.26.0.rc2