From: Nicholas Piggin <npiggin@gmail.com>
To: Christophe Leroy <christophe.leroy@csgroup.eu>,
Christian Zigotzky <chzigotzky@xenosoft.de>
Cc: Darren Stevens <darren@stevens-zone.net>,
linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
"R.T.Dickinson" <rtd2@xtra.co.nz>,
mad skateman <madskateman@gmail.com>,
Christian Zigotzky <info@xenosoft.de>
Subject: Re: [FSL P50x0] Xorg always restarts again and again after the the PowerPC updates 5.13-1
Date: Fri, 14 May 2021 08:58:16 +1000 [thread overview]
Message-ID: <1620946444.gkflc9lqps.astroid@bobo.none> (raw)
In-Reply-To: <2f00463c-a87a-6dbc-037c-5a8996790d23@xenosoft.de>
Excerpts from Christian Zigotzky's message of May 14, 2021 6:20 am:
> On 13 May 2021 at 07:00pm, Christophe Leroy wrote:
>>
>> Ah yes, I remember this problem.
>>
>> Can you select CONFIG_VIRT_CPU_ACCOUNTING_GEN in your configuration ?
>>
>> Otherwise, I can try to fix the branch.
>>
>> Christophe
> I selected this. After that it compiles.
>
> 1. git bisect good - Xorg restarts again and again
> Output: [f9aa0ac1e9e82b60401ad567bdabc30598325bc1] Revert
> "powerpc/64e/interrupt: use new interrupt return"
> 2. git bisect good - Xorg restarts again and again
> Output: [cd6d259a14704741bf0cd1dcadb84c0de22d7f77] Revert
> "powerpc/64e/interrupt: always save nvgprs on interrupt"
> 3. git bisect bad - Xorg works
> Output: [9bfa20ef2ae54d3b9088dfbcde4ef97062cf5ef2] Revert
> "powerpc/interrupt: update common interrupt code for"
> 4. git bisect good - Xorg restarts again and again
> Output:
>
> cd6d259a14704741bf0cd1dcadb84c0de22d7f77 is the first bad commit
> commit cd6d259a14704741bf0cd1dcadb84c0de22d7f77
> Author: Christophe Leroy <christophe.leroy@csgroup.eu>
> Date: Thu May 13 09:52:06 2021 +0000
>
> Revert "powerpc/64e/interrupt: always save nvgprs on interrupt"
>
> This reverts commit 4228b2c3d20e9f80b847f809c38e6cf82864fa50.
>
> :040000 040000 156542c857ad72776b69bb67b2f244afeeb7abd3
> 92ea86ed097fce16238b0c2f2b343473894e4e8e M arch
Thank you both very much for chasing this down.
I think I see the problem, it's clobbering r14 and r15 for some
interrupts. Something like this is required, I'll give it more
review and testing though.
Thanks,
Nick
---
diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S
index 7c3654b0d0f4..b91ef04f1ce2 100644
--- a/arch/powerpc/kernel/exceptions-64e.S
+++ b/arch/powerpc/kernel/exceptions-64e.S
@@ -535,6 +535,10 @@ __end_interrupts:
PROLOG_ADDITION_2REGS)
mfspr r14,SPRN_DEAR
mfspr r15,SPRN_ESR
+ std r14,_DAR(r1)
+ std r15,_DSISR(r1)
+ ld r14,PACA_EXGEN+EX_R14(r13)
+ ld r15,PACA_EXGEN+EX_R15(r13)
EXCEPTION_COMMON(0x300)
b storage_fault_common
@@ -544,6 +548,10 @@ __end_interrupts:
PROLOG_ADDITION_2REGS)
li r15,0
mr r14,r10
+ std r14,_DAR(r1)
+ std r15,_DSISR(r1)
+ ld r14,PACA_EXGEN+EX_R14(r13)
+ ld r15,PACA_EXGEN+EX_R15(r13)
EXCEPTION_COMMON(0x400)
b storage_fault_common
@@ -557,6 +565,10 @@ __end_interrupts:
PROLOG_ADDITION_2REGS)
mfspr r14,SPRN_DEAR
mfspr r15,SPRN_ESR
+ std r14,_DAR(r1)
+ std r15,_DSISR(r1)
+ ld r14,PACA_EXGEN+EX_R14(r13)
+ ld r15,PACA_EXGEN+EX_R15(r13)
EXCEPTION_COMMON(0x600)
b alignment_more /* no room, go out of line */
@@ -565,10 +577,10 @@ __end_interrupts:
NORMAL_EXCEPTION_PROLOG(0x700, BOOKE_INTERRUPT_PROGRAM,
PROLOG_ADDITION_1REG)
mfspr r14,SPRN_ESR
- EXCEPTION_COMMON(0x700)
std r14,_DSISR(r1)
- addi r3,r1,STACK_FRAME_OVERHEAD
ld r14,PACA_EXGEN+EX_R14(r13)
+ EXCEPTION_COMMON(0x700)
+ addi r3,r1,STACK_FRAME_OVERHEAD
bl program_check_exception
REST_NVGPRS(r1)
b interrupt_return
@@ -725,11 +737,11 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
* normal exception
*/
mfspr r14,SPRN_DBSR
- EXCEPTION_COMMON_CRIT(0xd00)
std r14,_DSISR(r1)
- addi r3,r1,STACK_FRAME_OVERHEAD
ld r14,PACA_EXCRIT+EX_R14(r13)
ld r15,PACA_EXCRIT+EX_R15(r13)
+ EXCEPTION_COMMON_CRIT(0xd00)
+ addi r3,r1,STACK_FRAME_OVERHEAD
bl DebugException
REST_NVGPRS(r1)
b interrupt_return
@@ -796,11 +808,11 @@ kernel_dbg_exc:
* normal exception
*/
mfspr r14,SPRN_DBSR
- EXCEPTION_COMMON_DBG(0xd08)
std r14,_DSISR(r1)
- addi r3,r1,STACK_FRAME_OVERHEAD
ld r14,PACA_EXDBG+EX_R14(r13)
ld r15,PACA_EXDBG+EX_R15(r13)
+ EXCEPTION_COMMON_DBG(0xd08)
+ addi r3,r1,STACK_FRAME_OVERHEAD
bl DebugException
REST_NVGPRS(r1)
b interrupt_return
@@ -931,11 +943,7 @@ masked_interrupt_book3e_0x2c0:
* original values stashed away in the PACA
*/
storage_fault_common:
- std r14,_DAR(r1)
- std r15,_DSISR(r1)
addi r3,r1,STACK_FRAME_OVERHEAD
- ld r14,PACA_EXGEN+EX_R14(r13)
- ld r15,PACA_EXGEN+EX_R15(r13)
bl do_page_fault
b interrupt_return
@@ -944,11 +952,7 @@ storage_fault_common:
* continues here.
*/
alignment_more:
- std r14,_DAR(r1)
- std r15,_DSISR(r1)
addi r3,r1,STACK_FRAME_OVERHEAD
- ld r14,PACA_EXGEN+EX_R14(r13)
- ld r15,PACA_EXGEN+EX_R15(r13)
bl alignment_exception
REST_NVGPRS(r1)
b interrupt_return
next prev parent reply other threads:[~2021-05-13 22:58 UTC|newest]
Thread overview: 137+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 11:59 Radeon NI: GIT kernel with the nislands_smc commit doesn't boot on a Freescale P5040 board and P.A.Semi Nemo board Christian Zigotzky
2021-04-30 11:59 ` Christian Zigotzky
2021-04-30 15:26 ` Deucher, Alexander
2021-04-30 15:26 ` Deucher, Alexander
2021-04-30 15:26 ` Deucher, Alexander
2021-04-30 15:56 ` Gustavo A. R. Silva
2021-04-30 15:56 ` Gustavo A. R. Silva
2021-04-30 15:56 ` Gustavo A. R. Silva
2021-05-03 22:25 ` [FSL P50x0] Xorg always restarts again and again after the the PowerPC updates 5.13-1 Christian Zigotzky
2021-05-04 4:56 ` Christophe Leroy
2021-05-04 7:21 ` Christian Zigotzky
2021-05-04 7:47 ` Christophe Leroy
2021-05-04 8:29 ` Christian Zigotzky
2021-05-04 8:58 ` Christophe Leroy
2021-05-04 9:09 ` Christian Zigotzky
2021-05-04 9:11 ` Christophe Leroy
2021-05-04 9:46 ` Christian Zigotzky
2021-05-04 9:49 ` Christophe Leroy
2021-05-04 10:07 ` Christian Zigotzky
2021-05-04 11:02 ` Christian Zigotzky
2021-05-04 13:48 ` Christian Zigotzky
2021-05-04 14:48 ` Christophe Leroy
2021-05-04 14:52 ` Christian Zigotzky
2021-05-04 14:41 ` Christophe Leroy
2021-05-04 14:59 ` Christian Zigotzky
2021-05-04 15:17 ` Christophe Leroy
2021-05-05 12:43 ` Christian Zigotzky
2021-05-06 6:12 ` Christophe Leroy
2021-05-06 7:56 ` Christian Zigotzky
2021-05-06 8:09 ` Christophe Leroy
2021-05-06 13:58 ` Christian Zigotzky
2021-05-08 16:39 ` Christian Zigotzky
2021-05-09 12:27 ` Christian Zigotzky
2021-05-09 17:43 ` Christophe Leroy
2021-05-09 21:46 ` Christian Zigotzky
2021-05-09 17:36 ` Christophe Leroy
2021-05-13 6:47 ` Christian Zigotzky
2021-05-13 10:01 ` Christophe Leroy
2021-05-13 15:19 ` Christian Zigotzky
2021-05-13 15:51 ` Christophe Leroy
2021-05-13 16:35 ` Christian Zigotzky
2021-05-13 17:00 ` Christophe Leroy
2021-05-13 20:20 ` Christian Zigotzky
2021-05-13 22:58 ` Nicholas Piggin [this message]
2021-05-14 0:19 ` Christian Zigotzky
2021-05-04 14:44 ` Christophe Leroy
2021-05-06 23:55 ` Radeon NI: GIT kernel with the nislands_smc commit doesn't boot on a Freescale P5040 board and P.A.Semi Nemo board Gustavo A. R. Silva
2021-05-06 23:55 ` Gustavo A. R. Silva
2021-05-07 6:43 ` Christian Zigotzky
2021-05-07 6:43 ` Christian Zigotzky
2021-05-08 11:33 ` Christian Zigotzky
2021-05-08 11:33 ` Christian Zigotzky
2021-05-09 23:04 ` Gustavo A. R. Silva
2021-05-09 23:04 ` Gustavo A. R. Silva
2023-11-02 14:45 ` Fbdev issue after the drm updates 'drm-next-2023-10-31-1' Christian Zigotzky
2023-11-07 8:36 ` Christian Zigotzky
2023-11-12 14:23 ` Christian Zigotzky
2023-11-13 12:48 ` Geert Uytterhoeven
2023-11-13 12:48 ` Geert Uytterhoeven
2023-11-13 13:12 ` Christian Zigotzky
2023-11-13 13:12 ` Christian Zigotzky
2023-11-14 9:45 ` Christian Zigotzky
2023-11-14 9:45 ` Christian Zigotzky
2023-11-15 8:33 ` Geert Uytterhoeven
2023-11-15 8:33 ` Geert Uytterhoeven
2023-11-15 8:33 ` Geert Uytterhoeven
2023-11-15 9:22 ` Gerd Hoffmann
2023-11-15 9:22 ` Gerd Hoffmann
2023-11-15 9:22 ` Gerd Hoffmann
2023-11-16 13:13 ` Geert Uytterhoeven
2023-11-16 13:13 ` Geert Uytterhoeven
2023-11-16 13:13 ` Geert Uytterhoeven
2021-11-04 10:45 ` [VirtIO GPU] Xorg doesn't start with the DRM updates 'drm-next-2021-11-03' in a virtual e5500 QEMU KVM-HV machine on a Freescale P5040 board Christian Zigotzky
2021-11-04 21:42 ` [PATCH] drm/virtio: Fix NULL dereference error in virtio_gpu_poll Vivek Kasireddy
2021-11-05 18:05 ` Christian Zigotzky
2021-11-05 18:05 ` Christian Zigotzky
2021-11-08 12:56 ` Gerd Hoffmann
2021-11-08 14:48 ` [FSL P50x0] Cyrus+ board doesn't boot with the PowerPC updates 5.16-1 Christian Zigotzky
2021-11-09 14:45 ` [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates Christian Zigotzky
2021-11-09 15:10 ` Christian Zigotzky
2021-11-09 15:10 ` Christian Zigotzky
2021-11-09 16:58 ` Bjorn Helgaas
2021-11-09 16:58 ` Bjorn Helgaas
2021-11-09 22:40 ` Krzysztof Wilczyński
2021-11-09 22:40 ` Krzysztof Wilczyński
2021-11-09 23:05 ` Arnd Bergmann
2021-11-09 23:05 ` Arnd Bergmann
2021-11-09 23:18 ` Krzysztof Wilczyński
2021-11-09 23:18 ` Krzysztof Wilczyński
2021-11-10 16:42 ` Robert Święcki
2021-11-10 16:42 ` Robert Święcki
2021-11-10 3:52 ` Damien Le Moal
2021-11-10 3:52 ` Damien Le Moal
2021-11-10 18:07 ` Christian Zigotzky
2021-11-10 18:07 ` Christian Zigotzky
2021-11-10 18:41 ` Bjorn Helgaas
2021-11-10 18:41 ` Bjorn Helgaas
2021-11-10 19:09 ` Marc Zyngier
2021-11-10 19:09 ` Marc Zyngier
2021-11-11 5:24 ` Christian Zigotzky
2021-11-11 5:24 ` Christian Zigotzky
2021-11-11 7:13 ` Marc Zyngier
2021-11-11 7:13 ` Marc Zyngier
2021-11-11 7:47 ` Christian Zigotzky
2021-11-11 7:47 ` Christian Zigotzky
2021-11-11 10:20 ` Marc Zyngier
2021-11-11 10:20 ` Marc Zyngier
2021-11-11 10:44 ` Christian Zigotzky
2021-11-11 10:44 ` Christian Zigotzky
2021-11-11 11:24 ` Marc Zyngier
2021-11-11 11:24 ` Marc Zyngier
2021-11-11 11:54 ` Christian Zigotzky
2021-11-11 11:54 ` Christian Zigotzky
2021-11-11 22:21 ` Olof Johansson
2021-11-11 22:21 ` Olof Johansson
2021-11-12 11:49 ` Segher Boessenkool
2021-11-12 11:49 ` Segher Boessenkool
2021-11-11 17:39 ` Marc Zyngier
2021-11-11 17:39 ` Marc Zyngier
2021-11-12 9:40 ` Christian Zigotzky
2021-11-12 9:40 ` Christian Zigotzky
2021-11-12 10:11 ` Christian Zigotzky
2021-11-12 10:11 ` Christian Zigotzky
2021-11-12 11:00 ` Christian Zigotzky
2021-11-12 11:00 ` Christian Zigotzky
2021-11-12 13:41 ` Marc Zyngier
2021-11-12 13:41 ` Marc Zyngier
2021-11-12 14:15 ` Christian Zigotzky
2021-11-12 14:15 ` Christian Zigotzky
2021-11-12 14:46 ` Marc Zyngier
2021-11-12 14:46 ` Marc Zyngier
2021-11-12 15:01 ` Christian Zigotzky
2021-11-12 15:01 ` Christian Zigotzky
2021-11-12 15:05 ` Christian Zigotzky
2021-11-12 15:05 ` Christian Zigotzky
2021-11-12 16:14 ` [irqchip: irq/irqchip-fixes] of/irq: Don't ignore interrupt-controller when interrupt-map failed irqchip-bot for Marc Zyngier
2021-11-09 16:13 ` [FSL P50x0] Cyrus+ board doesn't boot with the PowerPC updates 5.16-1 Christophe Leroy
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=1620946444.gkflc9lqps.astroid@bobo.none \
--to=npiggin@gmail.com \
--cc=christophe.leroy@csgroup.eu \
--cc=chzigotzky@xenosoft.de \
--cc=darren@stevens-zone.net \
--cc=info@xenosoft.de \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=madskateman@gmail.com \
--cc=rtd2@xtra.co.nz \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.