Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3489911ybl; Sun, 12 Jan 2020 19:34:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwMm1RrPDerrOseusnLPNnq04SUlY2pmprlhFyGI0RedFy+QUXSZlxvCRzqS6bZ4jou/M1K X-Received: by 2002:a9d:69ce:: with SMTP id v14mr12101771oto.248.1578886465404; Sun, 12 Jan 2020 19:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578886465; cv=none; d=google.com; s=arc-20160816; b=U6kQU8u8Lz+yWhBiqyxkBTJXlPx4i23qzAMW0emG5xHX+5RQzGlsaU8ctwtPWzF7y0 gC8SovBdVtMaSHfvqnktcBZPfzeA5wG7Nd1tkyGIDecQccDGXelRfVelVY0NvItRKbhe m6lfPToPs+BITLZ85sqe6wIfQZO+3gQKtVhU9mCc8SWI2b4HixTFtw8mJHK30QrNZve+ fjasL+3YmNMIk0p+Yjwkd4HAmGxGAoBFLPRpfJF6YCZofph+jTACTUrLa/DZ9zX+bW6e LwMc/BCd7pray6tkGRmmU9ITJIEkdpX7LoXRQ4bHt1B/d1HVbzeGUZM4vBz6eGNXCoUk WlFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=jtJ5n8bvLyOE+deBSBgZkyAEPr+Moq3BE/Wzkoo8Gwc=; b=lUGAbn6v99qgvps78gbDrCvkIAryRYhRlOF2bguD/52XEHgZyC0E48mw6/t89f3c+5 dyiQhxaOT2XPSy4RCLV4NS+ROwo/jRFpjWHkCJi8gO9DH2/YVwUCGoy460eDSV07H/EP 3PxDwwYq1XbRYJ/l9kGwhAYgbBTmgZO7swaFyEAXlTWRCSRA/TOjr428SXYGQI6KQ/1B TDBrDijK3UIRV6kkAoUPUa/JSIMgqU0W8/lwrDIY79BRQ9XAoRvfGUHn/U6kQvbcNhb7 4UuNquFmbQsICsTYIuj5fa/VRocaZ1Za7G/+vHKh9drtoS7GxpvNsLBPDQ5kj65VZGCS Ahig== 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 8si5855933ota.266.2020.01.12.19.34.13; Sun, 12 Jan 2020 19:34:25 -0800 (PST) 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 S1733276AbgAMDcz (ORCPT + 99 others); Sun, 12 Jan 2020 22:32:55 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:46212 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732961AbgAMDcz (ORCPT ); Sun, 12 Jan 2020 22:32:55 -0500 Received: by mail-io1-f65.google.com with SMTP id t26so8298489ioi.13; Sun, 12 Jan 2020 19:32:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jtJ5n8bvLyOE+deBSBgZkyAEPr+Moq3BE/Wzkoo8Gwc=; b=DecjkbC4A5B80De2Y//7TaLVOnf4MRht3jJCHdfa8Iy171xkOqRDBMhQZeLI2UNzsG jXz+4FkfbyfzFMJAggS/GtNNtipRvfKWr5B/V7L6IDJ3U4zGDEeAzrTPO7fkUalALRAx tsH88r/IwmoCv3lokb6YuG6DvQl0JUp7sjpzkwTgbKDk/4yIDzqPFmVJEZAO6irdBp5J Hi9hkA7mhpZR2vo4S6zpr2ntHrk2FP3S5AAppj8kIBMUplBP7tXFBQTG6d/2DR/z1w0B bRIxqVSje4RYQTjLYA4572cWf4DysoyYkLde7DidW1U1vyJ79ZKCMKmuJv1CHIXkZMSW FjqQ== X-Gm-Message-State: APjAAAV5tX4wIddUdtuIlqqGLB1KbrE/EUQVmxwZAefu3qpdLmRIztUr /5xxTrLHgHO7X4pSO3hSUqd3EhgTPVKEe05IWc4= X-Received: by 2002:a6b:4e0b:: with SMTP id c11mr9716656iob.143.1578886374641; Sun, 12 Jan 2020 19:32:54 -0800 (PST) MIME-Version: 1.0 References: <20190827085302.5197-1-jiaxun.yang@flygoat.com> <20200112081416.722218-1-jiaxun.yang@flygoat.com> In-Reply-To: <20200112081416.722218-1-jiaxun.yang@flygoat.com> From: Huacai Chen Date: Mon, 13 Jan 2020 11:38:04 +0800 Message-ID: Subject: Re: [PATCH v3 00/10] Modernize Loongson64 Machine To: Jiaxun Yang Cc: "open list:MIPS" , Paul Burton , Thomas Gleixner , Jason Cooper , Marc Zyngier , LKML , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jiaxun, On Sun, Jan 12, 2020 at 4:21 PM Jiaxun Yang wrote: > > Loongson have a long history of contributing their code to mainline kernel. > However, it seems like recent years, they are focusing on maintain a kernel by themselves > rather than contribute there code to the community. > > Kernel is progress rapidly too. Their code slept in mainline for a long peroid without proper > maintainance and became outdated. > > This patchset brings modern DeviceTree and irqchip support to the Loongson64 machine, and leaves > Loongson 2e/f alone since they are too legacy to touch. I think you can provide a irqchip hierarchy for Loongson3 here. i.e., the flowchart of cpuintc, iointc, htpic, i8259, and so on. Huacai > > PCI and some legacy I/O device will be converted later, together with LS7A PCH support. > > v1: > - dt-bindings fixup according to Rob's comments > - irqchip fixup according to Marc's comments > - ls3-iointc: Make Core&IP map per-IRQ > - Regenerate kconfigs > - Typo & style improvements > > v2: > - dt-bindings: Fix IOINTC, collect Rob's review tag > - dtbs: Drop CPU Node, merge different ways according to Huacai and Paul's comments > > v3: > - Split code have been merged > - Fix IOINTC binding to allow map any child IRQ to and parent > - Convert "HTINTC" into "HTPIC", which mixed HT vectors processing and i8259 > - Naming style fix according to Huacai's suggestions > > Jiaxun Yang (10): > dt-bindings: Document loongson vendor-prefix > irqchip: Add driver for Loongson I/O interrupt controller > dt-bindings: interrupt-controller: Add Loongson IOINTC > irqchip: Add driver for Loongson-3 HyperTransport PIC controller > dt-bindings: interrupt-controller: Add Loongson-3 HTPIC > irqchip: mips-cpu: Convert to simple domain > MIPS: Loongson64: Drop legacy IRQ code > dt-bindings: mips: Add loongson boards > MIPS: Loongson64: Add generic dts > MIPS: Loongson64: Load built-in dtbs > > .../interrupt-controller/loongson,htpic.yaml | 59 +++ > .../interrupt-controller/loongson,iointc.yaml | 92 +++++ > .../bindings/mips/loongson/devices.yaml | 29 ++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > arch/mips/Kconfig | 6 +- > arch/mips/boot/dts/Makefile | 1 + > arch/mips/boot/dts/loongson/Makefile | 5 + > .../boot/dts/loongson/loongson3-package.dtsi | 62 ++++ > .../dts/loongson/loongson3_4core_rs780e.dts | 25 ++ > .../dts/loongson/loongson3_8core_rs780e.dts | 25 ++ > arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 26 ++ > arch/mips/include/asm/i8259.h | 1 + > .../include/asm/mach-loongson64/boot_param.h | 2 + > .../asm/mach-loongson64/builtin_dtbs.h | 13 + > arch/mips/include/asm/mach-loongson64/irq.h | 32 +- > .../include/asm/mach-loongson64/loongson.h | 1 + > arch/mips/loongson64/Makefile | 2 +- > arch/mips/loongson64/env.c | 23 ++ > arch/mips/loongson64/init.c | 6 + > arch/mips/loongson64/irq.c | 162 --------- > arch/mips/loongson64/setup.c | 16 + > arch/mips/loongson64/smp.c | 28 +- > drivers/irqchip/Kconfig | 18 + > drivers/irqchip/Makefile | 2 + > drivers/irqchip/irq-i8259.c | 6 +- > drivers/irqchip/irq-loongson-htpic.c | 147 ++++++++ > drivers/irqchip/irq-loongson-iointc.c | 338 ++++++++++++++++++ > drivers/irqchip/irq-mips-cpu.c | 2 +- > 28 files changed, 915 insertions(+), 216 deletions(-) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,htpic.yaml > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,iointc.yaml > create mode 100644 Documentation/devicetree/bindings/mips/loongson/devices.yaml > create mode 100644 arch/mips/boot/dts/loongson/Makefile > create mode 100644 arch/mips/boot/dts/loongson/loongson3-package.dtsi > create mode 100644 arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dts > create mode 100644 arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dts > create mode 100644 arch/mips/boot/dts/loongson/rs780e-pch.dtsi > create mode 100644 arch/mips/include/asm/mach-loongson64/builtin_dtbs.h > delete mode 100644 arch/mips/loongson64/irq.c > create mode 100644 drivers/irqchip/irq-loongson-htpic.c > create mode 100644 drivers/irqchip/irq-loongson-iointc.c > > -- > 2.24.1 >