Re: [PATCH] powerpc: Fixing typo in comment

2025-05-28 Thread Mukesh Kumar Chaurasiya
On Wed, May 28, 2025 at 01:30:52PM +0530, Mukesh Kumar Chaurasiya wrote: > fixing a typo where iff is supposed to be if. > I just realized its if and only if. Please ignore. > Signed-off-by: Mukesh Kumar Chaurasiya > --- > arch/powerpc/kernel/exceptions-64s.S | 2 +- >

[PATCH] powerpc: Fixing typo in comment

2025-05-28 Thread Mukesh Kumar Chaurasiya
fixing a typo where iff is supposed to be if. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/kernel/exceptions-64s.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index b7229430ca94

Re: [RFC V1 6/6] powerpc: Enable Generic Entry/Exit for syscalls.

2025-05-02 Thread Mukesh Kumar Chaurasiya
On Tue, Apr 29, 2025 at 11:41:09AM +0530, Shrikanth Hegde wrote: > > > On 4/28/25 20:52, Mukesh Kumar Chaurasiya wrote: > > Enable the syscall entry and exit path from generic framework. > > > > Signed-off-by: Mukesh Kumar Chaurasiya > > Hi Mukesh. Thanks

Re: [PATCH] tools/lib/perf: Fix -Werror=alloc-size-larger-than in cpumap.c

2025-05-02 Thread Mukesh Kumar Chaurasiya
On Fri, Apr 25, 2025 at 02:46:43PM -0300, Arnaldo Carvalho de Melo wrote: > On Fri, Apr 25, 2025 at 08:19:02PM +0530, Athira Rajeev wrote: > > > On 14 Apr 2025, at 7:08 AM, Madhavan Srinivasan > > > wrote: > > > On 4/7/25 5:38 PM, Venkat Rao Bagalkote wrote: > > >> On 07/04/25 12:10 am, Athira Ra

Re: [RFC V1 0/6] Generic Entry/Exit support for ppc64

2025-04-28 Thread Mukesh Kumar Chaurasiya
On Mon, Apr 28, 2025 at 08:52:20PM +0530, Mukesh Kumar Chaurasiya wrote: Few corrections in the commit message: > This is a syscall only implementation of generic entry/exit framework > for framework for ppc. IRQ handling is not done in this RFC. > s/framework for framework/framework &g

[RFC V1 6/6] powerpc: Enable Generic Entry/Exit for syscalls.

2025-04-28 Thread Mukesh Kumar Chaurasiya
Enable the syscall entry and exit path from generic framework. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/Kconfig| 1 + arch/powerpc/kernel/interrupt.c | 46 +++ arch/powerpc/kernel/ptrace/ptrace.c | 103 arch/powerpc/kernel

[RFC V1 5/6] powerpc: Introduce syscall exit arch functions

2025-04-28 Thread Mukesh Kumar Chaurasiya
Introducing following functions for syscall exit - arch_exit_to_user_mode_work - arch_exit_to_user_mode_work_prepare Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/include/asm/entry-common.h | 51 +++ arch/powerpc/include/asm/interrupt.h| 82

[RFC V1 4/6] powerpc: Add flag in paca for register restore state

2025-04-28 Thread Mukesh Kumar Chaurasiya
In case of signal being processed we want to restore the GPRS. To save the state of whether we need to restore the registers or not a flag is introduced so that we can save the state for that cpu in case we want to save the register state. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc

[RFC V1 3/6] powerpc: introduce arch_enter_from_user_mode

2025-04-28 Thread Mukesh Kumar Chaurasiya
Introduce arch_enter_from_user_mode required by syscall entry. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/include/asm/entry-common.h | 96 + arch/powerpc/include/asm/interrupt.h| 23 ++ arch/powerpc/kernel/interrupt.c | 22 -- 3 files

[RFC V1 2/6] powerpc: Prepare to build with genreic entry/exit framework

2025-04-28 Thread Mukesh Kumar Chaurasiya
Enabling build with generic entry/exit framework for powerpc architecture requires few necessary steps. This patch just takes care of the preparation. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/include/asm/entry-common.h | 11 +++ arch/powerpc/include/asm/stacktrace.h

[RFC V1 1/6] powerpc: rename arch_irq_disabled_regs

2025-04-28 Thread Mukesh Kumar Chaurasiya
Renaming arch_irq_disabled_regs to regs_irqs_disabled to be used commonly in generic entry exit framework and ppc arch code. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/include/asm/hw_irq.h| 4 ++-- arch/powerpc/include/asm/interrupt.h | 12 ++-- arch/powerpc/kernel

[RFC V1 0/6] Generic Entry/Exit support for ppc64

2025-04-28 Thread Mukesh Kumar Chaurasiya
| | ops/sec| 1,10,61,579 | 1,16,77,086| That's ~5% degradation as of now. Mukesh Kumar Chaurasiya (6): powerpc: rename arch_irq_disabled_regs powerpc: Prepare to build with genreic entry/exit framework powerpc: introduce arch_enter_from_user_mode po

Re: [PATCH] powerpc/boot: Fix build with gcc 15

2025-04-21 Thread Mukesh Kumar Chaurasiya
On Thu, Apr 17, 2025 at 01:02:05PM +0200, Michal Suchánek wrote: > On Thu, Apr 17, 2025 at 11:37:09AM +0530, Mukesh Kumar Chaurasiya wrote: > > On Fri, Mar 07, 2025 at 10:20:52AM +0100, Michal Suchanek wrote: > > > Similar to x86 the ppc boot code does not build with GCC 15. >

Re: [PATCH 1/1] arch/powerpc: Remove redundant typedef for bool

2025-04-16 Thread Mukesh Kumar Chaurasiya
gt; Misbah Anjum N (1): > arch/powerpc: Remove redundant typedef for bool > > arch/powerpc/boot/types.h | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Mukesh Kumar Chaurasiya > -- > 2.49.0 >

Re: [PATCH] powerpc/boot: Fix build with gcc 15

2025-04-16 Thread Mukesh Kumar Chaurasiya
On Fri, Mar 07, 2025 at 10:20:52AM +0100, Michal Suchanek wrote: > Similar to x86 the ppc boot code does not build with GCC 15. > > Copy the fix from > commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15") > > Signed-off-by: Michal Suchanek > --- > arch/powerpc/boot/Makefi

Re: [PATCH] tools/lib/perf: Fix -Werror=alloc-size-larger-than in cpumap.c

2025-04-06 Thread Mukesh Kumar Chaurasiya
ls/lib/perf/cpumap.c > +++ b/tools/lib/perf/cpumap.c > @@ -398,7 +398,7 @@ bool perf_cpu_map__is_subset(const struct perf_cpu_map > *a, const struct perf_cpu > int perf_cpu_map__merge(struct perf_cpu_map **orig, struct perf_cpu_map > *other) > { > struct perf_cpu *tmp_cpus; > - int tmp_len; > + unsigned int tmp_len; > int i, j, k; > struct perf_cpu_map *merged; > LGTM Reviewed-by: Mukesh Kumar Chaurasiya > -- > 2.43.5 >

Re: [PATCH] powerpc/defconfigs: Set HZ=1000 on ppc64 and powernv defconfigs

2025-03-31 Thread Mukesh Kumar Chaurasiya
> +++ b/arch/powerpc/configs/ppc64_defconfig > @@ -57,7 +57,7 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y > CONFIG_CPU_FREQ_GOV_USERSPACE=y > CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y > CONFIG_CPU_FREQ_PMAC64=y > -CONFIG_HZ_100=y > +CONFIG_HZ_1000=y > CONFIG_PPC_TRANSACTIONAL_MEM=y > CONFIG_KEXEC=y > CONFIG_KEXEC_FILE=y > -- > 2.47.0 > LGTM Reviewed-by: Mukesh Kumar Chaurasiya

Re: [PATCH v8 1/7] powerpc/pseries: Define common functions for RTAS sequence calls

2025-03-11 Thread Mukesh Kumar Chaurasiya
On Tue, Mar 11, 2025 at 03:50:42PM -0700, Haren Myneni wrote: > The RTAS call can be normal where retrieves the data form the > hypervisor once or sequence based RTAS call which has to > issue multiple times until the complete data is obtained. For > some of these sequence RTAS calls, the OS should

[PATCH v2] powerpc/xmon: symbol lookup length fixed

2024-10-25 Thread Mukesh Kumar Chaurasiya
Currently this cannot lookup symbol beyond 64 characters in some cases like "ls", "lp" and "t" Fix this by using KSYM_NAME_LEN instead of fixed 64 characters Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/xmon/xmon.c | 6 +++--- 1 file changed

Re: [PATCH] powerpc/xmon: symbol lookup length fixed

2024-10-24 Thread Mukesh Kumar Chaurasiya
On Thu, Oct 24, 2024 at 10:42:12AM +0530, Mukesh Kumar Chaurasiya wrote: > On Thu, Oct 24, 2024 at 12:00:53PM +1100, Michael Ellerman wrote: > > Mukesh Kumar Chaurasiya writes: > > > Currently xmon cannot lookup symbol beyond 64 characters in some cases. > > > >

Re: [PATCH] powerpc/xmon: symbol lookup length fixed

2024-10-24 Thread Mukesh Kumar Chaurasiya
On Thu, Oct 24, 2024 at 12:00:53PM +1100, Michael Ellerman wrote: > Mukesh Kumar Chaurasiya writes: > > Currently xmon cannot lookup symbol beyond 64 characters in some cases. > > Can you mention which commands? It looks like it's "ls" and "lp". Sure

[PATCH] powerpc/xmon: symbol lookup length fixed

2024-10-23 Thread Mukesh Kumar Chaurasiya
Currently xmon cannot lookup symbol beyond 64 characters in some cases. Fix this by using KSYM_NAME_LEN instead of fixed 64 characters. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/xmon/xmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc