linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 4.13-rc0: stopped booting on Nokia N900
@ 2017-07-10  7:46 Pavel Machek
  2017-07-10  8:13 ` Pavel Machek
  0 siblings, 1 reply; 8+ messages in thread
From: Pavel Machek @ 2017-07-10  7:46 UTC (permalink / raw)
  To: pali.rohar, sre, kernel list, linux-arm-kernel, linux-omap, tony,
	khilman, aaro.koskinen, ivo.g.dimitrov.75, patrikbachan, serge,
	abcloriens

[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]

Hi!

First, I got segfault from make:

: 0: Can't open
scripts/Makefile.build:561: recipe for target
'drivers/iio/imu/st_lsm6dsx' failed
make[3]: *** [drivers/iio/imu/st_lsm6dsx] Segmentation fault (core
dumped)
scripts/Makefile.build:561: recipe for target 'drivers/iio/imu' failed
make[2]: *** [drivers/iio/imu] Error 2
scripts/Makefile.build:561: recipe for target 'drivers/iio' failed
make[1]: *** [drivers/iio] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:1008: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
pavel@duo:/data/l/linux-n900$ ./mkit

Then compile worked, but it failed to boot. I've now cleaned caches
and am rebuilding to make sure it is not build machine that has
glitches.

No such luck :-(.

I tested linux-next relatively recently, and it worked ok.

af3c8d98508d37541d4bf57f13a984a7f73a328c is broken.
650fc87 worked ok.

Best regards,

								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: 4.13-rc0: stopped booting on Nokia N900
  2017-07-10  7:46 4.13-rc0: stopped booting on Nokia N900 Pavel Machek
@ 2017-07-10  8:13 ` Pavel Machek
  2017-07-10 10:02   ` Tony Lindgren
  2017-07-10 10:16   ` Sebastian Reichel
  0 siblings, 2 replies; 8+ messages in thread
From: Pavel Machek @ 2017-07-10  8:13 UTC (permalink / raw)
  To: pali.rohar, sre, kernel list, linux-arm-kernel, linux-omap, tony,
	khilman, aaro.koskinen, ivo.g.dimitrov.75, patrikbachan, serge,
	abcloriens

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

On Mon 2017-07-10 09:46:10, Pavel Machek wrote:
> Hi!
> 
> First, I got segfault from make:
> 
> : 0: Can't open
> scripts/Makefile.build:561: recipe for target
> 'drivers/iio/imu/st_lsm6dsx' failed
> make[3]: *** [drivers/iio/imu/st_lsm6dsx] Segmentation fault (core
> dumped)
> scripts/Makefile.build:561: recipe for target 'drivers/iio/imu' failed
> make[2]: *** [drivers/iio/imu] Error 2
> scripts/Makefile.build:561: recipe for target 'drivers/iio' failed
> make[1]: *** [drivers/iio] Error 2
> make[1]: *** Waiting for unfinished jobs....
> Makefile:1008: recipe for target 'drivers' failed
> make: *** [drivers] Error 2
> make: *** Waiting for unfinished jobs....
> pavel@duo:/data/l/linux-n900$ ./mkit
> 
> Then compile worked, but it failed to boot. I've now cleaned caches
> and am rebuilding to make sure it is not build machine that has
> glitches.
> 
> No such luck :-(.
> 
> I tested linux-next relatively recently, and it worked ok.

> af3c8d98508d37541d4bf57f13a984a7f73a328c is broken.
> 650fc87 worked ok.

2b97620 is broken.

commit a51166ce71844ffbb8f78d63647b44dd69e46cf1
    Add linux-next specific files for 20170628

was ok.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: 4.13-rc0: stopped booting on Nokia N900
  2017-07-10  8:13 ` Pavel Machek
@ 2017-07-10 10:02   ` Tony Lindgren
  2017-07-10 12:55     ` Sebastian Reichel
  2017-07-10 10:16   ` Sebastian Reichel
  1 sibling, 1 reply; 8+ messages in thread
From: Tony Lindgren @ 2017-07-10 10:02 UTC (permalink / raw)
  To: Pavel Machek, Thomas Gleixner
  Cc: pali.rohar, sre, kernel list, linux-arm-kernel, linux-omap,
	khilman, aaro.koskinen, ivo.g.dimitrov.75, patrikbachan, serge,
	abcloriens

* Pavel Machek <pavel@ucw.cz> [170710 01:14]:
> > I tested linux-next relatively recently, and it worked ok.
> 
> > af3c8d98508d37541d4bf57f13a984a7f73a328c is broken.
> > 650fc87 worked ok.
> 
> 2b97620 is broken.
> 
> commit a51166ce71844ffbb8f78d63647b44dd69e46cf1
>     Add linux-next specific files for 20170628
> 
> was ok.

Not sure if it's the same issue, but I bisected down an issue with commit
46e48e257360 ("genirq: Move irq resource handling out of spinlocked region"),
so adding Thomas.

Regards,

Tony

8< -------------------
Unhandled fault: external abort on non-linefetch (0x1028) at 0xfb050034
pgd = c0004000
[fb050034] *pgd=49011452(bad)
Internal error: : 1028 [#1] SMP ARM
Modules linked in:
CPU: 0 PID: 14 Comm: kworker/0:1 Tainted: G        W       4.12.0-01058-g46e48e257360 #238
Hardware name: Nokia RX-51 board
Workqueue: events deferred_probe_work_func
task: ce1d41c0 task.stack: ce1fc000
PC is at omap_gpio_get_direction+0x2c/0x44
LR is at _raw_spin_lock_irqsave+0x40/0x4c
pc : [<c0509258>]    lr : [<c08263c4>]    psr: 60000093
sp : ce1fdb78  ip : c0dce42c  fp : ce22d810
r10: ce22d800  r9 : 00000000  r8 : ce22d900
r7 : 00000016  r6 : ce223864  r5 : fb050034  r4 : 00000020
r3 : ce1d41c0  r2 : 00000000  r1 : a0000013  r0 : a0000013
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
Control: 10c5387d  Table: 80004019  DAC: 00000051
Process kworker/0:1 (pid: 14, stack limit = 0xce1fc218)
Stack: (0xce1fdb78 to 0xce1fe000)
db60:                                                       00000020 ce2238a4
db80: ce223760 ce75c000 ce22d900 c0501efc ce2238a4 ce22d810 ce78e240 c05025b8
dba0: ce22d800 000000a6 ce78e240 c01a8010 ce0000c0 00000000 02000000 ce78e240
dbc0: 00000000 c063f3ec ce75c000 000000a6 00000000 ce22d800 ce22d810 c01a83dc
dbe0: 00000004 ce75c000 ce75c664 00000004 0000000e 00000002 0000000e 00000000
dc00: 02000000 c0640cb4 ce75c000 ce75c000 00003349 c0119a8c c0aedda8 00000000
dc20: ce798800 ce75c000 00000000 ce798800 00000004 d0194000 ce78e880 00000000
dc40: 02000000 c0641604 00000000 6a60556b 151193cc ce798810 c158dbb8 ce798810
dc60: ffffffed c0daf114 fffffdfb 00000000 00000002 c0584fe8 ce798810 c158dbb8
dc80: 00000000 c0daf114 00000000 c058308c 00000000 ce1fdcc8 c05831d8 00000001
dca0: 00000000 c158db74 00000000 c05815c4 ce09e8d4 ce6cc2d4 ce798810 ce798844
dcc0: c0da2510 c0582d48 ce798810 00000001 c158db74 ce798818 ce798810 c0da2510
dce0: 00000000 c05823c4 ce798818 ce27b410 ce798810 c0580768 00000000 00000000
dd00: 60000013 ce798800 ce798800 00000000 ce27b410 cfdeb7c0 00000000 ce6ef610
dd20: 00000f02 c069801c cfdeb770 00000000 ce27b410 00000000 c1590c7c c069d85c
dd40: 00000000 00000000 00000001 02000000 00000001 00000a00 00000000 00000000
dd60: 00000000 00000002 00000000 00000000 02000000 0200000e cfdeb7c8 00000200
dd80: 00000000 00000000 00000000 00000000 00000000 00000000 00000030 00000018
dda0: 00000000 00000000 00000000 00000000 00000000 00000000 0000000c 00000012
ddc0: 0000000c 00000030 00000000 00000000 00000000 0000002a 000000b4 000000b4
dde0: 00000000 00000000 00000000 00000000 00000000 0000000c 00000000 00000000
de00: a0000013 00000000 cfdeb770 ce6f82d0 fffffff6 c0ae84cc ce27b410 ce27b400
de20: c0ad3d8c c069e500 00000000 ce6ef610 00000004 ce6ef610 c1569128 00000000
de40: 0b2c9444 ce27b410 ffffffed c0db423c fffffdfb 00000000 00000001 c0dc5b54
de60: c0d509ae c0584fe8 ce27b410 c158dbb8 00000000 c0db423c 00000000 c058308c
de80: 00000000 ce1fdeb8 c05831d8 00000001 00000000 c0d0796c c0dc5b54 c05815c4
dea0: ce09e8d4 ce1de754 ce27b410 ce27b444 c0da2510 c0582d48 ce27b410 00000001
dec0: c0da2208 ce27b410 ce27b410 c0da2510 c0da2208 c05823c4 ce27b410 c0da21bc
dee0: c0da21bc c0582850 c0da2210 ce1ded00 cfd9ee00 ce1fdf20 cfda2200 c0155b14
df00: 00000001 00000000 c0155a5c 00000000 00000000 00000000 c0156be8 00000008
df20: c0da2210 c0f14a94 00000000 c0ad7054 ce1ded00 cfd9ee00 ce1ded18 00000008
df40: cfd9ee34 ce1fc000 c0d04900 cfd9ee00 ce1ded00 c0156d64 00000000 ce1eee00
df60: ffffe000 ce1dec80 00000000 ce1eee00 ce1fc000 ce1ded00 c0156b38 ce1decb8
df80: ce0bfe90 c015c760 ce1fc000 ce1eee00 c015c650 00000000 00000000 00000000
dfa0: 00000000 00000000 00000000 c01077d0 00000000 00000000 00000000 00000000
dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[<c0509258>] (omap_gpio_get_direction) from [<c0501efc>] (gpiochip_lock_as_irq+0x98/0xe4)
[<c0501efc>] (gpiochip_lock_as_irq) from [<c05025b8>] (gpiochip_irq_reqres+0x2c/0x6c)
[<c05025b8>] (gpiochip_irq_reqres) from [<c01a8010>] (__setup_irq+0x46c/0x6e0)
[<c01a8010>] (__setup_irq) from [<c01a83dc>] (request_threaded_irq+0xcc/0x14c)
[<c01a83dc>] (request_threaded_irq) from [<c0640cb4>] (smc_probe+0x4c0/0xb58)
[<c0640cb4>] (smc_probe) from [<c0641604>] (smc_drv_probe+0x2b8/0x410)
[<c0641604>] (smc_drv_probe) from [<c0584fe8>] (platform_drv_probe+0x50/0xb0)
[<c0584fe8>] (platform_drv_probe) from [<c058308c>] (driver_probe_device+0x260/0x2e8)
[<c058308c>] (driver_probe_device) from [<c05815c4>] (bus_for_each_drv+0x64/0x98)
[<c05815c4>] (bus_for_each_drv) from [<c0582d48>] (__device_attach+0xb0/0x118)
[<c0582d48>] (__device_attach) from [<c05823c4>] (bus_probe_device+0x88/0x90)
[<c05823c4>] (bus_probe_device) from [<c0580768>] (device_add+0x3c8/0x57c)
[<c0580768>] (device_add) from [<c069801c>] (of_platform_device_create_pdata+0x70/0xa4)
[<c069801c>] (of_platform_device_create_pdata) from [<c069d85c>] (gpmc_probe_generic_child+0x98/0x8b4)
[<c069d85c>] (gpmc_probe_generic_child) from [<c069e500>] (gpmc_probe+0x488/0x644)
[<c069e500>] (gpmc_probe) from [<c0584fe8>] (platform_drv_probe+0x50/0xb0)
[<c0584fe8>] (platform_drv_probe) from [<c058308c>] (driver_probe_device+0x260/0x2e8)
[<c058308c>] (driver_probe_device) from [<c05815c4>] (bus_for_each_drv+0x64/0x98)
[<c05815c4>] (bus_for_each_drv) from [<c0582d48>] (__device_attach+0xb0/0x118)
[<c0582d48>] (__device_attach) from [<c05823c4>] (bus_probe_device+0x88/0x90)
[<c05823c4>] (bus_probe_device) from [<c0582850>] (deferred_probe_work_func+0x6c/0x9c)
[<c0582850>] (deferred_probe_work_func) from [<c0155b14>] (process_one_work+0x2b0/0x774)
[<c0155b14>] (process_one_work) from [<c0156d64>] (worker_thread+0x22c/0x540)
[<c0156d64>] (worker_thread) from [<c015c760>] (kthread+0x110/0x150)
[<c015c760>] (kthread) from [<c01077d0>] (ret_from_fork+0x14/0x24)
Code: e1a00006 e0855003 eb0c744b e1a01000 (e5954000)
---[ end trace ab200d44646e143a ]---
In-band Error seen by MPU  at address 0
------------[ cut here ]------------
WARNING: CPU: 0 PID: 14 at drivers/bus/omap_l3_smx.c:166 omap3_l3_app_irq+0xb4/0x11c
Modules linked in:
CPU: 0 PID: 14 Comm: kworker/0:1 Tainted: G      D W       4.12.0-01058-g46e48e257360 #238
Hardware name: Nokia RX-51 board
Workqueue: events deferred_probe_work_func
[<c0110220>] (unwind_backtrace) from [<c010c294>] (show_stack+0x10/0x14)
[<c010c294>] (show_stack) from [<c04c0068>] (dump_stack+0xac/0xe0)
[<c04c0068>] (dump_stack) from [<c01375f0>] (__warn+0xd8/0x104)
[<c01375f0>] (__warn) from [<c01376c8>] (warn_slowpath_null+0x20/0x28)
[<c01376c8>] (warn_slowpath_null) from [<c04f76f0>] (omap3_l3_app_irq+0xb4/0x11c)
[<c04f76f0>] (omap3_l3_app_irq) from [<c01a5e14>] (__handle_irq_event_percpu+0x48/0x3b4)
[<c01a5e14>] (__handle_irq_event_percpu) from [<c01a619c>] (handle_irq_event_percpu+0x1c/0x58)
[<c01a619c>] (handle_irq_event_percpu) from [<c01a6210>] (handle_irq_event+0x38/0x5c)
[<c01a6210>] (handle_irq_event) from [<c01a9674>] (handle_level_irq+0xbc/0x148)
[<c01a9674>] (handle_level_irq) from [<c01a5110>] (generic_handle_irq+0x20/0x34)
[<c01a5110>] (generic_handle_irq) from [<c01a5678>] (__handle_domain_irq+0x64/0xe0)
[<c01a5678>] (__handle_domain_irq) from [<c0826bf0>] (__irq_svc+0x70/0x98)
[<c0826bf0>] (__irq_svc) from [<c082652c>] (_raw_spin_unlock_irq+0x28/0x2c)
[<c082652c>] (_raw_spin_unlock_irq) from [<c013d898>] (do_exit+0x80c/0xbe4)
[<c013d898>] (do_exit) from [<c010c688>] (die+0x3f0/0x490)
[<c010c688>] (die) from [<c01013cc>] (do_DataAbort+0xa8/0xb8)
[<c01013cc>] (do_DataAbort) from [<c0826b44>] (__dabt_svc+0x64/0xa0)
Exception stack(0xce1fdb28 to 0xce1fdb70)
db20:                   a0000013 a0000013 00000000 ce1d41c0 00000020 fb050034
db40: ce223864 00000016 ce22d900 00000000 ce22d800 ce22d810 c0dce42c ce1fdb78
db60: c08263c4 c0509258 60000093 ffffffff
[<c0826b44>] (__dabt_svc) from [<c0509258>] (omap_gpio_get_direction+0x2c/0x44)
[<c0509258>] (omap_gpio_get_direction) from [<c0501efc>] (gpiochip_lock_as_irq+0x98/0xe4)
[<c0501efc>] (gpiochip_lock_as_irq) from [<c05025b8>] (gpiochip_irq_reqres+0x2c/0x6c)
[<c05025b8>] (gpiochip_irq_reqres) from [<c01a8010>] (__setup_irq+0x46c/0x6e0)
[<c01a8010>] (__setup_irq) from [<c01a83dc>] (request_threaded_irq+0xcc/0x14c)
[<c01a83dc>] (request_threaded_irq) from [<c0640cb4>] (smc_probe+0x4c0/0xb58)
[<c0640cb4>] (smc_probe) from [<c0641604>] (smc_drv_probe+0x2b8/0x410)
[<c0641604>] (smc_drv_probe) from [<c0584fe8>] (platform_drv_probe+0x50/0xb0)
[<c0584fe8>] (platform_drv_probe) from [<c058308c>] (driver_probe_device+0x260/0x2e8)
[<c058308c>] (driver_probe_device) from [<c05815c4>] (bus_for_each_drv+0x64/0x98)
[<c05815c4>] (bus_for_each_drv) from [<c0582d48>] (__device_attach+0xb0/0x118)
[<c0582d48>] (__device_attach) from [<c05823c4>] (bus_probe_device+0x88/0x90)
[<c05823c4>] (bus_probe_device) from [<c0580768>] (device_add+0x3c8/0x57c)
[<c0580768>] (device_add) from [<c069801c>] (of_platform_device_create_pdata+0x70/0xa4)
[<c069801c>] (of_platform_device_create_pdata) from [<c069d85c>] (gpmc_probe_generic_child+0x98/0x8b4)
[<c069d85c>] (gpmc_probe_generic_child) from [<c069e500>] (gpmc_probe+0x488/0x644)
[<c069e500>] (gpmc_probe) from [<c0584fe8>] (platform_drv_probe+0x50/0xb0)
[<c0584fe8>] (platform_drv_probe) from [<c058308c>] (driver_probe_device+0x260/0x2e8)
[<c058308c>] (driver_probe_device) from [<c05815c4>] (bus_for_each_drv+0x64/0x98)
[<c05815c4>] (bus_for_each_drv) from [<c0582d48>] (__device_attach+0xb0/0x118)
[<c0582d48>] (__device_attach) from [<c05823c4>] (bus_probe_device+0x88/0x90)
[<c05823c4>] (bus_probe_device) from [<c0582850>] (deferred_probe_work_func+0x6c/0x9c)
[<c0582850>] (deferred_probe_work_func) from [<c0155b14>] (process_one_work+0x2b0/0x774)
[<c0155b14>] (process_one_work) from [<c0156d64>] (worker_thread+0x22c/0x540)
[<c0156d64>] (worker_thread) from [<c015c760>] (kthread+0x110/0x150)
[<c015c760>] (kthread) from [<c01077d0>] (ret_from_fork+0x14/0x24)
---[ end trace ab200d44646e143b ]---

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

* Re: 4.13-rc0: stopped booting on Nokia N900
  2017-07-10  8:13 ` Pavel Machek
  2017-07-10 10:02   ` Tony Lindgren
@ 2017-07-10 10:16   ` Sebastian Reichel
  2017-07-10 13:06     ` Tony Lindgren
  1 sibling, 1 reply; 8+ messages in thread
From: Sebastian Reichel @ 2017-07-10 10:16 UTC (permalink / raw)
  To: Pavel Machek
  Cc: pali.rohar, kernel list, linux-arm-kernel, linux-omap, tony,
	khilman, aaro.koskinen, ivo.g.dimitrov.75, patrikbachan, serge,
	abcloriens

[-- Attachment #1: Type: text/plain, Size: 13528 bytes --]

Hi,

On Mon, Jul 10, 2017 at 10:13:35AM +0200, Pavel Machek wrote:
> On Mon 2017-07-10 09:46:10, Pavel Machek wrote:
> > Hi!
> > 
> > First, I got segfault from make:
> > 
> > : 0: Can't open
> > scripts/Makefile.build:561: recipe for target
> > 'drivers/iio/imu/st_lsm6dsx' failed
> > make[3]: *** [drivers/iio/imu/st_lsm6dsx] Segmentation fault (core
> > dumped)
> > scripts/Makefile.build:561: recipe for target 'drivers/iio/imu' failed
> > make[2]: *** [drivers/iio/imu] Error 2
> > scripts/Makefile.build:561: recipe for target 'drivers/iio' failed
> > make[1]: *** [drivers/iio] Error 2
> > make[1]: *** Waiting for unfinished jobs....
> > Makefile:1008: recipe for target 'drivers' failed
> > make: *** [drivers] Error 2
> > make: *** Waiting for unfinished jobs....
> > pavel@duo:/data/l/linux-n900$ ./mkit
> > 
> > Then compile worked, but it failed to boot. I've now cleaned caches
> > and am rebuilding to make sure it is not build machine that has
> > glitches.
> > 
> > No such luck :-(.
> > 
> > I tested linux-next relatively recently, and it worked ok.
> 
> > af3c8d98508d37541d4bf57f13a984a7f73a328c is broken.
> > 650fc87 worked ok.
> 
> 2b97620 is broken.
> 
> commit a51166ce71844ffbb8f78d63647b44dd69e46cf1
>     Add linux-next specific files for 20170628

I just rebased my droid4 development branch. I do not have any
problems with segfaulting toolchain, but boot also fails on OMAP4
based Droid 4. The problem seems to be SPI being accessed without
runtime PM (clocks) being enabled:

[    1.346984] cpcap-core spi1.0: CPCAP vendor: ST rev: 2.10 (1a)
[    1.354766] Unhandled fault: imprecise external abort (0x1406) at 0xfeffffff
[    1.354797] ------------[ cut here ]------------
[    1.354827] WARNING: CPU: 0 PID: 0 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x21c/0x348
[    1.354827] 44000000.ocp:L3 Custom Error: MASTER MPU TARGET L4CFG (Read): Data Access in User mode during Functional access
[    1.354827] Modules linked in:
[    1.354858] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.12.0-10335-gb8c0c26d6667 #516
[    1.354858] Hardware name: Generic OMAP4 (Flattened Device Tree)
[    1.354888] [<c0110460>] (unwind_backtrace) from [<c010c4ac>] (show_stack+0x10/0x14)
[    1.354888] [<c010c4ac>] (show_stack) from [<c0adca28>] (dump_stack+0xac/0xe0)
[    1.354919] [<c0adca28>] (dump_stack) from [<c013a940>] (__warn+0xd8/0x104)
[    1.354919] [<c013a940>] (__warn) from [<c013a9a0>] (warn_slowpath_fmt+0x34/0x44)
[    1.354919] [<c013a9a0>] (warn_slowpath_fmt) from [<c0508324>] (l3_interrupt_handler+0x21c/0x348)
[    1.354949] [<c0508324>] (l3_interrupt_handler) from [<c01aa1b4>] (__handle_irq_event_percpu+0x48/0x3b4)
[    1.354949] [<c01aa1b4>] (__handle_irq_event_percpu) from [<c01aa53c>] (handle_irq_event_percpu+0x1c/0x58)
[    1.354949] [<c01aa53c>] (handle_irq_event_percpu) from [<c01aa5b0>] (handle_irq_event+0x38/0x5c)
[    1.354980] [<c01aa5b0>] (handle_irq_event) from [<c01adb30>] (handle_fasteoi_irq+0xb4/0x178)
[    1.354980] [<c01adb30>] (handle_fasteoi_irq) from [<c01a94a8>] (generic_handle_irq+0x20/0x34)
[    1.354980] [<c01a94a8>] (generic_handle_irq) from [<c01a9a18>] (__handle_domain_irq+0x64/0xe0)
[    1.354980] [<c01a9a18>] (__handle_domain_irq) from [<c010155c>] (gic_handle_irq+0x54/0xb8)
[    1.355010] [<c010155c>] (gic_handle_irq) from [<c0af7e30>] (__irq_svc+0x70/0x98)
[    1.355010] Exception stack(0xc1001f38 to 0xc1001f80)
[    1.355010] 1f20:                                                       00000001 00000001
[    1.355041] 1f40: 00000000 c100abc0 c1000000 c1007bcc c1007b68 c0f8a938 c1007f68 c1046133
[    1.355041] 1f60: 00000000 00000000 00000000 c1001f88 c019a828 c010822c 20000013 ffffffff
[    1.355041] [<c0af7e30>] (__irq_svc) from [<c010822c>] (arch_cpu_idle+0x20/0x3c)
[    1.355072] [<c010822c>] (arch_cpu_idle) from [<c018b6b4>] (do_idle+0x168/0x21c)
[    1.355072] [<c018b6b4>] (do_idle) from [<c018bad4>] (cpu_startup_entry+0x18/0x1c)
[    1.355072] [<c018bad4>] (cpu_startup_entry) from [<c0f00c2c>] (start_kernel+0x348/0x3c0)
[    1.355102] [<c0f00c2c>] (start_kernel) from [<8000807c>] (0x8000807c)
[    1.355133] ---[ end trace 03269d8f047e066b ]---
[    1.584167] pgd = c0004000
[    1.586914] [feffffff] *pgd=00000000
[    1.590515] Internal error: : 1406 [#1] SMP ARM
[    1.595062] Modules linked in:
[    1.598144] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G        W       4.12.0-10335-gb8c0c26d6667 #516
[    1.607238] Hardware name: Generic OMAP4 (Flattened Device Tree)
[    1.613281] task: ee8aae00 task.stack: ee8ac000
[    1.617858] PC is at debug_lockdep_rcu_enabled+0x38/0x48
[    1.623199] LR is at lock_release+0x25c/0x360
[    1.627593] pc : [<c01b3788>]    lr : [<c019cc58>]    psr: 20000093
[    1.633880] sp : ee8adb80  ip : c10fe40c  fp : eea0fc10
[    1.639160] r10: 00000001  r9 : c10f4230  r8 : 60000093
[    1.644409] r7 : c1007b68  r6 : c051b3f8  r5 : eea0ce74  r4 : a0000013
[    1.650970] r3 : ee8aae00  r2 : 00000001  r1 : 00000003  r0 : 0000001f
[    1.657531] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.664825] Control: 10c5387d  Table: 8000404a  DAC: 00000051
[    1.670593] Process swapper/0 (pid: 1, stack limit = 0xee8ac218)
[    1.676635] Stack: (0xee8adb80 to 0xee8ae000)
[    1.681030] db80: a0000013 c051b3e8 00000007 a0000013 eea0ce64 eea0ce64 00000007 eea0fd04
[    1.689270] dba0: c06208d8 eea0fc00 eea0fc10 c0af76ec 00000000 fc310134 eea0ce64 c051b3f8
[    1.697479] dbc0: 00000020 eea0cea4 eea0cc70 00000000 eea0fd04 c0514430 eea0cea4 eea0fc10
[    1.705718] dbe0: eef44cc0 c0514960 eea0fc00 00000021 eef44cc0 c01ac370 ee8000c0 60000013
[    1.713958] dc00: eed2d57c eef44cc0 00000000 c01aa628 eef42000 00000021 c06208d8 eea0fc00
[    1.722198] dc20: eea0fc10 c01ac73c 00002084 eef42000 00000204 c10a88cc 00000001 eee8a200
[    1.730407] dc40: 00000000 00000000 00000010 c0621460 c0da9f6c eef42000 00000000 00000111
[    1.738647] dc60: 00000021 00000084 00000084 eee8a200 eef22610 00000021 00000084 eef23800
[    1.746887] dc80: 00000010 eef2513c c0b69968 c0621618 c10a88cc ee8adc9c 00000004 eef23800
[    1.755126] dca0: eef23800 eee8a200 00000021 eef22710 eef25010 c062d618 ffffffff c10a88cc
[    1.763366] dcc0: eef22718 ee8aae00 00000001 00000000 c10a88cc 00000010 00000000 00000000
[    1.771575] dce0: eef23800 0000001a eef22710 00000000 00000010 00000013 00000000 00000000
[    1.779815] dd00: c0dba8a8 c062d7a0 0000000a 0000001a 00000000 00000013 eef23800 c10a887c
[    1.788055] dd20: 00000000 c10a888c 00000000 c06a2784 eef23800 c18c195c 00000000 c05fdd00
[    1.796295] dd40: 00000000 ee8add78 c05fde4c 00000001 00000000 c18c1918 00000000 c05fc374
[    1.804534] dd60: ee9f2ad4 eee7e154 eef23800 eef23834 c10b0dbc c05fd9bc eef23800 00000001
[    1.812744] dd80: c18c1918 eef23808 eef23800 c10b0dbc 00000000 c05fd044 eef23808 eef25800
[    1.820983] dda0: eef23800 c05fb4d0 00000000 eef23800 eef23a64 00000000 eef23800 eef25800
[    1.829223] ddc0: 00000000 eea6cc10 00000000 c0dba89c 00000000 c06a3958 eef25800 ef6e7b80
[    1.837463] dde0: eef23800 ef6e7bd0 00000000 c06a41a4 00000000 00000000 c06a3dc4 002dc6c0
[    1.845672] de00: eea6cc10 eef22990 eef25800 eef25800 eea6cc10 eea6cc10 c0dbaf80 c0dbaf78
[    1.853912] de20: 000001f0 c06a4670 00000000 eef25ce8 eef25800 eef25800 eea6cc10 c06a8090
[    1.862152] de40: 00000000 60000013 c1899108 00000004 21547a13 eea6cc10 ffffffed c10b1acc
[    1.870391] de60: fffffdfb 00000000 00000000 c0f67858 c0f005a8 c05ffb34 eea6cc10 c18c195c
[    1.878631] de80: 00000000 c10b1acc 00000000 c05fdd00 eea6cc10 c10b1acc eea6cc44 00000000
[    1.886840] dea0: c10fa000 00000007 c0f67858 c05fde48 00000000 c10b1acc c05fdd88 c05fc2c8
[    1.895080] dec0: ee8a46a4 eea67dd0 c10b1acc eee8ea00 c10a6210 c05fd248 c0dbaf88 c0f40af8
[    1.903320] dee0: 00000000 c10b1acc c0f40af8 00000000 c0e68a14 c05fec8c ffffe000 c0f40af8
[    1.911560] df00: 00000000 c0101874 00000138 00000000 efffec00 efffecdd c0e6a274 00000138
[    1.919769] df20: 00000138 c015f0b8 c0e68a14 00000000 00000006 00000006 efffecdd 00000000
[    1.928009] df40: c0f806b0 00000006 c10fa000 c0f6784c c0f80d58 c10fa000 c0f67850 c10fa000
[    1.936248] df60: 00000007 c0f00ea0 00000006 00000006 00000000 c0f005a8 c0af025c 00000138
[    1.944488] df80: 00000000 00000000 c0af025c 00000000 00000000 00000000 00000000 00000000
[    1.952728] dfa0: 00000000 c0af0264 00000000 c01077b0 00000000 00000000 00000000 00000000
[    1.960937] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.969177] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 c0c0c0c0 c0c0c0c0
[    1.977416] [<c01b3788>] (debug_lockdep_rcu_enabled) from [<c019cc58>] (lock_release+0x25c/0x360)
[    1.986358] [<c019cc58>] (lock_release) from [<c0af76ec>] (_raw_spin_unlock_irqrestore+0x1c/0x44)
[    1.995300] [<c0af76ec>] (_raw_spin_unlock_irqrestore) from [<c051b3f8>] (omap_gpio_get_direction+0x38/0x44)
[    2.005187] [<c051b3f8>] (omap_gpio_get_direction) from [<c0514430>] (gpiochip_lock_as_irq+0x98/0xe4)
[    2.014495] [<c0514430>] (gpiochip_lock_as_irq) from [<c0514960>] (gpiochip_irq_reqres+0x2c/0x6c)
[    2.023406] [<c0514960>] (gpiochip_irq_reqres) from [<c01ac370>] (__setup_irq+0x478/0x6ec)
[    2.031738] [<c01ac370>] (__setup_irq) from [<c01ac73c>] (request_threaded_irq+0xcc/0x14c)
[    2.040069] [<c01ac73c>] (request_threaded_irq) from [<c0621460>] (regmap_add_irq_chip+0x740/0x8a0)
[    2.049194] [<c0621460>] (regmap_add_irq_chip) from [<c0621618>] (devm_regmap_add_irq_chip+0x58/0xb4)
[    2.058471] [<c0621618>] (devm_regmap_add_irq_chip) from [<c062d618>] (cpcap_init_irq_chip+0x138/0x16c)
[    2.067932] [<c062d618>] (cpcap_init_irq_chip) from [<c062d7a0>] (cpcap_probe+0x154/0x258)
[    2.076263] [<c062d7a0>] (cpcap_probe) from [<c06a2784>] (spi_drv_probe+0x7c/0xac)
[    2.083892] [<c06a2784>] (spi_drv_probe) from [<c05fdd00>] (driver_probe_device+0x260/0x2e8)
[    2.092407] [<c05fdd00>] (driver_probe_device) from [<c05fc374>] (bus_for_each_drv+0x64/0x98)
[    2.100982] [<c05fc374>] (bus_for_each_drv) from [<c05fd9bc>] (__device_attach+0xb0/0x118)
[    2.109313] [<c05fd9bc>] (__device_attach) from [<c05fd044>] (bus_probe_device+0x88/0x90)
[    2.117523] [<c05fd044>] (bus_probe_device) from [<c05fb4d0>] (device_add+0x3c8/0x57c)
[    2.125518] [<c05fb4d0>] (device_add) from [<c06a3958>] (spi_add_device+0x90/0x134)
[    2.133209] [<c06a3958>] (spi_add_device) from [<c06a41a4>] (spi_register_controller+0x350/0x7ec)
[    2.142150] [<c06a41a4>] (spi_register_controller) from [<c06a4670>] (devm_spi_register_controller+0x30/0x70)
[    2.152130] [<c06a4670>] (devm_spi_register_controller) from [<c06a8090>] (omap2_mcspi_probe+0x27c/0x358)
[    2.161773] [<c06a8090>] (omap2_mcspi_probe) from [<c05ffb34>] (platform_drv_probe+0x50/0xb0)
[    2.170349] [<c05ffb34>] (platform_drv_probe) from [<c05fdd00>] (driver_probe_device+0x260/0x2e8)
[    2.179290] [<c05fdd00>] (driver_probe_device) from [<c05fde48>] (__driver_attach+0xc0/0xc4)
[    2.187805] [<c05fde48>] (__driver_attach) from [<c05fc2c8>] (bus_for_each_dev+0x6c/0xa0)
[    2.196014] [<c05fc2c8>] (bus_for_each_dev) from [<c05fd248>] (bus_add_driver+0x100/0x210)
[    2.204345] [<c05fd248>] (bus_add_driver) from [<c05fec8c>] (driver_register+0x78/0xf4)
[    2.212402] [<c05fec8c>] (driver_register) from [<c0101874>] (do_one_initcall+0x3c/0x16c)
[    2.220642] [<c0101874>] (do_one_initcall) from [<c0f00ea0>] (kernel_init_freeable+0x1fc/0x2c4)
[    2.229400] [<c0f00ea0>] (kernel_init_freeable) from [<c0af0264>] (kernel_init+0x8/0x114)
[    2.237640] [<c0af0264>] (kernel_init) from [<c01077b0>] (ret_from_fork+0x14/0x24)
[    2.245269] Code: e3c3303f e593300c e59305ec e16f0f10 (e1a002a0) 
[    2.251403] ---[ end trace 03269d8f047e066c ]---
[    2.256134] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.256134] 
[    2.265350] CPU0: stopping
[    2.268096] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D W       4.12.0-10335-gb8c0c26d6667 #516
[    2.277221] Hardware name: Generic OMAP4 (Flattened Device Tree)
[    2.283294] [<c0110460>] (unwind_backtrace) from [<c010c4ac>] (show_stack+0x10/0x14)
[    2.291107] [<c010c4ac>] (show_stack) from [<c0adca28>] (dump_stack+0xac/0xe0)
[    2.298400] [<c0adca28>] (dump_stack) from [<c010e920>] (handle_IPI+0x300/0x408)
[    2.305847] [<c010e920>] (handle_IPI) from [<c01015a4>] (gic_handle_irq+0x9c/0xb8)
[    2.313476] [<c01015a4>] (gic_handle_irq) from [<c0af7e30>] (__irq_svc+0x70/0x98)
[    2.321044] Exception stack(0xc1001f38 to 0xc1001f80)
[    2.326141] 1f20:                                                       c0108228 00000000
[    2.334381] 1f40: 00000000 00000000 c1000000 c1007bcc c1007b68 c0f8a938 c1007f68 c1046133
[    2.342620] 1f60: 00000000 00000000 000006c8 c1001f88 c0108228 c010822c 60000013 ffffffff
[    2.350860] [<c0af7e30>] (__irq_svc) from [<c010822c>] (arch_cpu_idle+0x20/0x3c)
[    2.358337] [<c010822c>] (arch_cpu_idle) from [<c018b6b4>] (do_idle+0x168/0x21c)
[    2.365814] [<c018b6b4>] (do_idle) from [<c018bad4>] (cpu_startup_entry+0x18/0x1c)
[    2.373443] [<c018bad4>] (cpu_startup_entry) from [<c0f00c2c>] (start_kernel+0x348/0x3c0)
[    2.381683] [<c0f00c2c>] (start_kernel) from [<8000807c>] (0x8000807c)
[    2.388275] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: 4.13-rc0: stopped booting on Nokia N900
  2017-07-10 10:02   ` Tony Lindgren
@ 2017-07-10 12:55     ` Sebastian Reichel
  0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Reichel @ 2017-07-10 12:55 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Pavel Machek, Thomas Gleixner, pali.rohar, kernel list,
	linux-arm-kernel, linux-omap, khilman, aaro.koskinen,
	ivo.g.dimitrov.75, patrikbachan, serge, abcloriens

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

Hi,

On Mon, Jul 10, 2017 at 03:02:50AM -0700, Tony Lindgren wrote:
> * Pavel Machek <pavel@ucw.cz> [170710 01:14]:
> > > I tested linux-next relatively recently, and it worked ok.
> > > af3c8d98508d37541d4bf57f13a984a7f73a328c is broken.
> > > 650fc87 worked ok.
> > 
> > 2b97620 is broken.
> > 
> > commit a51166ce71844ffbb8f78d63647b44dd69e46cf1
> >     Add linux-next specific files for 20170628
> > 
> > was ok.
> 
> Not sure if it's the same issue, but I bisected down an issue with commit
> 46e48e257360 ("genirq: Move irq resource handling out of spinlocked region"),
> so adding Thomas.

I saw your message too late and also bisected the issue I saw to this:

46e48e257360f0845fe17089713cbad4db611e70 is the first bad commit
commit 46e48e257360f0845fe17089713cbad4db611e70
Author: Thomas Gleixner <tglx@linutronix.de>
Date:   Thu Jun 29 23:33:38 2017 +0200

    genirq: Move irq resource handling out of spinlocked region

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: 4.13-rc0: stopped booting on Nokia N900
  2017-07-10 10:16   ` Sebastian Reichel
@ 2017-07-10 13:06     ` Tony Lindgren
  2017-07-10 13:36       ` Sebastian Reichel
  0 siblings, 1 reply; 8+ messages in thread
From: Tony Lindgren @ 2017-07-10 13:06 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Pavel Machek, pali.rohar, kernel list, linux-arm-kernel,
	linux-omap, khilman, aaro.koskinen, ivo.g.dimitrov.75,
	patrikbachan, serge, abcloriens

* Sebastian Reichel <sebastian.reichel@collabora.co.uk> [170710 03:16]:
> Hi,
> 
> On Mon, Jul 10, 2017 at 10:13:35AM +0200, Pavel Machek wrote:
> > On Mon 2017-07-10 09:46:10, Pavel Machek wrote:
> > > Hi!
> > > 
> > > First, I got segfault from make:
> > > 
> > > : 0: Can't open
> > > scripts/Makefile.build:561: recipe for target
> > > 'drivers/iio/imu/st_lsm6dsx' failed
> > > make[3]: *** [drivers/iio/imu/st_lsm6dsx] Segmentation fault (core
> > > dumped)
> > > scripts/Makefile.build:561: recipe for target 'drivers/iio/imu' failed
> > > make[2]: *** [drivers/iio/imu] Error 2
> > > scripts/Makefile.build:561: recipe for target 'drivers/iio' failed
> > > make[1]: *** [drivers/iio] Error 2
> > > make[1]: *** Waiting for unfinished jobs....
> > > Makefile:1008: recipe for target 'drivers' failed
> > > make: *** [drivers] Error 2
> > > make: *** Waiting for unfinished jobs....
> > > pavel@duo:/data/l/linux-n900$ ./mkit
> > > 
> > > Then compile worked, but it failed to boot. I've now cleaned caches
> > > and am rebuilding to make sure it is not build machine that has
> > > glitches.
> > > 
> > > No such luck :-(.
> > > 
> > > I tested linux-next relatively recently, and it worked ok.
> > 
> > > af3c8d98508d37541d4bf57f13a984a7f73a328c is broken.
> > > 650fc87 worked ok.
> > 
> > 2b97620 is broken.
> > 
> > commit a51166ce71844ffbb8f78d63647b44dd69e46cf1
> >     Add linux-next specific files for 20170628
> 
> I just rebased my droid4 development branch. I do not have any
> problems with segfaulting toolchain, but boot also fails on OMAP4
> based Droid 4. The problem seems to be SPI being accessed without
> runtime PM (clocks) being enabled:

Care to check if commit c5b3955828ba ("ARM: OMAP4: Fix legacy code
clean-up regression") make that one go away? I have already sent
a pull request for that one.

Regards,

Tony

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

* Re: 4.13-rc0: stopped booting on Nokia N900
  2017-07-10 13:06     ` Tony Lindgren
@ 2017-07-10 13:36       ` Sebastian Reichel
  2017-07-10 13:46         ` Tony Lindgren
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Reichel @ 2017-07-10 13:36 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Pavel Machek, pali.rohar, kernel list, linux-arm-kernel,
	linux-omap, khilman, aaro.koskinen, ivo.g.dimitrov.75,
	patrikbachan, serge, abcloriens

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

Hi,

On Mon, Jul 10, 2017 at 06:06:03AM -0700, Tony Lindgren wrote:
> > I just rebased my droid4 development branch. I do not have any
> > problems with segfaulting toolchain, but boot also fails on OMAP4
> > based Droid 4. The problem seems to be SPI being accessed without
> > runtime PM (clocks) being enabled:
> 
> Care to check if commit c5b3955828ba ("ARM: OMAP4: Fix legacy code
> clean-up regression") make that one go away? I have already sent
> a pull request for that one.

I bisected to the same commit, that you also found. I just replied
to Thomas' pull-request from yesterday with bootlog + bisect result
+ info that current master works again after reverting the patch.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: 4.13-rc0: stopped booting on Nokia N900
  2017-07-10 13:36       ` Sebastian Reichel
@ 2017-07-10 13:46         ` Tony Lindgren
  0 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2017-07-10 13:46 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Pavel Machek, pali.rohar, kernel list, linux-arm-kernel,
	linux-omap, khilman, aaro.koskinen, ivo.g.dimitrov.75,
	patrikbachan, serge, abcloriens

* Sebastian Reichel <sebastian.reichel@collabora.co.uk> [170710 06:37]:
> Hi,
> 
> On Mon, Jul 10, 2017 at 06:06:03AM -0700, Tony Lindgren wrote:
> > > I just rebased my droid4 development branch. I do not have any
> > > problems with segfaulting toolchain, but boot also fails on OMAP4
> > > based Droid 4. The problem seems to be SPI being accessed without
> > > runtime PM (clocks) being enabled:
> > 
> > Care to check if commit c5b3955828ba ("ARM: OMAP4: Fix legacy code
> > clean-up regression") make that one go away? I have already sent
> > a pull request for that one.
> 
> I bisected to the same commit, that you also found. I just replied
> to Thomas' pull-request from yesterday with bootlog + bisect result
> + info that current master works again after reverting the patch.

Oh OK thanks for clarifying it.

Tony

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

end of thread, other threads:[~2017-07-10 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10  7:46 4.13-rc0: stopped booting on Nokia N900 Pavel Machek
2017-07-10  8:13 ` Pavel Machek
2017-07-10 10:02   ` Tony Lindgren
2017-07-10 12:55     ` Sebastian Reichel
2017-07-10 10:16   ` Sebastian Reichel
2017-07-10 13:06     ` Tony Lindgren
2017-07-10 13:36       ` Sebastian Reichel
2017-07-10 13:46         ` Tony Lindgren

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).