Re: [PATCH] MIPS: Loongson64: Add kexec/kdump support

2020-09-17 Thread Jiaxun Yang
在 2020/9/17 20:41, Jinyang He 写道: Hi, Huacai, On 09/16/2020 01:39 PM, Huacai Chen wrote: Hi, Jinyang, On Tue, Sep 15, 2020 at 10:17 PM Jinyang He wrote: On 09/16/2020 09:33 AM, Jiaxun Yang wrote: 于 2020年9月15日 GMT+08:00 下午9:07:43, Jinyang He 写到: Add loongson_kexec_prepare

Re: [PATCH] MIPS: Loongson64: Add kexec/kdump support

2020-09-15 Thread Jiaxun Yang
于 2020年9月15日 GMT+08:00 下午9:07:43, Jinyang He 写到: >Add loongson_kexec_prepare(), loongson_kexec_shutdown() and >loongson_kexec_crashdown() for passing the parameters of kexec_args. > >To start loongson64, CPU0 needs 3 parameters: >fw_arg0: the number of cmd. >fw_arg1: cmd structure which seems

Re: [PATCH] MIPS: Remove unused BOOT_MEM_INIT_RAM

2020-09-13 Thread Jiaxun Yang
在 2020/9/12 9:59, Youling Tang 写道: Commit a94e4f24ec83 ("MIPS: init: Drop boot_mem_map") left the BOOT_MEM_INIT_RAM unused, remove it. Signed-off-by: Youling Tang --- arch/mips/include/asm/bootinfo.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/include/asm/bootinfo.h

Re: [PATCH 2/4] MIPS: Loongson2ef: Remove specific mc146818rtc.h

2020-08-25 Thread Jiaxun Yang
在 2020/8/25 下午5:09, Thomas Bogendoerfer 写道: Loonson2ef's mc146818rtc.h is the same as the generic one -> remove it. Signed-off-by: Thomas Bogendoerfer Acked-by: Jiaxun Yang --- .../include/asm/mach-loongson2ef/mc146818rtc.h | 36 -- 1 file changed,

[PATCH RESEND 0/2] Fix cacheinfo

2020-08-19 Thread Jiaxun Yang
This is causing lscpu segfault. So probably worthy to include it as a part of mips-fixes. Jiaxun Yang (2): MIPS: cacheinfo: Add missing VCache MIPS: Loongson64: Set cluster for cores arch/mips/kernel/cacheinfo.c | 34 ++ arch/mips/loongson64/smp.c | 2

[PATCH RESEND 1/2] MIPS: cacheinfo: Add missing VCache

2020-08-19 Thread Jiaxun Yang
Victim Cache is defined by Loongson as per-core unified private Cache. Add this into cacheinfo and make cache levels selfincrement instead of hardcode levels. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/cacheinfo.c | 34 ++ 1 file changed, 26 insertions(+), 8

[PATCH 7/7] MIPS: KVM: Don't use htimer when INTIMER is disabled

2020-08-16 Thread Jiaxun Yang
When INTIMER is disabled by host, the GT compare interrupt will be ignored. Signed-off-by: Jiaxun Yang --- arch/mips/kvm/vz.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c index 9d03bd0a604a..1d2140f7461a 100644 --- a/arch/mips/kvm/vz.c +++ b

[PATCH 6/7] MIPS: cevt-r4k: Enable intimer for Loongson CPUs with extimer

2020-08-16 Thread Jiaxun Yang
Loongson64C and Loongson64G have extimer feature, which is sharing Cause.TI with intimer (which is cevt-r4k). To ensure the cevt-r4k's usability, we need to add a callback for clock device to ensure intimer is enabled when cevt-r4k is enabled. Signed-off-by: Jiaxun Yang --- arch/mips/include

[PATCH 5/7] MIPS: cevt-r4k: Don't handle IRQ if clockevent is not enabled

2020-08-16 Thread Jiaxun Yang
Some platforms may have shared Cause.TI, bailing out in IRQ handler when clock event is not enabled can give another clock device a chance. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/cevt-r4k.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel

[PATCH 4/7] MIPS: Loongson64: Remove custom count sync procudure

2020-08-16 Thread Jiaxun Yang
Now we have hotplug aware reliable sync-r4k, we can simply use that instead of our IPI based implementation. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/smp.h | 1 - arch/mips/loongson64/smp.c | 32 ++-- 2 files changed, 2 insertions(+), 31 deletions

[PATCH 2/7] MIPS: time: Use CPUHUP to handle r4k timer

2020-08-16 Thread Jiaxun Yang
There is no need to hijack initialization procudre to take care of r4k timer we have CPUHP framework to deal with the CPU plug sequence. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/time.h | 28 +++- arch/mips/kernel/cevt-r4k.c | 30

[PATCH 3/7] MIPS: Kconfig: Always select SYNC_R4K if both SMP and r4k timer is enabled

2020-08-16 Thread Jiaxun Yang
Now all platforms are sharing sync-r4k procdure, there is no need to let platform to select it. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 880680c0df31..7674f4379d39

[PATCH 1/7] MIPS: sync-r4k: Rework to be many cores firendly

2020-08-16 Thread Jiaxun Yang
d at every plug event. Here we reworked the whole procdure. Now the synchronise event on CPU0 is triggered by smp call function, and we won't touch the count on CPU0 at all. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/r4k-timer.h | 5 -- arch/mips/kernel/smp.c| 2 - arch/m

[PATCH 0/7] R4000 clock enhancements for Loongson

2020-08-16 Thread Jiaxun Yang
Jiaxun Yang (7): MIPS: sync-r4k: Rework to be many cores firendly MIPS: time: Use CPUHUP to handle r4k timer MIPS: Kconfig: Always select SYNC_R4K if both SMP and r4k timer is enabled MIPS: Loongson64: Remove custom count sync procudure MIPS: cevt-r4k: Don't handle IRQ if clockevent

Re: [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup

2020-08-11 Thread Jiaxun Yang
在 2020/8/11 下午10:37, Jiaxun Yang 写道: 在 2020/8/11 下午5:31, Xingxing Su 写道: Commit c34b26b98caca48ec9ee9 ("KVM: MIPS: clean up redundant 'kvm_run' parameters") remove the 'kvm_run' parameter in kvm_vz_gpsi_lwc2. The following build error: arch/mips/kvm/vz.c: I

Re: [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup

2020-08-11 Thread Jiaxun Yang
在 2020/8/11 下午5:31, Xingxing Su 写道: Commit c34b26b98caca48ec9ee9 ("KVM: MIPS: clean up redundant 'kvm_run' parameters") remove the 'kvm_run' parameter in kvm_vz_gpsi_lwc2. The following build error: arch/mips/kvm/vz.c: In function ‘kvm_trap_vz_handle_gpsi’: arch/mips/kvm/vz.c:1243:43:

[PATCH RESEND for-5.9] MIPS: KVM: Convert a fallthrough comment to fallthrough

2020-08-09 Thread Jiaxun Yang
kvm/emulate.c:1939:2: note: here 1939 | case lw_op: Just fix it. Signed-off-by: Jiaxun Yang Reviewed-by: Huacai Chen --- This is blocking KVM MIPS from build, so it needs to get into 5.9. --- arch/mips/kvm/emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m

Re: [PATCH] gpu/drm: Remove TTM_PL_FLAG_WC of VRAM to fix writecombine issue for Loongson64

2020-08-08 Thread Jiaxun Yang
在 2020/8/8 下午9:41, Thomas Bogendoerfer 写道: On Sat, Aug 08, 2020 at 03:25:02PM +0800, Tiezhu Yang wrote: Loongson processors have a writecombine issue that maybe failed to write back framebuffer used with ATI Radeon or AMD GPU at times, after commit 8a08e50cee66 ("drm: Permit video-buffers

[PATCH for-fixes] MIPS: Loongson64: Do not override watch and ejtag feature

2020-08-08 Thread Jiaxun Yang
Do not override ejtag feature to 0 as Loongson 3A1000+ do have ejtag. For watch, as KVM emulated CPU doesn't have watch feature, we should not enable it unconditionally. Signed-off-by: Jiaxun Yang --- This patch should go into mips-fixes tree as watch feature is blocking KVM guest boot in some

Re: [PATCH 00/13] MIPS: Convert Ingenic to a generic board

2020-08-07 Thread Jiaxun Yang
在 2020/8/8 上午12:45, Paul Cercueil 写道: Hi Zhou, Le sam. 8 août 2020 à 0:23, Zhou Yanjie a écrit : Hi Paul, I'm not too sure if remove "cpu-feature-overrides.h" will cause some problems for X2000, because according to my current test on X2000, I found that it is somewhat different from

Re: [PATCH 4/4] MIPS: BCM63xx: refactor board declarations

2020-08-07 Thread Jiaxun Yang
在 2020/8/7 下午5:38, Álvaro Fernández Rojas 写道: Current board declarations are a mess. Let's put some order and make them follow the same structure. Also remove board declarations tabs and double whitespace in the header. Signed-off-by: Álvaro Fernández Rojas ---

Re: [PATCH] MIPS: Introduce cmdline argument writecombine=

2020-08-06 Thread Jiaxun Yang
在 2020/8/7 上午12:52, Thomas Bogendoerfer 写道: On Thu, Aug 06, 2020 at 07:56:20PM +0800, Jiaxun Yang wrote: Our current problem is Loongson's writecombine implementation seems buggy. This is our platform issue rather than target hardware issue. ok, so simply clear cpu_data[0].writecombine

Re: [PATCH] MIPS: Introduce cmdline argument writecombine=

2020-08-06 Thread Jiaxun Yang
在 2020/8/6 下午6:17, Thomas Bogendoerfer 写道: On Thu, Aug 06, 2020 at 04:32:13PM +0800, Tiezhu Yang wrote: On 08/06/2020 03:39 PM, Jiaxun Yang wrote: 在 2020/8/6 下午3:09, Tiezhu Yang 写道: Loongson processors have a writecombine issue that maybe failed to write back framebuffer used with ATI

Re: [PATCH] MIPS: Introduce cmdline argument writecombine=

2020-08-06 Thread Jiaxun Yang
在 2020/8/6 下午3:09, Tiezhu Yang 写道: Loongson processors have a writecombine issue that maybe failed to write back framebuffer used with ATI Radeon or AMD GPU at times, after commit 8a08e50cee66 ("drm: Permit video-buffers writecombine mapping for MIPS"), there exists some errors such as

Re: [PATCH v2] MIPS: Provide Kconfig option for default IEEE 754 conformance mode

2020-08-05 Thread Jiaxun Yang
在 2020/8/1 14:11, Jiaxun Yang 写道: Requested by downstream distros, a Kconfig option for default IEEE 754 conformance mode allows them to set their mode to relaxed by default. Signed-off-by: Jiaxun Yang Reviewed-by: WANG Xuerui Reviewed-by: Serge Semin Reviewed-by: Huacai Chen -- v2

Re: arch/mips/include/asm/mach-ip27/topology.h:19:7: error: implicit declaration of function 'hub_data'

2020-08-04 Thread Jiaxun Yang
在 2020/8/4 上午7:58, Joshua Kinard 写道: On 8/3/2020 15:49, Mike Rapoport wrote: Hi, On Tue, Aug 04, 2020 at 01:39:14AM +0800, kernel test robot wrote: Hi Mike, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head:

Re: [PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode

2020-08-03 Thread Jiaxun Yang
在 2020/8/3 上午5:46, Maciej W. Rozycki 写道: On Fri, 31 Jul 2020, Serge Semin wrote: Requested by downstream distros, a Kconfig option for default IEEE754 conformance mode allows them to set their mode to relaxed by default. That's what should have been here in the first place. Thanks!

[PATCH v2] MIPS: Provide Kconfig option for default IEEE 754 conformance mode

2020-08-01 Thread Jiaxun Yang
Requested by downstream distros, a Kconfig option for default IEEE 754 conformance mode allows them to set their mode to relaxed by default. Signed-off-by: Jiaxun Yang Reviewed-by: WANG Xuerui Reviewed-by: Serge Semin Reviewed-by: Huacai Chen -- v2: Reword according to Xuerui's suggestion

Re: [PATCH] MIPS: BMIPS: Disable pref 30 for buggy CPUs

2020-07-31 Thread Jiaxun Yang
在 2020/7/31 下午12:24, Florian Fainelli 写道: Disable pref 30 by utilizing the standard quirk method and matching the affected SoCs: 7344, 7346, 7425. Signed-off-by: Florian Fainelli --- arch/mips/bmips/setup.c | 17 + 1 file changed, 17 insertions(+) diff --git

[PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode

2020-07-30 Thread Jiaxun Yang
Requested by downstream distros, a Kconfig option for default IEEE754 conformance mode allows them to set their mode to relaxed by default. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 21 + arch/mips/kernel/cpu-probe.c | 12 +++- 2 files changed, 32

[PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode

2020-07-30 Thread Jiaxun Yang
Requested by downstream distros, a Kconfig option for default IEEE754 conformance mode allows them to set their mode to relaxed by default. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 21 + arch/mips/kernel/cpu-probe.c | 12 +++- 2 files changed, 32

Re: linux-next: build warning after merge of the mips tree

2020-07-29 Thread Jiaxun Yang
在 2020/7/30 上午9:40, Stephen Rothwell 写道: Hi Jiaxun, On Thu, 30 Jul 2020 09:04:40 +0800 Jiaxun Yang wrote: Btw: Neither James nor Ralf is still active at Linux-MIPS. Interesting. I have just them listed as my contacts for MIPS. Should I change to just Thomes (Thomas Bogendoerfer )? Yes

Re: linux-next: build warning after merge of the mips tree

2020-07-29 Thread Jiaxun Yang
在 2020/7/29 下午6:31, Stephen Rothwell 写道: Hi all, After merging the mips tree, today's linux-next build (powerpc allnoconfig) produced this warning: drivers/of/address.c:104:21: warning: 'of_bus_pci_get_flags' defined but not used [-Wunused-function] 104 | static unsigned int

[PATCH] of_address: Guard of_bus_pci_get_flags with CONFIG_PCI

2020-07-29 Thread Jiaxun Yang
After 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser"), the last user of of_bus_pci_get_flags when CONFIG_PCI is disabled had gone. This caused unused function warning when compiling without CONFIG_PCI. Fix by guarding it with CONFIG_PCI. Signed-off-by: Jiaxun Yang

Re: [PATCH v4 0/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-28 Thread Jiaxun Yang
在 2020/7/29 4:52, Thomas Bogendoerfer 写道: On Tue, Jul 28, 2020 at 11:36:54PM +0800, Jiaxun Yang wrote: Hi, This series convert reservation of Loongson64 Logic PIO into DeviceTree based method. It can be used to replace Huacai's "MIPS: Loongson64: Reserve legacy MMIO space acco

[PATCH v4 5/5] MIPS: Loongson64: Add ISA node for LS7A PCH

2020-07-28 Thread Jiaxun Yang
Although currently we're not enabling any ISA device in devicetree, but this node is required to express the ranges of address reserved for ISA. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/boot/dts

[PATCH v4 3/5] MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

2020-07-28 Thread Jiaxun Yang
It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang -- v3: Move IO_SPACE_LIMIT to spaces.h --- arch/mips/include/asm/io.h | 2 -- arch/mips/include/asm/mach-generic/spaces.h| 4 arch/mips/include/asm/mach-loongson64/spaces.h | 3 +-- 3 files changed

[PATCH v4 1/5] of_address: Add bus type match for pci ranges parser

2020-07-28 Thread Jiaxun Yang
So the parser can be used to parse range property of ISA bus. As they're all using PCI-like method of range property, there is no need start a new parser. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring -- v2: Drop useless check, fix some na for bus_addr add define

[PATCH v4 2/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-28 Thread Jiaxun Yang
Previously, we're hardcoding reserved ISA I/O Space in, now we're processing it I/O via DeviceTree directly. The ranges property if ISA node is used to determine the size and address of reserved I/O space. Signed-off-by: Jiaxun Yang -- v2: Use range_parser instead of pci_range_parser v4: Fix

[PATCH v4 4/5] MIPS: Loongson64: DTS: Fix ISA and PCI I/O ranges for RS780E PCH

2020-07-28 Thread Jiaxun Yang
Ranges should express the actual physical address on bus. Also enlarge the PCI I/O size to the actual hardware limit. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/loongson

[PATCH v4 0/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-28 Thread Jiaxun Yang
s's review comments. v4: - Fix typo & grammar issue according to Xuerui's suggestion. Jiaxun Yang (5): of_address: Add bus type match for pci ranges parser MIPS: Loongson64: Process ISA Node in DeviceTree MIPS: Loongson64: Enlarge IO_SPACE_LIMIT MIPS: Loongson64: DTS: Fix ISA and

[PATCH v3 4/5] MIPS: Loongson64: DTS: Fix ISA range for RS780E PCH

2020-07-24 Thread Jiaxun Yang
Ranges should express the actual physical address on bus. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/loongson/rs780e-pch.dtsi b/arch/mips/boot/dts/loongson/rs780e-pch.dtsi

[PATCH v3 5/5] MIPS: Loongson64: Add ISA node for LS7A PCH

2020-07-24 Thread Jiaxun Yang
Although currently we're not enabling any ISA device in devicetree, but this node is required to express the ranges of address reserved for ISA. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/boot/dts

[PATCH v3 3/5] MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

2020-07-24 Thread Jiaxun Yang
It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang -- v3: Move IO_SPACE_LIMIT to spaces.h --- arch/mips/include/asm/io.h | 2 -- arch/mips/include/asm/mach-generic/spaces.h| 4 arch/mips/include/asm/mach-loongson64/spaces.h | 3 +-- 3 files changed

[PATCH v3 2/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-24 Thread Jiaxun Yang
Previously, we're hardcoding resserved ISA I/O Space in code, now we're processing reverved I/O via DeviceTree directly. Using the ranges property to determine the size and address of reserved I/O space. Signed-off-by: Jiaxun Yang -- v2: Use range_parser instead of pci_range_parser --- arch

[PATCH v3 0/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-24 Thread Jiaxun Yang
s's review comments. Jiaxun Yang (5): of_address: Add bus type match for pci ranges parser MIPS: Loongson64: Process ISA Node in DeviceTree MIPS: Loongson64: Enlarge IO_SPACE_LIMIT MIPS: Loongson64: DTS: Fix ISA range for RS780E PCH MIPS: Loongson64: Add ISA node for LS7A PCH arch/mip

[PATCH v3 1/5] of_address: Add bus type match for pci ranges parser

2020-07-24 Thread Jiaxun Yang
So the parser can be used to parse range property of ISA bus. As they're all using PCI-like method of range property, there is no need start a new parser. Signed-off-by: Jiaxun Yang -- v2: Drop useless check, fix some na for bus_addr add define of of_range_parser_init according

Re: [PATCH v2 3/5] MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

2020-07-21 Thread Jiaxun Yang
在 2020/7/21 下午10:17, Jiaxun Yang 写道: It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/io.h | 3 ++- arch/mips/include/asm/mach-loongson64/spaces.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch

[PATCH v2 4/5] MIPS: Loongson64: DTS: Fix ISA range for RS780E PCH

2020-07-21 Thread Jiaxun Yang
Ranges should express the actual physical address on bus. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/loongson/rs780e-pch.dtsi b/arch/mips/boot/dts/loongson/rs780e-pch.dtsi

[PATCH v2 2/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-21 Thread Jiaxun Yang
Previously, we're hardcoding resserved ISA I/O Space in code, now we're processing reverved I/O via DeviceTree directly. Using the ranges property to determine the size and address of reserved I/O space. Signed-off-by: Jiaxun Yang -- v2: Use range_parser instead of pci_range_parser --- arch

[PATCH v2 3/5] MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

2020-07-21 Thread Jiaxun Yang
It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/io.h | 3 ++- arch/mips/include/asm/mach-loongson64/spaces.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include

[PATCH v2 5/5] MIPS: Loongson64: Add ISA node for LS7A PCH

2020-07-21 Thread Jiaxun Yang
Although currently we're not enabling any ISA device in devicetree, but this node is required to express the ranges of address reserved for ISA. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/boot/dts

[PATCH v2 1/5] of_address: Add bus type match for pci ranges parser

2020-07-21 Thread Jiaxun Yang
So the parser can be used to parse range property of ISA bus. As they're all using PCI-like method of range property, there is no need start a new parser. Signed-off-by: Jiaxun Yang -- v2: Drop useless check, fix some na for bus_addr add define of of_range_parser_init according

[PATCH v2 0/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-21 Thread Jiaxun Yang
Hi, This series convert reservation of Loongson64 Logic PIO into DeviceTree based method. It can be used to replace Huacai's "MIPS: Loongson64: Reserve legacy MMIO space according to bridge type". Thanks. v2: - Address Rob and Huacai's review comments. Jiaxun Yang (5): of_addres

Re: [PATCH 3/5] MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

2020-07-20 Thread Jiaxun Yang
在 2020/7/20 下午6:45, Arnd Bergmann 写道: On Mon, Jul 20, 2020 at 9:44 AM Jiaxun Yang wrote: It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang --- * On MIPS I/O ports are memory mapped, so we access them using normal diff --git a/arch/mips/include/asm/mach-loongson64

Re: [PATCH 2/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-20 Thread Jiaxun Yang
在 2020/7/20 下午7:44, Huacai Chen 写道: Hi, Jiaxun, On Mon, Jul 20, 2020 at 6:20 PM Jiaxun Yang wrote: 在 2020/7/20 下午6:01, Huacai Chen 写道: Hi, Jiaxun, On Mon, Jul 20, 2020 at 3:44 PM Jiaxun Yang wrote: Previously, we're hardcoding resserved ISA I/O Space in code, now we're processing

Re: [PATCH 2/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-20 Thread Jiaxun Yang
在 2020/7/20 下午6:01, Huacai Chen 写道: Hi, Jiaxun, On Mon, Jul 20, 2020 at 3:44 PM Jiaxun Yang wrote: Previously, we're hardcoding resserved ISA I/O Space in code, now we're processing reverved I/O via DeviceTree directly. Using the ranges property to determine the size and address

[PATCH 5/5] MIPS: Loongson64: Add ISA node for LS7A PCH

2020-07-20 Thread Jiaxun Yang
Although currently we're not enabling any ISA device in devicetree, but this node is required to express the ranges of address reserved for ISA. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/boot/dts

[PATCH 0/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-20 Thread Jiaxun Yang
Hi, This series convert reservation of Loongson64 Logic PIO into DeviceTree based method. It can be used to replace Huacai's "MIPS: Loongson64: Reserve legacy MMIO space according to bridge type". Thanks. Jiaxun Yang (5): of_address: Add bus type match for pci ranges par

[PATCH 1/5] of_address: Add bus type match for pci ranges parser

2020-07-20 Thread Jiaxun Yang
So the parser can be used to parse range property of different bus types, such as ISA bus. As they're all using PCI-like method of range property, there is no need start a new parser. Signed-off-by: Jiaxun Yang --- drivers/of/address.c | 15 +++ include/linux/of_address.h

[PATCH 3/5] MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

2020-07-20 Thread Jiaxun Yang
It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/io.h | 3 ++- arch/mips/include/asm/mach-loongson64/spaces.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include

[PATCH 4/5] MIPS: Loongson64: DTS: Fix ISA range for RS780E PCH

2020-07-20 Thread Jiaxun Yang
Ranges should express the actual physical address on bus. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/loongson/rs780e-pch.dtsi b/arch/mips/boot/dts/loongson/rs780e-pch.dtsi

[PATCH 2/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-20 Thread Jiaxun Yang
Previously, we're hardcoding resserved ISA I/O Space in code, now we're processing reverved I/O via DeviceTree directly. Using the ranges property to determine the size and address of reserved I/O space. Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/init.c | 85

Re: [PATCH v6 5/5] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-07-15 Thread Jiaxun Yang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang Reviewed-by: Huacai Chen Tested-by: Jiaxun Yang Can confirm it works on Loongson-3A4000. Thanks! --- -- - Jiaxun

Re: [PATCH] MIPS: Replace HTTP links with HTTPS ones

2020-07-14 Thread Jiaxun Yang
在 2020/7/13 16:52, Alexander A. Klimov 写道: Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`:

Re: arch/mips/alchemy/devboards/db1300.c:(.text.db1300_wm97xx_probe+0x2c): undefined reference to `wm97xx_config_gpio'

2020-07-12 Thread Jiaxun Yang
在 2020/7/12 18:01, kernel test robot 写道: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0aea6d5c5be33ce94c16f9ab2f64de1f481f424b commit: ff487d41036035376e47972c7c522490b839ab37 MIPS: Truncate link address into 32bit for 32bit kernel date: 9 weeks

Re: [PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-07-10 Thread Jiaxun Yang
在 2020/7/11 9:35, Jiaxun Yang 写道: 在 2020/7/10 16:51, Zhi Li 写道: Add gmac platform data to support LS7A bridge chip. Co-developed-by: Hongbin Li Signed-off-by: Hongbin Li Signed-off-by: Zhi Li ---   drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 22 ++   1 file

Re: [PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-07-10 Thread Jiaxun Yang
在 2020/7/10 16:51, Zhi Li 写道: Add gmac platform data to support LS7A bridge chip. Co-developed-by: Hongbin Li Signed-off-by: Hongbin Li Signed-off-by: Zhi Li --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

[RFC PATCH 1/3] MIPS: Retire kvm paravirt

2020-07-10 Thread Jiaxun Yang
by community users, it's time to retire it if nobody steps in to maintain it. Signed-off-by: Jiaxun Yang --- arch/mips/Kbuild.platforms| 1 - arch/mips/Kconfig | 19 -- arch/mips/configs/mips_paravirt_defconfig | 98 -- arch/mips/include/asm/Kbuild

[RFC PATCH 0/3] MIPS KVM related clean-ups

2020-07-10 Thread Jiaxun Yang
Retire some features that never worked in the real world. Also I wonder if there are any actual user of TE KVM. Will Huacai or Alexsander take care relevant code? Thanks. Jiaxun Yang (3): MIPS: Retire kvm paravirt MIPS: KVM: Limit Trap-and-Emulate to MIPS32R2 only MIPS: KVM: Remove

[RFC PATCH 3/3] MIPS: KVM: Remove outdated README

2020-07-10 Thread Jiaxun Yang
This file was created long ago and information inside is obviously outdated. Signed-off-by: Jiaxun Yang --- arch/mips/kvm/00README.txt | 31 --- 1 file changed, 31 deletions(-) delete mode 100644 arch/mips/kvm/00README.txt diff --git a/arch/mips/kvm/00README.txt b

[RFC PATCH 2/3] MIPS: KVM: Limit Trap-and-Emulate to MIPS32R2 only

2020-07-10 Thread Jiaxun Yang
After tons of fixes to get Trap-and-Emulate build on Loongson64, I've got panic on host machine when trying to run a VM. I found that it can never work on 64bit systems. Revewing the code, it looks like R6 can't supportrd by TE as well. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1

[tip: irq/urgent] irqchip/loongson-pci-msi: Fix a typo in Kconfig

2020-06-30 Thread tip-bot2 for Jiaxun Yang
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: a23df9a4bd326fb4c7f160b72b0e0560b989ac29 Gitweb: https://git.kernel.org/tip/a23df9a4bd326fb4c7f160b72b0e0560b989ac29 Author:Jiaxun Yang AuthorDate:Sat, 30 May 2020 20:11:12 +08:00 Committer

Re: [PATCH 1/2] MIPS: set page access bit with pgprot on some MIPS platform

2020-06-05 Thread Jiaxun Yang
On Fri, 5 Jun 2020 17:11:05 +0800 Bibo Mao wrote: > On MIPS system which has rixi hardware bit, page access bit is not > set in pgrot. For memory reading, there will be one page fault to > allocate physical page; however valid bit is not set, there will > be the second fast tlb-miss fault

Re: [PATCH] irqchip: Fix the description of the Loongson PCH MSI controller

2020-06-03 Thread Jiaxun Yang
On Wed, 3 Jun 2020 15:44:06 -0600 Jonathan Corbet wrote: > Commit 632dcc2c75ef ("irqchip: Add Loongson PCH MSI controller") > appears to suffer from a lack of copy-and-paste fixup, with the > result that the KConfig description describes the wrong device. > Avoid potential user confusion by

[PATCH 0/2] irqchip: loongson-*: Two small fixes

2020-05-30 Thread Jiaxun Yang
Jiaxun Yang (2): irqchip: loongson-pci-msi: Fix a typo in Kconfig irqchip: loongson-*: Fix COMPILE_TEST drivers/irqchip/Kconfig| 2 +- drivers/irqchip/irq-loongson-htpic.c | 4 drivers/irqchip/irq-loongson-htvec.c | 4 drivers/irqchip/irq-loongson-liointc.c

[PATCH 2/2] irqchip: loongson-*: Fix COMPILE_TEST

2020-05-30 Thread Jiaxun Yang
spurious_interrupt helper only exists on MIPS and x86, so define a dummy function on other architectures to fix COMPILE_TEST. Reported-by: kbuild test robot Signed-off-by: Jiaxun Yang --- drivers/irqchip/irq-loongson-htpic.c | 4 drivers/irqchip/irq-loongson-htvec.c | 4 drivers

[PATCH 1/2] irqchip: loongson-pci-msi: Fix a typo in Kconfig

2020-05-30 Thread Jiaxun Yang
PCH MSI driver's tittle was wrong. My stupid mistake. Fixes: cca8fbff2585 ("irqchip: Add Loongson PCH MSI controller") Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqch

[tip: irq/core] dt-bindings: interrupt-controller: Add Loongson PCH MSI

2020-05-30 Thread tip-bot2 for Jiaxun Yang
The following commit has been merged into the irq/core branch of tip: Commit-ID: da10a4b626657387845f32d37141fc7d48ebbdb3 Gitweb: https://git.kernel.org/tip/da10a4b626657387845f32d37141fc7d48ebbdb3 Author:Jiaxun Yang AuthorDate:Thu, 28 May 2020 23:27:54 +08:00 Committer

[tip: irq/core] irqchip: Add Loongson HyperTransport Vector support

2020-05-30 Thread tip-bot2 for Jiaxun Yang
The following commit has been merged into the irq/core branch of tip: Commit-ID: 818e915fbac518e8c78e1877a0048d92d4965e5a Gitweb: https://git.kernel.org/tip/818e915fbac518e8c78e1877a0048d92d4965e5a Author:Jiaxun Yang AuthorDate:Thu, 28 May 2020 23:27:49 +08:00 Committer

[tip: irq/core] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-30 Thread tip-bot2 for Jiaxun Yang
The following commit has been merged into the irq/core branch of tip: Commit-ID: 6c2832c3c6edc38ab58bad29731b4951c0a90cf8 Gitweb: https://git.kernel.org/tip/6c2832c3c6edc38ab58bad29731b4951c0a90cf8 Author:Jiaxun Yang AuthorDate:Thu, 28 May 2020 23:27:50 +08:00 Committer

[tip: irq/core] dt-bindings: interrupt-controller: Add Loongson PCH PIC

2020-05-30 Thread tip-bot2 for Jiaxun Yang
The following commit has been merged into the irq/core branch of tip: Commit-ID: b6e4bc125fc517969f97d901b1845ebf47bbea26 Gitweb: https://git.kernel.org/tip/b6e4bc125fc517969f97d901b1845ebf47bbea26 Author:Jiaxun Yang AuthorDate:Thu, 28 May 2020 23:27:52 +08:00 Committer

[tip: irq/core] irqchip: Add Loongson PCH MSI controller

2020-05-30 Thread tip-bot2 for Jiaxun Yang
The following commit has been merged into the irq/core branch of tip: Commit-ID: 632dcc2c75ef6de3272aa4ddd8f19da1f1ace323 Gitweb: https://git.kernel.org/tip/632dcc2c75ef6de3272aa4ddd8f19da1f1ace323 Author:Jiaxun Yang AuthorDate:Thu, 28 May 2020 23:27:53 +08:00 Committer

[tip: irq/core] irqchip: Add Loongson PCH PIC controller

2020-05-30 Thread tip-bot2 for Jiaxun Yang
The following commit has been merged into the irq/core branch of tip: Commit-ID: ef8c01eb64ca6719da449dab0aa9424e13c58bd0 Gitweb: https://git.kernel.org/tip/ef8c01eb64ca6719da449dab0aa9424e13c58bd0 Author:Jiaxun Yang AuthorDate:Thu, 28 May 2020 23:27:51 +08:00 Committer

checkpatch warnings with PCI DT compatible string

2020-05-30 Thread Jiaxun Yang
compatible = "pci0014,7a24.0", Just wonder if using such compatible string is allowed? I've saw some some usages like mine in the tree, such as arch/x86/platform/ce4100/falconfalls.dts, and arch/mips/boot/dts/img/boston.dts. If that's allowed, should we surpress these warnings in checkpatch script? Thanks. -- Jiaxun Yang

Re: [PATCH 0/3] MIPS: Loongson64: Initial LS7A PCH support

2020-05-28 Thread Jiaxun Yang
于 2020年5月29日 GMT+08:00 下午12:13:36, Huacai Chen 写到: >Hi, Jiaxun, > >On Fri, May 29, 2020 at 11:45 AM Jiaxun Yang wrote: >> >> With this series, LS7A and Loongson-3A4000 is finally supported >> note that this series should depend on irqchip support[1], which >

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

2020-05-28 Thread Jiaxun Yang
On Tue, 26 May 2020 10:53:15 +0100 Marc Zyngier wrote: > On 2020-05-26 10:26, Jiaxun Yang wrote: > > On Mon, 25 May 2020 11:12:26 +0100 > > Marc Zyngier wrote: > > > >> On Sat, 16 May 2020 09:29:02 +0100, > >> Jiaxun Yang wrote: > >> &g

[PATCH 3/3] MIPS: Loongson64:Load LS7A dtbs

2020-05-28 Thread Jiaxun Yang
Load correct devicetree according to PRID and PCH type. Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/env.c | 56 +++--- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/arch/mips/loongson64/env.c b/arch/mips/loongson64/env.c index

[PATCH 2/3] MIPS: Loongson64: DeviceTree for LS7A PCH

2020-05-28 Thread Jiaxun Yang
DeviceTree for Loongson-3 Quad core + LS7A boards and Loongson-3 Release 4 + LS7A boards. Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/Makefile | 5 +- .../dts/loongson/loongson3-r4-package.dtsi| 74 +++ .../dts/loongson/loongson3_4core_ls7a.dts | 25

[PATCH 1/3] dt-bindings: mips: Document two Loongson generic boards

2020-05-28 Thread Jiaxun Yang
Document loongson3-8core-ls7a and loongson3-r4-ls7a, with two boards LS7A PCH. Signed-off-by: Jiaxun Yang --- .../devicetree/bindings/mips/loongson/devices.yaml| 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/mips/loongson/devices.yaml b

[PATCH 0/3] MIPS: Loongson64: Initial LS7A PCH support

2020-05-28 Thread Jiaxun Yang
With this series, LS7A and Loongson-3A4000 is finally supported note that this series should depend on irqchip support[1], which is likely to get merged soon. Thanks. [1]: https://lkml.org/lkml/2020/5/16/72 Jiaxun Yang (3): dt-bindings: mips: Document two Loongson generic boards MIPS

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

2020-05-28 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 v5: - Add range check for loongson,pic-base-vec --- .../loongson,pch-pic.yaml | 56 +++ 1 file changed

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

2020-05-28 Thread Jiaxun Yang
Add binding for Loongson PCH MSI controller. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring -- v5: Add range check for msi-base-vec & msi-num-vecs --- .../loongson,pch-msi.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 10

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

2020-05-28 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 v5 1/6] irqchip: Add Loongson HyperTransport Vector support

2020-05-28 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 v5 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-28 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 | 57 +++ 1 file changed, 57 insertions(+) create mode 100644

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

2020-05-28 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 v5 0/6] Three Loongson irqchip support

2020-05-28 Thread Jiaxun Yang
v5: - Add some range checks in dt-schema Jiaxun Yang (6): irqchip: Add Loongson HyperTransport Vector support dt-bindings: interrupt-controller: Add Loongson HTVEC irqchip: Add Loongson PCH PIC controller dt-bindings: interrupt-controller: Add Loongson PCH PIC irqchip: Add Loongson

[PATCH] MIPS: Loongson64: Define PCI_IOBASE

2020-05-27 Thread Jiaxun Yang
PCI_IOBASE is used to create VM maps for PCI I/O ports, it is required by generic PCI drivers to make memory mapped I/O range work. To deal with legacy drivers that have fixed I/O ports range we reserved 0x1 in PCI_IOBASE, should be enough for i8259 i8042 stuff. Signed-off-by: Jiaxun Yang

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

2020-05-27 Thread Jiaxun Yang
On Wed, 27 May 2020 13:53:54 +0200 Thomas Bogendoerfer wrote: > On Wed, May 27, 2020 at 02:34:33PM +0800, Jiaxun Yang wrote: > > That's what already done by Arm64 and other architectures. > > That would allow us put more things like PE headers safely into > > the header

<    1   2   3   4   5   6   >