[PATCH 3/4] MIPS: Loongson64: Yeeloong add platform driver Yeeloong is a laptop with a MIPS Loongson 2F processor, AMD CS5536 chipset, and KB3310B controller.

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang This yeeloong_laptop module enables access to sensors, battery, video camera switch, external video connector event, and some additional buttons. This driver was orginally from linux-loongson-community. I Just do some clean up and port to mainline kernel tree. Signed-off-by

[PATCH 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline Since lemte-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++ arch/mips/loongson64/common/cmdline.c| 7 +++ 2 files changed, 13 insertions(+) diff --git a/arch/mips/include/asm/mach-loongson64/loongson.h b/arch/mips/include/asm

[PATCH 2/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64/lemote-2f/ec_kb3310b.c| 2 +- arch/mips/loongson64/lemote-2f/ec_kb3310b.h| 188 - arch/mips/loongson64

[PATCH 4/4] MIPS: Loongson64: Load platform device during boot This patch just add pdev during boot to load the platform driver

2017-11-11 Thread jiaxun . yang
From: Jiaxun Yang Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 45 +++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 arch/mips/loongson64/lemote-2f/platform.c

[PATCH v2 2/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up

2017-11-13 Thread Jiaxun Yang
To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_kb3310b.h to include dir and clean up ec_kb3310b.h. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64

[PATCH v2 4/4] MIPS: Loongson64: Load platform device during boot

2017-11-13 Thread Jiaxun Yang
This patch just add pdev during boot to load the platform driver Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 45 +++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644

[PATCH v2 3/4] MIPS: Loongson64: Yeeloong add platform driver

2017-11-13 Thread Jiaxun Yang
-community. I Just do some clean up and port to mainline kernel tree. Signed-off-by: Jiaxun Yang --- drivers/platform/mips/Kconfig | 18 + drivers/platform/mips/Makefile |3 + drivers/platform/mips/yeeloong_laptop.c | 1143 +++ 3 files changed, 1164

[PATCH v2 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline

2017-11-13 Thread Jiaxun Yang
Since lemote-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++ arch/mips/loongson64/common/cmdline.c| 7

[PATCH v3 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline

2017-11-14 Thread Jiaxun Yang
Since lemote-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++ arch/mips/loongson64/common/cmdline.c| 7

[PATCH v3 3/4] MIPS: Loongson64: Yeeloong add platform driver

2017-11-14 Thread Jiaxun Yang
-community. I Just do some clean up and port to mainline kernel tree. Signed-off-by: Jiaxun Yang --- drivers/platform/mips/Kconfig | 19 + drivers/platform/mips/Makefile |3 + drivers/platform/mips/yeeloong_laptop.c | 1142 +++ 3 files changed, 1164

[PATCH v3 4/4] MIPS: Loongson64: Load platform device during boot

2017-11-14 Thread Jiaxun Yang
This patch just add pdev during boot to load the platform driver Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 27 +++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644

[PATCH v3 2/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up

2017-11-14 Thread Jiaxun Yang
To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_kb3310b.h to include dir and clean up ec_kb3310b.h. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64

Re: [PATCH 12/14] MIPS: memblock: Discard bootmem from Loongson3 code

2018-01-23 Thread Jiaxun Yang
t you know that we have a problem here. -- Jiaxun Yang signature.asc Description: This is a digitally signed message part

Re: [RFC 3/4] MIPS: Ingenic: Initial X1000 SoC support

2018-03-10 Thread Jiaxun Yang
ir b) $ cd c) $ wget > http://git.ingenic.cn:8082/bj/repo d) $ chmod +x repo > Repo is a sourcecode managing system used by Android. The gerrit is still here but need extra premission to reach. Now ingenic release there soucecode by "Baidu Netdisk". It's hard to access by foreign users. So we put the shourcecode here: https://github.com/Ingenic-commu nity/linux-xburst-bsp Thanks -- Jiaxun Yang

Re: [RFC 3/4] MIPS: Ingenic: Initial X1000 SoC support

2018-03-07 Thread Jiaxun Yang
ag interface with standard MIPS cores, maybe we need some modification on openocd). So maybe I can help in testing this after I get my broad. Just ask if you need any help. Thanks -- Jiaxun Yang

Re: [RFC 3/4] MIPS: Ingenic: Initial X1000 SoC support

2018-03-07 Thread Jiaxun Yang
在 2018-03-07三的 20:35 +0530,PrasannaKumar Muralidharan写道: > Hi James, > > Seems Jiaxun is interested in the board and is willing to help. > > I have been told that Ingenic is focusing on IoT market and X1000 is > intended for IoT segment. I think that they would be selling several > 100Ks of chip

[PATCH 1/2] MIPS: Introduce has_cpu_mips*_user in cpu-features.h

2018-03-21 Thread Jiaxun Yang
has_cpu_mips*_user to decide witch level should be displayed in cpuinfo to prevent misleading userspace programs. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/cpu-features.h | 39 arch/mips/kernel/proc.c | 22 ++-- 2 files changed

[PATCH 2/2] MIPS: Loongson64: Define has_cpu_mips64r2_user for Loongson-3

2018-03-21 Thread Jiaxun Yang
All loongson-3 processors support mips64r2 usermode instructions. However 3A1000 3B1000 3B1500 should be treated as mips64r1 in kernel. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips

[PATCH v2 1/2] MIPS: Introduce has_cpu_mips*_user in cpu-features.h

2018-03-22 Thread Jiaxun Yang
has_cpu_mips*_user to decide which level should be displayed in cpuinfo to prevent misleading userspace programs. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/cpu-features.h | 39 arch/mips/kernel/proc.c | 22 ++-- 2 files changed

[PATCH v2 2/2] MIPS: Loongson64: Define has_cpu_mips*r2_user for Loongson-3

2018-03-22 Thread Jiaxun Yang
All loongson-3 processors support mips32r2 mips64r2 usermode instructions. However 3A1000 3B1000 3B1500 should be treated as r1 in kernel. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips

Re: [PATCH V3] ZBOOT: fix stack protector in compressed boot phase

2018-03-22 Thread Jiaxun Yang
在 2018-03-22四的 22:21 +,James Hogan写道: > On Fri, Mar 16, 2018 at 03:55:16PM +0800, Huacai Chen wrote: > > diff --git a/arch/mips/boot/compressed/decompress.c > > b/arch/mips/boot/compressed/decompress.c > > index fdf99e9..5ba431c 100644 > > --- a/arch/mips/boot/compressed/decompress.c > > +++ b/

[PATCH v2] x86/cpu/AMD: Fix CPB bit for more processors

2018-11-19 Thread Jiaxun Yang
0f10 and should have CPB feature according AMD product specifications, however their Fn8000_0007_EDX is 0x6599, indicating they don't support CPB feature. Since whole F17h should support CPB, we set the cap for all of them. Cc: sta...@vger.kernel.org Signed-off-by: Jiaxun Yang --- arch

[PATCH] x86/cpu/AMD: Fix CPB bit for more processors

2018-11-15 Thread Jiaxun Yang
x00810f10 and should have CPB feature according AMD product specifications, however their Fn8000_0007_EDX is 0x6599, indicating they don't support CPB feature. Signed-off-by: Jiaxun Yang --- arch/x86/kernel/cpu/amd.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --

Re: [PATCH V2] MIPS: implement smp_cond_load_acquire() for Loongson-3

2018-07-11 Thread Jiaxun Yang
specific WRITE_ONCE looks more reasonable, because it the eliminate the "non-cohrency". So we can solve the bug from the root. Thanks. -- Jiaxun Yang

Re: [PATCH v5 3/6] LoongArch: KVM: Add cpucfg area for kvm hypervisor

2024-02-26 Thread Jiaxun Yang
在2024年2月26日二月 上午8:04,maobibo写道: > On 2024/2/26 下午2:12, Huacai Chen wrote: >> On Mon, Feb 26, 2024 at 10:04 AM maobibo wrote: >>> >>> >>> >>> On 2024/2/24 下午5:13, Huacai Chen wrote: Hi, Bibo, On Thu, Feb 22, 2024 at 11:28 AM Bibo Mao wrote: > > Instruction cpucfg can be u

Re: [PATCH v5 3/6] LoongArch: KVM: Add cpucfg area for kvm hypervisor

2024-02-26 Thread Jiaxun Yang
在2024年2月27日二月 上午3:14,maobibo写道: > On 2024/2/27 上午4:02, Jiaxun Yang wrote: >> >> >> 在2024年2月26日二月 上午8:04,maobibo写道: >>> On 2024/2/26 下午2:12, Huacai Chen wrote: >>>> On Mon, Feb 26, 2024 at 10:04 AM maobibo wrote: >>>>> >>>>

Re: [PATCH 03/17] MIPS: loongson64: rename __node_data to node_data

2024-07-16 Thread Jiaxun Yang
oport (Microsoft) Reviewed-by: Jiaxun Yang MIPS should go arch_numa at some point as well. Thanks - Jiaxun > --- > arch/mips/include/asm/mach-loongson64/mmzone.h | 4 ++-- > arch/mips/loongson64/numa.c| 8 > 2 files changed, 6 insertions(+), 6 deletion

[PATCH 0/4] Loongson-32 initial DeviceTree support

2019-03-12 Thread Jiaxun Yang
Hi More works should be done after rework on clk and other drivers accepted. Thanks.

linux-kernel@vger.kernel.org

2019-03-12 Thread Jiaxun Yang
Loongson-1B&C have totally identical GS232 core, so merge them into same CPU config. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 38 +--- arch/mips/include/asm/cpu-type.h | 3 +-- arch/mips/loongson32/Kconfig | 4 ++-- 3 files changed

[PATCH 1/4] MIPS: Loongson32: Remove ehci platform device

2019-03-12 Thread Jiaxun Yang
It's going to be enabled by DeviceTree Signed-off-by: Jiaxun Yang --- .../include/asm/mach-loongson32/platform.h| 1 - arch/mips/loongson32/common/platform.c| 30 --- arch/mips/loongson32/ls1b/board.c | 1 - 3 files changed, 32 deletions(-) diff

[PATCH 2/4] MIPS: Loongson32: Add DeviceTree support

2019-03-12 Thread Jiaxun Yang
Initial DeviceTree support for loongson32 Also remove the old IRQ driver since it have been replaced by generic LS1X_IRQ. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 5 +- arch/mips/loongson32/common/Makefile | 2 +- arch/mips/loongson32/common/irq.c| 196

[PATCH 4/4] MIPS: Loongson32: dts: add ls1b & ls1c

2019-03-12 Thread Jiaxun Yang
Add devicetree skeleton for ls1b and ls1c Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/Makefile | 6 ++ arch/mips/boot/dts/loongson/ls1b.dts | 21 + arch/mips/boot/dts/loongson/ls1c.dts | 25 ++ arch/mips/boot/dts/loongson/ls1x.dtsi | 117

Re: [PATCH 4/4] MIPS: Loongson32: dts: add ls1b & ls1c

2019-03-12 Thread Jiaxun Yang
Hi Rob, Thanks for your reply, I have some questions on that: 在 2019/3/12 下午8:28, Rob Herring 写道: On Tue, Mar 12, 2019 at 4:16 AM Jiaxun Yang wrote: Add devicetree skeleton for ls1b and ls1c Signed-off-by: Jiaxun Yang --- +/ { + model = "Loongson LS1B"; +

[PATCH 2/3] clk: loongson1: add of support

2019-01-25 Thread Jiaxun Yang
This patch add of support by split the clk_hw register and clkdev register, then handle the of clk_hw via of_clk_hw_onecell_get. Signed-off-by: Jiaxun Yang --- drivers/clk/loongson1/clk-loongson1b.c | 176 +++-- drivers/clk/loongson1/clk-loongson1c.c | 144

[PATCH 1/3] clk: loongson1: add configuration option for loongson1 clks

2019-01-25 Thread Jiaxun Yang
The patch introduces options for loongson1 clocks so we can select the driver we need. Signed-off-by: Jiaxun Yang --- drivers/clk/Kconfig| 1 + drivers/clk/Makefile | 2 +- drivers/clk/loongson1/Kconfig | 27 +++ drivers/clk/loongson1/Makefile

[PATCH 0/3] Enhance loongson-1 clock driver

2019-01-25 Thread Jiaxun Yang
Add of support for ls1c-clock and ls1b-clock

[PATCH 3/3] dt-bindings: clock: Add loongson-1 clock bindings

2019-01-25 Thread Jiaxun Yang
Loongson-1 is a series of MIPS MCUs. This patch add the clock bindings for loongson-1b and loongson-1c clock subsystem. Signed-off-by: Jiaxun Yang --- .../bindings/clock/loongson1-clock.txt| 11 ++ include/dt-bindings/clock/ls1b-clock.h| 20 +++ include

irqchip: Add driver for Loongson-1 intc v3

2019-01-28 Thread Jiaxun Yang
v1->v2: Fix SPDX-License-Identifier v2->v3: Rework according suggestions from Marc Zyngier, Thanks. v3->v4: Rework the driver into a single chip driver.

[PATCH v4 1/2] irqchip: Add driver for Loongson-1 interrupt controller

2019-01-28 Thread Jiaxun Yang
This controller appeared on Loongson-1 family MCUs including Loongson-1B and Loongson-1C. Signed-off-by: Jiaxun Yang --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ls1x.c | 196 + 3 files changed, 206

[PATCH v4 2/2] dt-bindings: interrupt-controller: loongson ls1x intc

2019-01-28 Thread Jiaxun Yang
Dt-bindings doc about Loongson-1 interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls1x-intc.txt| 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt diff

[PATCH 0/3] Enhance loongson-1 clock driver

2019-01-28 Thread Jiaxun Yang
Add of support for ls1c-clock and ls1b-clock v2: Move of declear into per clk file

[PATCH v2 1/3] clk: loongson1: add configuration option for loongson1 clks

2019-01-28 Thread Jiaxun Yang
The patch introduces options for loongson1 clocks so we can select the driver we need. Signed-off-by: Jiaxun Yang --- drivers/clk/Kconfig| 1 + drivers/clk/Makefile | 2 +- drivers/clk/loongson1/Kconfig | 27 +++ drivers/clk/loongson1/Makefile

[PATCH v2 2/3] clk: loongson1: add of support

2019-01-28 Thread Jiaxun Yang
This patch add of support by split the clk_hw register and clkdev register, then handle the of clk_hw via of_clk_hw_onecell_get. Signed-off-by: Jiaxun Yang --- drivers/clk/loongson1/clk-loongson1b.c | 197 - drivers/clk/loongson1/clk-loongson1c.c | 164

[PATCH v2 3/3] dt-bindings: clock: Add loongson-1 clock bindings

2019-01-28 Thread Jiaxun Yang
Loongson-1 is a series of MIPS MCUs. This patch add the clock bindings for loongson-1b and loongson-1c clock subsystem. Signed-off-by: Jiaxun Yang --- .../bindings/clock/loongson1-clock.txt| 11 ++ include/dt-bindings/clock/ls1b-clock.h| 20 +++ include

Re: [PATCH RFC] MIPS: Remove detect_memory_region()

2021-02-24 Thread Jiaxun Yang
On Wed, Feb 24, 2021, at 9:02 PM, Jinyang He wrote: > detect_memory_region() was committed by Commit 4d9f77d25268 ("MIPS: add > detect_memory_region()"). Then it was equipped by Commit dd63b00804a5 > ("MIPS: ralink: make use of the new memory detection code") and > Commit 9b75733b7b5e ("MIPS: at

Re: [PATCH 5/6] irqchip/loongson-liointc: irqchip add 2.0 version.

2021-02-10 Thread Jiaxun Yang
iointc1 node. > > Signed-off-by: Jiaxun Yang > Signed-off-by: Qing Zhang > Signed-off-by: Xingxing Su You should document dt binding changes. Thanks - Jiaxun > --- > drivers/irqchip/irq-loongson-liointc.c | 55 +- > 1 file changed, 46 insertions(+), 9 delet

Re: [PATCH 4/6] MIPS: Loongson64: Add 2K1000 early_printk_port

2021-02-10 Thread Jiaxun Yang
On Tue, Feb 9, 2021, at 5:32 PM, Qing Zhang wrote: > Distinguish between 3A series CPU and 2K1000 CPU UART0. > > Signed-off-by: Jiaxun Yang > Signed-off-by: Qing Zhang > Signed-off-by: Xingxing Su Personally I don't like this kind of quirk. Probably we should use e

Re: [PATCH 1/3] MIPS: ftrace: Fix N32 save registers

2021-01-31 Thread Jiaxun Yang
On Sun, Jan 31, 2021, at 4:14 PM, Jinyang He wrote: > CONFIG_64BIT is confusing. N32 also pass parameters by a0~a7. Do we have NEW kernel build? CONFIG_64BIT assumed N64 as kernel ABI. -Jiaxun > > Signed-off-by: Jinyang He > --- > arch/mips/kernel/mcount.S | 4 ++-- > 1 file changed, 2 in

Re: [PATCH 1/3] MIPS: ftrace: Fix N32 save registers

2021-01-31 Thread Jiaxun Yang
On Mon, Feb 1, 2021, at 9:12 AM, Jinyang He wrote: > On 01/31/2021 06:38 PM, Jiaxun Yang wrote: > > > > > On Sun, Jan 31, 2021, at 4:14 PM, Jinyang He wrote: > >> CONFIG_64BIT is confusing. N32 also pass parameters by a0~a7. > > Do we have NEW kernel build

Re: [PATCH] MIPS: Make check condition for SDBBP consistent with EJTAG spec

2021-02-08 Thread Jiaxun Yang
On Mon, Feb 8, 2021, at 9:14 PM, Tiezhu Yang wrote: > According to MIPS EJTAG Specification [1], a Debug Breakpoint > exception occurs when an SDBBP instruction is executed, the > CP0_DEBUG bit DBp indicates that a Debug Breakpoint exception > occurred, just check bit DBp for SDBBP is more accur

Re: [PATCH] MIPS: Make check condition for SDBBP consistent with EJTAG spec

2021-02-08 Thread Jiaxun Yang
On Tue, Feb 9, 2021, at 12:32 AM, Jiaxun Yang wrote: > > > On Mon, Feb 8, 2021, at 9:14 PM, Tiezhu Yang wrote: > > According to MIPS EJTAG Specification [1], a Debug Breakpoint > > exception occurs when an SDBBP instruction is executed, the > > CP0_DEBUG bit

Re: [PATCH RFC] MIPS: Remove detect_memory_region()

2021-02-25 Thread Jiaxun Yang
在 2021/2/26 上午9:37, Jinyang He 写道: On 02/24/2021 11:40 PM, Jiaxun Yang wrote: On Wed, Feb 24, 2021, at 9:02 PM, Jinyang He wrote: detect_memory_region() was committed by Commit 4d9f77d25268 ("MIPS: add detect_memory_region()"). Then it was equipped by Commit dd63b00804a5 ("MIP

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

[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/

[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: 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 of_bus_pci_g

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

[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: [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 a/arch/mips/b

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

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 v8 1/6] MIPS: JZ4780: Introduce SMP support.

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

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: error:

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: a

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

2020-07-31 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 sugge

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! Well,

[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

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: [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 blurred

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/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].writecombin

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 --- arch/mips/bcm63xx/boards/boa

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 th

[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

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 wri

[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

[PATCH] MIPS: zboot: head.S clean up

2020-12-21 Thread Jiaxun Yang
.cprestore is removed as we don't except Position Independent zboot ELF. .noreorder is also removed and rest instructions is massaged to improve readability. t9 register is used to indirect jump as MIPS ABI requirement. Reported-by: Paul Cercueil Signed-off-by: Jiaxun Yang --- arch/mips

Re: [PATCH] MIPS: zboot: head.S clean up

2020-12-21 Thread Jiaxun Yang
On Mon, Dec 21, 2020, at 10:09 PM, Paul Cercueil wrote: > Hi Jiaxun, > > Le lun. 21 déc. 2020 à 21:00, Jiaxun Yang a > écrit : > > .cprestore is removed as we don't except Position Independent > > zboot ELF. > > > > .noreorder is also removed and res

Re: [PATCH v2 2/4] spi: Add devicetree bindings documentation for Loongson SPI

2020-12-07 Thread Jiaxun Yang
在 2020/12/8 15:44, Qing Zhang 写道: Add spi-ls7a binding documentation. Signed-off-by: Qing Zhang --- Documentation/devicetree/bindings/spi/spi-ls7a.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-ls7a.txt Hi

Re: [PATCH v2 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-08 Thread Jiaxun Yang
在 2020/12/8 15:44, Qing Zhang 写道: add spi and amd node support. Hi Qing, Thanks for your patch. What is AMD node? Also given that different boards may have different flash, is it a wise idea to hardcode here? Thanks. - Jiaxun Signed-off-by: Qing Zhang --- v2: - Add spi about pci

[PATCH fixes v4] platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634

2021-01-07 Thread Jiaxun Yang
machines. Signed-off-by: Jiaxun Yang Cc: sta...@vger.kernel.org # 5.4+ -- v2: Specify touchpad to ELAN0634 v3: Stupid missing ! in v2 v4: Correct acpi_dev_present usage (Hans) --- drivers/platform/x86/ideapad-laptop.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a

[PATCH v2] MIPS: zboot: head.S clean up

2020-12-29 Thread Jiaxun Yang
Paul Cercueil Signed-off-by: Jiaxun Yang -- v2: Remove start label (paul) --- arch/mips/boot/compressed/head.S | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/arch/mips/boot/compressed/head.S b/arch/mips/boot/compressed/head.S index 409cb483a9ff..977218c

[PATCH 2/3] MIPS: cpu-probe: Vulnerabilities for MIPS cores

2020-12-29 Thread Jiaxun Yang
n-and-side-channel-vulnerabilities/ Signed-off-by: Jiaxun Yang --- arch/mips/kernel/cpu-probe.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 03adeed58efb..2460783dbdb1 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch

[PATCH 1/3] MIPS: Add vulnerabilities infrastructure

2020-12-29 Thread Jiaxun Yang
Add infrastructure to display CPU vulnerabilities. As most MIPS CPU vendors are dead today and we can't confirm vulnerabilities states with them, we'll display vulnerabilities as "Unknown" by default and override them in cpu-probe.c Signed-off-by: Jiaxun Yang --

[PATCH 3/3] MIPS: cpu-probe: Vulnerabilities for Loongson cores

2020-12-29 Thread Jiaxun Yang
Loongson64C is known to be vulnerable to meltdown according to PoC from Rui Wang . Loongson64G defended these side-channel attack by silicon. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/cpu-probe.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/mips/kernel/cpu-probe.c b/arch

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

2020-12-29 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 Reviewed-by: Tiezhu Yang Tested-by: Tiezhu Yang --- arch/mips/kernel/cacheinfo.c | 34

[PATCH 2/2] MIPS: Loongson64: Set cluster for cores

2020-12-29 Thread Jiaxun Yang
cluster is required for cacheinfo to set shared_cpu_map correctly. Signed-off-by: Jiaxun Yang Reviewed-by: Tiezhu Yang Tested-by: Tiezhu Yang --- arch/mips/loongson64/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/loongson64/smp.c b/arch/mips/loongson64/smp.c index

Re: [PATCH v2] MIPS: zboot: head.S clean up

2020-12-29 Thread Jiaxun Yang
在 2020/12/30 上午11:08, Jiaxun Yang 写道: .cprestore is removed as we don't expect Position Independent zboot ELF. .noreorder is also removed and rest instructions are massaged to improve readability. t9 register is used for indirect jump as MIPS ABI requirement. start label is removed

[PATCH v3] MIPS: zboot: head.S clean up

2020-12-29 Thread Jiaxun Yang
Paul Cercueil Signed-off-by: Jiaxun Yang -- v2: Remove start label (paul) --- arch/mips/boot/compressed/head.S | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/mips/boot/compressed/head.S b/arch/mips/boot/compressed/head.S index 409cb483a9ff..070b2fb

Re: [PATCH 3/3] MIPS: cpu-probe: Vulnerabilities for Loongson cores

2020-12-31 Thread Jiaxun Yang
在 2020/12/31 23:43, WANG Xuerui 写道: Hi Jiaxun, On 12/30/20 11:23 AM, Jiaxun Yang wrote: Loongson64C is known to be vulnerable to meltdown according to PoC from Rui Wang . Loongson64G defended these side-channel attack by silicon. "Loongson64G mitigated it in hardware"? Sig

Re: [PATCH 1/3] MIPS: Add vulnerabilities infrastructure

2020-12-31 Thread Jiaxun Yang
在 2020/12/31 23:38, WANG Xuerui 写道: Hi Jiaxun, Overall a nice step towards a more conformant arch/mips! Some nits below though. On 12/30/20 11:23 AM, Jiaxun Yang wrote: Add infrastructure to display CPU vulnerabilities. As most MIPS CPU vendors are dead today and we can't co

Re: [PATCH v4 2/4] spi: ls7a: Add YAML schemas

2020-12-25 Thread Jiaxun Yang
在 2020/12/25 下午6:35, Qing Zhang 写道: Switch the DT binding to a YAML schema to enable the DT validation. Signed-off-by: Qing Zhang --- v4: fix warnings/errors about running 'make dt_binding_check' --- .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 46 ++ 1 file cha

Re: [PATCH] MIPS: Add comment about CONFIG_MIPS32_O32 in loongson3_defconfig when build with Clang

2021-03-04 Thread Jiaxun Yang
在 2021/3/5 上午7:08, Maciej W. Rozycki 写道: On Thu, 4 Mar 2021, Tiezhu Yang wrote: This is a known bug [2] with Clang, as Simon Atanasyan said, "There is no plan on support O32 for MIPS64 due to lack of resources". Huh? Is that a joke? From the o32 psABI's point of view a MIPS64 CPU is ex

Re: [PATCH 1/2] MIPS: Loongson64: Remove unused sysconf members

2021-03-04 Thread Jiaxun Yang
在 2021/3/4 下午7:00, Qing Zhang 写道: We don't need them anymore, They are uniform on all Loongson64 systems and have been fixed in DeviceTree.loongson3_platform_init is replaced with DTS + driver. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Acked-by: Jiaxun Yang Hmm, why it

Re: [PATCH 2/2] MIPS: Loongson64: Move loongson_system_configuration to loongson.h

2021-03-04 Thread Jiaxun Yang
在 2021/3/4 下午7:00, Qing Zhang 写道: The purpose of separating loongson_system_configuration from boot_param.h is to keep the other structure consistent with the firmware. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Acked-by: Jiaxun Yang - Jiaxun --- .../include/asm/mach

Re: [PATCH] MIPS: Support large stack.

2021-03-04 Thread Jiaxun Yang
在 2021/3/5 11:12, HongJieDeng 写道: From: Hongjie Deng We need more stack space, xori/ori no longer apply when _THREAD_MASK exceeds 16 bits Signed-off-by: Hongjie Deng --- arch/mips/include/asm/stackframe.h | 8 arch/mips/kernel/genex.S | 6 ++ 2 files changed, 1

  1   2   3   4   5   >