From: Xiongwei Song <sxwjean@me.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: pmladek@suse.com, peterz@infradead.org, peterx@redhat.com,
linux-kernel@vger.kernel.org, paulus@samba.org,
kan.liang@linux.intel.com, leobras.c@gmail.com,
mikey@neuling.org, maddy@linux.ibm.com,
aneesh.kumar@linux.ibm.com, haren@linux.ibm.com, aik@ozlabs.ru,
kjain@linux.ibm.com, msuchanek@suse.de,
ravi.bangoria@linux.ibm.com, john.ogness@linutronix.de,
alistair@popple.id.au, npiggin@gmail.com,
kvm-ppc@vger.kernel.org, jniethe5@gmail.com,
atrajeev@linux.vnet.ibm.com, Xiongwei Song <sxwjean@gmail.com>,
oleg@redhat.com, akpm@linux-foundation.org,
linuxppc-dev@lists.ozlabs.org, rppt@kernel.org
Subject: Re: [PATCH v2] powerpc/traps: Enhance readability for trap types
Date: Mon, 5 Apr 2021 20:03:25 +0800 [thread overview]
Message-ID: <DC60E115-166B-47AC-ACEE-7FEBB48AF5E6@me.com> (raw)
In-Reply-To: <20210401161131.GE13863@gate.crashing.org>
> On Apr 2, 2021, at 12:11 AM, Segher Boessenkool <segher@kernel.crashing.org> wrote:
>
> On Thu, Apr 01, 2021 at 10:55:58AM +0800, Xiongwei Song wrote:
>> Segher Boessenkool <segher@kernel.crashing.org> 于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
>>>> EXC_ALIGNMENT
>>>> EXC_PROGRAM_CHECK
>>>> EXC_FP_UNAVAILABLE
>>>> EXC_DECREMENTER
>>>> EXC_HV_DECREMENTER
>>>> EXC_SYSTEM_CALL
>>>> EXC_HV_DATA_STORAGE
>>>> EXC_PERF_MONITOR
>>>
>>> These are interrupt (vectors), not exceptions. It doesn't matter all
>>> that much, but confusing things more isn't useful either! There can be
>>> multiple exceptions that all can trigger the same interrupt.
>>>
>>> When looking at the reference manual of e500 and e600 from NXP
>> official, they call them as interrupts.While looking at the "The
>> Programming Environments"
>> that is also from NXP, they call them exceptions. Looks like there is
>> no explicit distinction between interrupts and exceptions.
>
> The architecture documents have always called it interrupts. The PEM
> says it calls them exceptions instead, but they are called interrupts in
> the architecture (and the PEM says that, too).
>
>> Here is the "The Programming Environments" link:
>> https://www.nxp.com.cn/docs/en/user-guide/MPCFPE_AD_R1.pdf
>
> That document is 24 years old. The architecture is still published,
> new versions regularly.
>
>> As far as I know, the values of interrupts or exceptions above are defined
>> explicitly in reference manual or the programming environments.
>
> They are defined in the architecture.
>
>> Could
>> you please provide more details about multiple exceptions with the same
>> interrupts?
>
> The simplest example is 700, program interrupt. There are many causes
> for it, including all the exceptions in FPSCR: VX, ZX, OX, UX, XX, and
> VX is actually divided into nine separate cases itself. There also are
> the various causes of privileged instruction type program interrupts,
> and the trap type program interrupt, but the FEX ones are most obvious
> here.
Thanks for the explanation.
Regards,
Xiongwei
>
>
> Segher
next prev parent reply other threads:[~2021-04-05 12:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 15:04 [PATCH v2] powerpc/traps: Enhance readability for trap types Xiongwei Song
2021-03-31 9:58 ` Michael Ellerman
2021-03-31 21:25 ` Segher Boessenkool
2021-04-01 2:39 ` Michael Ellerman
2021-04-01 8:01 ` Nicholas Piggin
2021-04-01 16:16 ` Segher Boessenkool
2021-04-05 12:10 ` Xiongwei Song
2021-04-01 2:55 ` Xiongwei Song
2021-04-01 16:11 ` Segher Boessenkool
2021-04-02 0:36 ` Nicholas Piggin
2021-04-05 12:18 ` Xiongwei Song
2021-04-05 12:03 ` Xiongwei Song [this message]
2021-04-01 2:44 ` Xiongwei Song
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DC60E115-166B-47AC-ACEE-7FEBB48AF5E6@me.com \
--to=sxwjean@me.com \
--cc=aik@ozlabs.ru \
--cc=akpm@linux-foundation.org \
--cc=alistair@popple.id.au \
--cc=aneesh.kumar@linux.ibm.com \
--cc=atrajeev@linux.vnet.ibm.com \
--cc=haren@linux.ibm.com \
--cc=jniethe5@gmail.com \
--cc=john.ogness@linutronix.de \
--cc=kan.liang@linux.intel.com \
--cc=kjain@linux.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=leobras.c@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mikey@neuling.org \
--cc=msuchanek@suse.de \
--cc=npiggin@gmail.com \
--cc=oleg@redhat.com \
--cc=paulus@samba.org \
--cc=peterx@redhat.com \
--cc=peterz@infradead.org \
--cc=pmladek@suse.com \
--cc=ravi.bangoria@linux.ibm.com \
--cc=rppt@kernel.org \
--cc=segher@kernel.crashing.org \
--cc=sxwjean@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox