All of lore.kernel.org
 help / color / mirror / Atom feed
* Oops in ssi (through nokia-modem)
@ 2021-11-27  1:09 Merlijn Wajer
  2021-12-03 15:35 ` Merlijn Wajer
  2021-12-08 21:07 ` Pavel Machek
  0 siblings, 2 replies; 9+ messages in thread
From: Merlijn Wajer @ 2021-11-27  1:09 UTC (permalink / raw)
  To: linux-omap, Sebastian Reichel, zhangqilong3, jingxiangfeng
  Cc: Pavel Machek, Tony Lindgren, Dev Null, Ivaylo Dimitrov

Hi,

As soon as nokia-modem on my Nokia N900 gets used, I get the following
warning, followed by an oops [1]. I believe the nokia-modem module is
probed with the "pm=1" argument, but that doesn't seem particularly
important given the trace, I think.

Don't know exactly when this would have been introduced, but it worked
in 5.1 at least. Please let me know if I should provide more debug info,
or how I can help fix the problem.

Thanks,
Cheers,
Merlijn

[1]
> [  165.461120] ssi-protocol ssi-protocol: WAKELINES TEST OK
> [  165.467529] IPv6: ADDRCONF(NETDEV_CHANGE): phonet0: link becomes ready
> [  165.498687] ------------[ cut here ]------------
> [  165.503417] WARNING: CPU: 0 PID: 662 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0xd8/0x100
> [  165.512237] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
> [  165.513031]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
> [  165.627838] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Not tainted 5.15.2-218696-g31e48a7f0946-dirty #1
> [  165.636871] Hardware name: Nokia RX-51 board
> [  165.641204] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
> [  165.649017] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
> [  165.656677] [<c0a11d84>] (dump_stack_lvl) from [<c01362c8>] (__warn+0xd8/0x100)
> [  165.664062] [<c01362c8>] (__warn) from [<c0a0d370>] (warn_slowpath_fmt+0x58/0xb8)
> [  165.671600] [<c0a0d370>] (warn_slowpath_fmt) from [<c01b9bc0>] (__dma_map_sg_attrs+0xd8/0x100)
> [  165.680297] [<c01b9bc0>] (__dma_map_sg_attrs) from [<c01b9bfc>] (dma_map_sg_attrs+0x14/0x20)
> [  165.688781] [<c01b9bfc>] (dma_map_sg_attrs) from [<bf0a7738>] (ssi_start_transfer+0x208/0x358 [omap_ssi])
> [  165.698486] [<bf0a7738>] (ssi_start_transfer [omap_ssi]) from [<bf0a7918>] (ssi_async+0x90/0x1f4 [omap_ssi])
> [  165.708404] [<bf0a7918>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
> [  165.718261] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
> [  165.728454] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
> [  165.737335] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
> [  165.745056] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
> [  165.752288] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
> [  165.759552] Exception stack(0xc39adfb0 to 0xc39adff8)
> [  165.764648] dfa0:                                     00000000 00000000 00000000 00000000
> [  165.772888] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  165.781127] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
> [  165.787841] ---[ end trace a3f2b689bab17aa5 ]---
> [  166.436523] irq 26: nobody cared (try booting with the "irqpoll" option)
> [  166.443298] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
> [  166.453704] Hardware name: Nokia RX-51 board
> [  166.458007] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
> [  166.465820] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
> [  166.473449] [<c0a11d84>] (dump_stack_lvl) from [<c0a0ddf8>] (__report_bad_irq+0x30/0xc0)
> [  166.481628] [<c0a0ddf8>] (__report_bad_irq) from [<c019fe5c>] (note_interrupt+0x150/0x2d8)
> [  166.489959] [<c019fe5c>] (note_interrupt) from [<c019c518>] (handle_irq_event_percpu+0x6c/0x78)
> [  166.498718] [<c019c518>] (handle_irq_event_percpu) from [<c019c55c>] (handle_irq_event+0x38/0x5c)
> [  166.507659] [<c019c55c>] (handle_irq_event) from [<c01a0d60>] (handle_level_irq+0xc0/0x14c)
> [  166.516082] [<c01a0d60>] (handle_level_irq) from [<c019bba8>] (handle_domain_irq+0x70/0xac)
> [  166.524505] [<c019bba8>] (handle_domain_irq) from [<c0100b3c>] (__irq_svc+0x5c/0x90)
> [  166.532318] Exception stack(0xc39ade70 to 0xc39adeb8)
> [  166.537414] de60:                                     c3f2b45c 00000202 00000201 00000002
> [  166.545623] de80: ccfb9480 00000000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00 01000100
> [  166.553863] dea0: 00000021 c39adec0 bf0a794c c0a21008 60010013 ffffffff
> [  166.560516] [<c0100b3c>] (__irq_svc) from [<c0a21008>] (_raw_spin_unlock_bh+0x0/0x34)
> [  166.568420] [<c0a21008>] (_raw_spin_unlock_bh) from [<bf0a7888>] (ssi_async+0x0/0x1f4 [omap_ssi])
> [  166.577392] [<bf0a7888>] (ssi_async [omap_ssi]) from [<00000004>] (0x4)
> [  166.584075] handlers:
> [  166.586364] [<9a339024>] omap3_l3_app_irq
> [  166.590454] Disabling IRQ #26
> [  166.593475] sched: RT throttling activated
> [  166.593566] 8<--- cut here ---
> [  166.600799] Unable to handle kernel NULL pointer dereference at virtual address 00000000
> [  166.608978] pgd = 34df813c
> [  166.611724] [00000000] *pgd=00000000
> [  166.615356] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
> [  166.620880] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
> [  166.621673]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
> [  166.736297] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
> [  166.746704] Hardware name: Nokia RX-51 board
> [  166.751007] PC is at ssi_gdd_tasklet+0x258/0x2e8 [omap_ssi]
> [  166.756652] LR is at _raw_spin_unlock+0x28/0x54
> [  166.761230] pc : [<bf0a6520>]    lr : [<c0a20cd4>]    psr: 20010013
> [  166.767517] sp : c39ade00  ip : ffb80000  fp : c3f2b45c
> [  166.772796] r10: 00000001  r9 : c3d01c00  r8 : 00000001
> [  166.778045] r7 : 00000000  r6 : 00000000  r5 : c305a140  r4 : ccfb9480
> [  166.784606] r3 : 00000000  r2 : c3f2b4f4  r1 : 00000000  r0 : c3f2b4ec
> [  166.791168] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
> [  166.798370] Control: 10c5387d  Table: 85bb4019  DAC: 00000051
> [  166.804138] Register r0 information: slab kmalloc-512 start c3f2b400 pointer offset 236 size 512
> [  166.813049] Register r1 information: NULL pointer
> [  166.817779] Register r2 information: slab kmalloc-512 start c3f2b400 pointer offset 244 size 512
> [  166.826660] Register r3 information: NULL pointer
> [  166.831420] Register r4 information: slab kmalloc-64 start ccfb9480 pointer offset 0 size 64
> [  166.839935] Register r5 information: slab kmalloc-256 start c305a100 pointer offset 64 size 256
> [  166.848724] Register r6 information: NULL pointer
> [  166.853485] Register r7 information: NULL pointer
> [  166.858215] Register r8 information: non-paged memory
> [  166.863311] Register r9 information: slab kmalloc-1k start c3d01c00 pointer offset 0 size 1024
> [  166.872009] Register r10 information: non-paged memory
> [  166.877197] Register r11 information: slab kmalloc-512 start c3f2b400 pointer offset 92 size 512
> [  166.886077] Register r12 information: non-paged memory
> [  166.891265] Process irq/83-SSI PORT (pid: 662, stack limit = 0xd6f455cc)
> [  166.898010] Stack: (0xc39ade00 to 0xc39ae000)
> [  166.902404] de00: 00000000 c1805e00 c1805e50 00000001 c3e49a00 c3f2b440 00000001 00000008
> [  166.910644] de20: fa058000 c305a140 00000000 c305a154 00000000 cfb5d330 00000000 00000000
> [  166.918853] de40: c0ff8760 00000101 c0f03080 c013d9e0 c0f03080 00000001 00000000 00000203
> [  166.927093] de60: ffffe000 c01012dc c3d01c00 c0100b3c 0000000a ffffcbe2 00208040 00000002
> [  166.935333] de80: ccfb9480 60010013 ffffe000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00
> [  166.943572] dea0: 01000100 c013d468 00000200 c013d554 ccfb9480 00000000 c3f2b440 bf0a794c
> [  166.951782] dec0: bf0a7888 c56d9100 c3f2b440 c3f2b45c c3f2b464 00000001 c305a140 c3d01c00
> [  166.960021] dee0: 01000100 bf0a7d20 00000004 c3d00410 c019d078 00000000 c3d01c00 c3f2b440
> [  166.968261] df00: c3f2b4a4 00000001 00000001 fa058000 c019d078 bf0a7ef8 00000004 b3675ddc
> [  166.976501] df20: c019d078 c3f200c0 c1837b00 00000000 ffffe000 00000001 00000000 c3f200c0
> [  166.984710] df40: c019d078 c019d094 c1837b00 c3f200e4 00000000 c019d380 c371d840 00000000
> [  166.992950] df60: c019d19c b3675ddc 00000000 c39ac000 c3f7c580 c3f7c300 c019d278 c3f200c0
> [  167.001190] df80: c395bc04 c3f7c5a0 00000000 c0159ba0 c3f7c300 c0159a38 00000000 00000000
> [  167.009399] dfa0: 00000000 00000000 00000000 c0100150 00000000 00000000 00000000 00000000
> [  167.017639] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  167.025878] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
> [  167.034118] [<bf0a6520>] (ssi_gdd_tasklet [omap_ssi]) from [<c013d9e0>] (tasklet_action_common.constprop.4+0xa8/0xbc)
> [  167.044830] [<c013d9e0>] (tasklet_action_common.constprop.4) from [<c01012dc>] (__do_softirq+0xf4/0x418)
> [  167.054382] [<c01012dc>] (__do_softirq) from [<c013d468>] (do_softirq+0x70/0x7c)
> [  167.061828] [<c013d468>] (do_softirq) from [<c013d554>] (__local_bh_enable_ip+0xe0/0xfc)
> [  167.070007] [<c013d554>] (__local_bh_enable_ip) from [<bf0a794c>] (ssi_async+0xc4/0x1f4 [omap_ssi])
> [  167.079132] [<bf0a794c>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
> [  167.088989] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
> [  167.099182] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
> [  167.108062] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
> [  167.115783] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
> [  167.122985] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
> [  167.130279] Exception stack(0xc39adfb0 to 0xc39adff8)
> [  167.135375] dfa0:                                     00000000 00000000 00000000 00000000
> [  167.143585] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  167.151824] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
> [  167.158477] Code: e59210b0 e58240b0 e28220b4 e1c400f0 (e5814000)
> [  167.164703] ---[ end trace a3f2b689bab17aa6 ]---
> [  167.169433] Kernel panic - not syncing: Fatal exception in interrupt
> [  167.175842] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

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

* Re: Oops in ssi (through nokia-modem)
  2021-11-27  1:09 Oops in ssi (through nokia-modem) Merlijn Wajer
@ 2021-12-03 15:35 ` Merlijn Wajer
  2021-12-03 20:25   ` Sebastian Reichel
  2021-12-08 21:07 ` Pavel Machek
  1 sibling, 1 reply; 9+ messages in thread
From: Merlijn Wajer @ 2021-12-03 15:35 UTC (permalink / raw)
  To: linux-omap, Sebastian Reichel, zhangqilong3, jingxiangfeng
  Cc: Pavel Machek, Tony Lindgren, Dev Null, Ivaylo Dimitrov

Hi,

Any idea what could be causing this regression? I've also enabled
HSI_CHAR=m just in case that was the problem -- it wasn't, the same
problem occurs unfortunately.

Thanks in advance.

Regards,
Merlijn

On 27/11/2021 02:09, Merlijn Wajer wrote:
> Hi,
> 
> As soon as nokia-modem on my Nokia N900 gets used, I get the following
> warning, followed by an oops [1]. I believe the nokia-modem module is
> probed with the "pm=1" argument, but that doesn't seem particularly
> important given the trace, I think.
> 
> Don't know exactly when this would have been introduced, but it worked
> in 5.1 at least. Please let me know if I should provide more debug info,
> or how I can help fix the problem.
> 
> Thanks,
> Cheers,
> Merlijn
> 
> [1]
>> [  165.461120] ssi-protocol ssi-protocol: WAKELINES TEST OK
>> [  165.467529] IPv6: ADDRCONF(NETDEV_CHANGE): phonet0: link becomes ready
>> [  165.498687] ------------[ cut here ]------------
>> [  165.503417] WARNING: CPU: 0 PID: 662 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0xd8/0x100
>> [  165.512237] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
>> [  165.513031]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
>> [  165.627838] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Not tainted 5.15.2-218696-g31e48a7f0946-dirty #1
>> [  165.636871] Hardware name: Nokia RX-51 board
>> [  165.641204] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
>> [  165.649017] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
>> [  165.656677] [<c0a11d84>] (dump_stack_lvl) from [<c01362c8>] (__warn+0xd8/0x100)
>> [  165.664062] [<c01362c8>] (__warn) from [<c0a0d370>] (warn_slowpath_fmt+0x58/0xb8)
>> [  165.671600] [<c0a0d370>] (warn_slowpath_fmt) from [<c01b9bc0>] (__dma_map_sg_attrs+0xd8/0x100)
>> [  165.680297] [<c01b9bc0>] (__dma_map_sg_attrs) from [<c01b9bfc>] (dma_map_sg_attrs+0x14/0x20)
>> [  165.688781] [<c01b9bfc>] (dma_map_sg_attrs) from [<bf0a7738>] (ssi_start_transfer+0x208/0x358 [omap_ssi])
>> [  165.698486] [<bf0a7738>] (ssi_start_transfer [omap_ssi]) from [<bf0a7918>] (ssi_async+0x90/0x1f4 [omap_ssi])
>> [  165.708404] [<bf0a7918>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
>> [  165.718261] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
>> [  165.728454] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
>> [  165.737335] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
>> [  165.745056] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
>> [  165.752288] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
>> [  165.759552] Exception stack(0xc39adfb0 to 0xc39adff8)
>> [  165.764648] dfa0:                                     00000000 00000000 00000000 00000000
>> [  165.772888] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>> [  165.781127] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
>> [  165.787841] ---[ end trace a3f2b689bab17aa5 ]---
>> [  166.436523] irq 26: nobody cared (try booting with the "irqpoll" option)
>> [  166.443298] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
>> [  166.453704] Hardware name: Nokia RX-51 board
>> [  166.458007] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
>> [  166.465820] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
>> [  166.473449] [<c0a11d84>] (dump_stack_lvl) from [<c0a0ddf8>] (__report_bad_irq+0x30/0xc0)
>> [  166.481628] [<c0a0ddf8>] (__report_bad_irq) from [<c019fe5c>] (note_interrupt+0x150/0x2d8)
>> [  166.489959] [<c019fe5c>] (note_interrupt) from [<c019c518>] (handle_irq_event_percpu+0x6c/0x78)
>> [  166.498718] [<c019c518>] (handle_irq_event_percpu) from [<c019c55c>] (handle_irq_event+0x38/0x5c)
>> [  166.507659] [<c019c55c>] (handle_irq_event) from [<c01a0d60>] (handle_level_irq+0xc0/0x14c)
>> [  166.516082] [<c01a0d60>] (handle_level_irq) from [<c019bba8>] (handle_domain_irq+0x70/0xac)
>> [  166.524505] [<c019bba8>] (handle_domain_irq) from [<c0100b3c>] (__irq_svc+0x5c/0x90)
>> [  166.532318] Exception stack(0xc39ade70 to 0xc39adeb8)
>> [  166.537414] de60:                                     c3f2b45c 00000202 00000201 00000002
>> [  166.545623] de80: ccfb9480 00000000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00 01000100
>> [  166.553863] dea0: 00000021 c39adec0 bf0a794c c0a21008 60010013 ffffffff
>> [  166.560516] [<c0100b3c>] (__irq_svc) from [<c0a21008>] (_raw_spin_unlock_bh+0x0/0x34)
>> [  166.568420] [<c0a21008>] (_raw_spin_unlock_bh) from [<bf0a7888>] (ssi_async+0x0/0x1f4 [omap_ssi])
>> [  166.577392] [<bf0a7888>] (ssi_async [omap_ssi]) from [<00000004>] (0x4)
>> [  166.584075] handlers:
>> [  166.586364] [<9a339024>] omap3_l3_app_irq
>> [  166.590454] Disabling IRQ #26
>> [  166.593475] sched: RT throttling activated
>> [  166.593566] 8<--- cut here ---
>> [  166.600799] Unable to handle kernel NULL pointer dereference at virtual address 00000000
>> [  166.608978] pgd = 34df813c
>> [  166.611724] [00000000] *pgd=00000000
>> [  166.615356] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
>> [  166.620880] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
>> [  166.621673]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
>> [  166.736297] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
>> [  166.746704] Hardware name: Nokia RX-51 board
>> [  166.751007] PC is at ssi_gdd_tasklet+0x258/0x2e8 [omap_ssi]
>> [  166.756652] LR is at _raw_spin_unlock+0x28/0x54
>> [  166.761230] pc : [<bf0a6520>]    lr : [<c0a20cd4>]    psr: 20010013
>> [  166.767517] sp : c39ade00  ip : ffb80000  fp : c3f2b45c
>> [  166.772796] r10: 00000001  r9 : c3d01c00  r8 : 00000001
>> [  166.778045] r7 : 00000000  r6 : 00000000  r5 : c305a140  r4 : ccfb9480
>> [  166.784606] r3 : 00000000  r2 : c3f2b4f4  r1 : 00000000  r0 : c3f2b4ec
>> [  166.791168] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
>> [  166.798370] Control: 10c5387d  Table: 85bb4019  DAC: 00000051
>> [  166.804138] Register r0 information: slab kmalloc-512 start c3f2b400 pointer offset 236 size 512
>> [  166.813049] Register r1 information: NULL pointer
>> [  166.817779] Register r2 information: slab kmalloc-512 start c3f2b400 pointer offset 244 size 512
>> [  166.826660] Register r3 information: NULL pointer
>> [  166.831420] Register r4 information: slab kmalloc-64 start ccfb9480 pointer offset 0 size 64
>> [  166.839935] Register r5 information: slab kmalloc-256 start c305a100 pointer offset 64 size 256
>> [  166.848724] Register r6 information: NULL pointer
>> [  166.853485] Register r7 information: NULL pointer
>> [  166.858215] Register r8 information: non-paged memory
>> [  166.863311] Register r9 information: slab kmalloc-1k start c3d01c00 pointer offset 0 size 1024
>> [  166.872009] Register r10 information: non-paged memory
>> [  166.877197] Register r11 information: slab kmalloc-512 start c3f2b400 pointer offset 92 size 512
>> [  166.886077] Register r12 information: non-paged memory
>> [  166.891265] Process irq/83-SSI PORT (pid: 662, stack limit = 0xd6f455cc)
>> [  166.898010] Stack: (0xc39ade00 to 0xc39ae000)
>> [  166.902404] de00: 00000000 c1805e00 c1805e50 00000001 c3e49a00 c3f2b440 00000001 00000008
>> [  166.910644] de20: fa058000 c305a140 00000000 c305a154 00000000 cfb5d330 00000000 00000000
>> [  166.918853] de40: c0ff8760 00000101 c0f03080 c013d9e0 c0f03080 00000001 00000000 00000203
>> [  166.927093] de60: ffffe000 c01012dc c3d01c00 c0100b3c 0000000a ffffcbe2 00208040 00000002
>> [  166.935333] de80: ccfb9480 60010013 ffffe000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00
>> [  166.943572] dea0: 01000100 c013d468 00000200 c013d554 ccfb9480 00000000 c3f2b440 bf0a794c
>> [  166.951782] dec0: bf0a7888 c56d9100 c3f2b440 c3f2b45c c3f2b464 00000001 c305a140 c3d01c00
>> [  166.960021] dee0: 01000100 bf0a7d20 00000004 c3d00410 c019d078 00000000 c3d01c00 c3f2b440
>> [  166.968261] df00: c3f2b4a4 00000001 00000001 fa058000 c019d078 bf0a7ef8 00000004 b3675ddc
>> [  166.976501] df20: c019d078 c3f200c0 c1837b00 00000000 ffffe000 00000001 00000000 c3f200c0
>> [  166.984710] df40: c019d078 c019d094 c1837b00 c3f200e4 00000000 c019d380 c371d840 00000000
>> [  166.992950] df60: c019d19c b3675ddc 00000000 c39ac000 c3f7c580 c3f7c300 c019d278 c3f200c0
>> [  167.001190] df80: c395bc04 c3f7c5a0 00000000 c0159ba0 c3f7c300 c0159a38 00000000 00000000
>> [  167.009399] dfa0: 00000000 00000000 00000000 c0100150 00000000 00000000 00000000 00000000
>> [  167.017639] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>> [  167.025878] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
>> [  167.034118] [<bf0a6520>] (ssi_gdd_tasklet [omap_ssi]) from [<c013d9e0>] (tasklet_action_common.constprop.4+0xa8/0xbc)
>> [  167.044830] [<c013d9e0>] (tasklet_action_common.constprop.4) from [<c01012dc>] (__do_softirq+0xf4/0x418)
>> [  167.054382] [<c01012dc>] (__do_softirq) from [<c013d468>] (do_softirq+0x70/0x7c)
>> [  167.061828] [<c013d468>] (do_softirq) from [<c013d554>] (__local_bh_enable_ip+0xe0/0xfc)
>> [  167.070007] [<c013d554>] (__local_bh_enable_ip) from [<bf0a794c>] (ssi_async+0xc4/0x1f4 [omap_ssi])
>> [  167.079132] [<bf0a794c>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
>> [  167.088989] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
>> [  167.099182] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
>> [  167.108062] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
>> [  167.115783] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
>> [  167.122985] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
>> [  167.130279] Exception stack(0xc39adfb0 to 0xc39adff8)
>> [  167.135375] dfa0:                                     00000000 00000000 00000000 00000000
>> [  167.143585] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>> [  167.151824] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
>> [  167.158477] Code: e59210b0 e58240b0 e28220b4 e1c400f0 (e5814000)
>> [  167.164703] ---[ end trace a3f2b689bab17aa6 ]---
>> [  167.169433] Kernel panic - not syncing: Fatal exception in interrupt
>> [  167.175842] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---


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

* Re: Oops in ssi (through nokia-modem)
  2021-12-03 15:35 ` Merlijn Wajer
@ 2021-12-03 20:25   ` Sebastian Reichel
  2021-12-05 23:25     ` Merlijn Wajer
  2021-12-11 21:54     ` Merlijn Wajer
  0 siblings, 2 replies; 9+ messages in thread
From: Sebastian Reichel @ 2021-12-03 20:25 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: linux-omap, zhangqilong3, jingxiangfeng, Pavel Machek,
	Tony Lindgren, Dev Null, Ivaylo Dimitrov

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

Hi,

No idea (I have not booted my N900 for some time). Newer kernel might
just have slowed down or speed up things and uncovered a race condition.
IIRC the dma_mask warning is old and not a huge issue.

What is IRQ #26 according to /proc/cpuinfo?

Finally for the NULL pointer dereference in ssi_gdd_tasklet it would
help to run the stacktrace through "scripts/decode_stacktrace.sh",
so that we get exact line numbers.

Have you tried bisecting this?

-- Sebastian

On Fri, Dec 03, 2021 at 04:35:48PM +0100, Merlijn Wajer wrote:
> Hi,
> 
> Any idea what could be causing this regression? I've also enabled
> HSI_CHAR=m just in case that was the problem -- it wasn't, the same
> problem occurs unfortunately.
> 
> Thanks in advance.
> 
> Regards,
> Merlijn
> 
> On 27/11/2021 02:09, Merlijn Wajer wrote:
> > Hi,
> > 
> > As soon as nokia-modem on my Nokia N900 gets used, I get the following
> > warning, followed by an oops [1]. I believe the nokia-modem module is
> > probed with the "pm=1" argument, but that doesn't seem particularly
> > important given the trace, I think.
> > 
> > Don't know exactly when this would have been introduced, but it worked
> > in 5.1 at least. Please let me know if I should provide more debug info,
> > or how I can help fix the problem.
> > 
> > Thanks,
> > Cheers,
> > Merlijn
> > 
> > [1]
> >> [  165.461120] ssi-protocol ssi-protocol: WAKELINES TEST OK
> >> [  165.467529] IPv6: ADDRCONF(NETDEV_CHANGE): phonet0: link becomes ready
> >> [  165.498687] ------------[ cut here ]------------
> >> [  165.503417] WARNING: CPU: 0 PID: 662 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0xd8/0x100
> >> [  165.512237] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
> >> [  165.513031]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
> >> [  165.627838] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Not tainted 5.15.2-218696-g31e48a7f0946-dirty #1
> >> [  165.636871] Hardware name: Nokia RX-51 board
> >> [  165.641204] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
> >> [  165.649017] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
> >> [  165.656677] [<c0a11d84>] (dump_stack_lvl) from [<c01362c8>] (__warn+0xd8/0x100)
> >> [  165.664062] [<c01362c8>] (__warn) from [<c0a0d370>] (warn_slowpath_fmt+0x58/0xb8)
> >> [  165.671600] [<c0a0d370>] (warn_slowpath_fmt) from [<c01b9bc0>] (__dma_map_sg_attrs+0xd8/0x100)
> >> [  165.680297] [<c01b9bc0>] (__dma_map_sg_attrs) from [<c01b9bfc>] (dma_map_sg_attrs+0x14/0x20)
> >> [  165.688781] [<c01b9bfc>] (dma_map_sg_attrs) from [<bf0a7738>] (ssi_start_transfer+0x208/0x358 [omap_ssi])
> >> [  165.698486] [<bf0a7738>] (ssi_start_transfer [omap_ssi]) from [<bf0a7918>] (ssi_async+0x90/0x1f4 [omap_ssi])
> >> [  165.708404] [<bf0a7918>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
> >> [  165.718261] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
> >> [  165.728454] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
> >> [  165.737335] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
> >> [  165.745056] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
> >> [  165.752288] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
> >> [  165.759552] Exception stack(0xc39adfb0 to 0xc39adff8)
> >> [  165.764648] dfa0:                                     00000000 00000000 00000000 00000000
> >> [  165.772888] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> >> [  165.781127] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
> >> [  165.787841] ---[ end trace a3f2b689bab17aa5 ]---
> >> [  166.436523] irq 26: nobody cared (try booting with the "irqpoll" option)
> >> [  166.443298] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
> >> [  166.453704] Hardware name: Nokia RX-51 board
> >> [  166.458007] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
> >> [  166.465820] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
> >> [  166.473449] [<c0a11d84>] (dump_stack_lvl) from [<c0a0ddf8>] (__report_bad_irq+0x30/0xc0)
> >> [  166.481628] [<c0a0ddf8>] (__report_bad_irq) from [<c019fe5c>] (note_interrupt+0x150/0x2d8)
> >> [  166.489959] [<c019fe5c>] (note_interrupt) from [<c019c518>] (handle_irq_event_percpu+0x6c/0x78)
> >> [  166.498718] [<c019c518>] (handle_irq_event_percpu) from [<c019c55c>] (handle_irq_event+0x38/0x5c)
> >> [  166.507659] [<c019c55c>] (handle_irq_event) from [<c01a0d60>] (handle_level_irq+0xc0/0x14c)
> >> [  166.516082] [<c01a0d60>] (handle_level_irq) from [<c019bba8>] (handle_domain_irq+0x70/0xac)
> >> [  166.524505] [<c019bba8>] (handle_domain_irq) from [<c0100b3c>] (__irq_svc+0x5c/0x90)
> >> [  166.532318] Exception stack(0xc39ade70 to 0xc39adeb8)
> >> [  166.537414] de60:                                     c3f2b45c 00000202 00000201 00000002
> >> [  166.545623] de80: ccfb9480 00000000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00 01000100
> >> [  166.553863] dea0: 00000021 c39adec0 bf0a794c c0a21008 60010013 ffffffff
> >> [  166.560516] [<c0100b3c>] (__irq_svc) from [<c0a21008>] (_raw_spin_unlock_bh+0x0/0x34)
> >> [  166.568420] [<c0a21008>] (_raw_spin_unlock_bh) from [<bf0a7888>] (ssi_async+0x0/0x1f4 [omap_ssi])
> >> [  166.577392] [<bf0a7888>] (ssi_async [omap_ssi]) from [<00000004>] (0x4)
> >> [  166.584075] handlers:
> >> [  166.586364] [<9a339024>] omap3_l3_app_irq
> >> [  166.590454] Disabling IRQ #26
> >> [  166.593475] sched: RT throttling activated
> >> [  166.593566] 8<--- cut here ---
> >> [  166.600799] Unable to handle kernel NULL pointer dereference at virtual address 00000000
> >> [  166.608978] pgd = 34df813c
> >> [  166.611724] [00000000] *pgd=00000000
> >> [  166.615356] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
> >> [  166.620880] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
> >> [  166.621673]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
> >> [  166.736297] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
> >> [  166.746704] Hardware name: Nokia RX-51 board
> >> [  166.751007] PC is at ssi_gdd_tasklet+0x258/0x2e8 [omap_ssi]
> >> [  166.756652] LR is at _raw_spin_unlock+0x28/0x54
> >> [  166.761230] pc : [<bf0a6520>]    lr : [<c0a20cd4>]    psr: 20010013
> >> [  166.767517] sp : c39ade00  ip : ffb80000  fp : c3f2b45c
> >> [  166.772796] r10: 00000001  r9 : c3d01c00  r8 : 00000001
> >> [  166.778045] r7 : 00000000  r6 : 00000000  r5 : c305a140  r4 : ccfb9480
> >> [  166.784606] r3 : 00000000  r2 : c3f2b4f4  r1 : 00000000  r0 : c3f2b4ec
> >> [  166.791168] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
> >> [  166.798370] Control: 10c5387d  Table: 85bb4019  DAC: 00000051
> >> [  166.804138] Register r0 information: slab kmalloc-512 start c3f2b400 pointer offset 236 size 512
> >> [  166.813049] Register r1 information: NULL pointer
> >> [  166.817779] Register r2 information: slab kmalloc-512 start c3f2b400 pointer offset 244 size 512
> >> [  166.826660] Register r3 information: NULL pointer
> >> [  166.831420] Register r4 information: slab kmalloc-64 start ccfb9480 pointer offset 0 size 64
> >> [  166.839935] Register r5 information: slab kmalloc-256 start c305a100 pointer offset 64 size 256
> >> [  166.848724] Register r6 information: NULL pointer
> >> [  166.853485] Register r7 information: NULL pointer
> >> [  166.858215] Register r8 information: non-paged memory
> >> [  166.863311] Register r9 information: slab kmalloc-1k start c3d01c00 pointer offset 0 size 1024
> >> [  166.872009] Register r10 information: non-paged memory
> >> [  166.877197] Register r11 information: slab kmalloc-512 start c3f2b400 pointer offset 92 size 512
> >> [  166.886077] Register r12 information: non-paged memory
> >> [  166.891265] Process irq/83-SSI PORT (pid: 662, stack limit = 0xd6f455cc)
> >> [  166.898010] Stack: (0xc39ade00 to 0xc39ae000)
> >> [  166.902404] de00: 00000000 c1805e00 c1805e50 00000001 c3e49a00 c3f2b440 00000001 00000008
> >> [  166.910644] de20: fa058000 c305a140 00000000 c305a154 00000000 cfb5d330 00000000 00000000
> >> [  166.918853] de40: c0ff8760 00000101 c0f03080 c013d9e0 c0f03080 00000001 00000000 00000203
> >> [  166.927093] de60: ffffe000 c01012dc c3d01c00 c0100b3c 0000000a ffffcbe2 00208040 00000002
> >> [  166.935333] de80: ccfb9480 60010013 ffffe000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00
> >> [  166.943572] dea0: 01000100 c013d468 00000200 c013d554 ccfb9480 00000000 c3f2b440 bf0a794c
> >> [  166.951782] dec0: bf0a7888 c56d9100 c3f2b440 c3f2b45c c3f2b464 00000001 c305a140 c3d01c00
> >> [  166.960021] dee0: 01000100 bf0a7d20 00000004 c3d00410 c019d078 00000000 c3d01c00 c3f2b440
> >> [  166.968261] df00: c3f2b4a4 00000001 00000001 fa058000 c019d078 bf0a7ef8 00000004 b3675ddc
> >> [  166.976501] df20: c019d078 c3f200c0 c1837b00 00000000 ffffe000 00000001 00000000 c3f200c0
> >> [  166.984710] df40: c019d078 c019d094 c1837b00 c3f200e4 00000000 c019d380 c371d840 00000000
> >> [  166.992950] df60: c019d19c b3675ddc 00000000 c39ac000 c3f7c580 c3f7c300 c019d278 c3f200c0
> >> [  167.001190] df80: c395bc04 c3f7c5a0 00000000 c0159ba0 c3f7c300 c0159a38 00000000 00000000
> >> [  167.009399] dfa0: 00000000 00000000 00000000 c0100150 00000000 00000000 00000000 00000000
> >> [  167.017639] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> >> [  167.025878] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
> >> [  167.034118] [<bf0a6520>] (ssi_gdd_tasklet [omap_ssi]) from [<c013d9e0>] (tasklet_action_common.constprop.4+0xa8/0xbc)
> >> [  167.044830] [<c013d9e0>] (tasklet_action_common.constprop.4) from [<c01012dc>] (__do_softirq+0xf4/0x418)
> >> [  167.054382] [<c01012dc>] (__do_softirq) from [<c013d468>] (do_softirq+0x70/0x7c)
> >> [  167.061828] [<c013d468>] (do_softirq) from [<c013d554>] (__local_bh_enable_ip+0xe0/0xfc)
> >> [  167.070007] [<c013d554>] (__local_bh_enable_ip) from [<bf0a794c>] (ssi_async+0xc4/0x1f4 [omap_ssi])
> >> [  167.079132] [<bf0a794c>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
> >> [  167.088989] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
> >> [  167.099182] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
> >> [  167.108062] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
> >> [  167.115783] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
> >> [  167.122985] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
> >> [  167.130279] Exception stack(0xc39adfb0 to 0xc39adff8)
> >> [  167.135375] dfa0:                                     00000000 00000000 00000000 00000000
> >> [  167.143585] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> >> [  167.151824] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
> >> [  167.158477] Code: e59210b0 e58240b0 e28220b4 e1c400f0 (e5814000)
> >> [  167.164703] ---[ end trace a3f2b689bab17aa6 ]---
> >> [  167.169433] Kernel panic - not syncing: Fatal exception in interrupt
> >> [  167.175842] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
> 

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

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

* Re: Oops in ssi (through nokia-modem)
  2021-12-03 20:25   ` Sebastian Reichel
@ 2021-12-05 23:25     ` Merlijn Wajer
  2021-12-11 21:54     ` Merlijn Wajer
  1 sibling, 0 replies; 9+ messages in thread
From: Merlijn Wajer @ 2021-12-05 23:25 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: linux-omap, zhangqilong3, jingxiangfeng, Pavel Machek,
	Tony Lindgren, Dev Null, Ivaylo Dimitrov

Hi,

On 03/12/2021 21:25, Sebastian Reichel wrote:
> Hi,
> 
> No idea (I have not booted my N900 for some time). Newer kernel might
> just have slowed down or speed up things and uncovered a race condition.
> IIRC the dma_mask warning is old and not a huge issue.
> 
> What is IRQ #26 according to /proc/cpuinfo?
> 
> Finally for the NULL pointer dereference in ssi_gdd_tasklet it would
> help to run the stacktrace through "scripts/decode_stacktrace.sh",
> so that we get exact line numbers.
> 
> Have you tried bisecting this?

Just a general response for now: I will get back to you on this, after
I've figured out what is causing random boot and runtime faults as
described in my other email "Oops while booting 5.15.2 on Nokia N900",
as it makes debugging this (ssi/nokia-modem) or really any other problem
quite tricky.

Thanks & regards,
Merlijn

> -- Sebastian
> 
> On Fri, Dec 03, 2021 at 04:35:48PM +0100, Merlijn Wajer wrote:
>> Hi,
>>
>> Any idea what could be causing this regression? I've also enabled
>> HSI_CHAR=m just in case that was the problem -- it wasn't, the same
>> problem occurs unfortunately.
>>
>> Thanks in advance.
>>
>> Regards,
>> Merlijn
>>
>> On 27/11/2021 02:09, Merlijn Wajer wrote:
>>> Hi,
>>>
>>> As soon as nokia-modem on my Nokia N900 gets used, I get the following
>>> warning, followed by an oops [1]. I believe the nokia-modem module is
>>> probed with the "pm=1" argument, but that doesn't seem particularly
>>> important given the trace, I think.
>>>
>>> Don't know exactly when this would have been introduced, but it worked
>>> in 5.1 at least. Please let me know if I should provide more debug info,
>>> or how I can help fix the problem.
>>>
>>> Thanks,
>>> Cheers,
>>> Merlijn
>>>
>>> [1]
>>>> [  165.461120] ssi-protocol ssi-protocol: WAKELINES TEST OK
>>>> [  165.467529] IPv6: ADDRCONF(NETDEV_CHANGE): phonet0: link becomes ready
>>>> [  165.498687] ------------[ cut here ]------------
>>>> [  165.503417] WARNING: CPU: 0 PID: 662 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0xd8/0x100
>>>> [  165.512237] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
>>>> [  165.513031]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
>>>> [  165.627838] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Not tainted 5.15.2-218696-g31e48a7f0946-dirty #1
>>>> [  165.636871] Hardware name: Nokia RX-51 board
>>>> [  165.641204] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
>>>> [  165.649017] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
>>>> [  165.656677] [<c0a11d84>] (dump_stack_lvl) from [<c01362c8>] (__warn+0xd8/0x100)
>>>> [  165.664062] [<c01362c8>] (__warn) from [<c0a0d370>] (warn_slowpath_fmt+0x58/0xb8)
>>>> [  165.671600] [<c0a0d370>] (warn_slowpath_fmt) from [<c01b9bc0>] (__dma_map_sg_attrs+0xd8/0x100)
>>>> [  165.680297] [<c01b9bc0>] (__dma_map_sg_attrs) from [<c01b9bfc>] (dma_map_sg_attrs+0x14/0x20)
>>>> [  165.688781] [<c01b9bfc>] (dma_map_sg_attrs) from [<bf0a7738>] (ssi_start_transfer+0x208/0x358 [omap_ssi])
>>>> [  165.698486] [<bf0a7738>] (ssi_start_transfer [omap_ssi]) from [<bf0a7918>] (ssi_async+0x90/0x1f4 [omap_ssi])
>>>> [  165.708404] [<bf0a7918>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
>>>> [  165.718261] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
>>>> [  165.728454] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
>>>> [  165.737335] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
>>>> [  165.745056] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
>>>> [  165.752288] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
>>>> [  165.759552] Exception stack(0xc39adfb0 to 0xc39adff8)
>>>> [  165.764648] dfa0:                                     00000000 00000000 00000000 00000000
>>>> [  165.772888] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>>>> [  165.781127] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
>>>> [  165.787841] ---[ end trace a3f2b689bab17aa5 ]---
>>>> [  166.436523] irq 26: nobody cared (try booting with the "irqpoll" option)
>>>> [  166.443298] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
>>>> [  166.453704] Hardware name: Nokia RX-51 board
>>>> [  166.458007] [<c0111254>] (unwind_backtrace) from [<c010b8ac>] (show_stack+0x10/0x14)
>>>> [  166.465820] [<c010b8ac>] (show_stack) from [<c0a11d84>] (dump_stack_lvl+0x40/0x4c)
>>>> [  166.473449] [<c0a11d84>] (dump_stack_lvl) from [<c0a0ddf8>] (__report_bad_irq+0x30/0xc0)
>>>> [  166.481628] [<c0a0ddf8>] (__report_bad_irq) from [<c019fe5c>] (note_interrupt+0x150/0x2d8)
>>>> [  166.489959] [<c019fe5c>] (note_interrupt) from [<c019c518>] (handle_irq_event_percpu+0x6c/0x78)
>>>> [  166.498718] [<c019c518>] (handle_irq_event_percpu) from [<c019c55c>] (handle_irq_event+0x38/0x5c)
>>>> [  166.507659] [<c019c55c>] (handle_irq_event) from [<c01a0d60>] (handle_level_irq+0xc0/0x14c)
>>>> [  166.516082] [<c01a0d60>] (handle_level_irq) from [<c019bba8>] (handle_domain_irq+0x70/0xac)
>>>> [  166.524505] [<c019bba8>] (handle_domain_irq) from [<c0100b3c>] (__irq_svc+0x5c/0x90)
>>>> [  166.532318] Exception stack(0xc39ade70 to 0xc39adeb8)
>>>> [  166.537414] de60:                                     c3f2b45c 00000202 00000201 00000002
>>>> [  166.545623] de80: ccfb9480 00000000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00 01000100
>>>> [  166.553863] dea0: 00000021 c39adec0 bf0a794c c0a21008 60010013 ffffffff
>>>> [  166.560516] [<c0100b3c>] (__irq_svc) from [<c0a21008>] (_raw_spin_unlock_bh+0x0/0x34)
>>>> [  166.568420] [<c0a21008>] (_raw_spin_unlock_bh) from [<bf0a7888>] (ssi_async+0x0/0x1f4 [omap_ssi])
>>>> [  166.577392] [<bf0a7888>] (ssi_async [omap_ssi]) from [<00000004>] (0x4)
>>>> [  166.584075] handlers:
>>>> [  166.586364] [<9a339024>] omap3_l3_app_irq
>>>> [  166.590454] Disabling IRQ #26
>>>> [  166.593475] sched: RT throttling activated
>>>> [  166.593566] 8<--- cut here ---
>>>> [  166.600799] Unable to handle kernel NULL pointer dereference at virtual address 00000000
>>>> [  166.608978] pgd = 34df813c
>>>> [  166.611724] [00000000] *pgd=00000000
>>>> [  166.615356] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
>>>> [  166.620880] Modules linked in: usb_f_ecm u_ether usb_f_mass_storage libcomposite bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 rng_core rc_core snd_soc_rx51 leds_gpio sha256_generic libsha256 pvrsrvkm_omap3_sgx530_121 sha256_arm gpio_keys isp1704_charger pwm_omap_dmtimer display_connector cpufreq_dt omap3_isp videobuf2_dma_contig videobuf2_memops snd_soc_omap_mcbsp videobuf2_v4l2 snd_soc_ti_sdma videobuf2_common v4l2_fwnode v4l2_async cfg80211 videodev snd_soc_tpa6130a2 omap_sham crypto_engine mc snd_soc_core snd_pcm_dmaengine tsc2005 tsc200x_core panel_sony_acx565akm snd_pcm omap2430 snd_timer phy_twl4030_usb leds_lp5523 leds_lp55xx_common snd omap_mailbox bq2415x_charger led_class soundcore bq27xxx_battery_i2c bq27xxx_battery musb_hdrc udc_core rtc_twl ohci_platform ohci_hcd ehci_hcd twl4030_pwrbutton pwm_twl_led st_accel_i2c st_sensors_i2c st_accel
>>>> [  166.621673]  twl4030_keypad pwm_twl twl4030_charger st_sensors twl4030_madc matrix_keymap industrialio_triggered_buffer kfifo_buf usbcore industrialio usb_common omapdrm omap_ssi hsi drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks cec
>>>> [  166.736297] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
>>>> [  166.746704] Hardware name: Nokia RX-51 board
>>>> [  166.751007] PC is at ssi_gdd_tasklet+0x258/0x2e8 [omap_ssi]
>>>> [  166.756652] LR is at _raw_spin_unlock+0x28/0x54
>>>> [  166.761230] pc : [<bf0a6520>]    lr : [<c0a20cd4>]    psr: 20010013
>>>> [  166.767517] sp : c39ade00  ip : ffb80000  fp : c3f2b45c
>>>> [  166.772796] r10: 00000001  r9 : c3d01c00  r8 : 00000001
>>>> [  166.778045] r7 : 00000000  r6 : 00000000  r5 : c305a140  r4 : ccfb9480
>>>> [  166.784606] r3 : 00000000  r2 : c3f2b4f4  r1 : 00000000  r0 : c3f2b4ec
>>>> [  166.791168] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
>>>> [  166.798370] Control: 10c5387d  Table: 85bb4019  DAC: 00000051
>>>> [  166.804138] Register r0 information: slab kmalloc-512 start c3f2b400 pointer offset 236 size 512
>>>> [  166.813049] Register r1 information: NULL pointer
>>>> [  166.817779] Register r2 information: slab kmalloc-512 start c3f2b400 pointer offset 244 size 512
>>>> [  166.826660] Register r3 information: NULL pointer
>>>> [  166.831420] Register r4 information: slab kmalloc-64 start ccfb9480 pointer offset 0 size 64
>>>> [  166.839935] Register r5 information: slab kmalloc-256 start c305a100 pointer offset 64 size 256
>>>> [  166.848724] Register r6 information: NULL pointer
>>>> [  166.853485] Register r7 information: NULL pointer
>>>> [  166.858215] Register r8 information: non-paged memory
>>>> [  166.863311] Register r9 information: slab kmalloc-1k start c3d01c00 pointer offset 0 size 1024
>>>> [  166.872009] Register r10 information: non-paged memory
>>>> [  166.877197] Register r11 information: slab kmalloc-512 start c3f2b400 pointer offset 92 size 512
>>>> [  166.886077] Register r12 information: non-paged memory
>>>> [  166.891265] Process irq/83-SSI PORT (pid: 662, stack limit = 0xd6f455cc)
>>>> [  166.898010] Stack: (0xc39ade00 to 0xc39ae000)
>>>> [  166.902404] de00: 00000000 c1805e00 c1805e50 00000001 c3e49a00 c3f2b440 00000001 00000008
>>>> [  166.910644] de20: fa058000 c305a140 00000000 c305a154 00000000 cfb5d330 00000000 00000000
>>>> [  166.918853] de40: c0ff8760 00000101 c0f03080 c013d9e0 c0f03080 00000001 00000000 00000203
>>>> [  166.927093] de60: ffffe000 c01012dc c3d01c00 c0100b3c 0000000a ffffcbe2 00208040 00000002
>>>> [  166.935333] de80: ccfb9480 60010013 ffffe000 c3f2b440 c3f2b45c 00000001 c305a140 c3d01c00
>>>> [  166.943572] dea0: 01000100 c013d468 00000200 c013d554 ccfb9480 00000000 c3f2b440 bf0a794c
>>>> [  166.951782] dec0: bf0a7888 c56d9100 c3f2b440 c3f2b45c c3f2b464 00000001 c305a140 c3d01c00
>>>> [  166.960021] dee0: 01000100 bf0a7d20 00000004 c3d00410 c019d078 00000000 c3d01c00 c3f2b440
>>>> [  166.968261] df00: c3f2b4a4 00000001 00000001 fa058000 c019d078 bf0a7ef8 00000004 b3675ddc
>>>> [  166.976501] df20: c019d078 c3f200c0 c1837b00 00000000 ffffe000 00000001 00000000 c3f200c0
>>>> [  166.984710] df40: c019d078 c019d094 c1837b00 c3f200e4 00000000 c019d380 c371d840 00000000
>>>> [  166.992950] df60: c019d19c b3675ddc 00000000 c39ac000 c3f7c580 c3f7c300 c019d278 c3f200c0
>>>> [  167.001190] df80: c395bc04 c3f7c5a0 00000000 c0159ba0 c3f7c300 c0159a38 00000000 00000000
>>>> [  167.009399] dfa0: 00000000 00000000 00000000 c0100150 00000000 00000000 00000000 00000000
>>>> [  167.017639] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>>>> [  167.025878] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
>>>> [  167.034118] [<bf0a6520>] (ssi_gdd_tasklet [omap_ssi]) from [<c013d9e0>] (tasklet_action_common.constprop.4+0xa8/0xbc)
>>>> [  167.044830] [<c013d9e0>] (tasklet_action_common.constprop.4) from [<c01012dc>] (__do_softirq+0xf4/0x418)
>>>> [  167.054382] [<c01012dc>] (__do_softirq) from [<c013d468>] (do_softirq+0x70/0x7c)
>>>> [  167.061828] [<c013d468>] (do_softirq) from [<c013d554>] (__local_bh_enable_ip+0xe0/0xfc)
>>>> [  167.070007] [<c013d554>] (__local_bh_enable_ip) from [<bf0a794c>] (ssi_async+0xc4/0x1f4 [omap_ssi])
>>>> [  167.079132] [<bf0a794c>] (ssi_async [omap_ssi]) from [<bf0a7d20>] (ssi_pio_complete+0x108/0x244 [omap_ssi])
>>>> [  167.088989] [<bf0a7d20>] (ssi_pio_complete [omap_ssi]) from [<bf0a7ef8>] (ssi_pio_thread+0x9c/0x3ec [omap_ssi])
>>>> [  167.099182] [<bf0a7ef8>] (ssi_pio_thread [omap_ssi]) from [<c019d094>] (irq_thread_fn+0x1c/0x78)
>>>> [  167.108062] [<c019d094>] (irq_thread_fn) from [<c019d380>] (irq_thread+0x108/0x210)
>>>> [  167.115783] [<c019d380>] (irq_thread) from [<c0159ba0>] (kthread+0x168/0x1a4)
>>>> [  167.122985] [<c0159ba0>] (kthread) from [<c0100150>] (ret_from_fork+0x14/0x24)
>>>> [  167.130279] Exception stack(0xc39adfb0 to 0xc39adff8)
>>>> [  167.135375] dfa0:                                     00000000 00000000 00000000 00000000
>>>> [  167.143585] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>>>> [  167.151824] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
>>>> [  167.158477] Code: e59210b0 e58240b0 e28220b4 e1c400f0 (e5814000)
>>>> [  167.164703] ---[ end trace a3f2b689bab17aa6 ]---
>>>> [  167.169433] Kernel panic - not syncing: Fatal exception in interrupt
>>>> [  167.175842] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
>>


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

* Re: Oops in ssi (through nokia-modem)
  2021-11-27  1:09 Oops in ssi (through nokia-modem) Merlijn Wajer
  2021-12-03 15:35 ` Merlijn Wajer
@ 2021-12-08 21:07 ` Pavel Machek
  2021-12-12  1:26   ` Merlijn Wajer
  1 sibling, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2021-12-08 21:07 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: linux-omap, Sebastian Reichel, zhangqilong3, jingxiangfeng,
	Tony Lindgren, Dev Null, Ivaylo Dimitrov

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

Hi!

> As soon as nokia-modem on my Nokia N900 gets used, I get the following
> warning, followed by an oops [1]. I believe the nokia-modem module is
> probed with the "pm=1" argument, but that doesn't seem particularly
> important given the trace, I think.

Actually, it seems two warnings and an oops.

> > [  165.467529] IPv6: ADDRCONF(NETDEV_CHANGE): phonet0: link becomes ready
> > [  165.498687] ------------[ cut here ]------------
> > [  165.503417] WARNING: CPU: 0 PID: 662 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0xd8/0x100

This one should be easy. __dma_map_sg_attrs

        if (WARN_ON_ONCE(!dev->dma_mask))
		return 0;

someone forgot to set the mask. ssi_start_dma() has some dev_dbgs,
could you make sure they end up in the logs?

Maybe it is as simple as adding dma_set_mask() somehwere?
dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); ?


> > [  165.787841] ---[ end trace a3f2b689bab17aa5 ]---
> > [  166.436523] irq 26: nobody cared (try booting with the "irqpoll" option)
> > [  166.443298] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
> > [  166.453704] Hardware name: Nokia RX-51 board

Second warning here. We don't have handler for irq 26. 

> > [  166.593566] 8<--- cut here ---
> > [  166.600799] Unable to handle kernel NULL pointer dereference at virtual address 00000000
> > [  166.608978] pgd = 34df813c
> > [  166.611724] [00000000] *pgd=00000000

And now the oops...

Best regards,
							Pavel
-- 
http://www.livejournal.com/~pavelmachek

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

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

* Re: Oops in ssi (through nokia-modem)
  2021-12-03 20:25   ` Sebastian Reichel
  2021-12-05 23:25     ` Merlijn Wajer
@ 2021-12-11 21:54     ` Merlijn Wajer
  1 sibling, 0 replies; 9+ messages in thread
From: Merlijn Wajer @ 2021-12-11 21:54 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: linux-omap, zhangqilong3, jingxiangfeng, Pavel Machek,
	Tony Lindgren, Dev Null, Ivaylo Dimitrov

Hi,

On 03/12/2021 21:25, Sebastian Reichel wrote:
> Hi,
> 
> No idea (I have not booted my N900 for some time). Newer kernel might
> just have slowed down or speed up things and uncovered a race condition.
> IIRC the dma_mask warning is old and not a huge issue.
> 
> What is IRQ #26 according to /proc/cpuinfo?

I am assuming you meant /proc/interrupts:

	26:          0      INTC  10 Edge      l3-app-irq

Full list at [1].

> Finally for the NULL pointer dereference in ssi_gdd_tasklet it would
> help to run the stacktrace through "scripts/decode_stacktrace.sh",
> so that we get exact line numbers.

See [2] - but I had to path scripts/decode_stacktrace.sh to fix the
module names [3], so take them with a grain salt.

> Have you tried bisecting this?

I will attempt that next.

Cheers,
Merlijn

[1]

> # cat /proc/interrupts
>            CPU0
>  19:          0      INTC   3 Edge      arm-pmu
>  23:          1      INTC   7 Edge      TWL4030-PIH
>  25:          0      INTC   9 Edge      l3-debug-irq
>  26:          0      INTC  10 Edge      l3-app-irq
>  29:      30756      INTC  13 Edge      omap-dma-engine
>  36:          0      INTC  20 Edge      gpmc
>  37:        913      INTC  21 Edge      SGX ISR
>  40:          0      INTC  24 Edge      480bd400.mmu
>  41:       2404      INTC  25 Edge      OMAP DISPC
>  45:          0      INTC  29 Edge      48310000.gpio
>  46:       7804      INTC  30 Edge      49050000.gpio
>  47:          0      INTC  31 Edge      49052000.gpio
>  48:          0      INTC  32 Edge      49054000.gpio
>  49:          0      INTC  33 Edge      49056000.gpio
>  50:          0      INTC  34 Edge      49058000.gpio
>  53:      73596      INTC  37 Edge      clockevent
>  64:          0      INTC  48 Edge      480ba000.spi
>  65:          0      INTC  49 Edge      480c3000.sham
>  72:      50013      INTC  56 Edge      48070000.i2c
>  73:       1510      INTC  57 Edge      48072000.i2c
>  77:          3      INTC  61 Edge      48060000.i2c
>  81:          0      INTC  65 Edge      48098000.spi
>  82:          0      INTC  66 Edge      4809a000.spi
>  83:          1      INTC  67 Edge      SSI PORT
>  87:          0      INTC  71 Edge      gdd_mpu
>  90:       1461      INTC  74 Edge      49020000.serial
>  92:          1      INTC  76 Edge      ohci_hcd:usb1
>  99:      20334      INTC  83 Edge      mmc0
> 102:        630      INTC  86 Edge      mmc1
> 107:          0      INTC  91 Edge      480b8000.spi
> 112:      53048      PRCM     Edge      pm_wkup
> 121:          0      PRCM     Edge      pinctrl, pinctrl, pinctrl, pm_io
> 144:          0   pinctrl 366 Edge      49020000.serial:wakeup
> 146:          0   twl4030   0 Edge      twl4030_gpio
> 147:          0   twl4030   1 Edge      48070000.i2c:twl@48:keypad
> 149:          0   twl4030   3 Edge      twl4030_madc
> 151:          1   twl4030   5 Edge      twl4030_power
> 154:          0   twl4030   8 Edge      twl4030_pwrbutton
> 157:          1   twl4030  11 Edge      rtc0
> 181:          0  49056000.gpio  23 Edge      SSI cawake
> 182:          0  49054000.gpio   4 Edge      tsc200x
> 183:          0  49054000.gpio  14 Edge      Camera Lens Cover
> 184:          0  49052000.gpio   4 Edge      Camera Focus
> 185:          0  49052000.gpio   5 Edge      Camera Capture
> 186:          0  49054000.gpio  17 Edge      Lock Button
> 187:          0  49052000.gpio   7 Edge      Keypad Slide
> 188:          0  49052000.gpio  25 Edge      Proximity Sensor
> 189:          0  49058000.gpio   0 Edge      Machine Cover
> 190:       7804  49050000.gpio  10 Edge      wl1251
> 191:          0  49052000.gpio   8 Edge      modem_rst_ind
> Err:          0


[2]

> $ cat trace.txt | ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- ./scripts/decode_stacktrace.sh vmlinux auto modout/lib/modules/5.15.2-00596-g511bae76ff39-dirty
> [  221.321380] 8<--- cut here ---
> [  221.324462] Unable to handle kernel NULL pointer dereference at virtual address 00000000
> [  221.332641] pgd = 70c7579d
> [  221.335388] [00000000] *pgd=00000000
> [  221.339019] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
> [  221.344573] Modules linked in: cbc aes_arm_bs crypto_simd cryptd aes_arm aes_generic ccm bluetooth ecdh_generic ecc libaes zram zsmalloc cmt_speech nokia_modem ssi_protocol phonet joydev mousedev evdev hsi_char wl1251_spi wl1251 mac80211 libarc4 omap3_rom_rng ir_rx51 isp1704_charger rng_core rc_core snd_soc_rx51 udc_core leds_gpio sha256_generic pvrsrvkm_omap3_sgx530_121 libsha256 sha256_arm gpio_keys display_connector pwm_omap_dmtimer cpufreq_dt snd_soc_omap_mcbsp snd_soc_ti_sdma snd_soc_tpa6130a2 cfg80211 snd_soc_core snd_pcm_dmaengine omap_sham crypto_engine snd_pcm snd_timer snd leds_lp5523 soundcore leds_lp55xx_common panel_sony_acx565akm bq2415x_charger bq27xxx_battery_i2c tsc2005 led_class tsc200x_core bq27xxx_battery omap_mailbox ohci_platform rtc_twl ohci_hcd ehci_hcd st_accel_i2c twl4030_pwrbutton st_sensors_i2c st_accel pwm_twl st_sensors pwm_twl_led industrialio_triggered_buffer usbcore twl4030_madc kfifo_buf omapdrm twl4030_charger twl4030_keypad industrialio matrix_keymap
> [  221.345306]  usb_common drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm omap_ssi hsi drm_panel_orientation_quirks cec
> [  221.448211] CPU: 0 PID: 647 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-00596-g511bae76ff39-dirty #8
> [  221.458526] Hardware name: Nokia RX-51 board
> [  221.462829] PC is at ssi_gdd_tasklet (./include/linux/list.h:73) omap_ssi
> [  221.468444] LR is at _raw_spin_unlock (./arch/arm/include/asm/thread_info.h:87)
> [  221.473022] pc : lr : psr: 20060013
> [  221.479339] sp : c3cfbdf0  ip : 00000000  fp : 00000122
> [  221.484588] r10: 00000100  r9 : 00000806  r8 : c485a800
> [  221.489837] r7 : 00000000  r6 : 00000000  r5 : c30f7340  r4 : c4f0bd00
> [  221.496398] r3 : 00000000  r2 : 00000000  r1 : c0f05228  r0 : c48abe40
> [  221.502990] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
> [  221.510162] Control: 10c5387d  Table: 84bac019  DAC: 00000051
> [  221.515930] Register r0 information: slab kmalloc-512 start c48abe00 pointer offset 64 size 512
> [  221.524749] Register r1 information: non-slab/vmalloc memory
> [  221.530456] Register r2 information: NULL pointer
> [  221.535186] Register r3 information: NULL pointer
> [  221.539947] Register r4 information: slab kmalloc-64 start c4f0bd00 pointer offset 0 size 64
> [  221.548461] Register r5 information: slab kmalloc-256 start c30f7300 pointer offset 64 size 256
> [  221.557250] Register r6 information: NULL pointer
> [  221.562011] Register r7 information: NULL pointer
> [  221.566741] Register r8 information: slab kmalloc-1k start c485a800 pointer offset 0 size 1024
> [  221.575439] Register r9 information: non-paged memory
> [  221.580535] Register r10 information: non-paged memory
> [  221.585723] Register r11 information: non-paged memory
> [  221.590881] Register r12 information: NULL pointer
> [  221.595733] Process irq/83-SSI PORT (pid: 647, stack limit = 0x58d4b081)
> [  221.602478] Stack: (0xc3cfbdf0 to 0xc3cfc000)
> [  221.606872] bde0:                                     00000000 c1805e00 c1805e50 00000001
> [  221.615081] be00: c3ca4000 c48abe40 00000001 00000008 fa058000 c30f7340 00000000 c30f7354
> [  221.623321] be20: 00000000 00000000 c30f7358 cfb4d330 00000000 00000000 c3cfa000 c0140f98
> [  221.631561] be40: 00000001 c0f03080 00000000 c0ff8160 00000101 c0cc6434 00000203 c0101304
> [  221.639770] be60: c3cfa000 c485a800 0000000a ffffe144 bf01f9ec 00208040 00000201 c3cfa000
> [  221.648010] be80: 60060013 c48abe40 c48abe5c c48abe5c c30f7340 c485a800 01000100 c0140a10
> [  221.656249] bea0: 00000001 ffffe000 c48abe40 c0140b18 c4f0bd00 00000000 c48abe40 bf01f9ec
> [  221.664459] bec0: bf01f928 c61c4c00 c48abe64 c48abe40 00000001 c48abe5c c30f7340 c485a800
> [  221.672698] bee0: 01000100 bf01fdd4 00000000 c485a410 00000000 00000000 00000001 c48abe40
> [  221.680938] bf00: 00000001 c48abea4 c485a800 00000001 00000000 bf01ffb0 00000004 fa058000
> [  221.689147] bf20: 00000000 c3867980 c1835b00 c38679a4 00000001 c1835b00 c3867980 c01a2dec
> [  221.697387] bf40: 00000000 c01a2e08 00000000 c3cfa000 c38679a4 c01a3054 00000000 c01a2b98
> [  221.705627] bf60: 00000000 56f1b382 00000000 c48ad080 c3cfa000 c48ad040 c01a2efc c3867980
> [  221.713836] bf80: c35bbca4 c48ad060 00000000 c015e9d0 c48ad080 c015e87c 00000000 00000000
> [  221.722076] bfa0: 00000000 00000000 00000000 c0100150 00000000 00000000 00000000 00000000
> [  221.730316] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  221.738525] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
> [  221.746765] (ssi_gdd_tasklet [omap_ssi]) from tasklet_action_common.constprop.0 (kernel/softirq.c:878)
> [  221.757476] (tasklet_action_common.constprop.0) from __do_softirq (./include/linux/atomic/atomic-instrumented.h:28)
> [  221.767120] (__do_softirq) from do_softirq (./include/asm-generic/softirq_stack.h:11)
> [  221.774597] (do_softirq) from __local_bh_enable_ip (kernel/softirq.c:383)
> [  221.782836] (__local_bh_enable_ip) from ssi_async (drivers/hsi/controllers/omap_ssi_port.c:410) omap_ssi])
> [  221.791961] (ssi_async [omap_ssi]) from ssi_pio_complete (drivers/hsi/controllers/omap_ssi_port.c:954) omap_ssi])
> [  221.801818] (ssi_pio_complete [omap_ssi]) from ssi_pio_thread (drivers/hsi/controllers/omap_ssi_port.c:976) omap_ssi])
> [  221.812011] (ssi_pio_thread [omap_ssi]) from irq_thread_fn (kernel/irq/manage.c:1199)
> [  221.820861] (irq_thread_fn) from irq_thread (kernel/irq/manage.c:1279)
> [  221.828582] (irq_thread) from kthread (kernel/kthread.c:319)
> [  221.835784] (kthread) from ret_from_fork (arch/arm/kernel/entry-common.S:147)
> [  221.843048] Exception stack(0xc3cfbfb0 to 0xc3cfbff8)
> [  221.848144] bfa0:                                     00000000 00000000 00000000 00000000
> [  221.856353] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  221.864593] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
> [ 221.871246] Code: e58040b0 e5841000 e59f1084 e5842004 (e5824000)
> All code
> ========
>    0:	e58040b0 	str	r4, [r0, #176]	; 0xb0
>    4:	e5841000 	str	r1, [r4]
>    8:	e59f1084 	ldr	r1, [pc, #132]	; 0x94
>    c:	e5842004 	str	r2, [r4, #4]
>   10:*	e5824000 	str	r4, [r2]	        <-- trapping instruction
> 
> Code starting with the faulting instruction
> ===========================================
>    0:	e5824000 	str	r4, [r2]
> [  221.877441] sched: RT throttling activated
> [  221.877532] ---[ end trace 9743f51737b4ffb3 ]---

[3]

For some reason the $module was "omap_ssi])" so it failed to find the
module with find.

> diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh
> index 5fbad61fe490..686bae46c665 100755
> --- a/scripts/decode_stacktrace.sh
> +++ b/scripts/decode_stacktrace.sh
> @@ -61,6 +61,7 @@ find_module() {
>  	fi
> 
>  	if [[ "$modpath" != "" ]] ; then
> +        module=$(echo $module | sed 's/])//')
>  	        for fn in $(find "$modpath" -name "${module//_/[-_]}.ko*") ; do
>  		                if readelf -WS "$fn" | grep -qwF .debug_line ; then
>  		                        echo $fn

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

* Re: Oops in ssi (through nokia-modem)
  2021-12-08 21:07 ` Pavel Machek
@ 2021-12-12  1:26   ` Merlijn Wajer
  2021-12-12 11:31     ` Merlijn Wajer
  0 siblings, 1 reply; 9+ messages in thread
From: Merlijn Wajer @ 2021-12-12  1:26 UTC (permalink / raw)
  To: Pavel Machek
  Cc: linux-omap, Sebastian Reichel, zhangqilong3, jingxiangfeng,
	Tony Lindgren, Dev Null, Ivaylo Dimitrov

Hi Sebastian, Pavel,

On 08/12/2021 22:07, Pavel Machek wrote:
> Hi!
> 
>> As soon as nokia-modem on my Nokia N900 gets used, I get the following
>> warning, followed by an oops [1]. I believe the nokia-modem module is
>> probed with the "pm=1" argument, but that doesn't seem particularly
>> important given the trace, I think.
> 
> Actually, it seems two warnings and an oops.
> 
>>> [  165.467529] IPv6: ADDRCONF(NETDEV_CHANGE): phonet0: link becomes ready
>>> [  165.498687] ------------[ cut here ]------------
>>> [  165.503417] WARNING: CPU: 0 PID: 662 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0xd8/0x100
> 
> This one should be easy. __dma_map_sg_attrs
> 
>         if (WARN_ON_ONCE(!dev->dma_mask))
> 		return 0;
> 
> someone forgot to set the mask. ssi_start_dma() has some dev_dbgs,
> could you make sure they end up in the logs?
> 
> Maybe it is as simple as adding dma_set_mask() somehwere?
> dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); ?
> 
> 
>>> [  165.787841] ---[ end trace a3f2b689bab17aa5 ]---
>>> [  166.436523] irq 26: nobody cared (try booting with the "irqpoll" option)
>>> [  166.443298] CPU: 0 PID: 662 Comm: irq/83-SSI PORT Tainted: G        W         5.15.2-218696-g31e48a7f0946-dirty #1
>>> [  166.453704] Hardware name: Nokia RX-51 board
> 
> Second warning here. We don't have handler for irq 26. 
> 
>>> [  166.593566] 8<--- cut here ---
>>> [  166.600799] Unable to handle kernel NULL pointer dereference at virtual address 00000000
>>> [  166.608978] pgd = 34df813c
>>> [  166.611724] [00000000] *pgd=00000000
> 
> And now the oops...

It looks like the warnings and oops go together. I realised that v5.9
was fine, linux-5.9.y (stable) was not, so I did a bisect on that, and
found this commit (upstream commit in the description).

> $ git bisect good
> 4e57482e8440fac7137832629109730ea4b267aa is the first bad commit
> commit 4e57482e8440fac7137832629109730ea4b267aa
> Author: Thomas Tai <thomas.tai@oracle.com>
> Date:   Thu Sep 17 18:43:03 2020 +0200
> 
>     dma-direct: Fix potential NULL pointer dereference
> 
>     [ Upstream commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 ]
> 
>     When booting the kernel v5.9-rc4 on a VM, the kernel would panic when
>     printing a warning message in swiotlb_map(). The dev->dma_mask must not
>     be a NULL pointer when calling the dma mapping layer. A NULL pointer
>     check can potentially avoid the panic.
> 
>     Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
>     Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>     Signed-off-by: Christoph Hellwig <hch@lst.de>
>     Signed-off-by: Sasha Levin <sashal@kernel.org>
> 
>  include/linux/dma-direct.h |  3 ---
>  kernel/dma/mapping.c       | 11 +++++++++++
>  2 files changed, 11 insertions(+), 3 deletions(-)

So it sounds like setting the dev->dma_mask in the driver is the right
fix, as Pavel suggested. The commit returns an error when the mask is
NULL and that is probably what causes the oops later on. I'll try look
at fixing this soon, unless someone beats me to it. I suppose we'll want
this potential fix in the stable trees as well.

Regards,
Merlijn

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

* Re: Oops in ssi (through nokia-modem)
  2021-12-12  1:26   ` Merlijn Wajer
@ 2021-12-12 11:31     ` Merlijn Wajer
  2021-12-12 18:59       ` Pavel Machek
  0 siblings, 1 reply; 9+ messages in thread
From: Merlijn Wajer @ 2021-12-12 11:31 UTC (permalink / raw)
  To: Pavel Machek
  Cc: linux-omap, Sebastian Reichel, zhangqilong3, jingxiangfeng,
	Tony Lindgren, Dev Null, Ivaylo Dimitrov

Hi Sebastian, Pavel,

On 12/12/2021 02:26, Merlijn Wajer wrote:

> <snip>
> 
> So it sounds like setting the dev->dma_mask in the driver is the right
> fix, as Pavel suggested. The commit returns an error when the mask is
> NULL and that is probably what causes the oops later on. I'll try look
> at fixing this soon, unless someone beats me to it. I suppose we'll want
> this potential fix in the stable trees as well.

Looking at this again I wonder if DMA just wasn't working already.
Reverting commit f959dcd6ddfd29235030e8026471ac1b022ad2b0 /
4e57482e8440fac7137832629109730ea4b267aa ("dma-direct: Fix potential
NULL pointer dereference") just makes the ssi driver fall back to pio
calls, as far as I can tell, and perhaps the dma_capable change of the
commit causes ssi to now actually use DMA, which fails.

I've tried to set the dma mask in ssi_start_dma but all that goes is rid
of the first warning:

> diff --git a/drivers/hsi/controllers/omap_ssi_port.c b/drivers/hsi/controllers/omap_ssi_port.c
> index a0cb5be246e1..db2df77d79f6 100644
> --- a/drivers/hsi/controllers/omap_ssi_port.c
> +++ b/drivers/hsi/controllers/omap_ssi_port.c
> @@ -227,6 +227,8 @@ static int ssi_start_dma(struct hsi_msg *msg, int lch)
>                 return -EREMOTEIO;
>         }
> 
> +       dma_set_mask_and_coherent(&ssi->device, DMA_BIT_MASK(32));

All the other problems remain (no one cared about the irq and NULL
pointer). Perhaps some IRQ is not set up for DMA completion (just
guessing here?)

However, looking at the omap3-n900.dts it looks to me that the ssi_pins
definition suggests that it should use pio, rather than DMA.

Does either of you recall if DMA was ever used on the N900, or does the
offending commit just cause DMA to be used by accident?

Regards,
Merlijn

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

* Re: Oops in ssi (through nokia-modem)
  2021-12-12 11:31     ` Merlijn Wajer
@ 2021-12-12 18:59       ` Pavel Machek
  0 siblings, 0 replies; 9+ messages in thread
From: Pavel Machek @ 2021-12-12 18:59 UTC (permalink / raw)
  To: Merlijn Wajer
  Cc: linux-omap, Sebastian Reichel, zhangqilong3, jingxiangfeng,
	Tony Lindgren, Dev Null, Ivaylo Dimitrov

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

Hi!

> > +       dma_set_mask_and_coherent(&ssi->device, DMA_BIT_MASK(32));
> 
> All the other problems remain (no one cared about the irq and NULL
> pointer). Perhaps some IRQ is not set up for DMA completion (just
> guessing here?)
> 
> However, looking at the omap3-n900.dts it looks to me that the ssi_pins
> definition suggests that it should use pio, rather than DMA.
> 
> Does either of you recall if DMA was ever used on the N900, or does the
> offending commit just cause DMA to be used by accident?

No idea, sorry :-(.
								Pavel
-- 
http://www.livejournal.com/~pavelmachek

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

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

end of thread, other threads:[~2021-12-12 18:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27  1:09 Oops in ssi (through nokia-modem) Merlijn Wajer
2021-12-03 15:35 ` Merlijn Wajer
2021-12-03 20:25   ` Sebastian Reichel
2021-12-05 23:25     ` Merlijn Wajer
2021-12-11 21:54     ` Merlijn Wajer
2021-12-08 21:07 ` Pavel Machek
2021-12-12  1:26   ` Merlijn Wajer
2021-12-12 11:31     ` Merlijn Wajer
2021-12-12 18:59       ` Pavel Machek

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.