Re: [PATCH] f2fs: introduce get_checkpoint_version for cleanup

2016-09-26 Thread Tiezhu Yang
At 2016-09-27 02:57:16, "Jaegeuk Kim" wrote: >Hi Tiezhu, > >On Sun, Sep 25, 2016 at 05:50:44PM +0800, Tiezhu Yang wrote: >> There exists almost same codes when get the value of pre_version >> and cur_version in function validate_checkpoint, this patch adds >&g

[PATCH v2] f2fs: introduce get_checkpoint_version for cleanup

2016-09-26 Thread Tiezhu Yang
There exists almost same codes when get the value of pre_version and cur_version in function validate_checkpoint, this patch adds get_checkpoint_version to clean up redundant codes. Signed-off-by: Tiezhu Yang --- fs/f2fs/checkpoint.c | 63 ++-- 1

Re: [f2fs-dev] [PATCH v2] f2fs: introduce get_checkpoint_version for cleanup

2016-09-27 Thread Tiezhu Yang
Hi Chao, At 2016-09-27 17:46:30, "Chao Yu" wrote: >On 2016/9/27 10:05, Tiezhu Yang wrote: >> There exists almost same codes when get the value of pre_version >> and cur_version in function validate_checkpoint, this patch adds >> get_checkpoint_version to clean up

[PATCH v3] f2fs: introduce get_checkpoint_version for cleanup

2016-09-27 Thread Tiezhu Yang
There exists almost same codes when get the value of pre_version and cur_version in function validate_checkpoint, this patch adds get_checkpoint_version to clean up redundant codes. Signed-off-by: Tiezhu Yang --- fs/f2fs/checkpoint.c | 68 ++-- 1

[PATCH] f2fs: remove dead code f2fs_check_acl

2016-09-13 Thread Tiezhu Yang
The macro f2fs_check_acl is defined but never used since the initial commit, this patch removes the code that has been dead for several years. Signed-off-by: Tiezhu Yang --- fs/f2fs/acl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/acl.h b/fs/f2fs/acl.h index b2334d1..2c68518

Re: [PATCH] LoongArch: uprobes: make UPROBE_SWBP_INSN/UPROBE_XOLBP_INSN constant

2024-06-29 Thread Tiezhu Yang
On Thu, 27 Jun 2024 19:38:06 +0200 Oleg Nesterov wrote: ... > > > +arch_initcall(check_emit_break); > > > + > > > > I wouldn't even bother with this, but whatever. > > Agreed, this looks a bit ugly. I did this only because I can not test > this (hopefully trivial) patch and the maintainers didn

Re: [PATCH] LoongArch: make the users of larch_insn_gen_break() constant

2024-06-30 Thread Tiezhu Yang
kernel/kprobes.c and arch/loongarch/kernel/uprobes.c Tested-by: Tiezhu Yang Thanks, Tiezhu

[PATCH v2 RESEND] MIPS: Add basic support for ptrace single step

2021-02-12 Thread Tiezhu Yang
From: Tiezhu Yang In the current code, arch_has_single_step() is not defined on MIPS, that means MIPS does not support instruction single-step for user mode. Delve is a debugger for the Go programming language, the ptrace syscall PtraceSingleStep() failed [1] on MIPS and then the single step

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

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

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

[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 v2 1/3] MIPS: kernel: Support extracting off-line stack traces from user-space with perf

2021-02-03 Thread Tiezhu Yang
riginal patches 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:

[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] selftests: breakpoints: Use correct error messages in breakpoint_test_arm64.c

2021-02-04 Thread Tiezhu Yang
When call ptrace(PTRACE_CONT, ...) failed, use correct error messages. Signed-off-by: Tiezhu Yang --- tools/testing/selftests/breakpoints/breakpoint_test_arm64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c

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

2021-02-08 Thread Tiezhu Yang
On 02/09/2021 10:36 AM, Jiaxun Yang wrote: 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 DBp

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

2021-02-08 Thread Tiezhu Yang
Signed-off-by: Tiezhu Yang --- v2: add MIPS_DEBUG_DBP definition arch/mips/include/asm/mipsregs.h | 4 arch/mips/kernel/genex.S | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index a0e8ae5

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

2021-02-09 Thread Tiezhu Yang
On 02/09/2021 08:11 PM, Thomas Bogendoerfer wrote: On Tue, Feb 09, 2021 at 01:05:25PM +0800, 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

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

2021-02-25 Thread Tiezhu Yang
, Feb 22, 2021 at 02:43:39PM +0800, Tiezhu Yang escreveu: On 02/04/2021 11:35 AM, Tiezhu Yang wrote: 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

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

2020-06-01 Thread Tiezhu Yang
system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Tiezhu-Yang/clk-hisilicon-Use-correct-return-value-about-hisi_reset_init/20200527-233606 bas

[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. Sig

[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 bpf-next] Documentation/bpf: Use valid and new links in index.rst

2020-07-29 Thread Tiezhu Yang
tps://www.kernel.org/doc/html/latest/bpf/ Fixes: d9b9170a2653 ("docs: bpf: Rename README.rst to index.rst") Fixes: cb3f0d56e153 ("docs: networking: convert filter.txt to ReST") Signed-off-by: Tiezhu Yang --- Documentation/bpf/index.rst | 6 +++--- 1 file changed, 3 insertions(+)

[PATCH bpf-next v2] Documentation/bpf: Use valid and new links in index.rst

2020-07-29 Thread Tiezhu Yang
tps://www.kernel.org/doc/html/latest/bpf/ Fixes: d9b9170a2653 ("docs: bpf: Rename README.rst to index.rst") Fixes: cb3f0d56e153 ("docs: networking: convert filter.txt to ReST") Signed-off-by: Tiezhu Yang --- v2: - Fix a typo "clik" to "click" in the commit mes

Re: [PATCH bpf-next v2] Documentation/bpf: Use valid and new links in index.rst

2020-07-29 Thread Tiezhu Yang
On 07/30/2020 05:06 AM, Song Liu wrote: On Wed, Jul 29, 2020 at 6:17 AM Tiezhu Yang wrote: There exists an error "404 Not Found" when I click the html link of "Documentation/networking/filter.rst" in the BPF documentation [1], fix it. Additionally, use the new link

[PATCH bpf-next v3] Documentation/bpf: Use valid and new links in index.rst

2020-07-31 Thread Tiezhu Yang
tps://www.kernel.org/doc/html/latest/bpf/ Fixes: d9b9170a2653 ("docs: bpf: Rename README.rst to index.rst") Fixes: cb3f0d56e153 ("docs: networking: convert filter.txt to ReST") Signed-off-by: Tiezhu Yang --- Documentation/bpf/index.rst | 12 ++-- Documentation/

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

2020-05-20 Thread Tiezhu Yang
/dts/loongson/loongson3_8core_rs780e.dtb DTB arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb.S AS arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dtb.o AR arch/mips/boot/dts/loongson/built-in.a AR arch/mips/boot/dts/built-in.a Signed-off-by: Tiezhu Yang

[PATCH] MAINTAINERS: Add git tree for KVM/mips

2020-08-11 Thread Tiezhu Yang
There is no git tree for KVM/mips in MAINTAINERS, it is not convinent to rebase, add it. Signed-off-by: Tiezhu Yang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e627ed6..11c82c1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9546,6 +9546,7

[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] gpu/drm: Remove TTM_PL_FLAG_WC of VRAM to fix writecombine issue for Loongson64

2020-08-09 Thread Tiezhu Yang
On 08/09/2020 08:13 PM, Christian König wrote: Am 08.08.20 um 15:50 schrieb 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

[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

Re: [QUESTION] support perf record --call-graph dwarf for mips

2020-12-21 Thread Tiezhu Yang
On 12/17/2020 08:48 PM, Tiezhu Yang wrote: On 12/16/2020 11:16 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Dec 16, 2020 at 11:30:47AM -0300, Arnaldo Carvalho de Melo escreveu: Em Wed, Dec 16, 2020 at 07:14:02PM +0800, Jiaxun Yang escreveu: 在 2020/12/16 下午6:05, Tiezhu Yang 写道: Hi, In the

[PATCH] Makefile: Remove Module.symvers when make clean

2020-12-21 Thread Tiezhu Yang
Module.symvers still exists when make clean, remove it. Signed-off-by: Tiezhu Yang --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e30cf02..8235bb7 100644 --- a/Makefile +++ b/Makefile @@ -1468,7 +1468,7 @@ endif # CONFIG_MODULES

[PATCH v2] MIPS: Select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL to enable sysfs memblock debug

2020-12-07 Thread Tiezhu Yang
with this 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 --- v2: - select ARCH_KEEP_MEMBLOCK only if DEBUG_KERNEL arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) di

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

2021-01-13 Thread Tiezhu Yang
x/kernel.h: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

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

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

[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

[PATCH bpf] samples/bpf: Update README.rst and Makefile for manually compiling LLVM and clang

2021-01-18 Thread Tiezhu Yang
llvm.org/get_started.html Signed-off-by: Tiezhu Yang --- samples/bpf/Makefile | 2 +- samples/bpf/README.rst | 17 ++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 26fc96c..d061446 100644 --- a/samples/bpf/Makef

[PATCH bpf-next v2] samples/bpf: Update README.rst and Makefile for manually compiling LLVM and clang

2021-01-19 Thread Tiezhu Yang
same time, update the related comment in Makefile. [1] https://clang.llvm.org/get_started.html Signed-off-by: Tiezhu Yang Acked-by: Yonghong Song --- v2: Update the commit message suggested by Yonghong, thank you very much. samples/bpf/Makefile | 2 +- samples/bpf/README.rst | 1

Re: [PATCH bpf-next v2] samples/bpf: Update README.rst and Makefile for manually compiling LLVM and clang

2021-01-19 Thread Tiezhu Yang
On 01/20/2021 05:58 AM, Fangrui Song wrote: On 2021-01-19, Tiezhu Yang wrote: The current llvm/clang build procedure in samples/bpf/README.rst is out of date. See below that the links are not accessible any more. $ git clone http://llvm.org/git/llvm.git Cloning into 'llvm'... fatal:

Re: [PATCH bpf-next v2] samples/bpf: Update README.rst and Makefile for manually compiling LLVM and clang

2021-01-19 Thread Tiezhu Yang
On 01/20/2021 10:43 AM, Nick Desaulniers wrote: On Mon, Jan 18, 2021 at 11:56 PM Tiezhu Yang wrote: The current llvm/clang build procedure in samples/bpf/README.rst is out of date. See below that the links are not accessible any more. $ git clone http://llvm.org/git/llvm.git Cloning into

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

2020-12-29 Thread Tiezhu Yang
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 | 2 + arch/mips/include/uapi

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

2020-12-29 Thread Tiezhu Yang
riginal patches 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-b

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

2020-12-29 Thread Tiezhu Yang
Baechle Signed-off-by: Archer Yan Signed-off-by: Tiezhu Yang --- 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/perf_regs.h| 84

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

2020-12-29 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-

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

2020-12-29 Thread Tiezhu Yang
On 12/30/2020 12:39 AM, Thomas Bogendoerfer wrote: On Wed, Dec 16, 2020 at 10:44:23AM +0800, Tiezhu Yang wrote: I have tested the following three configs on the Loongson platform: (1) !NUMA and !SMP, (2) !NUMA and SMP, (3) NUMA and SMP, everything is all right. But there exists the following

Re: [PATCH v2] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-25 Thread Tiezhu Yang
On 03/25/2021 06:17 PM, Thomas Bogendoerfer wrote: On Mon, Mar 22, 2021 at 03:12:59PM +0800, Tiezhu Yang wrote: On 03/22/2021 12:46 PM, Maciej W. Rozycki wrote: On Thu, 18 Mar 2021, Tiezhu Yang wrote: diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 160b3a8..4b94ec7 100644 --- a/arch

[PATCH v3] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-25 Thread Tiezhu Yang
again"). Fixes: 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work") Signed-off-by: Tiezhu Yang --- v3: Select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA on MIPS. v2: update the commit message to fix typos found by Sergei Shtylyov, tha

Re: [PATCH] riscv: Return -EFAULT if copy_to_user() failed in signal.c

2021-03-03 Thread Tiezhu Yang
On 03/02/2021 06:01 PM, Ben Dooks wrote: On 02/03/2021 07:28, Tiezhu Yang wrote: copy_to_user() returns the amount left to copy, it should return -EFAULT if copy to user failed. This looks technically correct, but the caller (only one) will check for non-zero and will covert that to -EFAULT

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

2021-03-03 Thread Tiezhu Yang
ment to point out this bug and suggest the users to remove CONFIG_MIPS32_O32=y in defconfig when build kernel with Clang. [1] https://www.kernel.org/doc/html/latest/kbuild/llvm.html [2] https://bugs.llvm.org/show_bug.cgi?id=38063 Signed-off-by: Tiezhu Yang --- arch/mips/configs/loongson3_defcon

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

2021-03-03 Thread Tiezhu Yang
On 03/04/2021 10:02 AM, Nathan Chancellor wrote: On Thu, Mar 04, 2021 at 09:15:44AM +0800, Tiezhu Yang wrote: When build kernel with Clang [1]: $ make CC=clang loongson3_defconfig $ make CC=clang [snip] I think this might be a better solution. I know that I personally never read defconfig

[PATCH v2] MIPS: Make MIPS32_O32 depends on !CC_IS_CLANG

2021-03-03 Thread Tiezhu Yang
GCC works well, as Nathan said, the config should not even be selectable when build kernel with Clang, so just make MIPS32_O32 depends on !CC_IS_CLANG. [1] https://www.kernel.org/doc/html/latest/kbuild/llvm.html [2] https://bugs.llvm.org/show_bug.cgi?id=38063 Signed-off-by: Tiezhu Yang --- ar

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

2021-03-03 Thread Tiezhu Yang
[1] https://lore.kernel.org/linux-mips/CAG_fn=W0JHf8QyUX==+rqmp8poulhrsqca9htffws31ga8k...@mail.gmail.com/ Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/checksum.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) applied to mips-next. This is in a performance-critical path

[PATCH v3] MIPS: Make MIPS32_O32 depends on !CC_IS_CLANG

2021-03-04 Thread Tiezhu Yang
GCC works, as Nathan said, the config should not even be selectable when building with Clang, so just make MIPS32_O32 depends on !CC_IS_CLANG. [1] https://www.kernel.org/doc/html/latest/kbuild/llvm.html [2] https://bugs.llvm.org/show_bug.cgi?id=38063 Signed-off-by: Tiezhu Yang Acked-by: Nathan C

Re: [PATCH v2] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-22 Thread Tiezhu Yang
On 03/22/2021 12:46 PM, Maciej W. Rozycki wrote: On Thu, 18 Mar 2021, Tiezhu Yang wrote: diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 160b3a8..4b94ec7 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -6,6 +6,7 @@ config MIPS select ARCH_BINFMT_ELF_STATE if

Re: [PATCH v2] MIPS: Check __clang__ to avoid performance influence with GCC in csum_tcpudp_nofold()

2021-03-16 Thread Tiezhu Yang
On 03/15/2021 08:42 PM, David Laight wrote: From: Tiezhu Yang Sent: 15 March 2021 12:26 On 03/15/2021 04:49 AM, Maciej W. Rozycki wrote: On Tue, 9 Mar 2021, Tiezhu Yang wrote: diff --git a/arch/mips/include/asm/checksum.h b/arch/mips/include/asm/checksum.h index 1e6c135..80eddd4 100644

[PATCH RFC] module: Use ARG_MAX as second argument of strndup_user() in load_module()

2021-04-12 Thread Tiezhu Yang
and we can login normally through a graphical interface. [1] https://lore.kernel.org/patchwork/patch/1411214/ Signed-off-by: Tiezhu Yang --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index 3047935..30d320b 100644 --- a/ker

[PATCH RFC v2] module: Use ARG_MAX as second argument of strndup_user() in load_module()

2021-04-12 Thread Tiezhu Yang
_module() failure disappered and we can login normally through a graphical interface. [1] https://lore.kernel.org/patchwork/patch/1411214/ Signed-off-by: Tiezhu Yang --- v2: Update the commit message to avoid using diff content - patch(1) might not work kernel/module.c | 2 +- 1 file changed, 1 ins

[PATCH bpf-next] bpf: Fix some invalid links in bpf_devel_QA.rst

2021-04-14 Thread Tiezhu Yang
he links of "samples/bpf/" and "selftests" because there are not related documentations. [1] https://www.kernel.org/doc/html/MAINTAINERS [2] https://www.kernel.org/doc/html/samples/bpf/ [3] https://www.kernel.org/doc/html/tools/testing/selftests/bpf/ [4] https://

[PATCH bpf-next v2] bpf: Fix some invalid links in bpf_devel_QA.rst

2021-04-14 Thread Tiezhu Yang
g/doc/html/latest/bpf/bpf_devel_QA.html Fixes: 542228384888 ("bpf, doc: convert bpf_devel_QA.rst to use RST formatting") Signed-off-by: Tiezhu Yang --- v2: Add Fixes: tag Documentation/bpf/bpf_devel_QA.rst | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) d

[QUESTION] Will the pahole tar source code with corresponding libbpf submodule codes be released as well in the future?

2021-04-14 Thread Tiezhu Yang
(1) tools/bpf/bpftool build failed due to the following reason: Error: failed to load BTF from /boot/vmlinux-5.12.0-rc2: No such file or directory make: *** [Makefile:158: vmlinux.h] Error 2 (2) When set CONFIG_DEBUG_INFO_BTF=y, failed to generate BTF for vmlinux due to pahole is not available

[PATCH RFC] MIPS: Loongson64: Use _CACHE_UNCACHED instead of _CACHE_UNCACHED_ACCELERATED

2021-04-06 Thread Tiezhu Yang
st make it work well, it is not a proper and final solution, I hope someone will have a better solution to fix this issue in the future. [1] https://lore.kernel.org/patchwork/patch/1285542/ Signed-off-by: Tiezhu Yang --- Hi Thomas, If you are OK with this change, could you please apply it to

[PATCH v3] MIPS: Check __clang__ to avoid performance influence with GCC in csum_tcpudp_nofold()

2021-04-02 Thread Tiezhu Yang
filename 3792429 0 4221 linux-5.12-rc5/net/ipv4/netfilter/nf_reject_ipv4.o Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/checksum.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/mips/include/asm/checksum.h b/arch/mips/include/asm/checksum.h index 1e6c1

[PATCH] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-17 Thread Tiezhu Yang
probe_read() will not be available. This is similar with the commit d195b1d1d1196 ("powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again"). Fixes: 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work") Signed-off-by: Tiezhu Yang --- a

[PATCH v2] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-17 Thread Tiezhu Yang
probe_read() will not be available. This is similar with the commit d195b1d1d119 ("powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again"). Fixes: 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work") Signed-off-by: Tiezhu Yang --- v2: up

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-11 Thread Tiezhu Yang
On 04/11/2021 07:04 PM, Jinyang He wrote: Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") brought a problem for strnlen_user(). Jump out when checking access_ok() with condition that (s + strlen(s)) < __UA_LIMIT <= (s + n). The old __strnlen_user_asm() just checked (ua_limit & s) without check

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-12 Thread Tiezhu Yang
On 04/12/2021 11:02 AM, Tiezhu Yang wrote: On 04/11/2021 07:04 PM, Jinyang He wrote: Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") brought a problem for strnlen_user(). Jump out when checking access_ok() with condition that (s + strlen(s)) < __UA_LIMIT <=

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

2021-02-21 Thread Tiezhu Yang
On 02/04/2021 11:35 AM, Tiezhu Yang wrote: 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

[PATCH 2/2] MIPS: Loongson64: Fix wrong scache size when execute lscpu

2020-11-18 Thread Tiezhu Yang
rep "L2 cache" L2 cache: 8192K Signed-off-by: Tiezhu Yang --- arch/mips/mm/c-r4k.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 9cede7c..9952176 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k

[PATCH 1/2] MIPS: Remove cpu_has_6k_cache and cpu_has_8k_cache in cpu_cache_init()

2020-11-18 Thread Tiezhu Yang
Since commit 02cf2119684e ("Cleanup the mess in cpu_cache_init."), cpu_has_6k_cache and cpu_has_8k_cache have no user, r6k_cache_init() and r8k_cache_init() are not defined for over 15 years, just remove them. Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/cpu-features.h |

[PATCH 0/2] Clean up and fix up cpu_cache_init()

2020-11-18 Thread Tiezhu Yang
Tiezhu Yang (2): MIPS: Remove cpu_has_6k_cache and cpu_has_8k_cache in cpu_cache_init() MIPS: Loongson64: Fix wrong scache size when execute lscpu arch/mips/include/asm/cpu-features.h | 2 -- arch/mips/mm/c-r4k.c | 10 -- arch/mips/mm/cache.c | 10

[PATCH] pinctrl: at91-pio4: Make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix build error

2020-11-24 Thread Tiezhu Yang
PIO4, make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix it. Reported-by: kernel test robot Signed-off-by: Tiezhu Yang --- drivers/pinctrl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 8150953..d132e1a 100644 --- a/drivers/pinctrl/Kconfig +++

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

2020-11-24 Thread Tiezhu Yang
" and "of_address_to_resource" in phy-mtk-xsphy.c under COMPILE_TEST and CONFIG_PHY_MTK_XSPHY, make PHY_MTK_XSPHY depend on HAS_IOMEM and OF_ADDRESS to fix it. Reported-by: kernel test robot Signed-off-by: Tiezhu Yang --- drivers/phy/mediatek/Kconfig | 2 ++ 1 file changed, 2 insertions(+)

[PATCH] phy/rockchip: Make PHY_ROCKCHIP_INNO_HDMI depend on HAS_IOMEM to fix build error

2020-11-24 Thread Tiezhu Yang
_INNO_HDMI depend on HAS_IOMEM to fix it. Reported-by: kernel test robot Signed-off-by: Tiezhu Yang --- drivers/phy/rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/rockchip/Kconfig b/drivers/phy/rockchip/Kconfig index c2f22f9..159285f 100644 --- a/drivers/ph

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

2020-12-04 Thread Tiezhu Yang
On 12/04/2020 08:08 PM, Thomas Bogendoerfer wrote: On Thu, Dec 03, 2020 at 11:58:51AM +0800, Jiaxun Yang wrote: 在 2020/12/3 上午11:19, Tiezhu Yang 写道: In the current code, CONFIG_ARCH_KEEP_MEMBLOCK is not set for MIPS arch, memblock_discard() will discard memory and reserved arrays if they were

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

2020-11-24 Thread Tiezhu Yang
kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=bc571404829755e4a9504cc5fbc636fea80b2d83 [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=81d7c56d6fab5ccbf522c47a655cd427808679f2 Signed-off-by: Tiezhu Yang

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

2020-11-24 Thread Tiezhu Yang
kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=bc571404829755e4a9504cc5fbc636fea80b2d83 [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=81d7c56d6fab5ccbf522c47a655cd427808679f2 Signed-off-by: Tiezhu Yang -

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 is not

[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(&phy->dev, &res); 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/Kco

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

2020-11-25 Thread Tiezhu Yang
y placed between Scache and 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 ---

Re: [QUESTION] support perf record --call-graph dwarf for mips

2020-12-17 Thread Tiezhu Yang
On 12/16/2020 11:16 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Dec 16, 2020 at 11:30:47AM -0300, Arnaldo Carvalho de Melo escreveu: Em Wed, Dec 16, 2020 at 07:14:02PM +0800, Jiaxun Yang escreveu: 在 2020/12/16 下午6:05, Tiezhu Yang 写道: Hi, In the current upstream mainline kernel, perf record

[PATCH 3/4] perf tools: Update powerpc's syscall.tbl

2020-12-18 Thread Tiezhu Yang
tbl tools/perf/arch/powerpc/entry/syscalls/syscall.tbl Signed-off-by: Tiezhu Yang --- tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 25 -- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl b/tools/per

[PATCH 2/4] perf tools: Move syscall.tbl check into check-headers.sh for s390

2020-12-18 Thread Tiezhu Yang
It is better to check syscall.tbl for s390 in check-headers.sh, it is similar with commit c9b51a017065 ("perf tools: Move syscall_64.tbl check into check-headers.sh"). Signed-off-by: Tiezhu Yang --- tools/perf/arch/s390/Makefile | 4 tools/perf/check-headers.sh | 1 + 2 files

[PATCH 4/4] perf tools: Update s390's syscall.tbl

2020-12-18 Thread Tiezhu Yang
perf/arch/s390/entry/syscalls/syscall.tbl Signed-off-by: Tiezhu Yang --- tools/perf/arch/s390/entry/syscalls/syscall.tbl | 395 ++-- 1 file changed, 225 insertions(+), 170 deletions(-) diff --git a/tools/perf/arch/s390/entry/syscalls/syscall.tbl b/tools/perf/arch/s390/entry/

[PATCH 0/4] Move syscall.tbl check and update syscall.tbl for powerpc and s390

2020-12-18 Thread Tiezhu Yang
Tiezhu Yang (4): perf tools: Move syscall.tbl check into check-headers.sh for powerpc perf tools: Move syscall.tbl check into check-headers.sh for s390 perf tools: Update powerpc's syscall.tbl perf tools: Update s390's syscall.tbl tools/perf/arch/powerpc/Makefile

[PATCH 1/4] perf tools: Move syscall.tbl check into check-headers.sh for powerpc

2020-12-18 Thread Tiezhu Yang
It is better to check syscall.tbl for powerpc in check-headers.sh, it is similar with commit c9b51a017065 ("perf tools: Move syscall_64.tbl check into check-headers.sh"). Signed-off-by: Tiezhu Yang --- tools/perf/arch/powerpc/Makefile | 7 --- tools/perf/check-headers.sh | 1

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

2020-12-02 Thread Tiezhu Yang
atch, 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

  1   2   3   4   5   >