* Critical Interrupt Input
@ 2013-08-16 4:57 Henry Bausley
2013-08-16 11:04 ` Kumar Gala
0 siblings, 1 reply; 10+ messages in thread
From: Henry Bausley @ 2013-08-16 4:57 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 602 bytes --]
Is there any reason that a Critical Input Interrupt will not work reliably
on a 44x powerpc?
I am using an AMCC now Applied Micro AMCC460EX
and changed
CRITICAL_EXCEPTION(0x0100, CriticalInput, unknown_exception)
to
CRITICAL_EXCEPTION(0x0100, CriticalInput, do_MyCritIntr)
The code for the handler is trivial
ie.
int crintrcount;
void do_MyCritIntr(void)
{
crintrcount++;
}
The code runs for a while but eventually I get panic messages and the
system hangs. Is there something I must alter in the kernel to do this
reliably?
Outbound scan for Spam or Virus by Barracuda at Delta Tau
[-- Attachment #2: Type: text/html, Size: 748 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-16 4:57 Critical Interrupt Input Henry Bausley
@ 2013-08-16 11:04 ` Kumar Gala
2013-08-17 22:05 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 10+ messages in thread
From: Kumar Gala @ 2013-08-16 11:04 UTC (permalink / raw)
To: hbausley; +Cc: linuxppc-dev
On Aug 15, 2013, at 11:57 PM, Henry Bausley wrote:
>=20
> Is there any reason that a Critical Input Interrupt will not work =
reliably on a 44x powerpc?
>=20
> I am using an AMCC now Applied Micro AMCC460EX=20
>=20
> and changed
>=20
> CRITICAL_EXCEPTION(0x0100, CriticalInput, unknown_exception)
> to
> CRITICAL_EXCEPTION(0x0100, CriticalInput, do_MyCritIntr)
>=20
> The code for the handler is trivial
> ie.
> int crintrcount;
>=20
> void do_MyCritIntr(void)
> {
> crintrcount++;
> }
>=20
> The code runs for a while but eventually I get panic messages and the =
system hangs. Is there something I must alter in the kernel to do this =
reliably?
The 44x low level code needs to handle exception stacks properly for =
this to work. Since its possible to have a critical exception occur =
while in a normal exception level, you have to have proper saving of =
additional register state and a stack frame for the critical exception, =
etc. I'm not sure if that was ever done for 44x.
- k
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-16 11:04 ` Kumar Gala
@ 2013-08-17 22:05 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2013-08-17 22:05 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, hbausley
On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
> The 44x low level code needs to handle exception stacks properly for
> this to work. Since its possible to have a critical exception occur
> while in a normal exception level, you have to have proper saving of
> additional register state and a stack frame for the critical
> exception, etc. I'm not sure if that was ever done for 44x.
Don't 44x and FSL BookE share the same macros ? I would think 44x does
indeed implement the same crit support as e500...
What does the crash look like ?
Ben.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
@ 2013-08-19 19:00 Henry Bausley
2013-08-19 20:56 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 10+ messages in thread
From: Henry Bausley @ 2013-08-19 19:00 UTC (permalink / raw)
To: Benjamin Herrenschmidt, Kumar Gala; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 2903 bytes --]
Support does appear to be present but there is a problem returning back to
user space I suspect.
What fails is it causes Linux user space programs to get Segmentation
errors.
Issuing a simple ls causes a segmentation fault sometimes. The shell gets
terminated
and you cannot log back in. INIT: Id "T0" respawning too fast: disabled
for 5 minutes pops up.
However, the critical interrupt handler keeps running. I know this by
adding the reading
of a physical I/O location in the handler and can see it is being read on
the scope.
The only code in the handler is below.
void critintr_handler(void *dev)
{
critintrcount++; // increment a variable
iodata = *piom; // read an I/O location
mtdcr(0x0c0, 0x00002000); // clear critical interrupt
}
Below is a log of the type of crashes that occur:
root@10.34.9.213:/opt/ppmac/ktest# ls
Segmentation fault
root@10.34.9.213:/opt/ppmac/ktest# ls
Segmentation fault
root@10.34.9.213:/opt/ppmac/ktest# ls
Makefile ktest.c ktest.ko ktest.mod.o modules.order
Module.symvers ktest.cbp ktest.mod.c ktest.o
root@10.34.9.213:/opt/ppmac/ktest# ls
Debian GNU/Linux 7 powerpmac ttyS0
powerpmac login: root
Debian GNU/Linux 7 powerpmac ttyS0
powerpmac login: root
Debian GNU/Linux 7 powerpmac ttyS0
powerpmac login: root
Debian GNU/Linux 7 powerpmac ttyS0
powerpmac login: root
Password:
Last login: Thu Nov 30 20:42:16 UTC 1933 on ttyS0
Linux powerpmac 3.2.21-aspen_2.01.09 #10 Mon Aug 19 08:49:12 PDT 2013 ppc
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
INIT: Id "T0" respawning too fast: disabled for 5 minutes
----------------------------------------
From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Sent: Saturday, August 17, 2013 3:05 PM
To: "Kumar Gala" <galak@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org, hbausley@deltatau.com
Subject: Re: Critical Interrupt Input
On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
> The 44x low level code needs to handle exception stacks properly for
> this to work. Since its possible to have a critical exception occur
> while in a normal exception level, you have to have proper saving of
> additional register state and a stack frame for the critical
> exception, etc. I'm not sure if that was ever done for 44x.
Don't 44x and FSL BookE share the same macros ? I would think 44x does
indeed implement the same crit support as e500...
What does the crash look like ?
Ben.
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
Outbound scan for Spam or Virus by Barracuda at Delta Tau
[-- Attachment #2: Type: text/html, Size: 3570 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-19 19:00 Henry Bausley
@ 2013-08-19 20:56 ` Benjamin Herrenschmidt
2013-08-19 21:04 ` Denis Kirjanov
2013-08-20 22:48 ` Henry Bausley
0 siblings, 2 replies; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2013-08-19 20:56 UTC (permalink / raw)
To: hbausley; +Cc: linuxppc-dev
On Mon, 2013-08-19 at 12:00 -0700, Henry Bausley wrote:
>
> Support does appear to be present but there is a problem returning
> back to user space I suspect.
Probably a problem with TLB misses vs. crit interrupts.
A critical interrupt can re-enter a TLB miss.
I can see two potential issues there:
- A bug where we don't properly restore "something" (I thought we did
save and restore MMUCR though, but that's worth dbl checking if it works
properly) accross the crit entry/exit
- Something in your crit code causing a TLB miss (the
kernel .text/.data/.bss should be bolted but anything else can). We
don't currently support re-entering the TLB miss that way.
If we were to support the latter, we'd need to detect on entering a crit
that the PC is within the TLB miss handler, and setup a return context
to the original instruction (replay the miss) rather than trying to
resume it..
Cheers,
Ben.
> What fails is it causes Linux user space programs to get Segmentation
> errors.
> Issuing a simple ls causes a segmentation fault sometimes. The shell
> gets terminated
> and you cannot log back in. INIT: Id "T0" respawning too fast:
> disabled for 5 minutes pops up.
>
> However, the critical interrupt handler keeps running. I know this by
> adding the reading
> of a physical I/O location in the handler and can see it is being read
> on the scope.
>
>
> The only code in the handler is below.
>
> void critintr_handler(void *dev)
> {
> critintrcount++; // increment a variable
> iodata = *piom; // read an I/O location
> mtdcr(0x0c0, 0x00002000); // clear critical interrupt
> }
>
>
> Below is a log of the type of crashes that occur:
>
> root@10.34.9.213:/opt/ppmac/ktest# ls
> Segmentation fault
> root@10.34.9.213:/opt/ppmac/ktest# ls
> Segmentation fault
> root@10.34.9.213:/opt/ppmac/ktest# ls
> Makefile ktest.c ktest.ko ktest.mod.o modules.order
> Module.symvers ktest.cbp ktest.mod.c ktest.o
> root@10.34.9.213:/opt/ppmac/ktest# ls
>
> Debian GNU/Linux 7 powerpmac ttyS0
>
> powerpmac login: root
>
> Debian GNU/Linux 7 powerpmac ttyS0
>
> powerpmac login: root
>
> Debian GNU/Linux 7 powerpmac ttyS0
>
> powerpmac login: root
>
> Debian GNU/Linux 7 powerpmac ttyS0
>
> powerpmac login: root
> Password:
> Last login: Thu Nov 30 20:42:16 UTC 1933 on ttyS0
> Linux powerpmac 3.2.21-aspen_2.01.09 #10 Mon Aug 19 08:49:12 PDT 2013
> ppc
>
> The programs included with the Debian GNU/Linux system are free
> software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> INIT: Id "T0" respawning too fast: disabled for 5 minutes
>
>
> ______________________________________________________________________
> From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
> Sent: Saturday, August 17, 2013 3:05 PM
> To: "Kumar Gala" <galak@kernel.crashing.org>
> Cc: linuxppc-dev@lists.ozlabs.org, hbausley@deltatau.com
> Subject: Re: Critical Interrupt Input
>
> On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
> > The 44x low level code needs to handle exception stacks properly for
> > this to work. Since its possible to have a critical exception occur
> > while in a normal exception level, you have to have proper saving of
> > additional register state and a stack frame for the critical
> > exception, etc. I'm not sure if that was ever done for 44x.
>
> Don't 44x and FSL BookE share the same macros ? I would think 44x does
> indeed implement the same crit support as e500...
>
> What does the crash look like ?
>
> Ben.
>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-19 20:56 ` Benjamin Herrenschmidt
@ 2013-08-19 21:04 ` Denis Kirjanov
2013-08-20 22:48 ` Henry Bausley
1 sibling, 0 replies; 10+ messages in thread
From: Denis Kirjanov @ 2013-08-19 21:04 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, hbausley
The easy thing is to start to experimenting with scratch/preserve registers=
:)
On 8/20/13, Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Mon, 2013-08-19 at 12:00 -0700, Henry Bausley wrote:
>>
>> Support does appear to be present but there is a problem returning
>> back to user space I suspect.
>
> Probably a problem with TLB misses vs. crit interrupts.
>
> A critical interrupt can re-enter a TLB miss.
>
> I can see two potential issues there:
>
> - A bug where we don't properly restore "something" (I thought we did
> save and restore MMUCR though, but that's worth dbl checking if it works
> properly) accross the crit entry/exit
>
> - Something in your crit code causing a TLB miss (the
> kernel .text/.data/.bss should be bolted but anything else can). We
> don't currently support re-entering the TLB miss that way.
>
> If we were to support the latter, we'd need to detect on entering a crit
> that the PC is within the TLB miss handler, and setup a return context
> to the original instruction (replay the miss) rather than trying to
> resume it..
>
> Cheers,
> Ben.
>
>> What fails is it causes Linux user space programs to get Segmentation
>> errors.
>> Issuing a simple ls causes a segmentation fault sometimes. The shell
>> gets terminated
>> and you cannot log back in. INIT: Id "T0" respawning too fast:
>> disabled for 5 minutes pops up.
>>
>> However, the critical interrupt handler keeps running. I know this by
>> adding the reading
>> of a physical I/O location in the handler and can see it is being read
>> on the scope.
>>
>>
>> The only code in the handler is below.
>>
>> void critintr_handler(void *dev)
>> {
>> critintrcount++; // increment a variable
>> iodata =3D *piom; // read an I/O location
>> mtdcr(0x0c0, 0x00002000); // clear critical interrupt
>> }
>>
>>
>> Below is a log of the type of crashes that occur:
>>
>> root@10.34.9.213:/opt/ppmac/ktest# ls
>> Segmentation fault
>> root@10.34.9.213:/opt/ppmac/ktest# ls
>> Segmentation fault
>> root@10.34.9.213:/opt/ppmac/ktest# ls
>> Makefile ktest.c ktest.ko ktest.mod.o modules.order
>> Module.symvers ktest.cbp ktest.mod.c ktest.o
>> root@10.34.9.213:/opt/ppmac/ktest# ls
>>
>> Debian GNU/Linux 7 powerpmac ttyS0
>>
>> powerpmac login: root
>>
>> Debian GNU/Linux 7 powerpmac ttyS0
>>
>> powerpmac login: root
>>
>> Debian GNU/Linux 7 powerpmac ttyS0
>>
>> powerpmac login: root
>>
>> Debian GNU/Linux 7 powerpmac ttyS0
>>
>> powerpmac login: root
>> Password:
>> Last login: Thu Nov 30 20:42:16 UTC 1933 on ttyS0
>> Linux powerpmac 3.2.21-aspen_2.01.09 #10 Mon Aug 19 08:49:12 PDT 2013
>> ppc
>>
>> The programs included with the Debian GNU/Linux system are free
>> software;
>> the exact distribution terms for each program are described in the
>> individual files in /usr/share/doc/*/copyright.
>>
>> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
>> permitted by applicable law.
>> INIT: Id "T0" respawning too fast: disabled for 5 minutes
>>
>>
>> ______________________________________________________________________
>> From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
>> Sent: Saturday, August 17, 2013 3:05 PM
>> To: "Kumar Gala" <galak@kernel.crashing.org>
>> Cc: linuxppc-dev@lists.ozlabs.org, hbausley@deltatau.com
>> Subject: Re: Critical Interrupt Input
>>
>> On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
>> > The 44x low level code needs to handle exception stacks properly for
>> > this to work. Since its possible to have a critical exception occur
>> > while in a normal exception level, you have to have proper saving of
>> > additional register state and a stack frame for the critical
>> > exception, etc. I'm not sure if that was ever done for 44x.
>>
>> Don't 44x and FSL BookE share the same macros ? I would think 44x does
>> indeed implement the same crit support as e500...
>>
>> What does the crash look like ?
>>
>> Ben.
>>
>>
>> _______________________________________________
>> Linuxppc-dev mailing list
>> Linuxppc-dev@lists.ozlabs.org
>> https://lists.ozlabs.org/listinfo/linuxppc-dev
>>
>>
>> =AD=AD
>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
--=20
Regards,
Denis
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-19 20:56 ` Benjamin Herrenschmidt
2013-08-19 21:04 ` Denis Kirjanov
@ 2013-08-20 22:48 ` Henry Bausley
2013-08-20 23:08 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 10+ messages in thread
From: Henry Bausley @ 2013-08-20 22:48 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
Ben,
After your hints I suspected the read of a real world i/o variable *piom
which came from ioremap_nocache in the 3 line critical interrupt handler
void critintr_handler(void *dev)
{
critintrcount++; // increment a variable
iodata =3D *piom; // read an I/O location=20
mtdcr(0x0c0, 0x00002000); // clear critical interrupt=20
}=20
is what caused the problem. Commenting it out seems to make the system stab=
le.=20=20
This led us to disable the critical interrupt when in the
DataTLBError44x and InstructionTLBError44x exceptions. Now the critical
interrupt handler seems to make things more stable when reading real
world i/o for our application.
/* Data TLB Error Interrupt */
START_EXCEPTION(DataTLBError44x)
mtspr SPRN_SPRG_WSCRATCH0, r10 /* Save some working */
+ mfmsr r10 /* Disable the */
+ rlwinm r10,r10,0,15,13 /* MSR's CE bit */
+ mtmsr r10=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
Do you see any potential problems with this approach?
If so can you advise us on how to better take care of this.
On Tue, 2013-08-20 at 06:56 +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2013-08-19 at 12:00 -0700, Henry Bausley wrote:
> >=20
> > Support does appear to be present but there is a problem returning
> > back to user space I suspect.
>=20
> Probably a problem with TLB misses vs. crit interrupts.
>=20
> A critical interrupt can re-enter a TLB miss.
>=20
> I can see two potential issues there:
>=20
> - A bug where we don't properly restore "something" (I thought we did
> save and restore MMUCR though, but that's worth dbl checking if it works
> properly) accross the crit entry/exit
>=20
> - Something in your crit code causing a TLB miss (the
> kernel .text/.data/.bss should be bolted but anything else can). We
> don't currently support re-entering the TLB miss that way.
>=20
> If we were to support the latter, we'd need to detect on entering a crit
> that the PC is within the TLB miss handler, and setup a return context
> to the original instruction (replay the miss) rather than trying to
> resume it..
>=20
> Cheers,
> Ben.
>=20
> > What fails is it causes Linux user space programs to get Segmentation
> > errors.
> > Issuing a simple ls causes a segmentation fault sometimes. The shell
> > gets terminated=20
> > and you cannot log back in. INIT: Id "T0" respawning too fast:
> > disabled for 5 minutes pops up.
> >=20
> > However, the critical interrupt handler keeps running. I know this by
> > adding the reading=20
> > of a physical I/O location in the handler and can see it is being read
> > on the scope.
> >=20
> >=20
> > The only code in the handler is below.
> >=20
> > void critintr_handler(void *dev)
> > {
> > critintrcount++; // increment a variable
> > iodata =3D *piom; // read an I/O location=20
> > mtdcr(0x0c0, 0x00002000); // clear critical interrupt
> > }
> >=20
> >=20
> > Below is a log of the type of crashes that occur:
> >=20
> > root@10.34.9.213:/opt/ppmac/ktest# ls
> > Segmentation fault
> > root@10.34.9.213:/opt/ppmac/ktest# ls
> > Segmentation fault
> > root@10.34.9.213:/opt/ppmac/ktest# ls
> > Makefile ktest.c ktest.ko ktest.mod.o modules.order
> > Module.symvers ktest.cbp ktest.mod.c ktest.o
> > root@10.34.9.213:/opt/ppmac/ktest# ls
> >=20
> > Debian GNU/Linux 7 powerpmac ttyS0
> >=20
> > powerpmac login: root
> >=20
> > Debian GNU/Linux 7 powerpmac ttyS0
> >=20
> > powerpmac login: root
> >=20
> > Debian GNU/Linux 7 powerpmac ttyS0
> >=20
> > powerpmac login: root
> >=20
> > Debian GNU/Linux 7 powerpmac ttyS0
> >=20
> > powerpmac login: root
> > Password:=20
> > Last login: Thu Nov 30 20:42:16 UTC 1933 on ttyS0
> > Linux powerpmac 3.2.21-aspen_2.01.09 #10 Mon Aug 19 08:49:12 PDT 2013
> > ppc
> >=20
> > The programs included with the Debian GNU/Linux system are free
> > software;
> > the exact distribution terms for each program are described in the
> > individual files in /usr/share/doc/*/copyright.
> >=20
> > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> > permitted by applicable law.
> > INIT: Id "T0" respawning too fast: disabled for 5 minutes
> >=20
> >=20
> > ______________________________________________________________________
> > From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
> > Sent: Saturday, August 17, 2013 3:05 PM
> > To: "Kumar Gala" <galak@kernel.crashing.org>
> > Cc: linuxppc-dev@lists.ozlabs.org, hbausley@deltatau.com
> > Subject: Re: Critical Interrupt Input
> >=20
> > On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
> > > The 44x low level code needs to handle exception stacks properly for
> > > this to work. Since its possible to have a critical exception occur
> > > while in a normal exception level, you have to have proper saving of
> > > additional register state and a stack frame for the critical
> > > exception, etc. I'm not sure if that was ever done for 44x.
> >=20
> > Don't 44x and FSL BookE share the same macros ? I would think 44x does
> > indeed implement the same crit support as e500...
> >=20
> > What does the crash look like ?
> >=20
> > Ben.
> >=20
> >=20
> > _______________________________________________
> > Linuxppc-dev mailing list
> > Linuxppc-dev@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/linuxppc-dev
> >=20
> >=20
> > =C2=AD=C2=AD=20=20
>=20
>=20
=0D
Outbound scan for Spam or Virus by Barracuda at Delta Tau=0D
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-20 22:48 ` Henry Bausley
@ 2013-08-20 23:08 ` Benjamin Herrenschmidt
2013-08-27 22:11 ` Henry Bausley
0 siblings, 1 reply; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2013-08-20 23:08 UTC (permalink / raw)
To: Henry Bausley; +Cc: linuxppc-dev
On Tue, 2013-08-20 at 15:48 -0700, Henry Bausley wrote:
> Ben,
>
>
> After your hints I suspected the read of a real world i/o variable *piom
> which came from ioremap_nocache in the 3 line critical interrupt handler
>
> void critintr_handler(void *dev)
> {
> critintrcount++; // increment a variable
> iodata = *piom; // read an I/O location
> mtdcr(0x0c0, 0x00002000); // clear critical interrupt
> }
>
> is what caused the problem. Commenting it out seems to make the system stable.
Right, definitely would do that. BTW. You may want to use proper IO
accessors while at it, to get the right memory barriers etc...
> This led us to disable the critical interrupt when in the
> DataTLBError44x and InstructionTLBError44x exceptions. Now the critical
> interrupt handler seems to make things more stable when reading real
> world i/o for our application.
>
>
> /* Data TLB Error Interrupt */
> START_EXCEPTION(DataTLBError44x)
> mtspr SPRN_SPRG_WSCRATCH0, r10 /* Save some working */
> + mfmsr r10 /* Disable the */
> + rlwinm r10,r10,0,15,13 /* MSR's CE bit */
> + mtmsr r10
>
>
> Do you see any potential problems with this approach?
>
> If so can you advise us on how to better take care of this.
- You potentially still have an exposure ... between the mtspr to
scratch and the mfmsr, a CRIC can occur, causing a re-entrancy which
would than clobber the scratch register. That can be handled by saving
that scratc SPRG into the stack frame on entry/exit from the crit
interrupt. Look at crit_transfer_to_handler, how it already handles
MMUCR:
mfspr r0,SPRN_MMUCR
stw r0,MMUCR(r11)
Probably add saving of the SPRG_WSCRATCH0 in there (need to add a frame
slot for it) and do the restore in RESTORE_MMU_REGS
- You need to handle Instructions TLB miss as well
- You add overhead to the TLB miss handlers which are fairly
performance critical pieces of code. You might be able to alleviate
that by making the whole thing support re-entrancy properly but that's
harder. To do that you would have to:
* Save *all* the SPRGs used by the TLB miss during crit entry/exit
* Detect in crit_transfer_to_handler (check the CSRR0 bounds) that
the crit code interrupted finish_tlb_load_44x before or at the
last tlbwe instruction. In that case, immediately clear the
partially written TLB entry (index in r13) and change the
return address to skip right past the last tlbwe.
Cheers,
Ben.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Tue, 2013-08-20 at 06:56 +1000, Benjamin Herrenschmidt wrote:
> > On Mon, 2013-08-19 at 12:00 -0700, Henry Bausley wrote:
> > >
> > > Support does appear to be present but there is a problem returning
> > > back to user space I suspect.
> >
> > Probably a problem with TLB misses vs. crit interrupts.
> >
> > A critical interrupt can re-enter a TLB miss.
> >
> > I can see two potential issues there:
> >
> > - A bug where we don't properly restore "something" (I thought we did
> > save and restore MMUCR though, but that's worth dbl checking if it works
> > properly) accross the crit entry/exit
> >
> > - Something in your crit code causing a TLB miss (the
> > kernel .text/.data/.bss should be bolted but anything else can). We
> > don't currently support re-entering the TLB miss that way.
> >
> > If we were to support the latter, we'd need to detect on entering a crit
> > that the PC is within the TLB miss handler, and setup a return context
> > to the original instruction (replay the miss) rather than trying to
> > resume it..
> >
> > Cheers,
> > Ben.
> >
> > > What fails is it causes Linux user space programs to get Segmentation
> > > errors.
> > > Issuing a simple ls causes a segmentation fault sometimes. The shell
> > > gets terminated
> > > and you cannot log back in. INIT: Id "T0" respawning too fast:
> > > disabled for 5 minutes pops up.
> > >
> > > However, the critical interrupt handler keeps running. I know this by
> > > adding the reading
> > > of a physical I/O location in the handler and can see it is being read
> > > on the scope.
> > >
> > >
> > > The only code in the handler is below.
> > >
> > > void critintr_handler(void *dev)
> > > {
> > > critintrcount++; // increment a variable
> > > iodata = *piom; // read an I/O location
> > > mtdcr(0x0c0, 0x00002000); // clear critical interrupt
> > > }
> > >
> > >
> > > Below is a log of the type of crashes that occur:
> > >
> > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > Segmentation fault
> > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > Segmentation fault
> > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > Makefile ktest.c ktest.ko ktest.mod.o modules.order
> > > Module.symvers ktest.cbp ktest.mod.c ktest.o
> > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > >
> > > Debian GNU/Linux 7 powerpmac ttyS0
> > >
> > > powerpmac login: root
> > >
> > > Debian GNU/Linux 7 powerpmac ttyS0
> > >
> > > powerpmac login: root
> > >
> > > Debian GNU/Linux 7 powerpmac ttyS0
> > >
> > > powerpmac login: root
> > >
> > > Debian GNU/Linux 7 powerpmac ttyS0
> > >
> > > powerpmac login: root
> > > Password:
> > > Last login: Thu Nov 30 20:42:16 UTC 1933 on ttyS0
> > > Linux powerpmac 3.2.21-aspen_2.01.09 #10 Mon Aug 19 08:49:12 PDT 2013
> > > ppc
> > >
> > > The programs included with the Debian GNU/Linux system are free
> > > software;
> > > the exact distribution terms for each program are described in the
> > > individual files in /usr/share/doc/*/copyright.
> > >
> > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> > > permitted by applicable law.
> > > INIT: Id "T0" respawning too fast: disabled for 5 minutes
> > >
> > >
> > > ______________________________________________________________________
> > > From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
> > > Sent: Saturday, August 17, 2013 3:05 PM
> > > To: "Kumar Gala" <galak@kernel.crashing.org>
> > > Cc: linuxppc-dev@lists.ozlabs.org, hbausley@deltatau.com
> > > Subject: Re: Critical Interrupt Input
> > >
> > > On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
> > > > The 44x low level code needs to handle exception stacks properly for
> > > > this to work. Since its possible to have a critical exception occur
> > > > while in a normal exception level, you have to have proper saving of
> > > > additional register state and a stack frame for the critical
> > > > exception, etc. I'm not sure if that was ever done for 44x.
> > >
> > > Don't 44x and FSL BookE share the same macros ? I would think 44x does
> > > indeed implement the same crit support as e500...
> > >
> > > What does the crash look like ?
> > >
> > > Ben.
> > >
> > >
> > > _______________________________________________
> > > Linuxppc-dev mailing list
> > > Linuxppc-dev@lists.ozlabs.org
> > > https://lists.ozlabs.org/listinfo/linuxppc-dev
> > >
> > >
> > >
> >
> >
>
>
>
>
>
> Outbound scan for Spam or Virus by Barracuda at Delta Tau
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-20 23:08 ` Benjamin Herrenschmidt
@ 2013-08-27 22:11 ` Henry Bausley
2013-08-27 22:14 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 10+ messages in thread
From: Henry Bausley @ 2013-08-27 22:11 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
Both methods you described seem to work. We are currently using the
method of clearing the partially written TLB. Seems to be working but
we're still testing. Thanks.=20=20
=2E
=2E
=2E
mfspr r5,SPRN_CSRR0;
lis r12,finish_tlb_load_44x@h
ori r12,r12,finish_tlb_load_44x@l;
addi r11,r12,finish_tlb_load_44x_end-finish_tlb_load_44x;
cmplw cr0,r5,r12;
cmplw cr1,r5,r11;
ble cr0,3f;
bge cr1,3f;
li r12,0;
mr r5,r11
tlbwe r12,r13,PPC44x_TLB_XLAT;
tlbwe r12,r13,PPC44x_TLB_PAGEID; /* Clear PAGEID */
tlbwe r12,r13,PPC44x_TLB_ATTRIB; /* Clear ATTRIB */
isync
=2E
=2E
=2E
On Wed, 2013-08-21 at 09:08 +1000, Benjamin Herrenschmidt wrote:
> On Tue, 2013-08-20 at 15:48 -0700, Henry Bausley wrote:
> > Ben,
> >=20
> >=20
> > After your hints I suspected the read of a real world i/o variable *piom
> > which came from ioremap_nocache in the 3 line critical interrupt handler
> >=20
> > void critintr_handler(void *dev)
> > {
> > critintrcount++; // increment a variable
> > iodata =3D *piom; // read an I/O location=20
> > mtdcr(0x0c0, 0x00002000); // clear critical interrupt=20
> > }=20
> >=20
> > is what caused the problem. Commenting it out seems to make the system =
stable.=20=20
>=20
> Right, definitely would do that. BTW. You may want to use proper IO
> accessors while at it, to get the right memory barriers etc...
>=20
> > This led us to disable the critical interrupt when in the
> > DataTLBError44x and InstructionTLBError44x exceptions. Now the critical
> > interrupt handler seems to make things more stable when reading real
> > world i/o for our application.
> >
> >=20
> > /* Data TLB Error Interrupt */
> > START_EXCEPTION(DataTLBError44x)
> > mtspr SPRN_SPRG_WSCRATCH0, r10 /* Save some working */
> > + mfmsr r10 /* Disable the */
> > + rlwinm r10,r10,0,15,13 /* MSR's CE bit */
> > + mtmsr r10=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20
> >=20
> >=20
> > Do you see any potential problems with this approach?
> >=20
> > If so can you advise us on how to better take care of this.
>=20
> - You potentially still have an exposure ... between the mtspr to
> scratch and the mfmsr, a CRIC can occur, causing a re-entrancy which
> would than clobber the scratch register. That can be handled by saving
> that scratc SPRG into the stack frame on entry/exit from the crit
> interrupt. Look at crit_transfer_to_handler, how it already handles
> MMUCR:
>=20
> mfspr r0,SPRN_MMUCR
> stw r0,MMUCR(r11)
>=20
> Probably add saving of the SPRG_WSCRATCH0 in there (need to add a frame
> slot for it) and do the restore in RESTORE_MMU_REGS
>=20
> - You need to handle Instructions TLB miss as well
>=20
> - You add overhead to the TLB miss handlers which are fairly
> performance critical pieces of code. You might be able to alleviate
> that by making the whole thing support re-entrancy properly but that's
> harder. To do that you would have to:
>=20
> * Save *all* the SPRGs used by the TLB miss during crit entry/exit
>=20
> * Detect in crit_transfer_to_handler (check the CSRR0 bounds) that=20
> the crit code interrupted finish_tlb_load_44x before or at the
> last tlbwe instruction. In that case, immediately clear the=20
> partially written TLB entry (index in r13) and change the
> return address to skip right past the last tlbwe.
>=20
> Cheers,
> Ben.
>=20
>=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> > On Tue, 2013-08-20 at 06:56 +1000, Benjamin Herrenschmidt wrote:
> > > On Mon, 2013-08-19 at 12:00 -0700, Henry Bausley wrote:
> > > >=20
> > > > Support does appear to be present but there is a problem returning
> > > > back to user space I suspect.
> > >=20
> > > Probably a problem with TLB misses vs. crit interrupts.
> > >=20
> > > A critical interrupt can re-enter a TLB miss.
> > >=20
> > > I can see two potential issues there:
> > >=20
> > > - A bug where we don't properly restore "something" (I thought we did
> > > save and restore MMUCR though, but that's worth dbl checking if it wo=
rks
> > > properly) accross the crit entry/exit
> > >=20
> > > - Something in your crit code causing a TLB miss (the
> > > kernel .text/.data/.bss should be bolted but anything else can). We
> > > don't currently support re-entering the TLB miss that way.
> > >=20
> > > If we were to support the latter, we'd need to detect on entering a c=
rit
> > > that the PC is within the TLB miss handler, and setup a return context
> > > to the original instruction (replay the miss) rather than trying to
> > > resume it..
> > >=20
> > > Cheers,
> > > Ben.
> > >=20
> > > > What fails is it causes Linux user space programs to get Segmentati=
on
> > > > errors.
> > > > Issuing a simple ls causes a segmentation fault sometimes. The she=
ll
> > > > gets terminated=20
> > > > and you cannot log back in. INIT: Id "T0" respawning too fast:
> > > > disabled for 5 minutes pops up.
> > > >=20
> > > > However, the critical interrupt handler keeps running. I know this=
by
> > > > adding the reading=20
> > > > of a physical I/O location in the handler and can see it is being r=
ead
> > > > on the scope.
> > > >=20
> > > >=20
> > > > The only code in the handler is below.
> > > >=20
> > > > void critintr_handler(void *dev)
> > > > {
> > > > critintrcount++; // increment a variable
> > > > iodata =3D *piom; // read an I/O location=20
> > > > mtdcr(0x0c0, 0x00002000); // clear critical interrupt
> > > > }
> > > >=20
> > > >=20
> > > > Below is a log of the type of crashes that occur:
> > > >=20
> > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > > Segmentation fault
> > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > > Segmentation fault
> > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > > Makefile ktest.c ktest.ko ktest.mod.o modules.order
> > > > Module.symvers ktest.cbp ktest.mod.c ktest.o
> > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > >=20
> > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > >=20
> > > > powerpmac login: root
> > > >=20
> > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > >=20
> > > > powerpmac login: root
> > > >=20
> > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > >=20
> > > > powerpmac login: root
> > > >=20
> > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > >=20
> > > > powerpmac login: root
> > > > Password:=20
> > > > Last login: Thu Nov 30 20:42:16 UTC 1933 on ttyS0
> > > > Linux powerpmac 3.2.21-aspen_2.01.09 #10 Mon Aug 19 08:49:12 PDT 20=
13
> > > > ppc
> > > >=20
> > > > The programs included with the Debian GNU/Linux system are free
> > > > software;
> > > > the exact distribution terms for each program are described in the
> > > > individual files in /usr/share/doc/*/copyright.
> > > >=20
> > > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> > > > permitted by applicable law.
> > > > INIT: Id "T0" respawning too fast: disabled for 5 minutes
> > > >=20
> > > >=20
> > > > ___________________________________________________________________=
___
> > > > From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
> > > > Sent: Saturday, August 17, 2013 3:05 PM
> > > > To: "Kumar Gala" <galak@kernel.crashing.org>
> > > > Cc: linuxppc-dev@lists.ozlabs.org, hbausley@deltatau.com
> > > > Subject: Re: Critical Interrupt Input
> > > >=20
> > > > On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
> > > > > The 44x low level code needs to handle exception stacks properly =
for
> > > > > this to work. Since its possible to have a critical exception occ=
ur
> > > > > while in a normal exception level, you have to have proper saving=
of
> > > > > additional register state and a stack frame for the critical
> > > > > exception, etc. I'm not sure if that was ever done for 44x.
> > > >=20
> > > > Don't 44x and FSL BookE share the same macros ? I would think 44x d=
oes
> > > > indeed implement the same crit support as e500...
> > > >=20
> > > > What does the crash look like ?
> > > >=20
> > > > Ben.
> > > >=20
> > > >=20
> > > > _______________________________________________
> > > > Linuxppc-dev mailing list
> > > > Linuxppc-dev@lists.ozlabs.org
> > > > https://lists.ozlabs.org/listinfo/linuxppc-dev
> > > >=20
> > > >=20
> > > > =C2=AD=C2=AD=20=20
> > >=20
> > >=20
> >=20
> >=20
> >=20
> >=20
> >=20
> > Outbound scan for Spam or Virus by Barracuda at Delta Tau
>=20
>=20
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Critical Interrupt Input
2013-08-27 22:11 ` Henry Bausley
@ 2013-08-27 22:14 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2013-08-27 22:14 UTC (permalink / raw)
To: Henry Bausley; +Cc: linuxppc-dev
On Tue, 2013-08-27 at 15:11 -0700, Henry Bausley wrote:
> Both methods you described seem to work. We are currently using the
> method of clearing the partially written TLB. Seems to be working but
> we're still testing. Thanks.
Feel free to send me us patch for review :-)
Cheers,
Ben.
> .
> .
> .
> mfspr r5,SPRN_CSRR0;
> lis r12,finish_tlb_load_44x@h
> ori r12,r12,finish_tlb_load_44x@l;
> addi r11,r12,finish_tlb_load_44x_end-finish_tlb_load_44x;
> cmplw cr0,r5,r12;
> cmplw cr1,r5,r11;
> ble cr0,3f;
> bge cr1,3f;
> li r12,0;
> mr r5,r11
> tlbwe r12,r13,PPC44x_TLB_XLAT;
> tlbwe r12,r13,PPC44x_TLB_PAGEID; /* Clear PAGEID */
> tlbwe r12,r13,PPC44x_TLB_ATTRIB; /* Clear ATTRIB */
> isync
> .
> .
> .
>
>
> On Wed, 2013-08-21 at 09:08 +1000, Benjamin Herrenschmidt wrote:
> > On Tue, 2013-08-20 at 15:48 -0700, Henry Bausley wrote:
> > > Ben,
> > >
> > >
> > > After your hints I suspected the read of a real world i/o variable *piom
> > > which came from ioremap_nocache in the 3 line critical interrupt handler
> > >
> > > void critintr_handler(void *dev)
> > > {
> > > critintrcount++; // increment a variable
> > > iodata = *piom; // read an I/O location
> > > mtdcr(0x0c0, 0x00002000); // clear critical interrupt
> > > }
> > >
> > > is what caused the problem. Commenting it out seems to make the system stable.
> >
> > Right, definitely would do that. BTW. You may want to use proper IO
> > accessors while at it, to get the right memory barriers etc...
> >
> > > This led us to disable the critical interrupt when in the
> > > DataTLBError44x and InstructionTLBError44x exceptions. Now the critical
> > > interrupt handler seems to make things more stable when reading real
> > > world i/o for our application.
> > >
> > >
> > > /* Data TLB Error Interrupt */
> > > START_EXCEPTION(DataTLBError44x)
> > > mtspr SPRN_SPRG_WSCRATCH0, r10 /* Save some working */
> > > + mfmsr r10 /* Disable the */
> > > + rlwinm r10,r10,0,15,13 /* MSR's CE bit */
> > > + mtmsr r10
> > >
> > >
> > > Do you see any potential problems with this approach?
> > >
> > > If so can you advise us on how to better take care of this.
> >
> > - You potentially still have an exposure ... between the mtspr to
> > scratch and the mfmsr, a CRIC can occur, causing a re-entrancy which
> > would than clobber the scratch register. That can be handled by saving
> > that scratc SPRG into the stack frame on entry/exit from the crit
> > interrupt. Look at crit_transfer_to_handler, how it already handles
> > MMUCR:
> >
> > mfspr r0,SPRN_MMUCR
> > stw r0,MMUCR(r11)
> >
> > Probably add saving of the SPRG_WSCRATCH0 in there (need to add a frame
> > slot for it) and do the restore in RESTORE_MMU_REGS
> >
> > - You need to handle Instructions TLB miss as well
> >
> > - You add overhead to the TLB miss handlers which are fairly
> > performance critical pieces of code. You might be able to alleviate
> > that by making the whole thing support re-entrancy properly but that's
> > harder. To do that you would have to:
> >
> > * Save *all* the SPRGs used by the TLB miss during crit entry/exit
> >
> > * Detect in crit_transfer_to_handler (check the CSRR0 bounds) that
> > the crit code interrupted finish_tlb_load_44x before or at the
> > last tlbwe instruction. In that case, immediately clear the
> > partially written TLB entry (index in r13) and change the
> > return address to skip right past the last tlbwe.
> >
> > Cheers,
> > Ben.
> >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Tue, 2013-08-20 at 06:56 +1000, Benjamin Herrenschmidt wrote:
> > > > On Mon, 2013-08-19 at 12:00 -0700, Henry Bausley wrote:
> > > > >
> > > > > Support does appear to be present but there is a problem returning
> > > > > back to user space I suspect.
> > > >
> > > > Probably a problem with TLB misses vs. crit interrupts.
> > > >
> > > > A critical interrupt can re-enter a TLB miss.
> > > >
> > > > I can see two potential issues there:
> > > >
> > > > - A bug where we don't properly restore "something" (I thought we did
> > > > save and restore MMUCR though, but that's worth dbl checking if it works
> > > > properly) accross the crit entry/exit
> > > >
> > > > - Something in your crit code causing a TLB miss (the
> > > > kernel .text/.data/.bss should be bolted but anything else can). We
> > > > don't currently support re-entering the TLB miss that way.
> > > >
> > > > If we were to support the latter, we'd need to detect on entering a crit
> > > > that the PC is within the TLB miss handler, and setup a return context
> > > > to the original instruction (replay the miss) rather than trying to
> > > > resume it..
> > > >
> > > > Cheers,
> > > > Ben.
> > > >
> > > > > What fails is it causes Linux user space programs to get Segmentation
> > > > > errors.
> > > > > Issuing a simple ls causes a segmentation fault sometimes. The shell
> > > > > gets terminated
> > > > > and you cannot log back in. INIT: Id "T0" respawning too fast:
> > > > > disabled for 5 minutes pops up.
> > > > >
> > > > > However, the critical interrupt handler keeps running. I know this by
> > > > > adding the reading
> > > > > of a physical I/O location in the handler and can see it is being read
> > > > > on the scope.
> > > > >
> > > > >
> > > > > The only code in the handler is below.
> > > > >
> > > > > void critintr_handler(void *dev)
> > > > > {
> > > > > critintrcount++; // increment a variable
> > > > > iodata = *piom; // read an I/O location
> > > > > mtdcr(0x0c0, 0x00002000); // clear critical interrupt
> > > > > }
> > > > >
> > > > >
> > > > > Below is a log of the type of crashes that occur:
> > > > >
> > > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > > > Segmentation fault
> > > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > > > Segmentation fault
> > > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > > > Makefile ktest.c ktest.ko ktest.mod.o modules.order
> > > > > Module.symvers ktest.cbp ktest.mod.c ktest.o
> > > > > root@10.34.9.213:/opt/ppmac/ktest# ls
> > > > >
> > > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > > >
> > > > > powerpmac login: root
> > > > >
> > > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > > >
> > > > > powerpmac login: root
> > > > >
> > > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > > >
> > > > > powerpmac login: root
> > > > >
> > > > > Debian GNU/Linux 7 powerpmac ttyS0
> > > > >
> > > > > powerpmac login: root
> > > > > Password:
> > > > > Last login: Thu Nov 30 20:42:16 UTC 1933 on ttyS0
> > > > > Linux powerpmac 3.2.21-aspen_2.01.09 #10 Mon Aug 19 08:49:12 PDT 2013
> > > > > ppc
> > > > >
> > > > > The programs included with the Debian GNU/Linux system are free
> > > > > software;
> > > > > the exact distribution terms for each program are described in the
> > > > > individual files in /usr/share/doc/*/copyright.
> > > > >
> > > > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> > > > > permitted by applicable law.
> > > > > INIT: Id "T0" respawning too fast: disabled for 5 minutes
> > > > >
> > > > >
> > > > > ______________________________________________________________________
> > > > > From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
> > > > > Sent: Saturday, August 17, 2013 3:05 PM
> > > > > To: "Kumar Gala" <galak@kernel.crashing.org>
> > > > > Cc: linuxppc-dev@lists.ozlabs.org, hbausley@deltatau.com
> > > > > Subject: Re: Critical Interrupt Input
> > > > >
> > > > > On Fri, 2013-08-16 at 06:04 -0500, Kumar Gala wrote:
> > > > > > The 44x low level code needs to handle exception stacks properly for
> > > > > > this to work. Since its possible to have a critical exception occur
> > > > > > while in a normal exception level, you have to have proper saving of
> > > > > > additional register state and a stack frame for the critical
> > > > > > exception, etc. I'm not sure if that was ever done for 44x.
> > > > >
> > > > > Don't 44x and FSL BookE share the same macros ? I would think 44x does
> > > > > indeed implement the same crit support as e500...
> > > > >
> > > > > What does the crash look like ?
> > > > >
> > > > > Ben.
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Linuxppc-dev mailing list
> > > > > Linuxppc-dev@lists.ozlabs.org
> > > > > https://lists.ozlabs.org/listinfo/linuxppc-dev
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > > Outbound scan for Spam or Virus by Barracuda at Delta Tau
> >
> >
> > _______________________________________________
> > Linuxppc-dev mailing list
> > Linuxppc-dev@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/linuxppc-dev
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-08-27 22:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-16 4:57 Critical Interrupt Input Henry Bausley
2013-08-16 11:04 ` Kumar Gala
2013-08-17 22:05 ` Benjamin Herrenschmidt
-- strict thread matches above, loose matches on Subject: below --
2013-08-19 19:00 Henry Bausley
2013-08-19 20:56 ` Benjamin Herrenschmidt
2013-08-19 21:04 ` Denis Kirjanov
2013-08-20 22:48 ` Henry Bausley
2013-08-20 23:08 ` Benjamin Herrenschmidt
2013-08-27 22:11 ` Henry Bausley
2013-08-27 22:14 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).