Re: [PATCH v2 3/4] powerpc: Optimize register usage for dear register

2021-08-10 Thread Xiongwei Song
On Sat, Aug 7, 2021 at 2:58 PM Christophe Leroy wrote: > > > > Le 07/08/2021 à 03:02, sxwj...@me.com a écrit : > > From: Xiongwei Song > > > > Create an anonymous union for dar and dear regsiters, we can reference > > dear to get the effective address

Re: [PATCH v2 1/4] powerpc: Optimize register usage for esr register

2021-08-10 Thread Xiongwei Song
On Sat, Aug 7, 2021 at 2:57 PM Christophe Leroy wrote: > > > > Le 07/08/2021 à 03:02, sxwj...@me.com a écrit : > > From: Xiongwei Song > > > > Create an anonymous union for dsisr and esr regsiters, we can reference > > esr to get the exception detail

Re: [RFC PATCH 1/4] powerpc: Optimize register usage for esr register

2021-08-06 Thread Xiongwei Song
On Fri, Aug 6, 2021 at 3:32 PM Christophe Leroy wrote: > > > > Le 06/08/2021 à 05:16, Xiongwei Song a écrit : > > On Thu, Aug 5, 2021 at 6:06 PM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 26/07/2021 à 16:30, sxwj...@me.co

Re: [RFC PATCH 1/4] powerpc: Optimize register usage for esr register

2021-08-06 Thread Xiongwei Song
On Fri, Aug 6, 2021 at 2:53 PM Michael Ellerman wrote: > > sxwj...@me.com writes: > > From: Xiongwei Song > > > > Create an anonymous union for dsisr and esr regsiters, we can reference > > esr to get the exception detail when CONFIG_4xx=y or CONFIG_BOOKE=y. > &

Re: [RFC PATCH 3/4] powerpc: Optimize register usage for dear register

2021-08-05 Thread Xiongwei Song
On Thu, Aug 5, 2021 at 6:09 PM Christophe Leroy wrote: > > > > Le 26/07/2021 à 16:30, sxwj...@me.com a écrit : > > From: Xiongwei Song > > > > Create an anonymous union for dar and dear regsiters, we can reference > > dear to get the effective address

Re: [RFC PATCH 1/4] powerpc: Optimize register usage for esr register

2021-08-05 Thread Xiongwei Song
On Thu, Aug 5, 2021 at 6:06 PM Christophe Leroy wrote: > > > > Le 26/07/2021 à 16:30, sxwj...@me.com a écrit : > > From: Xiongwei Song > > > > Create an anonymous union for dsisr and esr regsiters, we can reference > > esr to get the exception detail

Re: [PATCH 1/2] powerpc: Make the code in __show_regs nice-looking

2021-04-24 Thread Xiongwei Song
On Thu, Apr 22, 2021 at 11:27 PM Christophe Leroy wrote: > > > > Le 22/04/2021 à 17:10, Xiongwei Song a écrit : > > From: Xiongwei Song > > > > Create a new function named interrupt_detail_printable to judge which > > interrupts can print esr/dsisr regis

Re: [PATCH 2/2] powerpc: Print esr register when hitting Program Interrupt

2021-04-24 Thread Xiongwei Song
On Fri, Apr 23, 2021 at 12:50 AM Christophe Leroy wrote: > > > > Le 22/04/2021 à 17:29, Christophe Leroy a écrit : > > > > > > Le 22/04/2021 à 17:10, Xiongwei Song a écrit : > >> From: Xiongwei Song > >> > >> The esr register has the deta

Re: [PATCH 2/2] powerpc: Print esr register when hitting Program Interrupt

2021-04-24 Thread Xiongwei Song
On Thu, Apr 22, 2021 at 11:29 PM Christophe Leroy wrote: > > > > Le 22/04/2021 à 17:10, Xiongwei Song a écrit : > > From: Xiongwei Song > > > > The esr register has the details of Program Interrupt on BookE/4xx cpus, > > printing its value is helpful.

[PATCH 2/2] powerpc: Print esr register when hitting Program Interrupt

2021-04-22 Thread Xiongwei Song
From: Xiongwei Song The esr register has the details of Program Interrupt on BookE/4xx cpus, printing its value is helpful. Signed-off-by: Xiongwei Song --- arch/powerpc/kernel/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel

[PATCH 1/2] powerpc: Make the code in __show_regs nice-looking

2021-04-22 Thread Xiongwei Song
From: Xiongwei Song Create a new function named interrupt_detail_printable to judge which interrupts can print esr/dsisr register. Signed-off-by: Xiongwei Song --- arch/powerpc/kernel/process.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/arch

Re: [PATCH 1/3] powerpc/8xx: Enhance readability of trap types

2021-04-19 Thread Xiongwei Song
On Mon, Apr 19, 2021 at 11:48 PM Christophe Leroy wrote: > > This patch makes use of trap types in head_8xx.S > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/interrupt.h | 29 > arch/powerpc/kernel/head_8xx.S | 49 ++-- > 2 file

Re: linux-next: build failure after merge of the powerpc tree

2021-04-19 Thread Xiongwei Song
Thank you so much Stephen. Sorry for my negligence. Should I fix this myself on powerpc tree? Regards, Xiongwei On Mon, Apr 19, 2021 at 5:14 PM Stephen Rothwell wrote: > > Hi all, > > After merging the powerpc tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > arch/po

[PATCH v5] powerpc/traps: Enhance readability for trap types

2021-04-14 Thread Xiongwei Song
From: Xiongwei Song Define macros to list ppc interrupt types in interttupt.h, replace the reference of the trap hex values with these macros. Referred the hex numbers in arch/powerpc/kernel/exceptions-64e.S, arch/powerpc/kernel/exceptions-64s.S, arch/powerpc/kernel/head_*.S, arch/powerpc

Re: [PATCH v4] powerpc/traps: Enhance readability for trap types

2021-04-10 Thread Xiongwei Song
> On Apr 10, 2021, at 8:35 AM, Nicholas Piggin wrote: > > Thanks for working on this, I think it's a nice cleanup and helps > non-powerpc people understand the code a bit better. > My pleasure. > Excerpts from Xiongwei Song's message of April 10, 2021 12:2

Re: [PATCH v3] powerpc/traps: Enhance readability for trap types

2021-04-10 Thread Xiongwei Song
> On Apr 10, 2021, at 8:04 AM, Michael Ellerman wrote: > > Christophe Leroy writes: >> Le 08/04/2021 à 16:07, Xiongwei Song a écrit : >>> From: Xiongwei Song >>> >>> Create a new header named traps.h, define macros to list ppc interrupt >>

Re: [PATCH v3] powerpc/traps: Enhance readability for trap types

2021-04-10 Thread Xiongwei Song
> On Apr 10, 2021, at 12:14 AM, Christophe Leroy > wrote: > > > > Le 08/04/2021 à 16:07, Xiongwei Song a écrit : >> From: Xiongwei Song >> Create a new header named traps.h, define macros to list ppc interrupt >> types in traps.h, replace the referen

[PATCH v4] powerpc/traps: Enhance readability for trap types

2021-04-09 Thread Xiongwei Song
From: Xiongwei Song Create a new header named traps.h, define macros to list ppc interrupt types in traps.h, replace the references of the trap hex values with these macros. Referred the hex numbers in arch/powerpc/kernel/exceptions-64e.S, arch/powerpc/kernel/exceptions-64s.S and arch/powerpc

[PATCH v3] powerpc/traps: Enhance readability for trap types

2021-04-08 Thread Xiongwei Song
From: Xiongwei Song Create a new header named traps.h, define macros to list ppc interrupt types in traps.h, replace the reference of the trap hex values with these macros. Referred the hex number in arch/powerpc/kernel/exceptions-64e.S, arch/powerpc/kernel/exceptions-64s.S and arch/powerpc

Re: [PATCH v2] powerpc/traps: Enhance readability for trap types

2021-04-05 Thread Xiongwei Song
Regards, Xiongwei > On Apr 2, 2021, at 8:36 AM, Nicholas Piggin wrote: > > Excerpts from Segher Boessenkool's message of April 2, 2021 2:11 am: >> On Thu, Apr 01, 2021 at 10:55:58AM +0800, Xiongwei Song wrote: >>> Segher Boessenkool 于2021年4月1日周四 上午6:15写道: >

Re: [PATCH v2] powerpc/traps: Enhance readability for trap types

2021-04-05 Thread Xiongwei Song
Regards, Xiongwei > On Apr 1, 2021, at 4:01 PM, Nicholas Piggin wrote: > > Excerpts from Michael Ellerman's message of April 1, 2021 12:39 pm: >> Segher Boessenkool writes: >>> On Wed, Mar 31, 2021 at 08:58:17PM +1100, Michael Ellerman wrote: So perhaps: EXC_SYSTEM_RESET >

Re: [PATCH v2] powerpc/traps: Enhance readability for trap types

2021-04-05 Thread Xiongwei Song
> On Apr 2, 2021, at 12:11 AM, Segher Boessenkool > wrote: > > On Thu, Apr 01, 2021 at 10:55:58AM +0800, Xiongwei Song wrote: >> Segher Boessenkool 于2021年4月1日周四 上午6:15写道: >> >>> On Wed, Mar 31, 2021 at 08:58:17PM +1100, Michael Ellerman wrote: >>>

Re: [PATCH v2] powerpc/traps: Enhance readability for trap types

2021-03-31 Thread Xiongwei Song
Segher Boessenkool 于2021年4月1日周四 上午6:15写道: > On Wed, Mar 31, 2021 at 08:58:17PM +1100, Michael Ellerman wrote: > > So perhaps: > > > > EXC_SYSTEM_RESET > > EXC_MACHINE_CHECK > > EXC_DATA_STORAGE > > EXC_DATA_SEGMENT > > EXC_INST_STORAGE > > EXC_INST_SEGMENT > > EXC_EXTERNAL_INTERRUPT

Re: [PATCH v2] powerpc/traps: Enhance readability for trap types

2021-03-31 Thread Xiongwei Song
Michael Ellerman 于2021年3月31日周三 下午5:58写道: > Xiongwei Song writes: > > From: Xiongwei Song > > > > Create a new header named traps.h, define macros to list ppc exception > > types in traps.h, replace the reference of the real trap values with > > these macr

[PATCH v2] powerpc/traps: Enhance readability for trap types

2021-03-30 Thread Xiongwei Song
From: Xiongwei Song Create a new header named traps.h, define macros to list ppc exception types in traps.h, replace the reference of the real trap values with these macros. Signed-off-by: Xiongwei Song --- arch/powerpc/include/asm/interrupt.h | 7 --- arch/powerpc/include/asm/ptrace.h

Re: [PATCH] powerpc/process: Enhance readability for trap types.

2021-03-28 Thread Xiongwei Song
> On Mar 28, 2021, at 11:21 PM, Christophe Leroy > wrote: > > > > Le 28/03/2021 à 16:35, Xiongwei Song a écrit : >> From: Xiongwei Song >> Define macros to enhance the code readability on ppc trap types. > > Good idea > >> Signed-off-by:

[PATCH] powerpc/process: Enhance readability for trap types.

2021-03-28 Thread Xiongwei Song
From: Xiongwei Song Define macros to enhance the code readability on ppc trap types. Signed-off-by: Xiongwei Song --- arch/powerpc/kernel/process.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index