]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Fix boot failure on non 6xx platforms
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 8 Aug 2017 06:37:24 +0000 (08:37 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Aug 2017 09:35:34 +0000 (19:35 +1000)
commit16fe41223e62013d9da74cb0f1fc7fbf38e957a9
tree6882765cb191318e525a7e478dba03c06a61a45f
parente29def55a86eda064a8629689f8707755a2e39da
powerpc/32: Fix boot failure on non 6xx platforms

Commit 01be57c6bf0c7 ("powerpc/6xx: Handle DABR match before calling
do_page_fault") breaks non 6xx platforms.

  Failed to execute /init (error -14)
  Starting init: /bin/sh exists but couldn't execute it (error -14)
  Kernel panic - not syncing: No working init found.  Try passing init= ...
  CPU: 0 PID: 1 Comm: init Not tainted 4.13.0-rc3-s3k-dev-00143-g7aa62e972a56 #56
  Call Trace:
    panic+0x108/0x250 (unreliable)
    rootfs_mount+0x0/0x58
    ret_from_kernel_thread+0x5c/0x64
  Rebooting in 180 seconds..

This is because in handle_page_fault(), the call to do_page_fault() has been
mistakenly enclosed inside an #ifdef CONFIG_6xx

Fixes: 01be57c6bf0c7 ("powerpc/6xx: Handle DABR match before calling do_page_fault")
Brown-paper-bag-to-be-worn-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/entry_32.S