Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3265289ybb; Sun, 22 Mar 2020 20:00:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuRKZy+rm7ZaYWt/s5WEcOaeDHvPs4JAHVUve6nAtMxBQ8CV1HWB62N7aJxoZT88fZNA67K X-Received: by 2002:aca:7506:: with SMTP id q6mr15590481oic.73.1584932400686; Sun, 22 Mar 2020 20:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584932400; cv=none; d=google.com; s=arc-20160816; b=N3XHxzMdHptSx8dN32o1jactMGvQFVa6Q2cyC8/UkZo3CSoYJjYdumDnN6/tNR+4YU 9/Sp2jsfpGO60BcKY35/7JPoSHCHc5MPo5GhlhojjAP9DD1dk8A0fBF4My71G69giOuX pvWH8IjJSGpq3YGUal5WHsERLOKu/ndlm7V+mbD0rE10gQoSjtgrj8PwilBWmrDj9UvX 8DAlDyblX2nuvjACbuJBDRVcUkdJWWDiHEq/7NQGC+Jh/piRRNEpFktabjR2Aa9PHYFX Rv4m+dRN86kqRb725eWYE+sZu/EaJWAlYhCCs0ccEf5F8eyRhJG9qPbLQK44d9210wJV Demw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=3eqPZe+11UDOIYGDPQsTdldXNx4uu5D2YXRYZ5HGMAw=; b=uYDyf7lI5lXvk7xjdPa/pd0N190DrWkI4LuQ4U/dZyaNoiwgX8jLkX0tUwaxpcS0hI LUhQ1c4VVxN1jlv6rtqTSzZD9duWzsriJRlWfdLoMVovqHhauxBBYeknt+NH0mmalaFo gxXKh3pErNPfA8b/UJmqXTYpnn9tYb9fmRkwZ4+aDho3EkMv4TU4r5VkNiMQT5g3DyE+ Q5HLeyuuXAPkYs59wxR7/KkbnCmiHE2SfdH4QRgSFSz9nNc8zhnZPfSQ3bYDMAa1N7EU 0gtSoZpyGSQlyxvyWPjnMl34G3IkJNEZC5a8YLttbIbuUnbWa1JpF0JHv5Vjt5qn2Qs2 Wbrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si7310034oti.18.2020.03.22.19.59.49; Sun, 22 Mar 2020 20:00:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbgCWC71 (ORCPT + 99 others); Sun, 22 Mar 2020 22:59:27 -0400 Received: from mail.loongson.cn ([114.242.206.163]:56006 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727050AbgCWC70 (ORCPT ); Sun, 22 Mar 2020 22:59:26 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxP+gDJnhedaseAA--.407S2; Mon, 23 Mar 2020 10:59:15 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH v2 0/3] Add basic support for Loongson 7A1000 bridge chip Date: Mon, 23 Mar 2020 10:59:12 +0800 Message-Id: <1584932355-3642-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9AxP+gDJnhedaseAA--.407S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Cw4UGr4xXFW7tryfGF48WFg_yoW8KFW7pF WF9a1rWrs8Wry7Aasxur48ur4rArn3JrZrWa17Gr1kAa98XF10qr929a15t3W29r9a9a1U Xry8WrWDKa15CaDanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26F 4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv 7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r 1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY02Avz4vE14v_ Gr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxV WUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI 7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r 1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVW3JVWrJr1lIxAIcVC2z280aVAFwI0_Gr0_Cr1l IxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUjg_-DUUUU U== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Loongson 7A1000 bridge chip has been released for several years since the second half of 2017, but it is not supported by the Linux mainline kernel while it only works well with the Loongson internal kernel version. When I update the latest version of Linux mainline kernel on the Loongson 3A3000 CPU and 7A1000 bridge chip system, the boot process failed and I feel depressed. The 7A1000 bridge chip is used a lot with 3A3000 or 3A4000 CPU in the most Loongson desktop and sever products, it is important to support Loongson 7A1000 bridge chip by the Linux mainline kernel. This patch series adds the basic support for the Loongson 7A1000 bridge chip, when apply these patches based on linux-5.6-rc7, the boot process is successful and we can login normally used with the latest firmware and discrete graphics card, the next work to do is power management and some other controller device drivers. Additionally, when I git clone mips code [1], the speed is too slow and clone always failed, so this patch series is based on the latest linux-5.6-rc7 [2]. If you have any questions and suggestions, please let me know. Thanks, Tiezhu Yang v2: - The split patch series about Loongson vendor ID and SATA controller has been merged into the linux-block.git by Jens Axboe [3]. - Think about using hierarchy IRQ domain in the patch of interrupt controller, and this maybe depend on the patch series by Jiaxun ("Modernize Loongson64 Machine"), so the patch about interrupt is not included in this v2 patch series. [1] git clone https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git [2] git clone https://github.com/torvalds/linux.git [3] https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?h=for-next&id=9acb9fe18d86 https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?h=for-next&id=e49bd683e00b Tiezhu Yang (3): MIPS: Loongson: Get host bridge information MIPS: Loongson: Add DMA support for 7A1000 MIPS: Loongson: Add PCI support for 7A1000 arch/mips/include/asm/mach-loongson64/boot_param.h | 20 ++++++ arch/mips/loongson64/dma.c | 9 ++- arch/mips/loongson64/env.c | 20 ++++++ arch/mips/loongson64/init.c | 17 +++++ arch/mips/pci/ops-loongson3.c | 72 ++++++++++++++++++++-- 5 files changed, 131 insertions(+), 7 deletions(-) -- 2.1.0