LinuxPPC-Dev Archive on lore.kernel.org
 help / color / Atom feed
* [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
@ 2020-02-11 19:25 bugzilla-daemon
  2020-02-11 19:26 ` [Bug 206501] " bugzilla-daemon
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-11 19:25 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

            Bug ID: 206501
           Summary: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with
                    CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
           Product: Platform Specific/Hardware
           Version: 2.5
    Kernel Version: 5.6.0-rc1
          Hardware: PPC-32
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: PPC-32
          Assignee: platform_ppc-32@kernel-bugs.osdl.org
          Reporter: erhard_f@mailbox.org
        Regression: No

Created attachment 287311
  --> https://bugzilla.kernel.org/attachment.cgi?id=287311&action=edit
screenshot

The G4 boots fine with CONFIG_VMAP_STACK=n, but fails to boot with
CONFIG_VMAP_STACK=y.

[...]
NIP [c001c194] create_hpte+0xa8/0x120
LR [c001c0c4] add_hash_page+0x88/0xb0
Call Trace:
[f101dde8] [cO181568] alloc_set_pte+0x184/0x214 (unreliable)
[f101de18] [cO14d168] filemap_map_pages+0x21c/0x250
[f101de68] [c0181cf4] handle_mm_fault+0x66c/0x90c
[f101dee8] [c0019aac] do_page_fault+0x690/0x804
[f101df38] [c0014450] handle_page_fault+0x10/0x3c
--- interrupt: 401 at Oxb77ffd10
    LR = 0x0
Instruction dump:
6c64003f 6884ffx0 3884fff8 7c0903a6 84x40008 7c062800 4002fff8 41a2008c
68a50040 7c0903a6 3883fff8 84c40008 <54c60001> 4002fff8 41a20070 3c80c08e
---[ end trace cd24dd23c7db9d53 ]---

Machine check in kernel mode.
Caused by (from SRR1=141020): Transfer error ack signal
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

(OCRed screenshot + corrections by hand)

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
@ 2020-02-11 19:26 ` " bugzilla-daemon
  2020-02-12  8:13 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-11 19:26 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #1 from Erhard F. (erhard_f@mailbox.org) ---
Created attachment 287313
  --> https://bugzilla.kernel.org/attachment.cgi?id=287313&action=edit
kernel .config (5.6.0-rc1, PowerMac G4 DP)

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
  2020-02-11 19:26 ` [Bug 206501] " bugzilla-daemon
@ 2020-02-12  8:13 ` bugzilla-daemon
  2020-02-12 11:53 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-12  8:13 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

Christophe Leroy (christophe.leroy@c-s.fr) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christophe.leroy@c-s.fr

--- Comment #2 from Christophe Leroy (christophe.leroy@c-s.fr) ---
Created attachment 287321
  --> https://bugzilla.kernel.org/attachment.cgi?id=287321&action=edit
powerpc/32s: Fix add_hash_page() for CONFIG_VMAP_STACK

Please test this patch.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
  2020-02-11 19:26 ` [Bug 206501] " bugzilla-daemon
  2020-02-12  8:13 ` bugzilla-daemon
@ 2020-02-12 11:53 ` bugzilla-daemon
  2020-02-12 15:10 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-12 11:53 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #3 from Christophe Leroy (christophe.leroy@c-s.fr) ---
Could you also test the patch https://patchwork.ozlabs.org/patch/1236804/
instead of the above patch.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
                   ` (2 preceding siblings ...)
  2020-02-12 11:53 ` bugzilla-daemon
@ 2020-02-12 15:10 ` bugzilla-daemon
  2020-02-12 17:47 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-12 15:10 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #4 from Erhard F. (erhard_f@mailbox.org) ---
Created attachment 287329
  --> https://bugzilla.kernel.org/attachment.cgi?id=287329&action=edit
dmesg (5.6.0-rc1 + Fix DSI and ISI... patch , PowerMac G4 DP)

First patch was not successful, I got no stacktrace but the boot process still
got still stuck.

Second patch was succesful to the point where the G4 was able to boot up to the
point of revealing a dmesg full of other problems, e.g. some 'Unrecoverable
exceptions' ;)

Please find the dmesg attached.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
                   ` (3 preceding siblings ...)
  2020-02-12 15:10 ` bugzilla-daemon
@ 2020-02-12 17:47 ` bugzilla-daemon
  2020-02-12 18:15 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-12 17:47 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #5 from Christophe Leroy (christophe.leroy@c-s.fr) ---
Interesting.

NIP:  00000550
NIP:  0000045c
NIP:  00000c38
NIP:  00000370

The kernel seems to badly fault on the first write to the stack. This suggests
that there is no page allocated for the stack yet. Which is unexpected because
in copy_thread_tls() several writes to the stack are performed so the pages
must exist in page tables.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
                   ` (4 preceding siblings ...)
  2020-02-12 17:47 ` bugzilla-daemon
@ 2020-02-12 18:15 ` bugzilla-daemon
  2020-02-13 10:45 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-12 18:15 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #6 from Christophe Leroy (christophe.leroy@c-s.fr) ---
I found the reason I think. I just realised that the things saved to SPRN_SPRG
and in thread struct get overwriten by the DSI taken at stack write.

I'll prepare something to fix that.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
                   ` (5 preceding siblings ...)
  2020-02-12 18:15 ` bugzilla-daemon
@ 2020-02-13 10:45 ` bugzilla-daemon
  2020-02-13 11:34 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-13 10:45 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #7 from Christophe Leroy (christophe.leroy@c-s.fr) ---
Can you try version v2 of the patch,
https://patchwork.ozlabs.org/patch/1237387/

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
                   ` (6 preceding siblings ...)
  2020-02-13 10:45 ` bugzilla-daemon
@ 2020-02-13 11:34 ` bugzilla-daemon
  2020-02-13 17:32 ` bugzilla-daemon
  2020-02-13 19:49 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-13 11:34 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #8 from Erhard F. (erhard_f@mailbox.org) ---
(In reply to Christophe Leroy from comment #7)
> Can you try version v2 of the patch,
> https://patchwork.ozlabs.org/patch/1237387/
I can confirm that v2 works as intended. The G4 completes booting with
VMAP_STACK enabled and without producing further stack traces. Thanks!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
                   ` (7 preceding siblings ...)
  2020-02-13 11:34 ` bugzilla-daemon
@ 2020-02-13 17:32 ` bugzilla-daemon
  2020-02-13 19:49 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-13 17:32 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #9 from Christophe Leroy (christophe.leroy@c-s.fr) ---
Great. Can we add your Tested-by: to the commit ?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 206501] Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7  [#1]
  2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
                   ` (8 preceding siblings ...)
  2020-02-13 17:32 ` bugzilla-daemon
@ 2020-02-13 19:49 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2020-02-13 19:49 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=206501

--- Comment #10 from Erhard F. (erhard_f@mailbox.org) ---
Sure. Thanks!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, back to index

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 19:25 [Bug 206501] New: Kernel 5.6-rc1 fails to boot on a PowerMac G4 3,6 with CONFIG_VMAP_STACK=y: Oops! Machine check, sig: 7 [#1] bugzilla-daemon
2020-02-11 19:26 ` [Bug 206501] " bugzilla-daemon
2020-02-12  8:13 ` bugzilla-daemon
2020-02-12 11:53 ` bugzilla-daemon
2020-02-12 15:10 ` bugzilla-daemon
2020-02-12 17:47 ` bugzilla-daemon
2020-02-12 18:15 ` bugzilla-daemon
2020-02-13 10:45 ` bugzilla-daemon
2020-02-13 11:34 ` bugzilla-daemon
2020-02-13 17:32 ` bugzilla-daemon
2020-02-13 19:49 ` bugzilla-daemon

LinuxPPC-Dev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linuxppc-dev/0 linuxppc-dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linuxppc-dev linuxppc-dev/ https://lore.kernel.org/linuxppc-dev \
		linuxppc-dev@lists.ozlabs.org linuxppc-dev@ozlabs.org
	public-inbox-index linuxppc-dev

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.ozlabs.lists.linuxppc-dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git