Re: [RFC v2.1 03/12] csky: Use initializer for struct vm_unmapped_area_info

2024-03-02 Thread Guo Ren
ree wide. > This will zero any unspecified members. Move the field initializers to the > struct declaration when they are known at that time. Leave the fields out > that were manually initialized to zero, as this would be redundant for > designated initializers. > > Signed-off-

Re: [PATCH v3] kprobe/ftrace: bail out if ftrace was killed

2024-05-01 Thread Guo Ren
d kprobe_ftrace_handler(unsigned long ip, unsigned long > parent_ip, > struct kprobe_ctlblk *kcb; > struct pt_regs *regs; > > + if (unlikely(kprobe_ftrace_disabled)) > + return; > + For csky part. Acked-by: Guo Ren > bit = ftrace_test_recu

Re: [PATCH v2 cmpxchg 11/13] csky: Emulate one-byte cmpxchg

2024-05-10 Thread Guo Ren
gt; Signed-off-by: Yujie Liu > Signed-off-by: Paul E. McKenney > Tested-by: Yujie Liu > Cc: Guo Ren > Cc: Arnd Bergmann > Cc: > --- > arch/csky/Kconfig | 1 + > arch/csky/include/asm/cmpxchg.h | 10 ++ > 2 files changed, 11 insertions(+) >

Re: [PATCH v2 11/14] csky/thread_info: Introduce TIF_NOTIFY_IPI flag

2024-06-15 Thread Guo Ren
> CPU out of idle, as opposed to setting TIF_NEED_RESCHED previously. This > avoids spurious calls to schedule_idle() in cases where an IPI does not > necessarily wake up a task on the idle CPU. > > Cc: Guo Ren > Cc: "Rafael J. Wysocki" > Cc: Daniel Lezcano > Cc: I

Re: [PATCH] csky: stacktrace: fix usage of ftrace_graph_ret_addr()

2024-06-23 Thread Guo Ren
assing a valid integer pointer to ftrace_graph_ret_addr() > > Signed-off-by: Puranjay Mohan LGTM, Thx! Reviewed-by: Guo Ren > --- > arch/csky/kernel/stacktrace.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/csky/kernel/stacktrace.c b/arch/csky/kernel/

Re: [PATCH 10/15] csky, hexagon: fix broken sys_sync_file_range

2024-06-23 Thread Guo Ren
/uapi/asm/unistd.h > @@ -6,6 +6,7 @@ > #define __ARCH_WANT_SYS_CLONE3 > #define __ARCH_WANT_SET_GET_RLIMIT > #define __ARCH_WANT_TIME32_SYSCALLS > +#define __ARCH_WANT_SYNC_FILE_RANGE2 For csky part. Acked-by: Guo Ren > #include > > #define __NR_set_thread_area (__NR_arch_speci

Re: [PATCH 02/17] csky: drop asm/gpio.h wrapper

2024-07-08 Thread Guo Ren
e-Identifier: GPL-2.0 > generic-y += asm-offsets.h > generic-y += extable.h > -generic-y += gpio.h > generic-y += kvm_para.h > generic-y += mcs_spinlock.h > generic-y += qrwlock.h > -- > 2.39.2 > LGTM! Acked-by: Guo Ren -- Best Regards Guo Ren

Re: [PATCH 12/17] csky: convert to generic syscall table

2024-07-14 Thread Guo Ren
gt; > #include > -#define __NR_sync_file_range2 __NR_sync_file_range > + > +#define __NR_sync_file_range2 84 > +#undef __NR_sync_file_range For csky part: Acked-by: Guo Ren > diff --git a/arch/hexagon/include/uapi/asm/unistd.h > b/arch/hexagon/include/uapi/asm/unistd.

Re: [PATCH 02/17] csky: drop asm/gpio.h wrapper

2024-07-15 Thread Guo Ren
r valid. > > > > Signed-off-by: Arnd Bergmann Acked-by: Guo Ren > > --- > > > Reviewed-by: Masahiro Yamada > > > > arch/csky/include/asm/Kbuild | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/arch/csky/include/asm/Kbuild b

Re: [PATCH RFC v3 0/2] mm: Introduce ADDR_LIMIT_47BIT personality flag

2024-09-05 Thread Guo Ren
The flag can be checked inside of vm_unmapped_area() so > that this flag does not have to be handled individually by each > architecture. Acked-by: Guo Ren Sv57's pain finds its cure in this antidote. > > Link: > https://github.com/openjdk/jdk/blob/f080b4bb8a75284db1b6037f8c00ef3

Re: [PATCH RFC v3 1/2] mm: Add personality flag to limit address to 47 bits

2024-09-06 Thread Guo Ren
traint in arch_get_mmap_end() > > For some reason, it appears that the arch_get_mmap_end() > logic on RISC-V defaults to the maximum address > space for the 'addr==0' case which is inconsistentn with > the other architectures, so we should probably fix that > part first, possibly moving more of that logic into a > shared implementation. > > Arnd > -- Best Regards Guo Ren

Re: [PATCH 3/4] Activate GENERIC_IO for the csky architecture

2024-09-08 Thread Guo Ren
On Fri, Sep 6, 2024 at 7:47 PM Julian Vetter wrote: > > Use the generic __memcpy_{from,to}io and __memset_io for the csky > processor architecture. > > Reviewed by: Yann Sionneau > Signed-off-by: Julian Vetter I'm okay with moving it into GENERIC_IO Acked-by: Guo R

Re: [PATCH v2] csky: fix csky_cmpxchg_fixup not working

2024-10-16 Thread Guo Ren
igned > long)&csky_cmpxchg_ldw); csky_cmpxchg_ldw(stw) is a label symbol, not a variable. arch/csky/kernel/atomic.S: GLOBAL(csky_cmpxchg_ldw) GLOBAL(csky_cmpxchg_stw) Your modification does not affect the ASM output. (gdb) p main $1 = {void (void)} 0x5fa (gdb) p &main $2 = (void (*)(void)) 0x5fa > return; > } > #endif > -- > 2.34.1 > -- Best Regards Guo Ren

Re: [PATCH v2] csky: fix csky_cmpxchg_fixup not working

2024-10-27 Thread Guo Ren
Hi yang, On Mon, Oct 21, 2024 at 3:51 PM yang li wrote: > > Hi Guo Ren: > In C language, your conclusion is correct, but in assembly language, > global_symbol != &global_symbol > I did the following experiment: > > liyang@liyang-virtual-machine:~/Desktop/test$ ls

Re: [PATCH v6 4/5] csky: Use generic io memcpy functions

2024-09-25 Thread Guo Ren
= (u8)c; > - > - qc |= qc << 8; > - qc |= qc << 16; > - > - while (count && !IS_ALIGNED((unsigned long)dst, 4)) { > - __raw_writeb(c, dst); > - dst++; > - count--; > - } > - > - while (count >= 4) { > - __raw_writel(qc, dst); > - dst += 4; > - count -= 4; > - } > - > - while (count) { > - __raw_writeb(c, dst); > - dst++; > - count--; > - } > -} > -EXPORT_SYMBOL(__memset_io); > -- > 2.34.1 > > > > > Thx for the clean-up. Acked-by: Guo Ren -- Best Regards Guo Ren

Re: [BUG?] csky: qemu-user: swapped syscall numbers for getppid and rt_sigreturn

2024-09-29 Thread Guo Ren
On Sun, Sep 29, 2024 at 4:17 PM Thomas Weißschuh wrote: > > Hi Guo Ren, > > it seems the values of __NR_rt_sigreturn and __NR_getppid are swapped > between csky qemu-user and the kernel. > > In qemu-user [0, 1]: > (With context to show the disconuity) > > #define

Re: [PATCH v2 3/4] Use generic io memcpy functions on the csky architecture

2024-09-17 Thread Guo Ren
" : : "r" (val), "r" (addr)); } #endif > > Arnd -- Best Regards Guo Ren

Re: [PATCH v6 03/16] perf tools: csky: Support generic syscall headers

2025-01-08 Thread Guo Ren
On Thu, Jan 9, 2025 at 10:36 AM Charlie Jenkins wrote: > > csky uses the generic syscall table, use that in perf instead of > requiring libaudit. > > Signed-off-by: Charlie Jenkins LGTM! Thx For c-sky part. Acked-by: Guo Ren > --- > tools/perf/Makefile.perf

Re: [PATCH] dt-bindings: timer: Convert csky,gx6605s-timer to DT schema

2025-05-06 Thread Guo Ren
Acked-by: Guo Ren On Tue, May 6, 2025 at 10:22 AM Rob Herring (Arm) wrote: > > Convert the C-SKY gx6605s timer binding to DT schema format. It's a > straight-forward conversion. > > Signed-off-by: Rob Herring (Arm) > --- > .../bindings/timer/csky,

Re: [PATCH] dt-bindings: timer: Convert csky,mptimer to DT schema

2025-05-06 Thread Guo Ren
Acked-by: Guo Ren On Tue, May 6, 2025 at 10:22 AM Rob Herring (Arm) wrote: > > Convert the C-SKY Multi-processor timer binding to DT schema format. > It's a straight-forward conversion. > > Signed-off-by: Rob Herring (Arm) > --- > .../bindings/timer/csky,

Re: [PATCH 02/13] csky: move setup_initrd() to setup.c

2025-03-09 Thread Guo Ren
Move setup_initrd from mem_init into memblock_init, that LGTM. Acked by: Guo Ren (csky) On Fri, Mar 7, 2025 at 2:52 AM Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > Memory used by initrd should be reserved as soon as possible before > there any memblo

Re: Ping: [PATCH 0/3] Drop explicit --hash-style= setting for new

2025-03-09 Thread Guo Ren
| 2 +- > > arch/riscv/kernel/vdso/Makefile | 2 +- > > 3 files changed, 3 insertions(+), 3 deletions(-) > > > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University -- Best Regards Guo Ren

Re: [PATCH V2 11/15] csky/perf: Remove driver-specific throttle support

2025-05-14 Thread Guo Ren
On Wed, May 14, 2025 at 6:49 PM wrote: > > From: Kan Liang > > The throttle support has been added in the generic code. Remove > the driver-specific throttle support. Acked-by: Guo Ren > > Besides the throttle, perf_event_overflow may return true because of > event_l

Re: [PATCH 11/41] csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers

2025-06-06 Thread Guo Ren
On Fri, Jun 6, 2025 at 1:31 PM Thomas Huth wrote: > > On 06/06/2025 04.23, Guo Ren wrote: > > On Fri, Jun 6, 2025 at 2:28 AM Thomas Huth wrote: > >> > >> On 14/03/2025 08.09, Thomas Huth wrote: > >>> While the GCC and Clang compilers already def

Re: [PATCH 11/41] csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers

2025-06-05 Thread Guo Ren
ed by the compilers now. > > > > This is a completely mechanical patch (done with a simple "sed -i" > > statement). > > > > Cc: Guo Ren > > Cc: linux-csky@vger.kernel.org > > Signed-off-by: Thomas Huth > > --- > > arch/csky/abiv1/inc/