[PATCH v2 0/3] Buggy bootloader workaround v2

2020-05-27 Thread Jiaxun Yang
v2: Fixed typo due to keyboard failure. Jiaxun Yang (3): MIPS: head.S: Always jump to kernel_entry at head of text MIPS: Move kernel head into a standalone section MIPS: Loongson64: select NO_EXCEPT_FILL arch/mips/Kconfig | 1 + arch/mips/kernel/head.S| 6 ++ arch

[PATCH v2 3/3] MIPS: Loongson64: select NO_EXCEPT_FILL

2020-05-27 Thread Jiaxun Yang
Loongson64 load kernel at 0x8200 and allocate exception vectors by ebase. So we don't need to reserve space for exception vectors at head of kernel. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig

[PATCH v2 2/3] MIPS: Move kernel head into a standalone section

2020-05-27 Thread Jiaxun Yang
That's what already done by Arm64 and other architectures. That would allow us put more things like PE headers safely into the header. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/head.S| 4 ++-- arch/mips/kernel/vmlinux.lds.S | 8 ++-- 2 files changed, 8 insertions(+), 4

[PATCH v2 1/3] MIPS: head.S: Always jump to kernel_entry at head of text

2020-05-27 Thread Jiaxun Yang
Buggy loaders like early version of PMON2000 sometimes ignore elf_entry and goto start of text directly. That would help with dealing with these loaders. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/head.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/kernel/head.S b/arch

Re: [PATCH 0/2] Bugy bootloader woraround

2020-05-26 Thread Jiaxun Yang
On Wed, 27 May 2020 13:27:17 +0800 Jiaxun Yang wrote: > Jiaxun Yang (2): > MIPS: head.S: Always jump to kernel_entry at head of text > MIPS: Loongso64: select NO_EXCEPT_FILL Please ignore the noise. Something went wrong with my keyboard... > > arch/mips/Kconfig

[PATCH 0/2] Bugy bootloader woraround

2020-05-26 Thread Jiaxun Yang
Jiaxun Yang (2): MIPS: head.S: Always jump to kernel_entry at head of text MIPS: Loongso64: select NO_EXCEPT_FILL arch/mips/Kconfig | 1 + arch/mips/kernel/head.S | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.27.0.rc0

[PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text

2020-05-26 Thread Jiaxun Yang
Buggy loaders like early version of PMON2000 sometimes ignore elf_entry and goto start of text directly. That would help with dealing with these loaders. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/head.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/kernel/head.S b/arch

[PATCH 2/2] MIPS: Loongso64: select NO_EXCEPT_FILL

2020-05-26 Thread Jiaxun Yang
Loongson64 load kernel at 0x8200 and allocate exception vectors by ebase. So we don't need to reserve space for exception vectors at head of kernel. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig

Re: [PATCH v4 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-26 Thread Jiaxun Yang
On Mon, 25 May 2020 11:12:26 +0100 Marc Zyngier wrote: > On Sat, 16 May 2020 09:29:02 +0100, > Jiaxun Yang wrote: > > > > Add binding for Loongson-3 HyperTransport Interrupt Vector > > Controller. > > > > Signed-off-by: Jiaxun Yang > > -- > >

[PATCH v11 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-26 Thread Jiaxun Yang
We can now enable generic PCI driver in Kconfig, and remove legacy PCI driver code. Radeon vbios quirk is moved to the platform folder to fit the new structure. Signed-off-by: Jiaxun Yang -- v9: Fix licenses tag --- arch/mips/Kconfig | 1 + arch/mips/loongson64/Makefile

[PATCH v11 4/5] MIPS: DTS: Loongson64: Add PCI Controller Node

2020-05-26 Thread Jiaxun Yang
Add PCI Host controller node for Loongson64 with RS780E PCH dts. Note that PCI interrupts are probed via legacy way, as different machine have different interrupt arrangement, we can't cover all of them in dt. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 12

[PATCH v11 3/5] dt-bindings: Document Loongson PCI Host Controller

2020-05-26 Thread Jiaxun Yang
PCI host controller found on Loongson PCHs and SoCs. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/loongson.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml diff

[PATCH v11 0/5] Loongson Generic PCI v11

2020-05-26 Thread Jiaxun Yang
v11 fixes a minor style issue in patch 2. Now it have got enough ack, Thomas, cloud you please apply it to mips-next? Thanks. Jiaxun Yang (5): PCI: Don't disable decoding when mmio_always_on is set PCI: Add Loongson PCI Controller support dt-bindings: Document Loongson PCI Host Controller

[PATCH v11 1/5] PCI: Don't disable decoding when mmio_always_on is set

2020-05-26 Thread Jiaxun Yang
Don't disable MEM/IO decoding when a device have both non_compliant_bars and mmio_always_on. That would allow us quirk devices with junk in BARs but can't disable their decoding. Signed-off-by: Jiaxun Yang Acked-by: Bjorn Helgaas --- drivers/pci/probe.c | 2 +- 1 file changed, 1 insertion

[PATCH v11 2/5] PCI: Add Loongson PCI Controller support

2020-05-26 Thread Jiaxun Yang
This controller can be found on Loongson-2K SoC, Loongson-3 systems with RS780E/LS7A PCH. The RS780E part of code was previously located at arch/mips/pci/ops-loongson3.c and now it can use generic PCI driver implementation. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring Acked-by: Lorenzo

Re: [PATCH v10 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-26 Thread Jiaxun Yang
;> > > On Thu, May 14, 2020 at 09:16:41PM +0800, Jiaxun Yang wrote: >> > > > We can now enable generic PCI driver in Kconfig, and remove legacy >> > > > PCI driver code. >> > > > >> > > > Radeon vbios quirk is moved to the platfo

Re: [PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-22 Thread Jiaxun Yang
于 2020年5月22日 GMT+08:00 下午9:10:18, Lorenzo Pieralisi 写到: >On Wed, May 20, 2020 at 07:57:29PM +0800, Jiaxun Yang wrote: >> >> >> 于 2020年5月14日 GMT+08:00 下午9:16:38, Jiaxun Yang 写到: >> >This controller can be found on Loongson-2K SoC, Loongson-3 &g

Re: [PATCH v8 1/6] MIPS: JZ4780: Introduce SMP support.

2020-05-20 Thread Jiaxun Yang
n pick it for now. [...] [1]: https://lkml.org/lkml/2020/4/11/1088 -- Jiaxun Yang

Re: [PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-20 Thread Jiaxun Yang
于 2020年5月14日 GMT+08:00 下午9:16:38, Jiaxun Yang 写到: >This controller can be found on Loongson-2K SoC, Loongson-3 >systems with RS780E/LS7A PCH. > >The RS780E part of code was previously located at >arch/mips/pci/ops-loongson3.c and now it can use generic PCI >driver implementat

Re: [PATCH v2 5/6] irqchip: Add Loongson PCH MSI controller

2020-05-20 Thread Jiaxun Yang
于 2020年5月13日 GMT+08:00 下午8:15:40, Thomas Gleixner 写到: >Thomas Gleixner writes: >> Jiaxun Yang writes: >>> + >>> +struct pch_msi_data { >>> + spinlock_t msi_map_lock; >>> + phys_addr_t doorbell; >>> + u32

[PATCH v4 4/6] dt-bindings: interrupt-controller: Add Loongson PCH PIC

2020-05-16 Thread Jiaxun Yang
Add binding for Loongson PCH PIC Controller. Signed-off-by: Jiaxun Yang -- v2: - Fix naming - Mark loongson,pic-base-vec as required --- .../loongson,pch-pic.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation

[PATCH v4 1/6] irqchip: Add Loongson HyperTransport Vector support

2020-05-16 Thread Jiaxun Yang
This controller appears on Loongson-3 chips for receiving interrupt vectors from PCH's PIC and PCH's PCIe MSI interrupts. Signed-off-by: Jiaxun Yang --- v2: - Style cleanup - Set ack callback and set correct edge_irq handler v3: - Correct bitops in ACK callback v4

[PATCH v4 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-16 Thread Jiaxun Yang
Add binding for Loongson-3 HyperTransport Interrupt Vector Controller. Signed-off-by: Jiaxun Yang -- v4: Drop ref, '|', add additionalProperties, fix example --- .../interrupt-controller/loongson,htvec.yaml | 58 +++ 1 file changed, 58 insertions(+) create mode 100644

[PATCH v4 3/6] irqchip: Add Loongson PCH PIC controller

2020-05-16 Thread Jiaxun Yang
This controller appears on Loongson LS7A family of PCH to transform interrupts from devices into HyperTransport vectorized interrrupts and send them to procrssor's HT vector controller. Signed-off-by: Jiaxun Yang --- v2: - Style clean-ups - Use IRQ_FASTEOI_HIERARCHY_HANDLERS

[PATCH v4 6/6] dt-bindings: interrupt-controller: Add Loongson PCH MSI

2020-05-16 Thread Jiaxun Yang
Add binding for Loongson PCH MSI controller. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../loongson,pch-msi.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,pch

[PATCH v4 5/6] irqchip: Add Loongson PCH MSI controller

2020-05-16 Thread Jiaxun Yang
This controller appears on Loongson LS7A family of PCH to transform interrupts from PCI MSI into HyperTransport vectorized interrrupts and send them to procrssor's HT vector controller. Signed-off-by: Jiaxun Yang -- v2: - Style clean-ups - Add ack callback - Use

Re: [PATCH] MIPS: Loongson: Add support for serial console

2020-05-16 Thread Jiaxun Yang
062500) is a 16550A >[1.890838] printk: console [ttyS0] enabled > >And also, we can login normally from the serial console. > >Signed-off-by: Tiezhu Yang >--- > >Hi Jiaxun, > >Thank you very much for your suggestion. Reviewed-by: Jiaxun Yang Looks like we need a Kconfig clean up. I'll do that after getting LS7A PCH support merged. Anyway, thanks for catching this. [...] -- Jiaxun Yang

Re: [PATCH v2 2/2] MIPS: Fix build errors under CONFIG_HAVE_STD_PC_SERIAL_PORT

2020-05-15 Thread Jiaxun Yang
never use it. If you are willing to add serial port then please do it in devicetree. Platform devices in wild is dangerous and it will break everything. > >Thanks, >Tiezhu Yang > >> >> Thomas. >> > -- Jiaxun Yang

Re: [PATCH 1/2] MIPS: Loongson: Fix fatal error during GPU init

2020-05-14 Thread Jiaxun Yang
于 2020年5月15日 GMT+08:00 上午11:09:56, Tiezhu Yang 写到: >On 05/15/2020 10:33 AM, Jiaxun Yang wrote: >> >> 于 2020年5月15日 GMT+08:00 上午10:15:00, Tiezhu Yang 写到: >>> When ATI Radeon graphics card has been compiled directly into the kernel >>> instead of as a module,

Re: [PATCH 1/2] MIPS: Loongson: Fix fatal error during GPU init

2020-05-14 Thread Jiaxun Yang
l, otherwise there exists the following fatal error during GPU init, >change CONFIG_DRM_RADEON=y to CONFIG_DRM_RADEON=m to fix it. > The commit message looks shocking. You'd better reword it as "MIPS: Loongson64: Mark GPU driver as module in Kconfig" Thanks. -- Jiaxun Yang

[PATCH v10 4/5] MIPS: DTS: Loongson64: Add PCI Controller Node

2020-05-14 Thread Jiaxun Yang
Add PCI Host controller node for Loongson64 with RS780E PCH dts. Note that PCI interrupts are probed via legacy way, as different machine have different interrupt arrangement, we can't cover all of them in dt. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 12

[PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-14 Thread Jiaxun Yang
This controller can be found on Loongson-2K SoC, Loongson-3 systems with RS780E/LS7A PCH. The RS780E part of code was previously located at arch/mips/pci/ops-loongson3.c and now it can use generic PCI driver implementation. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring -- v2

[PATCH v10 3/5] dt-bindings: Document Loongson PCI Host Controller

2020-05-14 Thread Jiaxun Yang
PCI host controller found on Loongson PCHs and SoCs. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/loongson.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml diff

[PATCH v10 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-14 Thread Jiaxun Yang
We can now enable generic PCI driver in Kconfig, and remove legacy PCI driver code. Radeon vbios quirk is moved to the platform folder to fit the new structure. Signed-off-by: Jiaxun Yang -- v9: Fix licenses tag --- arch/mips/Kconfig | 1 + arch/mips/loongson64/Makefile

[PATCH v10 1/5] PCI: Don't disable decoding when mmio_always_on is set

2020-05-14 Thread Jiaxun Yang
Don't disable MEM/IO decoding when a device have both non_compliant_bars and mmio_always_on. That would allow us quirk devices with junk in BARs but can't disable their decoding. Signed-off-by: Jiaxun Yang Acked-by: Bjorn Helgaas --- drivers/pci/probe.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH v9 2/5] PCI: Add Loongson PCI Controller support

2020-05-12 Thread Jiaxun Yang
于 2020年5月13日 GMT+08:00 上午2:06:02, Bjorn Helgaas 写到: >On Tue, May 12, 2020 at 03:43:56PM +0800, Jiaxun Yang wrote: >> This controller can be found on Loongson-2K SoC, Loongson-3 >> systems with RS780E/LS7A PCH. >> >> The RS780E part of code was previously loca

[PATCH v9 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-12 Thread Jiaxun Yang
We can now enable generic PCI driver in Kconfig, and remove legacy PCI driver code. Radeon vbios quirk is moved to the platform folder to fit the new structure. Signed-off-by: Jiaxun Yang -- v9: Fix licenses tag --- arch/mips/Kconfig | 1 + arch/mips/loongson64/Makefile

[PATCH v9 4/5] MIPS: DTS: Loongson64: Add PCI Controller Node

2020-05-12 Thread Jiaxun Yang
Add PCI Host controller node for Loongson64 with RS780E PCH dts. Note that PCI interrupts are probed via legacy way, as different machine have different interrupt arrangement, we can't cover all of them in dt. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 12

[PATCH v9 2/5] PCI: Add Loongson PCI Controller support

2020-05-12 Thread Jiaxun Yang
This controller can be found on Loongson-2K SoC, Loongson-3 systems with RS780E/LS7A PCH. The RS780E part of code was previously located at arch/mips/pci/ops-loongson3.c and now it can use generic PCI driver implementation. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring -- v2

[PATCH v9 3/5] dt-bindings: Document Loongson PCI Host Controller

2020-05-12 Thread Jiaxun Yang
PCI host controller found on Loongson PCHs and SoCs. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/loongson.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml diff

[PATCH v9 1/5] PCI: Don't disable decoding when mmio_always_on is set

2020-05-12 Thread Jiaxun Yang
Don't disable MEM/IO decoding when a device have both non_compliant_bars and mmio_always_on. That would allow us quirk devices with junk in BARs but can't disable their decoding. Signed-off-by: Jiaxun Yang Acked-by: Bjorn Helgaas --- drivers/pci/probe.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH v3 1/6] irqchip: Add Loongson HyperTransport Vector support

2020-05-12 Thread Jiaxun Yang
On Fri, 1 May 2020 17:21:32 +0800 Jiaxun Yang wrote: > This controller appears on Loongson-3 chips for receiving interrupt > vectors from PCH's PIC and PCH's PCIe MSI interrupts. > > Signed-off-by: Jiaxun Yang > --- > v2: > - Style cleanup > - Set ack

Re: [PATCH v8 2/5] PCI: Add Loongson PCI Controller support

2020-05-08 Thread Jiaxun Yang
于 2020年5月9日 GMT+08:00 上午1:17:30, Bjorn Helgaas 写到: >On Fri, May 08, 2020 at 07:34:02PM +0800, Jiaxun Yang wrote: >> This controller can be found on Loongson-2K SoC, Loongson-3 >> systems with RS780E/LS7A PCH. >> >> The RS780E part of code was previously loca

Re: [PATCH v2 17/20] mips: Add udelay lpj numbers adjustment

2020-05-08 Thread Jiaxun Yang
exey Malahov > Signed-off-by: Serge Semin > Cc: Thomas Bogendoerfer > Cc: Paul Burton > Cc: Ralf Baechle > Cc: Arnd Bergmann > Cc: Rob Herring > Cc: linux...@vger.kernel.org > Cc: devicet...@vger.kernel.org Reviewed-by: Jiaxun Yang That have been absent in MIPS kernel so long! Thanks. > --- [...] --- Jiaxun Yang

[PATCH v8 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-08 Thread Jiaxun Yang
We can now enable generic PCI driver in Kconfig, and remove legacy PCI driver code. Radeon vbios quirk is moved to the platform folder to fit the new structure. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + arch/mips/loongson64/Makefile | 2 +- arch/mips

[PATCH v8 4/5] MIPS: DTS: Loongson64: Add PCI Controller Node

2020-05-08 Thread Jiaxun Yang
Add PCI Host controller node for Loongson64 with RS780E PCH dts. Note that PCI interrupts are probed via legacy way, as different machine have different interrupt arrangement, we can't cover all of them in dt. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 12

[PATCH v8 1/5] PCI: Don't disable decoding when mmio_always_on is set

2020-05-08 Thread Jiaxun Yang
Don't disable MEM/IO decoding when a device have both non_compliant_bars and mmio_always_on. That would allow us quirk devices with junk in BARs but can't disable their decoding. Signed-off-by: Jiaxun Yang --- drivers/pci/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v8 3/5] dt-bindings: Document Loongson PCI Host Controller

2020-05-08 Thread Jiaxun Yang
PCI host controller found on Loongson PCHs and SoCs. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/loongson.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml diff

[PATCH v8 2/5] PCI: Add Loongson PCI Controller support

2020-05-08 Thread Jiaxun Yang
This controller can be found on Loongson-2K SoC, Loongson-3 systems with RS780E/LS7A PCH. The RS780E part of code was previously located at arch/mips/pci/ops-loongson3.c and now it can use generic PCI driver implementation. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring -- v2

Re: [PATCH v7 2/5] PCI: Add Loongson PCI Controller support

2020-05-06 Thread Jiaxun Yang
On Mon, 4 May 2020 18:43:29 -0500 Bjorn Helgaas wrote: > On Tue, Apr 28, 2020 at 09:14:17AM +0800, Jiaxun Yang wrote: > > This controller can be found on Loongson-2K SoC, Loongson-3 > > systems with RS780E/LS7A PCH. > > > > The RS780E part of code was previously locat

[no subject]

2020-05-05 Thread Jiaxun Yang
uncate load address provided by platform into 32bit for 32bit kernel. Signed-off-by: Jiaxun Yang Link: https://github.com/ClangBuiltLinux/linux/issues/786 Link: https://sourceware.org/bugzilla/show_bug.cgi?id=25784 Reviewed-by: Fangrui Song Reviewed-by: Kees Cook Tested-by: Nathan Chancell

Re: [PATCH v5] MIPS: Truncate link address into 32bit for 32bit kernel

2020-05-04 Thread Jiaxun Yang
于 2020年5月4日 GMT+08:00 下午11:46:13, Thomas Bogendoerfer 写到: >On Fri, Apr 24, 2020 at 01:22:30PM +0100, Maciej W. Rozycki wrote: >> On Thu, 23 Apr 2020, Jiaxun Yang wrote: >> >> > > Alternatively, have you made any attempt to verify if actually r

Re: [PATCH v2] MIPS: tools: Show result for loongson3-llsc-check

2020-05-01 Thread Jiaxun Yang
/loongson3-llsc-check ../../../vmlinux >[loongson@localhost tools]$ > >With this patch: > >[loongson@localhost tools]$ ./loongson3-llsc-check ../../../vmlinux >loongson3-llsc-check returns success >[loongson@localhost tools]$ > >Signed-off-by: Tiezhu Yang Reviewed-b

[PATCH v3 6/6] dt-bindings: interrupt-controller: Add Loongson PCH MSI

2020-05-01 Thread Jiaxun Yang
Add binding for Loongson PCH MSI controller. Signed-off-by: Jiaxun Yang --- .../loongson,pch-msi.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,pch-msi.yaml diff --git

[PATCH v3 5/6] irqchip: Add Loongson PCH MSI controller

2020-05-01 Thread Jiaxun Yang
This controller appears on Loongson LS7A family of PCH to transform interrupts from PCI MSI into HyperTransport vectorized interrrupts and send them to procrssor's HT vector controller. Signed-off-by: Jiaxun Yang -- v2: - Style clean-ups - Add ack callback - Use

[PATCH v3 4/6] dt-bindings: interrupt-controller: Add Loongson PCH PIC

2020-05-01 Thread Jiaxun Yang
Add binding for Loongson PCH PIC Controller. Signed-off-by: Jiaxun Yang -- v2: - Fix naming - Mark loongson,pic-base-vec as required --- .../loongson,pch-pic.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation

[PATCH v3 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-01 Thread Jiaxun Yang
Add binding for Loongson-3 HyperTransport Interrupt Vector Controller. Signed-off-by: Jiaxun Yang --- .../interrupt-controller/loongson,htvec.yaml | 59 +++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson

[PATCH v3 3/6] irqchip: Add Loongson PCH PIC controller

2020-05-01 Thread Jiaxun Yang
This controller appears on Loongson LS7A family of PCH to transform interrupts from devices into HyperTransport vectorized interrrupts and send them to procrssor's HT vector controller. Signed-off-by: Jiaxun Yang --- v2: - Style clean-ups - Use IRQ_FASTEOI_HIERARCHY_HANDLERS

[PATCH v3 1/6] irqchip: Add Loongson HyperTransport Vector support

2020-05-01 Thread Jiaxun Yang
This controller appears on Loongson-3 chips for receiving interrupt vectors from PCH's PIC and PCH's PCIe MSI interrupts. Signed-off-by: Jiaxun Yang --- v2: - Style cleanup - Set ack callback and set correct edge_irq handler v3: - Correct bitops in ACK callback

Re: [PATCH v6] MIPS: Loongson: Add DMA support for LS7A

2020-04-29 Thread Jiaxun Yang
ur suggestions. I'm probably going to refine this before we implement full devicetree boot, but that's in far future. LGTM to me for now. Thanks. Reviewed-by: Jiaxun Yang > >v5: > - use the default implementation of __phys_to_dma() >and __dma_to_phys() in dma-direct.h > >v6: >

Re: [PATCH v2 1/3] MIPS: Massage address spaces headers

2020-04-28 Thread Jiaxun Yang
于 2020年4月28日 GMT+08:00 下午7:33:26, Thomas Bogendoerfer 写到: >On Tue, Apr 28, 2020 at 10:14:12AM +0800, Jiaxun Yang wrote: >> That would allow us modify kernel vm address spaces without >> step into the hell of includes. >> >> Also use some marcos for address s

Kernel.org SSL certification expired

2019-10-11 Thread Jiaxun Yang
Hi kernel.org sysadmin team, It seems like SSL certification of kernel.org is expired today. With HSTS enable, we can't reach kernel.org now. Thanks -- Jiaxun Yang

Re: [PATCH v2 02/19] MIPS: Loongson64: separate loongson2ef/loongson64 code

2019-09-17 Thread Jiaxun Yang
08:12, 2019年9月10日, Paul Burton : Hi Jiaxun & Huacai, On Thu, Sep 05, 2019 at 10:42:59PM +0800, Jiaxun Yang wrote:  As later model of GSx64 family processors including 2-series-soc have  similar design with initial loongson3a while loongson2e/f seems

Re: [PATCH 00/13] Modernize Loongson64 Machine

2019-09-17 Thread Jiaxun Yang
14:30, 2019年9月12日, Matt Turner : On Tue, Aug 27, 2019 at 1:53 AM Jiaxun Yang mailto:jiaxun.y...@flygoat.com>> wrote:  Loongson have a long history of contributing their code to mainline kernel.  However, it seems like recent years, they are fo

Re: [PATCH v2 14/19] MIPS: Loongson64: Add generic dts

2019-09-06 Thread Jiaxun Yang
On 2019/9/7 上午10:53, Huacai Chen wrote: On Thu, Sep 5, 2019 at 10:47 PM Jiaxun Yang wrote: Add generic device dts for Loongson-3 devices. They seems identical but will be different later. Signed-off-by: Jiaxun Yang Hi, Jiaxun, I'm very glad to see that dts files become less

[PATCH v2 19/19] MAINTAINERS: Add myself as maintainer of LOONGSON64

2019-09-05 Thread Jiaxun Yang
I'm going to help with LOONGSON64 maintainance as well. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 836b21baeb20..36b656ded1b7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10753,6 +10753,7 @@ F: drivers

[PATCH v2 18/19] MAINTAINERS: Add new pathes to LOONGSON64 ARCHITECTURE

2019-09-05 Thread Jiaxun Yang
Place newly submited irqchip drivers and devicetree support under MIPS/LOONGSON64 ARCHITECTURE. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b2ad16902d70..836b21baeb20 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v2 16/19] GPIO: loongson: Drop Loongson-3A/3B support

2019-09-05 Thread Jiaxun Yang
GPIOs on Loongson-3A/B should never be touched by user, it may damage hardware. And nobody is using this driver in realworld. Signed-off-by: Jiaxun Yang --- drivers/gpio/Kconfig | 6 +++--- drivers/gpio/gpio-loongson.c | 9 + 2 files changed, 4 insertions(+), 11 deletions

[PATCH v2 17/19] MIPS: Loongson: Regenerate defconfigs

2019-09-05 Thread Jiaxun Yang
We've touched kconfig a lot in previous patches. Signed-off-by: Jiaxun Yang --- arch/mips/configs/fuloong2e_defconfig | 8 +++- arch/mips/configs/lemote2f_defconfig | 8 ++-- arch/mips/configs/loongson3_defconfig | 13 - 3 files changed, 9 insertions(+), 20 deletions

[PATCH v2 15/19] MIPS: Loongson64: Load built-in dtbs

2019-09-05 Thread Jiaxun Yang
Load proper dtb according to firmware passed parameters and CPU PRID. Signed-off-by: Jiaxun Yang --- .../asm/mach-loongson64/builtin_dtbs.h| 16 .../include/asm/mach-loongson64/loongson64.h | 2 ++ arch/mips/loongson64/env.c| 26

[PATCH v2 14/19] MIPS: Loongson64: Add generic dts

2019-09-05 Thread Jiaxun Yang
Add generic device dts for Loongson-3 devices. They seems identical but will be different later. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 4 +- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/loongson/3a-package.dtsi | 69

[PATCH v2 12/19] dt-bindings: mips: Add loongson boards

2019-09-05 Thread Jiaxun Yang
Prepare for later dts. Signed-off-by: Jiaxun Yang --- .../bindings/mips/loongson/devices.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/loongson/devices.yaml diff --git a/Documentation/devicetree/bindings/mips

[PATCH v2 13/19] dt-bindings: Document loongson vendor-prefix

2019-09-05 Thread Jiaxun Yang
Loongson is a MIPS-compatible processor vendor. Signed-off-by: Jiaxun Yang Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree

[PATCH v2 11/19] MIPS: Loongson64: Drop legacy IRQ code

2019-09-05 Thread Jiaxun Yang
We've made generic irqchip drivers for Loongson-3 platform, it's time to say goodbye to these legacy code. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/irq.h | 1 - arch/mips/loongson64/irq.c | 167 +--- arch/mips/loongson64/smp.c

[PATCH v2 10/19] irqchip: mips-cpu: Convert to simple domain

2019-09-05 Thread Jiaxun Yang
can allocate irq_desc during initialization. Signed-off-by: Jiaxun Yang --- drivers/irqchip/irq-mips-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-cpu.c b/drivers/irqchip/irq-mips-cpu.c index 95d4fd8f7a96..c3cf7fa76424 100644 --- a/drivers/irqc

[PATCH v2 09/19] irqchip: i8259: Add plat-poll support

2019-09-05 Thread Jiaxun Yang
For some platforms (e.g. Loongson-3), platfrom interrupt controller supports polling interrupt vector from i8259 automaticly and generating sepreated interrupt. Thus we add plat-poll OF property for these platforms and setup sepreated chained interrupt handler. Signed-off-by: Jiaxun Yang

[PATCH v2 08/19] dt-bindings: interrupt-controller: Add Loongson-3 HTINTC

2019-09-05 Thread Jiaxun Yang
Document Loongson-3 HyperTransport Interrupt controller. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../loongson,ls3-htintc.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller

[PATCH v2 06/19] dt-bindings: interrupt-controller: Add Loongson-3 IOINTC

2019-09-05 Thread Jiaxun Yang
Document Loongson-3 I/O Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-iointc.yaml | 79 +++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml diff --git

[PATCH v2 07/19] irqchip: Add driver for Loongson-3 HyperTransport interrupt controller

2019-09-05 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips to receive interrupts from PCH chip. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-htintc.c | 147 +++ 3 files changed

[PATCH v2 03/19] MAINTAINERS: Fix entries for new loongson64 path

2019-09-05 Thread Jiaxun Yang
As we sepreated the code of loongson2ef/loongson3a, they can now have their own entries. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 783569e3c4b4..b2ad16902d70 100644 --- a/MAINTAINERS

[PATCH v2 04/19] irqchip: Export generic chip domain map/unmap functions

2019-09-05 Thread Jiaxun Yang
Export irq_map_generic_chip, irq_unmap_generic_chip so drivers can use them to construct their own generic chip domain ops. Signed-off-by: Jiaxun Yang --- include/linux/irq.h | 1 + kernel/irq/generic-chip.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include

[PATCH v2 05/19] irqchip: Add driver for Loongson-3 I/O interrupt controller

2019-09-05 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips as the primary package interrupt source. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-iointc.c | 275 +++ 3 files

[PATCH v2 02/19] MIPS: Loongson64: separate loongson2ef/loongson64 code

2019-09-05 Thread Jiaxun Yang
As later model of GSx64 family processors including 2-series-soc have similar design with initial loongson3a while loongson2e/f seems less identical, we separate loongson2e/f support code out of mach-loongson64 to make our life easier. Signed-off-by: Jiaxun Yang --- arch/mips/Kbuild.platforms

[PATCH v2 01/19] MIPS: Loongson64: Rename CPU TYPES

2019-09-05 Thread Jiaxun Yang
CPU_LOONGSON2 -> CPU_LOONGSON2EF CPU_LOONGSON3 -> CPU_LOONGSON64 As newer loongson-2 products (2G/2H/2K1000) can share kernel implementation with loongson-3 while 2E/2F are less similar with other LOONGSON64 products. Signed-off-by: Jiaxun Yang --- arch/mips/K

[PATCH v2 00/19] Modernize Loongson64 Machine

2019-09-05 Thread Jiaxun Yang
ding to Huacai and Paul's comments Jiaxun Yang (19): MIPS: Loongson64: Rename CPU TYPES MIPS: Loongson64: separate loongson2ef/loongson64 code MAINTAINERS: Fix entries for new loongson64 path irqchip: Export generic chip domain map/unmap functions irqchip: Add driver for Loongson-3 I/O inter

Re: [PATCH v1 14/18] MIPS: Loongson64: Add generic dts

2019-09-04 Thread Jiaxun Yang
file names. Thanks, I'm going to drop cpu node in v2. Renaming files seems meaningless, but I'm going to do that too. -- Jiaxun Yang

[PATCH v1 18/18] MAINTAINERS: Add myself as maintainer of LOONGSON64

2019-08-29 Thread Jiaxun Yang
I'm going to help with LOONGSON64 maintainance as well. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 242970af939c..e14edf51ee15 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10758,6 +10758,7 @@ F: drivers

[PATCH v1 17/18] MAINTAINERS: Add new pathes to LOONGSON64 ARCHITECTURE

2019-08-29 Thread Jiaxun Yang
Place newly submited irqchip drivers and devicetree support under MIPS/LOONGSON64 ARCHITECTURE. Signed-off-by: Jiaxun Yang --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d5d4fed632e6..242970af939c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v1 14/18] MIPS: Loongson64: Add generic dts

2019-08-29 Thread Jiaxun Yang
Add generic device dts for Loongson-3 devices. They seems identical but will be different later. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 4 +- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/loongson/Makefile | 8

[PATCH v1 15/18] MIPS: Loongson64: Load built-in dtbs

2019-08-29 Thread Jiaxun Yang
Load proper dtb according to firmware passed parameters and CPU PRID. Signed-off-by: Jiaxun Yang --- .../asm/mach-loongson64/builtin_dtbs.h| 26 +++ .../include/asm/mach-loongson64/loongson64.h | 2 + arch/mips/loongson64/env.c| 67 +++ arch

[PATCH v1 16/18] MIPS: Loongson: Regenerate defconfigs

2019-08-29 Thread Jiaxun Yang
We've touched kconfig a lot in previous patches. Signed-off-by: Jiaxun Yang --- arch/mips/configs/fuloong2e_defconfig | 8 +++- arch/mips/configs/lemote2f_defconfig | 8 ++-- arch/mips/configs/loongson3_defconfig | 12 3 files changed, 9 insertions(+), 19 deletions

[PATCH v1 13/18] dt-bindings: Document loongson vendor-prefix

2019-08-29 Thread Jiaxun Yang
Loongson is a MIPS-compatible processor vendor. Signed-off-by: Jiaxun Yang --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor

[PATCH v1 12/18] dt-bindings: mips: Add loongson cpus & boards

2019-08-29 Thread Jiaxun Yang
Prepare for later dts. Signed-off-by: Jiaxun Yang --- .../bindings/mips/loongson/cpus.yaml | 38 +++ .../bindings/mips/loongson/devices.yaml | 64 +++ 2 files changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/loongson

[PATCH v1 11/18] MIPS: Loongson64: Drop legacy IRQ code

2019-08-29 Thread Jiaxun Yang
We've made generic irqchip drivers for Loongson-3 platform, it's time to say goodbye to these legacy code. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/irq.h | 1 - arch/mips/loongson64/irq.c | 167 +--- arch/mips/loongson64/smp.c

[PATCH v1 10/18] irqchip: mips-cpu: Convert to simple domain

2019-08-29 Thread Jiaxun Yang
can allocate irq_desc during initialization. Signed-off-by: Jiaxun Yang --- drivers/irqchip/irq-mips-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-cpu.c b/drivers/irqchip/irq-mips-cpu.c index 95d4fd8f7a96..c3cf7fa76424 100644 --- a/drivers/irqc

[PATCH v1 09/18] irqchip: i8259: Add plat-poll support

2019-08-29 Thread Jiaxun Yang
For some platforms (e.g. Loongson-3), platfrom interrupt controller supports polling interrupt vector from i8259 automaticly and generating sepreated interrupt. Thus we add plat-poll OF property for these platforms and setup sepreated chained interrupt handler. Signed-off-by: Jiaxun Yang

[PATCH v1 08/18] dt-bindings: interrupt-controller: Add Loongson-3 HTINTC

2019-08-29 Thread Jiaxun Yang
Document Loongson-3 HyperTransport Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-htintc.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-htintc.yaml

[PATCH v1 06/18] dt-bindings: interrupt-controller: Add Loongson-3 IOINTC

2019-08-29 Thread Jiaxun Yang
Document Loongson-3 I/O Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-iointc.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml diff --git

[PATCH v1 07/18] irqchip: Add driver for Loongson-3 HyperTransport interrupt controller

2019-08-29 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips to receive interrupts from PCH chip. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 8 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-htintc.c | 147 +++ 3 files changed

[PATCH v1 05/18] irqchip: Add driver for Loongson-3 I/O interrupt controller

2019-08-29 Thread Jiaxun Yang
This controller appeared on Loongson-3 family of chips as the primary package interrupt source. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls3-iointc.c | 275 +++ 3 files

<    1   2   3   4   5   6   >