[PATCH 2/2] MIPS: Select ARCH_KEEP_MEMBLOCK to enable sysfs memblock debug

2020-12-02 Thread Tiezhu Yang
is patch, we can see the following two sysfs interfaces under DEBUG_FS. /sys/kernel/debug/memblock/memory /sys/kernel/debug/memblock/reserved Signed-off-by: Tiezhu Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 44a47ad..f65da197 10

[PATCH 0/2] memblock debug

2020-12-02 Thread Tiezhu Yang
Tiezhu Yang (2): MIPS: Move memblock_dump_all() to the end of setup_arch() MIPS: Select ARCH_KEEP_MEMBLOCK to enable sysfs memblock debug arch/mips/Kconfig| 1 + arch/mips/kernel/setup.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.1.0

[PATCH 1/2] MIPS: Move memblock_dump_all() to the end of setup_arch()

2020-12-02 Thread Tiezhu Yang
In order to get more memblock configuration with memblock=debug in the boot cmdline, move memblock_dump_all() to the end of setup_arch(), this can help us to get dmi_setup() and resource_init() memblock info, at least for now. Signed-off-by: Tiezhu Yang --- arch/mips/kernel/setup.c | 4 ++-- 1

[PATCH] MIPS: Loongson64: Give chance to build under !CONFIG_NUMA and !CONFIG_SMP

2020-12-03 Thread Tiezhu Yang
declaration of prom_init_memory() and add the declaration of szmem() in loongson.h to avoid build error. Signed-off-by: Youling Tang Signed-off-by: Jinyang He Signed-off-by: Tiezhu Yang --- arch/mips/Kconfig| 3 +- arch/mips/configs/loongson3_defconfig| 2

[PATCH] checkpatch: Do not check git commit description style when backport the upstream commit

2020-11-24 Thread Tiezhu Yang
table/linux.git/commit/?h=linux-4.19.y=bc571404829755e4a9504cc5fbc636fea80b2d83 [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y=81d7c56d6fab5ccbf522c47a655cd427808679f2 Signed-off-by: Tiezhu Yang --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insert

[PATCH RESEND] checkpatch: Do not check git commit description style when backport the upstream commit

2020-11-24 Thread Tiezhu Yang
table/linux.git/commit/?h=linux-4.19.y=bc571404829755e4a9504cc5fbc636fea80b2d83 [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y=81d7c56d6fab5ccbf522c47a655cd427808679f2 Signed-off-by: Tiezhu Yang --- RESEND to Andrew Morton scripts/checkpatch.pl | 3 ++-

Re: [PATCH RESEND] checkpatch: Do not check git commit description style when backport the upstream commit

2020-11-24 Thread Tiezhu Yang
On 11/25/2020 11:51 AM, Joe Perches wrote: On Wed, 2020-11-25 at 11:35 +0800, Tiezhu Yang wrote: When backport the upstream commit to the internal LTS kernel version, we usually use the following description [1] [2]: [ Upstream commit cc6528bc9a0c901c83b8220a2e2617f3354d6dd9 ] or commit

Re: [PATCH] phy/mediatek: Make PHY_MTK_XSPHY depend on HAS_IOMEM and OF_ADDRESS to fix build errors

2020-11-24 Thread Tiezhu Yang
On 11/25/2020 02:27 PM, Chunfeng Yun wrote: On Tue, 2020-11-24 at 19:31 -0800, Randy Dunlap wrote: On 11/24/20 6:24 PM, Chunfeng Yun wrote: Hi Tiezhu, On Tue, 2020-11-24 at 17:47 +0800, Tiezhu Yang wrote: devm_ioremap_resource() will be not built in lib/devres.c if CONFIG_HAS_IOMEM

[PATCH v2] phy: mediatek: Make PHY_MTK_{XSPHY,TPHY} depend on HAS_IOMEM and OF_ADDRESS to fix build errors

2020-11-24 Thread Tiezhu Yang
instance->port_base = devm_ioremap_resource(>dev, ); Reported-by: kernel test robot Signed-off-by: Tiezhu Yang Acked-by: Randy Dunlap --- drivers/phy/mediatek/Kconfig | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/K

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

2020-11-25 Thread Tiezhu Yang
nd I/D Cache as per core chahe, it will confuse userspace program otherwise. Also I do think the level should be continues. With this patch, we can see the vcache info as L2 cache and scache info as L3 cache on the Loongson 3A3000 and 3A4000 platform. Tested-by: Tiezhu Yang Thanks - Jiaxun Thomas.

[PATCH] MIPS: No need to check CPU 0 in {loongson3,bmips,octeon}_cpu_disable()

2020-11-25 Thread Tiezhu Yang
rectory [root@linux loongson]# echo 0 > /sys/devices/system/cpu/cpu0/online bash: /sys/devices/system/cpu/cpu0/online: Permission denied So no need to check CPU 0 in {loongson3,bmips,octeon}_cpu_disable(), just remove them. Signed-off-by: Tiezhu Yang --- arch/mips/cavium-octeon/smp.c | 3 ---

[PATCH] locking/lock_events: no need to check return value of debugfs_create functions

2020-11-07 Thread Tiezhu Yang
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Signed-off-by: Tiezhu Yang --- kernel/locking/lock_events.c | 19 --- 1 file changed, 4

[PATCH] dma-pool: no need to check return value of debugfs_create functions

2020-11-07 Thread Tiezhu Yang
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Signed-off-by: Tiezhu Yang --- kernel/dma/pool.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/dma

[PATCH] bcache: Fix potential memory leak in register_bcache()

2020-11-09 Thread Tiezhu Yang
Call kfree() in the error path to free the memory allocated by kzalloc(). Signed-off-by: Tiezhu Yang --- drivers/md/bcache/super.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 46a0013..af51574 100644

Re: [PATCH] locking/lock_events: no need to check return value of debugfs_create functions

2020-11-09 Thread Tiezhu Yang
On 11/09/2020 04:32 PM, Peter Zijlstra wrote: On Sat, Nov 07, 2020 at 05:19:13PM +0800, Tiezhu Yang wrote: When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. I

[RFC PATCH] PCI/portdrv: No need to call pci_disable_device() during shutdown

2020-09-05 Thread Tiezhu Yang
After commit 745be2e700cd ("PCIe: portdrv: call pci_disable_device during remove") and commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during shutdown"), it also calls pci_disable_device() during shutdown, this seems unnecessary, so just remove it. Signed

[PATCH] Revert "ALSA: hda: Add support for Loongson 7A1000 controller"

2020-08-25 Thread Tiezhu Yang
r solution that has been tested carefully to support Loongson LS7A HDA controller. Fixes: 61eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller") Cc: # 5.9-rc1+ Signed-off-by: Tiezhu Yang --- sound/pci/hda/hda_intel.c | 2 -- 1 file changed, 2 deletions(-) diff -

Re: [PATCH] Revert "ALSA: hda: Add support for Loongson 7A1000 controller"

2020-08-25 Thread Tiezhu Yang
On 08/25/2020 04:30 PM, Takashi Iwai wrote: On Tue, 25 Aug 2020 10:25:03 +0200, Tiezhu Yang wrote: This reverts commit 61eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller"). With this patch, there exists the following error on the Loongson LS7A platform: [ 216.6

[PATCH v2] Revert "ALSA: hda: Add support for Loongson 7A1000 controller"

2020-08-25 Thread Tiezhu Yang
eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller") Cc: # 5.9-rc1+ Signed-off-by: Tiezhu Yang --- v2: update commit message sound/pci/hda/hda_intel.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index e34

Re: [PATCH v5 00/14] irqchip: Fix potential resource leaks

2020-09-01 Thread Tiezhu Yang
On 07/06/2020 03:30 PM, Marc Zyngier wrote: On 2020-07-06 02:19, Tiezhu Yang wrote: When I test the irqchip code of Loongson, I read the related code of other chips in drivers/irqchip and I find some potential resource leaks in the error path, I think it is better to fix them. v2: - Split

[PATCH] perf top: Skip side-band event setup if HAVE_LIBBPF_SUPPORT is not set

2020-08-18 Thread Tiezhu Yang
n fault I use git bisect to find commit b38d85ef49cf ("perf bpf: Decouple creating the evlist from adding the SB event") is the first bad commit, so also add the Fixes tag. Fixes: b38d85ef49cf ("perf bpf: Decouple creating the evlist from adding the SB event") Signed-off-by

[PATCH] MIPS: Introduce cmdline argument writecombine=

2020-08-06 Thread Tiezhu Yang
00.0: ring 3 stalled for more than 10086msec [ 60.983156] radeon :03:00.0: GPU lockup (current fence id 0x0374 last fence id 0x03a8 on ring 3) Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/pgtable.h | 4 arch/mips/kernel/cpu-probe.c| 19

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

2020-08-06 Thread Tiezhu Yang
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 Radeon or AMD GPU at times, after commit 8a08e50cee66 ("drm: Permit video-buffers writecombine mapping for

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

2020-08-08 Thread Tiezhu Yang
p (current fence id 0x0112 last fence id 0x011d on ring 0) [ 60.976525] radeon :03:00.0: ring 3 stalled for more than 10086msec [ 60.983156] radeon :03:00.0: GPU lockup (current fence id 0x0374 last fence id 0x03a8 on ring 3) Signed-off-

Re: [PATCH v2] Revert "ALSA: hda: Add support for Loongson 7A1000 controller"

2020-09-07 Thread Tiezhu Yang
t/torvalds/linux.git/tree/sound/pci/hda/hda_intel.c?h=v5.4 Thanks, Tiezhu Huacai On Tue, Aug 25, 2020 at 6:03 PM Takashi Iwai wrote: On Tue, 25 Aug 2020 11:39:48 +0200, Tiezhu Yang wrote: This reverts commit 61eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller") to fix

[PATCH 1/6] MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3

2020-10-29 Thread Tiezhu Yang
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the write operations are meaningless, remove them. Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 8 arch/mips/loongson64/numa.c | 3 --- 2

[PATCH 6/6] MIPS: Loongson64: Move decode_cpucfg() to loongson_regs.h

2020-10-29 Thread Tiezhu Yang
Since decode_cpucfg() is only used for Loongson64, just move it to loongson_regs.h to avoid the pollution of common code with #ifdef CONFIG_CPU_LOONGSON64. Signed-off-by: Tiezhu Yang --- .../include/asm/mach-loongson64/loongson_regs.h| 24 + arch/mips/kernel/cpu-probe.c

[PATCH 3/6] MIPS: Loongson64: Set IPI_Enable register per core by itself

2020-10-29 Thread Tiezhu Yang
In the current code, for example, core 1 sets Core[0, 1, 2, 3]_IPI_Enalbe register and core 2, 3 do the same thing on the 1-way Loongson64 platform, this is not necessary. Set IPI_Enable register per core by itself to avoid duplicate operations and make the logic more clear. Signed-off-by: Tiezhu

[PATCH 0/6] Modify some registers operations and move decode_cpucfg() to loongson_regs.h

2020-10-29 Thread Tiezhu Yang
Tiezhu Yang (6): MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3 MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once MIPS: Loongson64: Set IPI_Enable register per core by itself MIPS: Loongson64: Add Mail_Send support for 3A4000+ CPU MIPS: Loongson64

[PATCH 4/6] MIPS: Loongson64: Add Mail_Send support for 3A4000+ CPU

2020-10-29 Thread Tiezhu Yang
Loongson 3A4000+ CPU has per-core Mail_Send register to send mail, there is no need to maintain register address of each core and node, just simply specify cpu number. Signed-off-by: Lu Zeng Signed-off-by: Jianmin Lv Signed-off-by: Tiezhu Yang --- .../include/asm/mach-loongson64

[PATCH 5/6] MIPS: Loongson64: Make sure the PC address is correct when 3A4000+ CPU hotplug

2020-10-29 Thread Tiezhu Yang
do something at the software level to avoid the risks for 3A4000+ CPU, this change has no influence on the other Loongson CPUs. Signed-off-by: Lu Zeng Signed-off-by: Jun Yi Signed-off-by: Tiezhu Yang --- arch/mips/loongson64/smp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH 2/6] MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once

2020-10-29 Thread Tiezhu Yang
The field ELPA of CP0_PAGEGRAIN register is set at the beginning of the kernel entry point in kernel-entry-init.h, no need to set it again in numa.c, we can remove enable_lpa() and only print the related information. Signed-off-by: Tiezhu Yang --- arch/mips/loongson64/numa.c | 17

Re: [PATCH v3 1/6] MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3

2020-11-05 Thread Tiezhu Yang
On 11/05/2020 01:57 PM, Huacai Chen wrote: Hi, Tiezhu, On Wed, Nov 4, 2020 at 11:51 AM Tiezhu Yang wrote: On 11/04/2020 10:00 AM, Huacai Chen wrote: Hi, Tiezhu, On Tue, Nov 3, 2020 at 3:13 PM Tiezhu Yang wrote: The field LPA of CP0_CONFIG3 register is read only for Loongson64, so

Re: [PATCH v2 3/4 RESEND] MIPS: Loongson64: Add /proc/boardinfo

2020-10-12 Thread Tiezhu Yang
On 10/13/2020 08:15 AM, Jiaxun Yang wrote: 于 2020年10月12日 GMT+08:00 下午8:02:25, Tiezhu Yang 写到: On 10/12/2020 06:38 PM, Thomas Bogendoerfer wrote: On Sun, Oct 11, 2020 at 07:47:53AM +0800, Tiezhu Yang wrote: Add /proc/boardinfo to get mainboard and BIOS info easily on the Loongson platform

[PATCH 2/2] Documentation: ABI: Add /sys/firmware/lefi/boardinfo description for Loongson64

2020-10-12 Thread Tiezhu Yang
Add a description for /sys/firmware/lefi/boardinfo on the Loongson platform. Signed-off-by: Tiezhu Yang --- .../ABI/testing/sysfs-firmware-lefi-boardinfo | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-firmware-lefi

[PATCH 1/2] MIPS: Loongson64: Add /sys/firmware/lefi/boardinfo

2020-10-12 Thread Tiezhu Yang
the similar info if there exists SMBIOS in firmware, but the fact is that there is no SMBIOS on some machines, we can see nothing when execute dmidecode, like this: [root@linux loongson]# dmidecode # dmidecode 2.12 # No SMBIOS nor DMI entry point found, sorry. Signed-off-by: Tiezhu Yang --- arch/mips

[PATCH 0/2] Add /sys/firmware/lefi/boardinfo for Loongson64

2020-10-12 Thread Tiezhu Yang
Tiezhu Yang (2): MIPS: Loongson64: Add /sys/firmware/lefi/boardinfo Documentation: ABI: Add /sys/firmware/lefi/boardinfo description for Loongson64 .../ABI/testing/sysfs-firmware-lefi-boardinfo | 35 arch/mips/include/asm/mach-loongson64/boot_param.h | 4 ++ arch

Re: [PATCH v2 5/6] MIPS: Loongson64: Make sure the PC address is correct when 3A4000+ CPU hotplug

2020-11-02 Thread Tiezhu Yang
On 11/03/2020 01:28 PM, Jiaxun Yang wrote: 在 2020/11/3 11:15, Tiezhu Yang 写道: In loongson3_type3_play_dead(), in order to make sure the PC address is correct, use lw to read the low 32 bits first, if the result is not zero, then use ld to read the whole 64 bits, otherwise there maybe exists

[PATCH v3 1/6] MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3

2020-11-02 Thread Tiezhu Yang
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the write operations are meaningless, remove them. Signed-off-by: Tiezhu Yang --- v2: No changes v3: No changes arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 8 arch/mips/loongson64/numa.c

[PATCH v3 2/6] MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once

2020-11-02 Thread Tiezhu Yang
The field ELPA of CP0_PAGEGRAIN register is set at the beginning of the kernel entry point in kernel-entry-init.h, no need to set it again in numa.c, we can remove enable_lpa() and only print the related information. Signed-off-by: Tiezhu Yang --- v2: No changes v3: No changes arch/mips

[PATCH v3 5/6] MIPS: Loongson64: SMP: Fix up play_dead jump indicator

2020-11-02 Thread Tiezhu Yang
which is written at the last as the jump indicator instead. Signed-off-by: Lu Zeng Signed-off-by: Jun Yi Signed-off-by: Tiezhu Yang --- v2: No changes v3: Update the commit message and comment arch/mips/loongson64/smp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH v3 6/6] MIPS: Loongson64: Move decode_cpucfg() to loongson_regs.h

2020-11-02 Thread Tiezhu Yang
Since decode_cpucfg() is only used for Loongson64, just move it to loongson_regs.h to avoid the pollution of common code with #ifdef CONFIG_CPU_LOONGSON64. Signed-off-by: Tiezhu Yang --- v2: No changes v3: No changes .../include/asm/mach-loongson64/loongson_regs.h| 24

[PATCH v3 4/6] MIPS: Loongson64: Add Mail_Send support for 3A4000+ CPU

2020-11-02 Thread Tiezhu Yang
Loongson 3A4000+ CPU has per-core Mail_Send register to send mail, there is no need to maintain register address of each core and node, just simply specify cpu number. Signed-off-by: Lu Zeng Signed-off-by: Jianmin Lv Signed-off-by: Tiezhu Yang --- v2: Add some callbacks in csr_ipi_probe() v3

[PATCH v3 3/6] MIPS: Loongson64: Set IPI_Enable register per core by itself

2020-11-02 Thread Tiezhu Yang
In the current code, for example, core 1 sets Core[0, 1, 2, 3]_IPI_Enalbe register and core 2, 3 do the same thing on the 1-way Loongson64 platform, this is not necessary. Set IPI_Enable register per core by itself to avoid duplicate operations and make the logic more clear. Signed-off-by: Tiezhu

[PATCH v3 0/6] Modify some registers operations and move decode_cpucfg() to loongson_regs.h

2020-11-02 Thread Tiezhu Yang
v2: Add some callbacks in csr_ipi probe() for patch #4 v3: Update the commit message and comment for patch #5 Tiezhu Yang (6): MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3 MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once MIPS: Loongson64: Set

Re: [PATCH v3 1/6] MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3

2020-11-03 Thread Tiezhu Yang
On 11/04/2020 10:00 AM, Huacai Chen wrote: Hi, Tiezhu, On Tue, Nov 3, 2020 at 3:13 PM Tiezhu Yang wrote: The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the write operations are meaningless, remove them. Signed-off-by: Tiezhu Yang --- v2: No changes v3: No changes

[PATCH v2 3/6] MIPS: Loongson64: Set IPI_Enable register per core by itself

2020-11-02 Thread Tiezhu Yang
In the current code, for example, core 1 sets Core[0, 1, 2, 3]_IPI_Enalbe register and core 2, 3 do the same thing on the 1-way Loongson64 platform, this is not necessary. Set IPI_Enable register per core by itself to avoid duplicate operations and make the logic more clear. Signed-off-by: Tiezhu

[PATCH v2 2/6] MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once

2020-11-02 Thread Tiezhu Yang
The field ELPA of CP0_PAGEGRAIN register is set at the beginning of the kernel entry point in kernel-entry-init.h, no need to set it again in numa.c, we can remove enable_lpa() and only print the related information. Signed-off-by: Tiezhu Yang --- v2: No changes arch/mips/loongson64/numa.c

[PATCH v2 1/6] MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3

2020-11-02 Thread Tiezhu Yang
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the write operations are meaningless, remove them. Signed-off-by: Tiezhu Yang --- v2: No changes arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 8 arch/mips/loongson64/numa.c

[PATCH v2 0/6] Modify some registers operations and move decode_cpucfg() to loongson_regs.h

2020-11-02 Thread Tiezhu Yang
v2: Add some callbacks in csr_ipi probe() for patch #4 Tiezhu Yang (6): MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3 MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once MIPS: Loongson64: Set IPI_Enable register per core by itself MIPS: Loongson64: Add

[PATCH v2 4/6] MIPS: Loongson64: Add Mail_Send support for 3A4000+ CPU

2020-11-02 Thread Tiezhu Yang
Loongson 3A4000+ CPU has per-core Mail_Send register to send mail, there is no need to maintain register address of each core and node, just simply specify cpu number. Signed-off-by: Lu Zeng Signed-off-by: Jianmin Lv Signed-off-by: Tiezhu Yang --- v2: Add some callbacks in csr_ipi_probe

[PATCH v2 5/6] MIPS: Loongson64: Make sure the PC address is correct when 3A4000+ CPU hotplug

2020-11-02 Thread Tiezhu Yang
do something at the software level to avoid the risks for 3A4000+ CPU, this change has no influence on the other Loongson CPUs. Signed-off-by: Lu Zeng Signed-off-by: Jun Yi Signed-off-by: Tiezhu Yang --- v2: No changes arch/mips/loongson64/smp.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v2 6/6] MIPS: Loongson64: Move decode_cpucfg() to loongson_regs.h

2020-11-02 Thread Tiezhu Yang
Since decode_cpucfg() is only used for Loongson64, just move it to loongson_regs.h to avoid the pollution of common code with #ifdef CONFIG_CPU_LOONGSON64. Signed-off-by: Tiezhu Yang --- v2: No changes .../include/asm/mach-loongson64/loongson_regs.h| 24 + arch/mips/kernel

[PATCH 2/2] compiler.h: Include asm/rwonce.h under ARM64 and ALPHA to fix build errors

2021-01-13 Thread Tiezhu Yang
:10: ./include/linux/compiler.h:246:10: fatal error: 'asm/rwonce.h' file not found ^~ 1 error generated. $ find . -name rwonce.h ./include/asm-generic/rwonce.h ./arch/arm64/include/asm/rwonce.h ./arch/alpha/include/asm/rwonce.h Signed-off-by: Tiezhu Yang --- include/linux

[PATCH bpf 1/2] samples/bpf: Set flag __SANE_USERSPACE_TYPES__ for MIPS to fix build warnings

2021-01-13 Thread Tiezhu Yang
printf("%s/%llx;", sym->name, addr); ~~~^ %lx printf(";%s %lld\n", key->waker, count); ~~~^ ~ %ld Signed-off-by: Tiezhu Yang --- samples/bpf/Makefile| 4 to

[PATCH 0/2] Fix build errors and warnings when make M=samples/bpf

2021-01-13 Thread Tiezhu Yang
There exists many build errors and warnings when make M=samples/bpf, this patch series fix some of them, I will submit some other patches related with MIPS later. Tiezhu Yang (2): samples/bpf: Set flag __SANE_USERSPACE_TYPES__ for MIPS to fix build warnings compiler.h: Include asm

Re: [PATCH 1/3] MIPS: kernel: Support extracting off-line stack traces from user-space with perf

2021-02-01 Thread Tiezhu Yang
On 02/01/2021 06:43 PM, Thomas Bogendoerfer wrote: On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote: +++ b/arch/mips/include/uapi/asm/perf_regs.h @@ -0,0 +1,42 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _ASM_MIPS_PERF_REGS_H +#define

[PATCH v2 1/3] MIPS: kernel: Support extracting off-line stack traces from user-space with perf

2021-02-03 Thread Tiezhu Yang
tches into two parts (MIPS kernel and perf tools) to merge easily.] The original patches: https://lore.kernel.org/patchwork/patch/1126521/ https://lore.kernel.org/patchwork/patch/1126520/ Signed-off-by: David Daney Signed-off-by: Ralf Baechle Signed-off-by: Archer Yan Signed-off-by: Tiezhu Ya

Re: [PATCH] selftests: breakpoints: Fix wrong argument of ptrace() when single step

2021-02-03 Thread Tiezhu Yang
On 02/04/2021 02:30 AM, Shuah Khan wrote: On 2/3/21 1:39 AM, Tiezhu Yang wrote: According to the error message, the first argument of ptrace() should be PTRACE_SINGLESTEP instead of PTRACE_CONT when ptrace single step. Fixes: f43365ee17f8 ("selftests: arm64: add test for unaligned/in

[PATCH v2 0/3] Add some perf support for mips

2021-02-03 Thread Tiezhu Yang
v2: add R26 and R27 to the enum perf_event_mips_regs in patch #1 Tiezhu Yang (3): MIPS: kernel: Support extracting off-line stack traces from user-space with perf perf tools: Support mips unwinding and dwarf-regs perf tools: Generate mips syscalls_n64.c syscall table arch/mips/Kconfig

[PATCH v2 3/3] perf tools: Generate mips syscalls_n64.c syscall table

2021-02-03 Thread Tiezhu Yang
Grab a copy of arch/mips/kernel/syscalls/syscall_n64.tbl and use it to generate tools/perf/arch/mips/include/generated/asm/syscalls_n64.c file, this is similar with commit 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") Signed-off-by: Tiezhu Yan

[PATCH v2 2/3] perf tools: Support mips unwinding and dwarf-regs

2021-02-03 Thread Tiezhu Yang
Baechle Signed-off-by: Archer Yan Signed-off-by: Tiezhu Yang --- v2: no changes tools/perf/Makefile.config | 6 ++ tools/perf/arch/mips/Makefile | 4 ++ tools/perf/arch/mips/include/dwarf-regs-table.h | 31 + tools/perf/arch/mips/include

[PATCH bpf-next] samples/bpf: Add hello world sample for newbies

2021-02-04 Thread Tiezhu Yang
oader completely"), so the old version can not work in the latest mainline kernel. Since it is very simple and useful for newbies, I think it is necessary to be upstreamed. [1] https://github.com/bpftools/linux-observability-with-bpf/tree/master/code/chapter-2/hello_world Signed-off-by: T

[PATCH bpf-next] samples/bpf: Add include dir for MIPS Loongson64 to fix build errors

2021-01-26 Thread Tiezhu Yang
and generic include dir for MIPS Loongson64 to fix the build errors. Signed-off-by: Tiezhu Yang --- samples/bpf/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 362f314..45ceca4 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf

[PATCH bpf-next] MAINTAINERS: BPF: Update web-page bpf.io to ebpf.io to avoid redirects

2021-01-28 Thread Tiezhu Yang
https://bpf.io/ to https://ebpf.io/ to avoid redirects. Signed-off-by: Tiezhu Yang --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1df56a3..09314ce 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3260,7 +3260,7 @@ R:KP

[PATCH] MIPS: Fix inline asm input/output type mismatch in checksum.h used with Clang

2021-01-26 Thread Tiezhu Yang
long)daddr), ^~~~ 1 error generated. This is a known issue on MIPS [1], the changed code can be compiled successfully by both GCC and Clang. [1] https://lore.kernel.org/linux-mips/CAG_fn=W0JHf8QyUX==+rqmp8poulhrsqca9htffws31ga8k...@mail.gmail.com/ Signed-off-by: Tiezhu Yang

Re: [PATCH 1/3] MIPS: kernel: Support extracting off-line stack traces from user-space with perf

2021-01-28 Thread Tiezhu Yang
On 01/28/2021 05:15 AM, Thomas Bogendoerfer wrote: On Tue, Jan 05, 2021 at 11:18:06AM +0100, Peter Zijlstra wrote: On Tue, Jan 05, 2021 at 11:45:37AM +0800, Jiaxun Yang wrote: 在 2021/1/4 下午6:59, Peter Zijlstra 写道: On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote: +u64 perf_reg_abi

Re: [PATCH bpf-next] samples/bpf: Add include dir for MIPS Loongson64 to fix build errors

2021-01-26 Thread Tiezhu Yang
On 01/27/2021 12:01 AM, Daniel Borkmann wrote: On 1/26/21 3:05 PM, Tiezhu Yang wrote: There exists many build errors when make M=samples/bpf on the Loongson platform, this issue is MIPS related, x86 compiles just fine. Here are some errors: [...] So we can do the similar things in samples

[PATCH] sparc: Replace test_ti_thread_flag() with test_tsk_thread_flag()

2021-02-02 Thread Tiezhu Yang
Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to improve readability when the argument type is struct task_struct, it is similar with commit 5afc78551bf5 ("arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP"). Signed-off-by: Tiezhu Yang --- arch/sp

[PATCH] parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag()

2021-02-02 Thread Tiezhu Yang
Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to improve readability when the argument type is struct task_struct, it is similar with commit 5afc78551bf5 ("arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP"). Signed-off-by: Tiezhu Yang --- arch/pari

[PATCH] selftests: breakpoints: Fix wrong argument of ptrace() when single step

2021-02-03 Thread Tiezhu Yang
According to the error message, the first argument of ptrace() should be PTRACE_SINGLESTEP instead of PTRACE_CONT when ptrace single step. Fixes: f43365ee17f8 ("selftests: arm64: add test for unaligned/inexact watchpoint handling") Signed-off-by: Tiezhu Yang --- tools/testing

Re: [PATCH 1/3] MIPS: kernel: Support extracting off-line stack traces from user-space with perf

2021-02-03 Thread Tiezhu Yang
On 2/3/21 6:40 PM, Thomas Bogendoerfer wrote: On Mon, Feb 01, 2021 at 08:56:06PM +0800, Tiezhu Yang wrote: On 02/01/2021 06:43 PM, Thomas Bogendoerfer wrote: On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote: +++ b/arch/mips/include/uapi/asm/perf_regs.h @@ -0,0 +1,42 @@ +/* SPDX

[PATCH] MIPS: SGI-IP27: Remove duplicated include in ip27-timer.c

2020-05-19 Thread Tiezhu Yang
After commit 9d0aaf98dc24 ("MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h"), ip27-common.h is included more than once in ip27-timer.c, remove it. Signed-off-by: Tiezhu Yang --- arch/mips/sgi-ip27/ip27-timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a

Re: [PATCH] MIPS: SGI-IP27: Remove duplicated include in ip27-timer.c

2020-05-19 Thread Tiezhu Yang
On 05/20/2020 12:03 AM, Thomas Bogendoerfer wrote: On Tue, May 19, 2020 at 08:28:11PM +0800, Tiezhu Yang wrote: After commit 9d0aaf98dc24 ("MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h"), ip27-common.h is included more than once in ip27-timer.c, remove it.

[PATCH] MIPS: SGI-IP27: Remove not used includes and comment in ip27-timer.c

2020-05-19 Thread Tiezhu Yang
After commit 0ce5ebd24d25 ("mfd: ioc3: Add driver for SGI IOC3 chip"), the related includes and comment about ioc3 are not used any more in ip27-timer.c, remove them. Signed-off-by: Tiezhu Yang --- arch/mips/sgi-ip27/ip27-timer.c | 5 - 1 file changed, 5 deletions(-) diff --git a

[PATCH] MIPS: SGI-IP27: Remove not used definition TICK_SIZE in ip27-timer.c

2020-05-20 Thread Tiezhu Yang
After commit f5ff0a280201 ("[MIPS] Use generic NTP code for all MIPS platforms"), TICK_SIZE is not used in ip27-timer.c for many years, remove it. Signed-off-by: Tiezhu Yang --- Hi Thomas, I find this not used definition TICK_SIZE just now, maybe I should send these cleanup patches

[PATCH v3 1/2] clk: hisilicon: Use correct return value about hisi_reset_init()

2020-05-27 Thread Tiezhu Yang
The return value about hisi_reset_init() is not correct, fix it. Fixes: e9a2310fb689 ("reset: hisilicon: fix potential NULL pointer dereference") Signed-off-by: Tiezhu Yang --- v2: - No changes, just add "Fixes:" tag v3: - Use ERR_CAST(rstc->membase) to fix the spars

[PATCH v3 2/2] clk: Remove CONFIG_ARCH_HISI check for subdir hisilicon in Makefile

2020-05-27 Thread Tiezhu Yang
are not set. Reported-by: kbuild test robot Signed-off-by: Tiezhu Yang --- v2: - Add CONFIG_ARCH_HISI check for the common files to fix the build failure v3: - Add CONFIG_COMPILE_TEST check for the common files for better compile testing coverage drivers/clk/Makefile | 2

[PATCH v4 1/2] clk: hisilicon: Use correct return value about hisi_reset_init()

2020-05-27 Thread Tiezhu Yang
The return value about hisi_reset_init() is not correct, fix it. Fixes: e9a2310fb689 ("reset: hisilicon: fix potential NULL pointer dereference") Signed-off-by: Tiezhu Yang --- v2: - No changes, just add "Fixes:" tag v3: - Use ERR_CAST(rstc->membase) to fix

[PATCH v4 2/2] clk: Allow COMPILE_TEST for subdir hisilicon in Makefile

2020-05-27 Thread Tiezhu Yang
-by: Tiezhu Yang --- v2: - Add CONFIG_ARCH_HISI check for the common files to fix the build failure v3: - Add CONFIG_COMPILE_TEST check for the common files for better compile testing coverage v4: - Modify the patch subject to reflect the reality drivers/clk/Makefile | 2

Re: [PATCH] MIPS: DTS: Only build subdir of current platform

2020-05-27 Thread Tiezhu Yang
On 05/28/2020 07:10 AM, Guenter Roeck wrote: On Thu, May 21, 2020 at 10:15:06AM +0800, Tiezhu Yang wrote: Add config check in Makefile to only build the subdir of current platform. E.g. without this patch: AR arch/mips/built-in.a AR arch/mips/boot/dts/brcm/built-in.a AR

[PATCH] MIPS: DTS: Fix build errors used with various configs

2020-05-27 Thread Tiezhu Yang
rm") Signed-off-by: Tiezhu Yang --- arch/mips/boot/dts/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile index dce32d1..1902712 100644 --- a/arch/mips/boot/dts/Makefile +++ b/arch/mips/boot/dts/Makefile @@ -2

Re: [PATCH v4 1/2] clk: hisilicon: Use correct return value about hisi_reset_init()

2020-05-27 Thread Tiezhu Yang
On 05/28/2020 03:06 AM, Stephen Boyd wrote: Quoting Tiezhu Yang (2020-05-27 07:39:21) The return value about hisi_reset_init() is not correct, fix it. Fixes: e9a2310fb689 ("reset: hisilicon: fix potential NULL pointer dereference") hisi_reset_init() returns NULL on error in t

[PATCH] MIPS: Fix build warning about "PTR_STR" redefined under CONFIG_TEST_PRINTF

2020-05-28 Thread Tiezhu Yang
de/linux/module.h:13, from lib/test_printf.c:10: ./arch/mips/include/asm/inst.h:20:0: note: this is the location of the previous definition #define PTR_STR ".dword" ^ Fixes: e701656ec4db ("MIPS: inst.h: Stop including asm.h to avoid various build failures") Si

[PATCH] MIPS: Loongson64: Remove not used pci.c

2020-05-28 Thread Tiezhu Yang
After commit 6423e59a64e7 ("MIPS: Loongson64: Switch to generic PCI driver"), arch/mips/loongson64/pci.c is not used any more, remove it. Signed-off-by: Tiezhu Yang --- arch/mips/loongson64/pci.c | 49 -- 1 file changed, 49 deletions(-) d

[PATCH] net: Fix return value about devm_platform_ioremap_resource()

2020-05-22 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Signed-off-by: Tiezhu Yang --- drivers/net/can/ifi_canfd/ifi_canfd.c | 5 - drivers/net/can/sun4i_can.c | 2 +- drivers/net/dsa/b53

Re: [PATCH 2/3] gpio: pxa: Fix return value of pxa_gpio_probe()

2020-05-22 Thread Tiezhu Yang
On 05/23/2020 03:07 AM, Robert Jarzmik wrote: Tiezhu Yang writes: When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 542c25b7a209 ("drivers: gpio: pxa: use devm_platform_ioremap_resource()")

[PATCH 2/2] rtc: mpc5121: Fix return value of mpc5121_rtc_probe()

2020-05-23 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: d53d4ae981d0 ("rtc: mpc5121: simplify probe") Signed-off-by: Tiezhu Yang --- drivers/rtc/rtc-mpc5121.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 1/2] rtc: goldfish: Fix return value of goldfish_rtc_probe()

2020-05-23 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 89576bebbc17 ("rtc: Use devm_platform_ioremap_resource()") Signed-off-by: Tiezhu Yang --- drivers/rtc/rtc-goldfish.c | 2 +- 1 file changed, 1

[PATCH 1/2] pinctrl: Fix return value about devm_platform_ioremap_resource()

2020-05-23 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 4b024225c4a8 ("pinctrl: use devm_platform_ioremap_resource() to simplify code") Signed-off-by: Tiezhu Yang --- drivers/pinctrl/bcm/pinctrl-bcm2

[PATCH 2/2] pinctrl: at91-pio4: Add COMPILE_TEST support

2020-05-23 Thread Tiezhu Yang
Add COMPILE_TEST support to the AT91 PIO4 pinctrl driver for better compile testing coverage. Signed-off-by: Tiezhu Yang --- drivers/pinctrl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 834c599..649b700

Re: [PATCH 1/2] rtc: goldfish: Fix return value of goldfish_rtc_probe()

2020-05-24 Thread Tiezhu Yang
On 05/24/2020 03:50 AM, Alexandre Belloni wrote: Hi, On 23/05/2020 17:56:21+0800, Tiezhu Yang wrote: When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 89576bebbc17 ("rtc

[PATCH 2/2] rtc: mpc5121: Use correct return value for mpc5121_rtc_probe()

2020-05-24 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Signed-off-by: Tiezhu Yang --- drivers/rtc/rtc-mpc5121.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers

[PATCH 1/2] rtc: goldfish: Use correct return value for goldfish_rtc_probe()

2020-05-24 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Signed-off-by: Tiezhu Yang --- drivers/rtc/rtc-goldfish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-goldfish.c b

[PATCH] thermal: sprd: Fix return value of sprd_thm_probe()

2020-05-24 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 554fdbaf19b1 ("thermal: sprd: Add Spreadtrum thermal driver support") Signed-off-by: Tiezhu Yang --- drivers/thermal/sprd_thermal.c | 4 ++

[PATCH 2/2] clk: Remove CONFIG_ARCH_HISI check for subdir hisilicon

2020-05-24 Thread Tiezhu Yang
in drivers/clk/Makefile. Signed-off-by: Tiezhu Yang --- drivers/clk/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index f4169cc..81045ec 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -79,7 +79,7 @@ obj-y

[PATCH 1/2] clk: hisilicon: Use correct return value about hisi_reset_init()

2020-05-24 Thread Tiezhu Yang
The return value about hisi_reset_init() is not correct, fix it. Signed-off-by: Tiezhu Yang --- drivers/clk/hisilicon/clk-hi3519.c | 4 ++-- drivers/clk/hisilicon/crg-hi3516cv300.c | 4 ++-- drivers/clk/hisilicon/crg-hi3798cv200.c | 4 ++-- drivers/clk/hisilicon/reset.c | 4

[PATCH 1/2] phy: rockchip: Fix return value of inno_dsidphy_probe()

2020-05-24 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: b7535a3bc0ba ("phy/rockchip: Add support for Innosilicon MIPI/LVDS/TTL PHY") Signed-off-by: Tiezhu Yang --- drivers/phy/rockchip/phy-roc

[PATCH 2/2] phy: Remove CONFIG_ARCH_ROCKCHIP check for subdir rockchip

2020-05-24 Thread Tiezhu Yang
for subdir rockchip in drivers/phy/Makefile. Signed-off-by: Tiezhu Yang --- drivers/phy/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/Makefile b/drivers/phy/Makefile index 310c149..e5b4f58 100644 --- a/drivers/phy/Makefile +++ b/drivers/phy/Makefile @@ -12,7

[PATCH] video: fbdev: pxafb: Use correct return value for pxafb_probe()

2020-05-25 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Signed-off-by: Tiezhu Yang --- drivers/video/fbdev/pxafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/pxafb.c b

<    1   2   3   4   5   6   >