This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

pvrsrvkm crash on kernel 3.2.1

Other Parts Discussed in Thread: OMAP3530

Hi,

we recently decided to update the kernel for out embedded devices to 3.2.1.

I have a problem with the powervr driver:

root@omap3sd:~# pvr2d_test
[   92.220428] Unhandled fault: external abort on non-linefetch (0x1008) at 0xd0960ca8
[   92.228729] Internal error: : 1008 [#1]
[   92.232879] Modules linked in: bufferclass_ti(O) omaplfb(O) pvrsrvkm(O)
[   92.240173] CPU: 0    Tainted: G           O  (3.2.1 #6)
[   92.246307] PC is at PollForValueKM+0x58/0xcc [pvrsrvkm]
[   92.252288] LR is at PollForValueKM+0x40/0xcc [pvrsrvkm]
[   92.258056] pc : [<bf005b04>]    lr : [<bf005aec>]    psr: 80000013
[   92.258087] sp : ce8dbd88  ip : ce8dbc50  fp : 00000000
[   92.270446] r10: 00000064  r9 : 000f4240  r8 : 00000001
[   92.276092] r7 : f39d7968  r6 : 000000ff  r5 : 00000000  r4 : d0960ca8
[   92.283172] r3 : 00000001  r2 : 000003e7  r1 : 000003e8  r0 : 00000000
[   92.290222] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   92.297943] Control: 10c5387d  Table: 8e8c0019  DAC: 00000015
[   92.304168] Process pvr2d_test (pid: 1002, stack limit = 0xce8da2f0)
[   92.311035] Stack: (0xce8dbd88 to 0xce8dc000)
[   92.315795] bd80:                   00000001 00000000 000000ff ce840000 00000000 d0911120
[   92.324645] bda0: ce840014 00000000 00000000 00000001 00000000 bf01178c 00000064 00000000
[   92.333496] bdc0: ce840000 bf011914 00000000 ce840000 d0911120 bf00ed34 ce840000 00000000
[   92.342376] bde0: ce840000 00000000 00000000 bf01c40c ffffffff bf011b7c ffffffff c045ee08
[   92.351226] be00: 0698a3aa 0698a3aa 00000000 c002de64 bf01c414 bf015ebc bf01c3a0 ceaff4c0
[   92.360076] be20: 00000000 ceaff4c0 00000000 bf001738 ce8dbe60 bf0016c8 00000000 bf0085c4
[   92.368957] be40: ceaff4c0 ce8dbe60 00000000 00000000 00000000 00000000 bf001984 bf0016c8
[   92.377807] be60: 00000000 00000000 00000000 00000000 ffffffff ce807c00 00000001 ce840000
[   92.386657] be80: ce8dbec0 ce8da000 ce8ea004 bf00fb34 ce807c00 00000001 ce8dbec0 ce8ea008
[   92.395538] bea0: 0d80004c ce807c00 00000001 ce8ea004 ce8ea004 bf00e260 00000000 00000000
[   92.404388] bec0: 00000000 00000000 00000000 0f099000 00000000 00000000 00000000 00000000
[   92.413269] bee0: ce8ea000 ce8eb000 ceb77800 bf015668 0000005c ce807c00 ce8eb000 ceb77800
[   92.422119] bf00: ce8dbf30 0000005c ce8ea000 ce8eb000 00000000 bf014538 000003ea bea00164
[   92.430969] bf20: c01c675c 00000003 00000000 bf00df60 0000005c 0000001c bea00194 00000054
[   92.439849] bf40: bea001e8 00000008 00000001 ceb77800 00000000 cf055e80 00005452 c00eed38
[   92.448699] bf60: 0000000a c084ff00 c083d480 c0689084 00000000 cf055e80 bea00164 c01c675c
[   92.457550] bf80: 00000003 c00ef000 bea001e8 00000000 0001c030 bea006b4 bea001e8 00000036
[   92.466430] bfa0: c0012fc8 c0012e00 0001c030 bea006b4 00000003 c01c675c bea00164 00000001
[   92.475280] bfc0: 0001c030 bea006b4 bea001e8 00000036 bea006b0 00000000 bea002ac 00000000
[   92.484130] bfe0: bea00a68 bea00160 401f9ab0 40170d7c 40000010 00000003 00000000 00000000
[   92.493621] [<bf005b04>] (PollForValueKM+0x58/0xcc [pvrsrvkm]) from [<bf01178c>] (SGXResetInvalDC.clone.2+0x58/0x60 [pvrsrvkm])
[   92.506713] [<bf01178c>] (SGXResetInvalDC.clone.2+0x58/0x60 [pvrsrvkm]) from [<bf011914>] (SGXReset+0x180/0x19c [pvrsrvkm])
[   92.519378] [<bf011914>] (SGXReset+0x180/0x19c [pvrsrvkm]) from [<bf00ed34>] (SGXInitialise+0x50/0x11c [pvrsrvkm])
[   92.531219] [<bf00ed34>] (SGXInitialise+0x50/0x11c [pvrsrvkm]) from [<bf011b7c>] (SGXPostPowerState+0x4c/0xa0 [pvrsrvkm])
[   92.543579] [<bf011b7c>] (SGXPostPowerState+0x4c/0xa0 [pvrsrvkm]) from [<bf001738>] (PVRSRVDevicePostPowerStateKM_AnyVaCb+0x70/0x88 [pvrsrvkm])
[   92.557891] [<bf001738>] (PVRSRVDevicePostPowerStateKM_AnyVaCb+0x70/0x88 [pvrsrvkm]) from [<bf0085c4>] (List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va+0x30/0x58 [pvrsr)
[   92.574462] [<bf0085c4>] (List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va+0x30/0x58 [pvrsrvkm]) from [<bf001984>] (PVRSRVSetDevicePowerStateKM+0x6c/0xa8 [pvrsrvkm])
[   92.590270] [<bf001984>] (PVRSRVSetDevicePowerStateKM+0x6c/0xa8 [pvrsrvkm]) from [<bf00fb34>] (SGXScheduleCCBCommandKM+0x2c/0xa4 [pvrsrvkm])
[   92.604522] [<bf00fb34>] (SGXScheduleCCBCommandKM+0x2c/0xa4 [pvrsrvkm]) from [<bf00e260>] (SGXSubmitTransferKM+0x218/0x2a4 [pvrsrvkm])
[   92.618255] [<bf00e260>] (SGXSubmitTransferKM+0x218/0x2a4 [pvrsrvkm]) from [<bf015668>] (SGXSubmitTransferBW+0x154/0x160 [pvrsrvkm])
[   92.631835] [<bf015668>] (SGXSubmitTransferBW+0x154/0x160 [pvrsrvkm]) from [<bf014538>] (BridgedDispatchKM+0xd8/0x130 [pvrsrvkm])
[   92.645111] [<bf014538>] (BridgedDispatchKM+0xd8/0x130 [pvrsrvkm]) from [<bf00df60>] (PVRSRV_BridgeDispatchKM+0xc0/0xec [pvrsrvkm])
[   92.658233] [<bf00df60>] (PVRSRV_BridgeDispatchKM+0xc0/0xec [pvrsrvkm]) from [<c00eed38>] (do_vfs_ioctl+0x7c/0x2d0)
[   92.669555] [<c00eed38>] (do_vfs_ioctl+0x7c/0x2d0) from [<c00ef000>] (sys_ioctl+0x74/0x7c)
[   92.678558] [<c00ef000>] (sys_ioctl+0x74/0x7c) from [<c0012e00>] (ret_fast_syscall+0x0/0x3c)
[   92.687591] Code: e58d0004 ea000012 e3a03000 e58d3000 (e5943000)
[   92.694458] ------------[ cut here ]------------
[   92.699462] kernel BUG at arch/arm/mach-omap2/omap_l3_smx.c:186!
[   92.705963] Internal error: Oops - undefined instruction: 0 [#2]
[   92.712463] Modules linked in: bufferclass_ti(O) omaplfb(O) pvrsrvkm(O)
[   92.719726] CPU: 0    Tainted: G      D    O  (3.2.1 #6)
[   92.725494] PC is at omap3_l3_app_irq+0x118/0x11c
[   92.730621] LR is at handle_irq_event_percpu+0x68/0x250
[   92.736297] pc : [<c002bdd8>]    lr : [<c00868c4>]    psr: 20000193
[   92.736328] sp : ce8dbaf8  ip : f8000000  fp : c083d4d4
[   92.748687] r10: 00000000  r9 : c083d4c0  r8 : 00000000
[   92.754333] r7 : ce8dbbcc  r6 : 0000000a  r5 : 00000000  r4 : 00800000
[   92.761413] r3 : 00800000  r2 : 00000004  r1 : 00800000  r0 : 00000000
[   92.768463] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   92.776275] Control: 10c5387d  Table: 8e8c0019  DAC: 00000015
[   92.782501] Process pvr2d_test (pid: 1002, stack limit = 0xce8da2f0)
[   92.789367] Stack: (0xce8dbaf8 to 0xce8dc000)
[   92.794097] bae0:                                                       00000002 00000000
[   92.802947] bb00: 00000000 c0076040 00000002 cf05e940 c07ed6f8 0000000a ce8dbbcc 00000000
[   92.811828] bb20: c083d4c0 c00868c4 c07ed708 ce8da000 c07ed6a8 c0d8f7f8 00060000 c07ed6a8
[   92.820678] bb40: c07ed6f8 cf05e940 ce8dbbcc c0688d10 c0688d10 00000064 c084ff84 c0086ae8
[   92.829559] bb60: c07ed6a8 c07ed6f8 ce8dbc38 c00888c8 c080d678 0000000a ce8dbc38 c00861e0
[   92.838409] bb80: 0000019a c0013cf4 c0047198 60000113 fa200000 c045ef78 c0047188 ceb26080
[   92.847259] bba0: c084ff00 00000000 00000002 c084ff84 ce8da000 ce8dbc6c c0688d10 c0688d10
[   92.856140] bbc0: 00000064 c084ff84 ce8da000 ce8dbbe0 c0047188 c0047198 60000113 ffffffff
[   92.864990] bbe0: c07eeb38 c00861e0 0000000a c084ff00 c083d480 c0689084 00000000 ce8da000
[   92.873870] bc00: 00000025 00000000 ce8dbc6c c0676ebc 000f4240 00000064 00000000 c004773c
[   92.882720] bc20: c080d678 c0013cf8 c045edd4 60000113 fa200000 c045ef78 c045edd0 00000001
[   92.891571] bc40: ceb26080 00000000 c0676b6c ce8da000 00000001 00001008 c0676ebc 000f4240
[   92.900451] bc60: 00000064 00000000 ce8da000 ce8dbc80 c045edd0 c045edd4 60000113 ffffffff
[   92.909301] bc80: ce8dbd40 c0016bd0 00001008 00001008 d0960ca8 ce8dbd40 00000000 c0008580
[   92.918182] bca0: 00000000 c045edfc 00000007 00000000 00000000 d0960ca8 ffffffff 00000000
[   92.927032] bcc0: c083fa2c c083fa50 c0688ee8 00000035 ce8dbd15 c083fa2c c0688ee8 c004187c
[   92.935882] bce0: ce8da000 c0688ee8 86c20000 0000000b 0000000f 00000015 10624dd3 60000013
[   92.944763] bd00: cf0001c0 205b0000 32392020 3131322e 5d313831 ce8d0020 ce8da000 00000000
[   92.953613] bd20: 00000001 00000002 bf005b04 80000013 ffffffff ce8dbd74 00000001 c045ef1c
[   92.962493] bd40: 00000000 000003e8 000003e7 00000001 d0960ca8 00000000 000000ff f39d7968
[   92.971343] bd60: 00000001 000f4240 00000064 00000000 ce8dbc50 ce8dbd88 bf005aec bf005b04
[   92.980194] bd80: 80000013 ffffffff 00000001 00000000 000000ff ce840000 00000000 d0911120
[   92.989074] bda0: ce840014 00000000 00000000 00000001 00000000 bf01178c 00000064 00000000
[   92.997924] bdc0: ce840000 bf011914 00000000 ce840000 d0911120 bf00ed34 ce840000 00000000
[   93.006774] bde0: ce840000 00000000 00000000 bf01c40c ffffffff bf011b7c ffffffff c045ee08
[   93.015655] be00: 0698a3aa 0698a3aa 00000000 c002de64 bf01c414 bf015ebc bf01c3a0 ceaff4c0
[   93.024505] be20: 00000000 ceaff4c0 00000000 bf001738 ce8dbe60 bf0016c8 00000000 bf0085c4
[   93.033355] be40: ceaff4c0 ce8dbe60 00000000 00000000 00000000 00000000 bf001984 bf0016c8
[   93.042205] be60: 00000000 00000000 00000000 00000000 ffffffff ce807c00 00000001 ce840000
[   93.051086] be80: ce8dbec0 ce8da000 ce8ea004 bf00fb34 ce807c00 00000001 ce8dbec0 ce8ea008
[   93.059936] bea0: 0d80004c ce807c00 00000001 ce8ea004 ce8ea004 bf00e260 00000000 00000000
[   93.068786] bec0: 00000000 00000000 00000000 0f099000 00000000 00000000 00000000 00000000
[   93.077667] bee0: ce8ea000 ce8eb000 ceb77800 bf015668 0000005c ce807c00 ce8eb000 ceb77800
[   93.086517] bf00: ce8dbf30 0000005c ce8ea000 ce8eb000 00000000 bf014538 000003ea bea00164
[   93.095367] bf20: c01c675c 00000003 00000000 bf00df60 0000005c 0000001c bea00194 00000054
[   93.104248] bf40: bea001e8 00000008 00000001 ceb77800 00000000 cf055e80 00005452 c00eed38
[   93.113098] bf60: 0000000a c084ff00 c083d480 c0689084 00000000 cf055e80 bea00164 c01c675c
[   93.121978] bf80: 00000003 c00ef000 bea001e8 00000000 0001c030 bea006b4 bea001e8 00000036
[   93.130828] bfa0: c0012fc8 c0012e00 0001c030 bea006b4 00000003 c01c675c bea00164 00000001
[   93.139678] bfc0: 0001c030 bea006b4 bea001e8 00000036 bea006b0 00000000 bea002ac 00000000
[   93.148529] bfe0: bea00a68 bea00160 401f9ab0 40170d7c 40000010 00000003 00000000 00000000
[   93.157440] [<c002bdd8>] (omap3_l3_app_irq+0x118/0x11c) from [<c00868c4>] (handle_irq_event_percpu+0x68/0x250)
[   93.168304] [<c00868c4>] (handle_irq_event_percpu+0x68/0x250) from [<c0086ae8>] (handle_irq_event+0x3c/0x5c)
[   93.178985] [<c0086ae8>] (handle_irq_event+0x3c/0x5c) from [<c00888c8>] (handle_level_irq+0x90/0x10c)
[   93.188995] [<c00888c8>] (handle_level_irq+0x90/0x10c) from [<c00861e0>] (generic_handle_irq+0x34/0x44)
[   93.199188] [<c00861e0>] (generic_handle_irq+0x34/0x44) from [<c0013cf4>] (handle_IRQ+0x38/0x84)
[   93.208648] [<c0013cf4>] (handle_IRQ+0x38/0x84) from [<c045ef78>] (__irq_svc+0x38/0xa0)
[   93.217285] [<c045ef78>] (__irq_svc+0x38/0xa0) from [<c0047198>] (__do_softirq+0xa4/0x1fc)
[   93.226257] [<c0047198>] (__do_softirq+0xa4/0x1fc) from [<c004773c>] (irq_exit+0x94/0xac)
[   93.235168] [<c004773c>] (irq_exit+0x94/0xac) from [<c0013cf8>] (handle_IRQ+0x3c/0x84)
[   93.243682] [<c0013cf8>] (handle_IRQ+0x3c/0x84) from [<c045ef78>] (__irq_svc+0x38/0xa0)
[   93.252319] [<c045ef78>] (__irq_svc+0x38/0xa0) from [<c045edd4>] (_raw_spin_unlock_irq+0x28/0x2c)
[   93.261962] [<c045edd4>] (_raw_spin_unlock_irq+0x28/0x2c) from [<c0016bd0>] (die+0xa4/0x118)
[   93.271118] [<c0016bd0>] (die+0xa4/0x118) from [<c0008580>] (do_DataAbort+0x98/0x9c)
[   93.279510] [<c0008580>] (do_DataAbort+0x98/0x9c) from [<c045ef1c>] (__dabt_svc+0x3c/0x60)
[   93.288452] Exception stack(0xce8dbd40 to 0xce8dbd88)
[   93.293945] bd40: 00000000 000003e8 000003e7 00000001 d0960ca8 00000000 000000ff f39d7968
[   93.302825] bd60: 00000001 000f4240 00000064 00000000 ce8dbc50 ce8dbd88 bf005aec bf005b04
[   93.311645] bd80: 80000013 ffffffff
[   93.315734] [<c045ef1c>] (__dabt_svc+0x3c/0x60) from [<bf005b04>] (PollForValueKM+0x58/0xcc [pvrsrvkm])
[   93.326477] [<bf005b04>] (PollForValueKM+0x58/0xcc [pvrsrvkm]) from [<bf01178c>] (SGXResetInvalDC.clone.2+0x58/0x60 [pvrsrvkm])
[   93.339569] [<bf01178c>] (SGXResetInvalDC.clone.2+0x58/0x60 [pvrsrvkm]) from [<bf011914>] (SGXReset+0x180/0x19c [pvrsrvkm])
[   93.352233] [<bf011914>] (SGXReset+0x180/0x19c [pvrsrvkm]) from [<bf00ed34>] (SGXInitialise+0x50/0x11c [pvrsrvkm])
[   93.364074] [<bf00ed34>] (SGXInitialise+0x50/0x11c [pvrsrvkm]) from [<bf011b7c>] (SGXPostPowerState+0x4c/0xa0 [pvrsrvkm])
[   93.376434] [<bf011b7c>] (SGXPostPowerState+0x4c/0xa0 [pvrsrvkm]) from [<bf001738>] (PVRSRVDevicePostPowerStateKM_AnyVaCb+0x70/0x88 [pvrsrvkm])
[   93.390747] [<bf001738>] (PVRSRVDevicePostPowerStateKM_AnyVaCb+0x70/0x88 [pvrsrvkm]) from [<bf0085c4>] (List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va+0x30/0x58 [pvrsr)
[   93.407318] [<bf0085c4>] (List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va+0x30/0x58 [pvrsrvkm]) from [<bf001984>] (PVRSRVSetDevicePowerStateKM+0x6c/0xa8 [pvrsrvkm])
[   93.423126] [<bf001984>] (PVRSRVSetDevicePowerStateKM+0x6c/0xa8 [pvrsrvkm]) from [<bf00fb34>] (SGXScheduleCCBCommandKM+0x2c/0xa4 [pvrsrvkm])
[   93.437408] [<bf00fb34>] (SGXScheduleCCBCommandKM+0x2c/0xa4 [pvrsrvkm]) from [<bf00e260>] (SGXSubmitTransferKM+0x218/0x2a4 [pvrsrvkm])
[   93.451110] [<bf00e260>] (SGXSubmitTransferKM+0x218/0x2a4 [pvrsrvkm]) from [<bf015668>] (SGXSubmitTransferBW+0x154/0x160 [pvrsrvkm])
[   93.464691] [<bf015668>] (SGXSubmitTransferBW+0x154/0x160 [pvrsrvkm]) from [<bf014538>] (BridgedDispatchKM+0xd8/0x130 [pvrsrvkm])
[   93.477966] [<bf014538>] (BridgedDispatchKM+0xd8/0x130 [pvrsrvkm]) from [<bf00df60>] (PVRSRV_BridgeDispatchKM+0xc0/0xec [pvrsrvkm])
[   93.491088] [<bf00df60>] (PVRSRV_BridgeDispatchKM+0xc0/0xec [pvrsrvkm]) from [<c00eed38>] (do_vfs_ioctl+0x7c/0x2d0)
[   93.502380] [<c00eed38>] (do_vfs_ioctl+0x7c/0x2d0) from [<c00ef000>] (sys_ioctl+0x74/0x7c)
[   93.511383] [<c00ef000>] (sys_ioctl+0x74/0x7c) from [<c0012e00>] (ret_fast_syscall+0x0/0x3c)
[   93.520416] Code: e591c008 e28c3e53 e1c320d0 eaffffcb (e7f001f2)
[   93.527191] ---[ end trace 6f2dcf7f5b0d3239 ]---
[   93.532257] Kernel panic - not syncing: Fatal exception in interrupt
[   93.539245] [<c0018edc>] (unwind_backtrace+0x0/0xfc) from [<c045b4b8>] (panic+0x64/0x1b0)
[   93.548248] [<c045b4b8>] (panic+0x64/0x1b0) from [<c0016c44>] (arm_notify_die+0x0/0x50)
[   93.557037] [<c0016c44>] (arm_notify_die+0x0/0x50) from [<00000004>] (0x4)

output of gfx_check.sh:

WSEGL settings
[default]
WindowSystem=libpvrPVR2D_FRONTWSEGL.so
------
ARM CPU information
Processor    : ARMv7 Processor rev 3 (v7l)
BogoMIPS    : 123.06
Features    : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x1
CPU part    : 0xc08
CPU revision    : 3

Hardware    : OMAP3 SD
Revision    : 0020
Serial        : 0000000000000000
------
SGX driver information
Version 1.6.16.4117 (release) /home/oe/Workspace/oe_sd/tmp/build/work/omap3sd-angstrom-linux-gnueabi/omap3-sgx-modules-1.6.16.4117-r100e/Graphics_SDK_4_05_00_03/GFX_Linux_KM
System Version String: SGX revision = 1.2.1
------
Framebuffer settings

mode "800x480-60"
    # D: 33.230 MHz, H: 31.261 kHz, V: 59.772 Hz
    geometry 800 480 800 480 32
    timings 30093 89 164 23 10 10 10
    rgba 8/16,8/8,8/0,8/24
endmode

Frame buffer device information:
    Name        : omapfb
    Address     : 0x8f600000
    Size        : 1536000
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 3200
    Accelerator : No
------
Rotation settings
0
------
Kernel Module information
Module                  Size  Used by
bufferclass_ti          5747  0
omaplfb                12765  0
pvrsrvkm              152608  2 bufferclass_ti,omaplfb
------
Boot settings
console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
------
Linux Kernel version
Linux omap3sd 3.2.1 #6 Mon Jan 30 13:04:36 CET 2012 armv7l GNU/Linux

  • Has the SGX clock been enabled ? Has the /etc/init.d/omap-demo init script been run before running the driver ?

  • we use openembedded which includes this startup script (runs after boot):

    http://arago-project.org/git/?p=arago.git;a=blob_plain;f=recipes/powervr-drivers/libgles-omap3/rc.pvr;hb=HEAD

    in the mean time i managed to compile version 1.4.14.2616 against my kernel (some compile fixes were needed) and this Version works.

    What changes are required to move to the newer Version? Was there something changed like clock activation?

    I also noticed that the crash happens while waiting on a register change, i did put a trace there to look at the address of the register in question and the exact same address seems to be successfully fetched during the run of the init script (rc.pvr).

    Maybe it has something to do with power-management (PVRSRVSetDevicePowerStateKM is in the stack trace)?

  • Hi,

    Thanks a lot for the logs/details provided. Appreciate it.

    Did you see the problem with 2.6.37 kernel as well?

    The graphics sdk release notes would provide details on toolchain/kernel versions validated with for all supported platforms  -

    http://processors.wiki.ti.com/index.php/RN_4_05_00_03

    In order to isolate the problem, can you try the manual steps below-

    (rmmod first in case already inserted by default & then do below steps)

    devmem2 0x48004B48 w 0x2
    devmem2 0x48004B10 w 0x1
    devmem2 0x48004B00 w 0x2

    insmod pvrsrvkm.ko

    insmod omaplfb.ko

    Run /usr/bin/ES3.0/pvrsrvinit

    If you do not see any problems  with above steps, try running any 3D demo under -

    /usr/bin/SGX/demos/Raw/OGLES2.

    Also you had mentioned it works fine with 1.4.14.2616.  Did you try other 1.6 versions before trying this & still saw the issue with any 1.6 version ?

    Thanks,

    Prathap.

  • Hi,

    first of all thanks for your interest in this issue!

    i disabled my init-script and tried the commands mentioned. The result was, that /usr/bin/ES3.0/pvrsrvinit died with the same stack trace as the test application before.

    Most interesting is that the init-script does something very similar and seems to succeed.
    it comes essentially down to:

    insmod /lib/modules/3.2.1/kernel/drivers/gpu/pvr/pvrsrvkm.ko
    modprobe omaplfb
    modprobe bufferclass_ti
    devmem2 0x48004B48 w 0x2
    devmem2 0x48004B10 w 0x1
    devmem2 0x48004B00 w 0x2
    /usr/bin/pvrsrvinit

    this runs without error until a test application is started (i only have pvr2d_test on my device at the moment)
    while if i turn it around:

    devmem2 0x48004B48 w 0x2
    devmem2 0x48004B10 w 0x1
    devmem2 0x48004B00 w 0x2
    insmod /lib/modules/3.2.1/kernel/drivers/gpu/pvr/pvrsrvkm.ko
    modprobe omaplfb
    modprobe bufferclass_ti
    /usr/bin/pvrsrvinit

    it crashes with the same stacktrace as the test application would.

    I've yet to try other 1.6 versions.


  • Hi,

    Thanks a lot  for the clear explanation/steps.

    Now you have mentioned that -

    insmod /lib/modules/3.2.1/kernel/drivers/gpu/pvr/pvrsrvkm.ko
    modprobe omaplfb
    modprobe bufferclass_ti
    devmem2 0x48004B48 w 0x2
    devmem2 0x48004B10 w 0x1
    devmem2 0x48004B00 w 0x2
    /usr/bin/pvrsrvinit

    this runs without error until a test application is started.

    At this stage ,before starting application, can you read back the register values using devmem. See if its the same values as we wrote above.

    If it has changed, run the 3 devmem commands again just before running the test app & see if app crashes now.

    The description you provided is conveying that somehow SGX clocks are getting disabled. Did you see this with 2.6.37 kernel as well?

    Thanks,

    Prathap.

  • Hi,

    We ran the tests again on OMAP3530 EVM to confirm (with 2.6.37 kernel as mentioned in release notes) and it works fine. Logs below-

    # cputype
    OMAP3530
    # ./pvr2d_test  //No error or crash seen
    # /opt/gfxsdkdemos/ogles2/OGLES2ChameleonMan  //3D demos run fine
    PVRShell: EGL 1.4 initialized
    # cat /proc/pvr/version
    Version 1.6.16.4117 (release) /home1/prathap/Graphics_SDK_4_05_00_03/GFX_Linux_KM
    System Version String: SGX revision = 1.2.1
    # uname -a
    2.6.37 #8 Tue Jan 31 11:38:57 IST 2012 armv7l unknown

    Can you check the ouput of cputype command on your board? Also it would be helpful to see results on your system against 2.6.37 kernel.

    This would help us isolate if its a setup/environment or a kernel specific issue.

    Also share the download link to the 3.2 kernel sources you are using.

    Also, you can try the build and install of standalone graphics SDK against the 3.2 kernel you have if possible. The  latest release package 04.05.00.03 is available at -

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html

    User guide -

    http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide

    Release notes-

    http://processors.wiki.ti.com/index.php/RN_4_05_00_03

    Thanks,

    Prathap.

     

  • Hello,

    I also get kernel BUGs in omap_l3_smx.c, and this is with kernel 3.2.2. It happens when I run audio at lower latencies, which causes more interrupts to happen. Simultaneously as the CPU load gets higher (for instance, if I increase the amount of audio DSP), then I get these kernel BUGs more frequently. If you want some more of these kernel BUG traces, just let me know -- I have lots of them.

    Best regards,

    Edgar

    uname -a

    returns

    Linux omap 3.2.2-x4 #1 SMP Fri Feb 3 13:34:11 PST 2012 armv7l GNU/Linux

    [ 5105.119262] ------------[ cut here ]------------        
    [ 5105.127624] kernel BUG at arch/arm/mach-omap2/omap_l3_smx.c:186!
    [ 5105.137359] Internal error: Oops - undefined instruction: 0 [#1] SMP
    [ 5105.147460] Modules linked in: snd_seq_dummy snd_soc_twl4030 snd_soc_omap3beags
    [ 5105.183959] CPU: 0 Not tainted (3.2.2-x4 #1)
    [ 5105.192474] PC is at omap3_l3_app_irq+0x44/0x11c
    [ 5105.201019] LR is at handle_irq_event_percpu+0x6c/0x1e4
    [ 5105.210174] pc : [<c0028498>] lr : [<c009aeac>] psr: 20000193
    [ 5105.210174] sp : ddcfde18 ip : de87d400 fp : 00000000
    [ 5105.229522] r10: 00000000 r9 : 00000000 r8 : de805780
    [ 5105.238677] r7 : ddcfded4 r6 : 00000000 r5 : 0000000a r4 : 00400000
    [ 5105.249206] r3 : 00000000 r2 : 00400000 r1 : 00000000 r0 : 00400000
    [ 5105.259704] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
    [ 5105.270965] Control: 10c5387d Table: 9ea50019 DAC: 00000015
    [ 5105.280700] Process pd (pid: 1986, stack limit = 0xddcfc2f8)
    [ 5105.290344] Stack: (0xddcfde18 to 0xddcfe000)
    [ 5105.298553] de00: c0887f1
    [ 5105.310791] de20: 00000000 0000000c fa200000 de878380 0000000a fa200000 ddcfdec
    [ 5105.323059] de40: de805780 de878380 00535000 de805780 de8057d4 fa200000 ddcfde0
    [ 5105.335266] de60: 00000040 00000000 00000000 c009b064 de805780 00000000 fa20000
    [ 5105.347381] de80: 0000000a c009a868 0000000a c000dd5c bf0c410c bf0c4cb0 2000008
    [ 5105.359588] dea0: 00000000 00000000 00000000 bf0c891c ddca9c00 c142d58c 0000000
    [ 5105.371734] dec0: 00000000 00000040 00000000 00000000 00000280 ddcfdee8 bf0c410
    [ 5105.383880] dee0: 20000013 ffffffff 00000040 00000000 c142d58c 01419fc8 000000c
    [ 5105.396026] df00: 00080802 00000280 c142d500 c142d500 00000040 01419fc8 0000000
    [ 5105.408172] df20: ddcfc000 00000000 000a0f70 bf0c4d84 bf0c31b0 01419fc8 bec7630
    [ 5105.420318] df40: 400c4150 bf0c129c ddcfde48 00000000 01419fc8 00000040 bec7630
    [ 5105.432464] df60: bec763fc 400c4150 00000009 c0113698 debd23c0 00000009 debd23c
    [ 5105.444580] df80: 400c4150 c011371c 00000009 00000001 01419db8 01419e28 0000006
    [ 5105.456665] dfa0: c000d624 c000d4a0 01419db8 01419e28 00000009 400c4150 bec763c
    [ 5105.468780] dfc0: 01419db8 01419e28 00000000 00000036 00000001 00000000 004a9f0
    [ 5105.480895] dfe0: 01419fc8 bec763f8 4014ad5f 40300d6c 60000010 00000009 0000000
    [ 5105.493011] [<c0028498>] (omap3_l3_app_irq+0x44/0x11c) from [<c009aeac>] (hand)
    [ 5105.506958] [<c009aeac>] (handle_irq_event_percpu+0x6c/0x1e4) from [<c009b064>)
    [ 5105.520782] [<c009b064>] (handle_irq_event+0x40/0x60) from [<c009d7d0>] (handl)
    [ 5105.533935] [<c009d7d0>] (handle_level_irq+0xd4/0x118) from [<c009a868>] (gene)
    [ 5105.547332] [<c009a868>] (generic_handle_irq+0x20/0x30) from [<c000dd5c>] (han)
    [ 5105.560058] [<c000dd5c>] (handle_IRQ+0x78/0xb8) from [<c058aa38>] (__irq_svc+0)
    [ 5105.572113] [<c058aa38>] (__irq_svc+0x38/0xe0) from [<bf0c4cb0>] (snd_pcm_lib_)
    [ 5105.586029] [<bf0c4cb0>] (snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]) from [<bf0)
    [ 5105.601654] [<bf0c4d84>] (snd_pcm_lib_write+0x5c/0x64 [snd_pcm]) from [<bf0c12)
    [ 5105.617706] [<bf0c129c>] (snd_pcm_playback_ioctl1+0x104/0x284 [snd_pcm]) from )
    [ 5105.632659] [<c0113698>] (do_vfs_ioctl+0x2a0/0x2d8) from [<c011371c>] (sys_ioc)
    [ 5105.645263] [<c011371c>] (sys_ioctl+0x4c/0x6c) from [<c000d4a0>] (ret_fast_sys)
    [ 5105.657989] Code: e0000002 e0011003 e1904001 0a000002 (e7f001f2)
    [ 5105.668518] BUG: scheduling while atomic: pd/1986/0x00010000
    [ 5105.678527] Modules linked in: snd_seq_dummy snd_soc_twl4030 snd_soc_omap3beags
    [ 5105.716522]
    [ 5105.721984] Pid: 1986, comm: pd
    [ 5105.730865] CPU: 0 Not tainted (3.2.2-x4 #1)
    [ 5105.739654] PC is at snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]
    [ 5105.749633] LR is at snd_pcm_update_state+0xf4/0x10c [snd_pcm]
    [ 5105.759643] pc : [<bf0c4cb0>] lr : [<bf0c410c>] psr: 20000013
    [ 5105.759674] sp : ddcfdee8 ip : 00000280 fp : 00000000
    [ 5105.779449] r10: 00000000 r9 : 00000040 r8 : 00000000
    [ 5105.788879] r7 : 00000040 r6 : 00000001 r5 : c142d58c r4 : ddca9c00
    [ 5105.799682] r3 : bf0c891c r2 : 00000000 r1 : 00000000 r0 : 00000000
    [ 5105.810455] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    [ 5105.821838] Control: 10c5387d Table: 9ea50019 DAC: 00000015
    [ 5105.831756] [<c001352c>] (unwind_backtrace+0x0/0xe0) from [<c0588358>] (__sche)
    [ 5105.844787] [<c0588358>] (__schedule+0x70/0x638) from [<c058903c>] (schedule_t)
    [ 5105.858062] [<c058903c>] (schedule_timeout+0x258/0x29c) from [<c05881ac>] (wai)
    [ 5105.871856] [<c05881ac>] (wait_for_common+0xe4/0x18c) from [<c0452b24>] (omap_)
    [ 5105.885772] [<c0452b24>] (omap_i2c_xfer_msg+0x1b4/0x274) from [<c0452c5c>] (om)
    [ 5105.899414] [<c0452c5c>] (omap_i2c_xfer+0x78/0xc8) from [<c0450a70>] (i2c_tran)
    [ 5105.912536] [<c0450a70>] (i2c_transfer+0xbc/0x110) from [<c03c75b4>] (twl_i2c_)
    [ 5105.925659] [<c03c75b4>] (twl_i2c_read+0xe4/0x12c) from [<c038d528>] (twlreg_g)
    [ 5105.938507] [<c038d528>] (twlreg_grp+0x18/0x24) from [<c038d564>] (twl4030reg_)
    [ 5105.952056] [<c038d564>] (twl4030reg_is_enabled+0x8/0x14) from [<c0388980>] (_)
    [ 5105.966674] [<c0388980>] (_regulator_is_enabled+0x1c/0x28) from [<c038aa9c>] ()
    [ 5105.980987] sched: RT throttling activated
    [ 5105.989471] [<c038aa9c>] (_regulator_enable+0x38/0x26c) from [<c038c618>] (reg)
    [ 5106.003448] [<c038c618>] (regulator_enable+0x34/0x60) from [<c0372568>] (omapd)
    [ 5106.018310] [<c0372568>] (omapdss_dpi_display_enable+0x58/0x1a0) from [<c03841)
    [ 5106.033355] [<c03841a0>] (panel_dvi_power_on+0x20/0x54) from [<c03841f4>] (pan)
    [ 5106.047454] [<c03841f4>] (panel_dvi_resume+0x20/0x3c) from [<c0381780>] (omapf)
    [ 5106.061065] [<c0381780>] (omapfb_blank+0xc8/0x174) from [<c0350368>] (fb_blank)
    [ 5106.073913] [<c0350368>] (fb_blank+0x3c/0x68) from [<c0359ae8>] (fbcon_blank+0)
    [ 5106.086761] [<c0359ae8>] (fbcon_blank+0x114/0x254) from [<c03a3a68>] (do_unbla)
    [ 5106.100646] [<c03a3a68>] (do_unblank_screen+0x100/0x198) from [<c033cf98>] (bu)
    [ 5106.114593] [<c033cf98>] (bust_spinlocks+0x20/0x44) from [<c0010c98>] (die+0x9)
    [ 5106.127227] [<c0010c98>] (die+0x9c/0x128) from [<c00084a4>] (do_undefinstr+0x1)
    [ 5106.139892] [<c00084a4>] (do_undefinstr+0x160/0x184) from [<c058ab28>] (__und_)
    [ 5106.153015] Exception stack(0xddcfdd90 to 0xddcfddd8)
    [ 5106.162536] dd80: 00400000 00000000 0040000
    [ 5106.175292] dda0: 00400000 0000000a 00000000 ddcfded4 de805780 00000000 0000000
    [ 5106.188018] ddc0: de87d400 ddcfde18 c009aeac c0028498 20000193 ffffffff
    [ 5106.199066] [<c058ab28>] (__und_svc+0x48/0x60) from [<c0028498>] (omap3_l3_app)
    [ 5106.212219] [<c0028498>] (omap3_l3_app_irq+0x44/0x11c) from [<c009aeac>] (hand)
    [ 5106.226806] [<c009aeac>] (handle_irq_event_percpu+0x6c/0x1e4) from [<c009b064>)
    [ 5106.241241] [<c009b064>] (handle_irq_event+0x40/0x60) from [<c009d7d0>] (handl)
    [ 5106.254913] [<c009d7d0>] (handle_level_irq+0xd4/0x118) from [<c009a868>] (gene)
    [ 5106.268737] [<c009a868>] (generic_handle_irq+0x20/0x30) from [<c000dd5c>] (han)
    [ 5106.281951] [<c000dd5c>] (handle_IRQ+0x78/0xb8) from [<c058aa38>] (__irq_svc+0)
    [ 5106.294464] [<c058aa38>] (__irq_svc+0x38/0xe0) from [<bf0c4cb0>] (snd_pcm_lib_)
    [ 5106.308837] [<bf0c4cb0>] (snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]) from [<bf0)
    [ 5106.324951] [<bf0c4d84>] (snd_pcm_lib_write+0x5c/0x64 [snd_pcm]) from [<bf0c12)
    [ 5106.341522] [<bf0c129c>] (snd_pcm_playback_ioctl1+0x104/0x284 [snd_pcm]) from )
    [ 5106.356964] [<c0113698>] (do_vfs_ioctl+0x2a0/0x2d8) from [<c011371c>] (sys_ioc)
    [ 5106.370086] [<c011371c>] (sys_ioctl+0x4c/0x6c) from [<c000d4a0>] (ret_fast_sys)
    [ 5106.383361] ------------[ cut here ]------------
    [ 5106.392608] WARNING: at kernel/timer.c:1011 del_timer_sync+0x34/0x54()
    [ 5106.403869] Modules linked in: snd_seq_dummy snd_soc_twl4030 snd_soc_omap3beags
    [ 5106.443237] [<c001352c>] (unwind_backtrace+0x0/0xe0) from [<c0047fd8>] (warn_s)
    [ 5106.457794] [<c0047fd8>] (warn_slowpath_common+0x4c/0x64) from [<c0048008>] (w)
    [ 5106.472595] [<c0048008>] (warn_slowpath_null+0x18/0x1c) from [<c0056654>] (del)
    [ 5106.486907] [<c0056654>] (del_timer_sync+0x34/0x54) from [<c0589044>] (schedul)
    [ 5106.501159] [<c0589044>] (schedule_timeout+0x260/0x29c) from [<c05881ac>] (wai)
    [ 5106.515594] [<c05881ac>] (wait_for_common+0xe4/0x18c) from [<c0452b24>] (omap_)
    [ 5106.530181] [<c0452b24>] (omap_i2c_xfer_msg+0x1b4/0x274) from [<c0452c5c>] (om)
    [ 5106.544525] [<c0452c5c>] (omap_i2c_xfer+0x78/0xc8) from [<c0450a70>] (i2c_tran)
    [ 5106.558288] [<c0450a70>] (i2c_transfer+0xbc/0x110) from [<c03c75b4>] (twl_i2c_)
    [ 5106.572021] [<c03c75b4>] (twl_i2c_read+0xe4/0x12c) from [<c038d528>] (twlreg_g)
    [ 5106.585479] [<c038d528>] (twlreg_grp+0x18/0x24) from [<c038d564>] (twl4030reg_)
    [ 5106.599548] [<c038d564>] (twl4030reg_is_enabled+0x8/0x14) from [<c0388980>] (_)
    [ 5106.614624] [<c0388980>] (_regulator_is_enabled+0x1c/0x28) from [<c038aa9c>] ()
    [ 5106.629486] [<c038aa9c>] (_regulator_enable+0x38/0x26c) from [<c038c618>] (reg)
    [ 5106.643859] [<c038c618>] (regulator_enable+0x34/0x60) from [<c0372568>] (omapd)
    [ 5106.659057] [<c0372568>] (omapdss_dpi_display_enable+0x58/0x1a0) from [<c03841)
    [ 5106.674499] [<c03841a0>] (panel_dvi_power_on+0x20/0x54) from [<c03841f4>] (pan)
    [ 5106.688903] [<c03841f4>] (panel_dvi_resume+0x20/0x3c) from [<c0381780>] (omapf)
    [ 5106.702880] [<c0381780>] (omapfb_blank+0xc8/0x174) from [<c0350368>] (fb_blank)
    [ 5106.716064] [<c0350368>] (fb_blank+0x3c/0x68) from [<c0359ae8>] (fbcon_blank+0)
    [ 5106.729278] [<c0359ae8>] (fbcon_blank+0x114/0x254) from [<c03a3a68>] (do_unbla)
    [ 5106.743530] [<c03a3a68>] (do_unblank_screen+0x100/0x198) from [<c033cf98>] (bu)
    [ 5106.757873] [<c033cf98>] (bust_spinlocks+0x20/0x44) from [<c0010c98>] (die+0x9)
    [ 5106.771301] [<c0010c98>] (die+0x9c/0x128) from [<c00084a4>] (do_undefinstr+0x1)
    [ 5106.784545] [<c00084a4>] (do_undefinstr+0x160/0x184) from [<c058ab28>] (__und_)
    [ 5106.798065] Exception stack(0xddcfdd90 to 0xddcfddd8)
    [ 5106.808013] dd80: 00400000 00000000 0040000
    [ 5106.821289] dda0: 00400000 0000000a 00000000 ddcfded4 de805780 00000000 0000000
    [ 5106.834533] ddc0: de87d400 ddcfde18 c009aeac c0028498 20000193 ffffffff
    [ 5106.846069] [<c058ab28>] (__und_svc+0x48/0x60) from [<c0028498>] (omap3_l3_app)
    [ 5106.859741] [<c0028498>] (omap3_l3_app_irq+0x44/0x11c) from [<c009aeac>] (hand)
    [ 5106.874786] [<c009aeac>] (handle_irq_event_percpu+0x6c/0x1e4) from [<c009b064>)
    [ 5106.889739] [<c009b064>] (handle_irq_event+0x40/0x60) from [<c009d7d0>] (handl)
    [ 5106.904052] [<c009d7d0>] (handle_level_irq+0xd4/0x118) from [<c009a868>] (gene)
    [ 5106.918579] [<c009a868>] (generic_handle_irq+0x20/0x30) from [<c000dd5c>] (han)
    [ 5106.932434] [<c000dd5c>] (handle_IRQ+0x78/0xb8) from [<c058aa38>] (__irq_svc+0)
    [ 5106.945495] [<c058aa38>] (__irq_svc+0x38/0xe0) from [<bf0c4cb0>] (snd_pcm_lib_)
    [ 5106.960357] [<bf0c4cb0>] (snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]) from [<bf0)
    [ 5106.977386] [<bf0c4d84>] (snd_pcm_lib_write+0x5c/0x64 [snd_pcm]) from [<bf0c12)
    [ 5106.994354] [<bf0c129c>] (snd_pcm_playback_ioctl1+0x104/0x284 [snd_pcm]) from )
    [ 5107.010162] [<c0113698>] (do_vfs_ioctl+0x2a0/0x2d8) from [<c011371c>] (sys_ioc)
    [ 5107.023590] [<c011371c>] (sys_ioctl+0x4c/0x6c) from [<c000d4a0>] (ret_fast_sys)
    [ 5107.037078] ---[ end trace 3647bd3b3c32fc05 ]---
    [ 5107.046508] BUG: scheduling while atomic: pd/1986/0x00010000
    [ 5107.056915] Modules linked in: snd_seq_dummy snd_soc_twl4030 snd_soc_omap3beags
    [ 5107.095947]
    [ 5107.102081] Pid: 1986, comm: pd
    [ 5107.111572] CPU: 0 Tainted: G W (3.2.2-x4 #1)
    [ 5107.121917] PC is at snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]
    [ 5107.132415] LR is at snd_pcm_update_state+0xf4/0x10c [snd_pcm]
    [ 5107.142944] pc : [<bf0c4cb0>] lr : [<bf0c410c>] psr: 20000013
    [ 5107.142944] sp : ddcfdee8 ip : 00000280 fp : 00000000
    [ 5107.163665] r10: 00000000 r9 : 00000040 r8 : 00000000
    [ 5107.173492] r7 : 00000040 r6 : 00000001 r5 : c142d58c r4 : ddca9c00
    [ 5107.184661] r3 : bf0c891c r2 : 00000000 r1 : 00000000 r0 : 00000000
    [ 5107.195800] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    [ 5107.207550] Control: 10c5387d Table: 9ea50019 DAC: 00000015
    [ 5107.217773] [<c001352c>] (unwind_backtrace+0x0/0xe0) from [<c0588358>] (__sche)
    [ 5107.231079] [<c0588358>] (__schedule+0x70/0x638) from [<c058903c>] (schedule_t)
    [ 5107.244598] [<c058903c>] (schedule_timeout+0x258/0x29c) from [<c05881ac>] (wai)
    [ 5107.258605] [<c05881ac>] (wait_for_common+0xe4/0x18c) from [<c0452b24>] (omap_)
    [ 5107.272705] [<c0452b24>] (omap_i2c_xfer_msg+0x1b4/0x274) from [<c0452c5c>] (om)
    [ 5107.286529] [<c0452c5c>] (omap_i2c_xfer+0x78/0xc8) from [<c0450a70>] (i2c_tran)
    [ 5107.299774] [<c0450a70>] (i2c_transfer+0xbc/0x110) from [<c03c75b4>] (twl_i2c_)
    [ 5107.313018] [<c03c75b4>] (twl_i2c_read+0xe4/0x12c) from [<c038d528>] (twlreg_g)
    [ 5107.325958] [<c038d528>] (twlreg_grp+0x18/0x24) from [<c038d564>] (twl4030reg_)
    [ 5107.339538] [<c038d564>] (twl4030reg_is_enabled+0x8/0x14) from [<c0388980>] (_)
    [ 5107.354156] [<c0388980>] (_regulator_is_enabled+0x1c/0x28) from [<c038aa9c>] ()
    [ 5107.369354] [<c038aa9c>] (_regulator_enable+0x38/0x26c) from [<c038c618>] (reg)
    [ 5107.383361] [<c038c618>] (regulator_enable+0x34/0x60) from [<c0372568>] (omapd)
    [ 5107.398284] [<c0372568>] (omapdss_dpi_display_enable+0x58/0x1a0) from [<c03841)
    [ 5107.413330] [<c03841a0>] (panel_dvi_power_on+0x20/0x54) from [<c03841f4>] (pan)
    [ 5107.427398] [<c03841f4>] (panel_dvi_resume+0x20/0x3c) from [<c0381780>] (omapf)
    [ 5107.440979] [<c0381780>] (omapfb_blank+0xc8/0x174) from [<c0350368>] (fb_blank)
    [ 5107.453796] [<c0350368>] (fb_blank+0x3c/0x68) from [<c0359ae8>] (fbcon_blank+0)
    [ 5107.466613] [<c0359ae8>] (fbcon_blank+0x114/0x254) from [<c03a3a68>] (do_unbla)
    [ 5107.480438] [<c03a3a68>] (do_unblank_screen+0x100/0x198) from [<c033cf98>] (bu)
    [ 5107.494354] [<c033cf98>] (bust_spinlocks+0x20/0x44) from [<c0010c98>] (die+0x9)
    [ 5107.506927] [<c0010c98>] (die+0x9c/0x128) from [<c00084a4>] (do_undefinstr+0x1)
    [ 5107.519561] [<c00084a4>] (do_undefinstr+0x160/0x184) from [<c058ab28>] (__und_)
    [ 5107.532653] Exception stack(0xddcfdd90 to 0xddcfddd8)
    [ 5107.542144] dd80: 00400000 00000000 0040000
    [ 5107.554931] dda0: 00400000 0000000a 00000000 ddcfded4 de805780 00000000 0000000
    [ 5107.567626] ddc0: de87d400 ddcfde18 c009aeac c0028498 20000193 ffffffff
    [ 5107.578643] [<c058ab28>] (__und_svc+0x48/0x60) from [<c0028498>] (omap3_l3_app)
    [ 5107.591766] [<c0028498>] (omap3_l3_app_irq+0x44/0x11c) from [<c009aeac>] (hand)
    [ 5107.606262] [<c009aeac>] (handle_irq_event_percpu+0x6c/0x1e4) from [<c009b064>)
    [ 5107.620727] [<c009b064>] (handle_irq_event+0x40/0x60) from [<c009d7d0>] (handl)
    [ 5107.634429] [<c009d7d0>] (handle_level_irq+0xd4/0x118) from [<c009a868>] (gene)
    [ 5107.648284] [<c009a868>] (generic_handle_irq+0x20/0x30) from [<c000dd5c>] (han)
    [ 5107.661407] [<c000dd5c>] (handle_IRQ+0x78/0xb8) from [<c058aa38>] (__irq_svc+0)
    [ 5107.673797] [<c058aa38>] (__irq_svc+0x38/0xe0) from [<bf0c4cb0>] (snd_pcm_lib_)
    [ 5107.688079] [<bf0c4cb0>] (snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]) from [<bf0)
    [ 5107.704101] [<bf0c4d84>] (snd_pcm_lib_write+0x5c/0x64 [snd_pcm]) from [<bf0c12)
    [ 5107.720611] [<bf0c129c>] (snd_pcm_playback_ioctl1+0x104/0x284 [snd_pcm]) from )
    [ 5107.735961] [<c0113698>] (do_vfs_ioctl+0x2a0/0x2d8) from [<c011371c>] (sys_ioc)
    [ 5107.748992] [<c011371c>] (sys_ioctl+0x4c/0x6c) from [<c000d4a0>] (ret_fast_sys)
    [ 5107.762145] ------------[ cut here ]------------
    [ 5107.771331] WARNING: at kernel/timer.c:1011 del_timer_sync+0x34/0x54()
    [ 5107.782562] Modules linked in: snd_seq_dummy snd_soc_twl4030 snd_soc_omap3beags
    [ 5107.821594] [<c001352c>] (unwind_backtrace+0x0/0xe0) from [<c0047fd8>] (warn_s)
    [ 5107.836090] [<c0047fd8>] (warn_slowpath_common+0x4c/0x64) from [<c0048008>] (w)
    [ 5107.850891] [<c0048008>] (warn_slowpath_null+0x18/0x1c) from [<c0056654>] (del)
    [ 5107.865142] [<c0056654>] (del_timer_sync+0x34/0x54) from [<c0589044>] (schedul)
    [ 5107.879364] [<c0589044>] (schedule_timeout+0x260/0x29c) from [<c05881ac>] (wai)
    [ 5107.893768] [<c05881ac>] (wait_for_common+0xe4/0x18c) from [<c0452b24>] (omap_)
    [ 5107.908264] [<c0452b24>] (omap_i2c_xfer_msg+0x1b4/0x274) from [<c0452c5c>] (om)
    [ 5107.922515] [<c0452c5c>] (omap_i2c_xfer+0x78/0xc8) from [<c0450a70>] (i2c_tran)
    [ 5107.936248] [<c0450a70>] (i2c_transfer+0xbc/0x110) from [<c03c75b4>] (twl_i2c_)
    [ 5107.949951] [<c03c75b4>] (twl_i2c_read+0xe4/0x12c) from [<c038d528>] (twlreg_g)
    [ 5107.963378] [<c038d528>] (twlreg_grp+0x18/0x24) from [<c038d564>] (twl4030reg_)
    [ 5107.977416] [<c038d564>] (twl4030reg_is_enabled+0x8/0x14) from [<c0388980>] (_)
    [ 5107.992492] [<c0388980>] (_regulator_is_enabled+0x1c/0x28) from [<c038aa9c>] ()
    [ 5108.007354] [<c038aa9c>] (_regulator_enable+0x38/0x26c) from [<c038c618>] (reg)
    [ 5108.021728] [<c038c618>] (regulator_enable+0x34/0x60) from [<c0372568>] (omapd)
    [ 5108.036956] [<c0372568>] (omapdss_dpi_display_enable+0x58/0x1a0) from [<c03841)
    [ 5108.052368] [<c03841a0>] (panel_dvi_power_on+0x20/0x54) from [<c03841f4>] (pan)
    [ 5108.066802] [<c03841f4>] (panel_dvi_resume+0x20/0x3c) from [<c0381780>] (omapf)
    [ 5108.080749] [<c0381780>] (omapfb_blank+0xc8/0x174) from [<c0350368>] (fb_blank)
    [ 5108.093963] [<c0350368>] (fb_blank+0x3c/0x68) from [<c0359ae8>] (fbcon_blank+0)
    [ 5108.107177] [<c0359ae8>] (fbcon_blank+0x114/0x254) from [<c03a3a68>] (do_unbla)
    [ 5108.121398] [<c03a3a68>] (do_unblank_screen+0x100/0x198) from [<c033cf98>] (bu)
    [ 5108.135833] [<c033cf98>] (bust_spinlocks+0x20/0x44) from [<c0010c98>] (die+0x9)
    [ 5108.148803] [<c0010c98>] (die+0x9c/0x128) from [<c00084a4>] (do_undefinstr+0x1)
    [ 5108.161895] [<c00084a4>] (do_undefinstr+0x160/0x184) from [<c058ab28>] (__und_)
    [ 5108.175384] Exception stack(0xddcfdd90 to 0xddcfddd8)
    [ 5108.185333] dd80: 00400000 00000000 0040000
    [ 5108.198577] dda0: 00400000 0000000a 00000000 ddcfded4 de805780 00000000 0000000
    [ 5108.211822] ddc0: de87d400 ddcfde18 c009aeac c0028498 20000193 ffffffff
    [ 5108.223358] [<c058ab28>] (__und_svc+0x48/0x60) from [<c0028498>] (omap3_l3_app)
    [ 5108.237030] [<c0028498>] (omap3_l3_app_irq+0x44/0x11c) from [<c009aeac>] (hand)
    [ 5108.252746] [<c009aeac>] (handle_irq_event_percpu+0x6c/0x1e4) from [<c009b064>)
    [ 5108.267730] [<c009b064>] (handle_irq_event+0x40/0x60) from [<c009d7d0>] (handl)
    [ 5108.282043] [<c009d7d0>] (handle_level_irq+0xd4/0x118) from [<c009a868>] (gene)
    [ 5108.296569] [<c009a868>] (generic_handle_irq+0x20/0x30) from [<c000dd5c>] (han)
    [ 5108.310455] [<c000dd5c>] (handle_IRQ+0x78/0xb8) from [<c058aa38>] (__irq_svc+0)
    [ 5108.323486] [<c058aa38>] (__irq_svc+0x38/0xe0) from [<bf0c4cb0>] (snd_pcm_lib_)
    [ 5108.338378] [<bf0c4cb0>] (snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]) from [<bf0)
    [ 5108.354888] [<bf0c4d84>] (snd_pcm_lib_write+0x5c/0x64 [snd_pcm]) from [<bf0c12)
    [ 5108.371795] [<bf0c129c>] (snd_pcm_playback_ioctl1+0x104/0x284 [snd_pcm]) from )
    [ 5108.387603] [<c0113698>] (do_vfs_ioctl+0x2a0/0x2d8) from [<c011371c>] (sys_ioc)
    [ 5108.401031] [<c011371c>] (sys_ioctl+0x4c/0x6c) from [<c000d4a0>] (ret_fast_sys)
    [ 5108.414520] ---[ end trace 3647bd3b3c32fc06 ]---
    [ 5108.423950] BUG: scheduling while atomic: pd/1986/0x00010000
    [ 5108.434387] Modules linked in: snd_seq_dummy snd_soc_twl4030 snd_soc_omap3beags
    [ 5108.473297]
    [ 5108.479431] Pid: 1986, comm: pd
    [ 5108.488891] CPU: 0 Tainted: G W (3.2.2-x4 #1)
    [ 5108.499237] PC is at snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]
    [ 5108.509765] LR is at snd_pcm_update_state+0xf4/0x10c [snd_pcm]
    [ 5108.520263] pc : [<bf0c4cb0>] lr : [<bf0c410c>] psr: 20000013
    [ 5108.520263] sp : ddcfdee8 ip : 00000280 fp : 00000000
    [ 5108.540985] r10: 00000000 r9 : 00000040 r8 : 00000000
    [ 5108.550811] r7 : 00000040 r6 : 00000001 r5 : c142d58c r4 : ddca9c00
    [ 5108.562011] r3 : bf0c891c r2 : 00000000 r1 : 00000000 r0 : 00000000
    [ 5108.573120] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    [ 5108.584869] Control: 10c5387d Table: 9ea50019 DAC: 00000015
    [ 5108.595123] [<c001352c>] (unwind_backtrace+0x0/0xe0) from [<c0588358>] (__sche)
    [ 5108.608367] [<c0588358>] (__schedule+0x70/0x638) from [<c058903c>] (schedule_t)
    [ 5108.621917] [<c058903c>] (schedule_timeout+0x258/0x29c) from [<c05881ac>] (wai)
    [ 5108.635894] [<c05881ac>] (wait_for_common+0xe4/0x18c) from [<c0452b24>] (omap_)
    [ 5108.649993] [<c0452b24>] (omap_i2c_xfer_msg+0x1b4/0x274) from [<c0452c5c>] (om)
    [ 5108.663787] [<c0452c5c>] (omap_i2c_xfer+0x78/0xc8) from [<c0450a70>] (i2c_tran)
    [ 5108.677062] [<c0450a70>] (i2c_transfer+0xbc/0x110) from [<c03c75b4>] (twl_i2c_)
    [ 5108.690277] [<c03c75b4>] (twl_i2c_read+0xe4/0x12c) from [<c038dd24>] (twl4030r)
    [ 5108.703857] [<c038dd24>] (twl4030reg_enable+0x1c/0x4c) from [<c038ab68>] (_reg)
    [ 5108.718017] [<c038ab68>] (_regulator_enable+0x104/0x26c) from [<c038c618>] (re)
    [ 5108.732086] [<c038c618>] (regulator_enable+0x34/0x60) from [<c0372568>] (omapd)
    [ 5108.746917] [<c0372568>] (omapdss_dpi_display_enable+0x58/0x1a0) from [<c03841)
    [ 5108.761932] [<c03841a0>] (panel_dvi_power_on+0x20/0x54) from [<c03841f4>] (pan)
    [ 5108.775909] [<c03841f4>] (panel_dvi_resume+0x20/0x3c) from [<c0381780>] (omapf)
    [ 5108.789459] [<c0381780>] (omapfb_blank+0xc8/0x174) from [<c0350368>] (fb_blank)
    [ 5108.802307] [<c0350368>] (fb_blank+0x3c/0x68) from [<c0359ae8>] (fbcon_blank+0)
    [ 5108.815124] [<c0359ae8>] (fbcon_blank+0x114/0x254) from [<c03a3a68>] (do_unbla)
    [ 5108.828918] [<c03a3a68>] (do_unblank_screen+0x100/0x198) from [<c033cf98>] (bu)
    [ 5108.842803] [<c033cf98>] (bust_spinlocks+0x20/0x44) from [<c0010c98>] (die+0x9)
    [ 5108.855346] [<c0010c98>] (die+0x9c/0x128) from [<c00084a4>] (do_undefinstr+0x1)
    [ 5108.867950] [<c00084a4>] (do_undefinstr+0x160/0x184) from [<c058ab28>] (__und_)
    [ 5108.881042] Exception stack(0xddcfdd90 to 0xddcfddd8)
    [ 5108.890533] dd80: 00400000 00000000 0040000
    [ 5108.903350] dda0: 00400000 0000000a 00000000 ddcfded4 de805780 00000000 0000000
    [ 5108.916076] ddc0: de87d400 ddcfde18 c009aeac c0028498 20000193 ffffffff
    [ 5108.927124] [<c058ab28>] (__und_svc+0x48/0x60) from [<c0028498>] (omap3_l3_app)
    [ 5108.940277] [<c0028498>] (omap3_l3_app_irq+0x44/0x11c) from [<c009aeac>] (hand)
    [ 5108.954772] [<c009aeac>] (handle_irq_event_percpu+0x6c/0x1e4) from [<c009b064>)
    [ 5108.969207] [<c009b064>] (handle_irq_event+0x40/0x60) from [<c009d7d0>] (handl)
    [ 5108.982971] [<c009d7d0>] (handle_level_irq+0xd4/0x118) from [<c009a868>] (gene)
    [ 5108.996948] [<c009a868>] (generic_handle_irq+0x20/0x30) from [<c000dd5c>] (han)
    [ 5109.010223] [<c000dd5c>] (handle_IRQ+0x78/0xb8) from [<c058aa38>] (__irq_svc+0)
    [ 5109.022613] [<c058aa38>] (__irq_svc+0x38/0xe0) from [<bf0c4cb0>] (snd_pcm_lib_)
    [ 5109.036804] [<bf0c4cb0>] (snd_pcm_lib_write1+0x398/0x3b8 [snd_pcm]) from [<bf0)
    [ 5109.052703] [<bf0c4d84>] (snd_pcm_lib_write+0x5c/0x64 [snd_pcm]) from [<bf0c12)
    [ 5109.069122] [<bf0c129c>] (snd_pcm_playback_ioctl1+0x104/0x284 [snd_pcm]) from )
    [ 5109.084411] [<c0113698>] (do_vfs_ioctl+0x2a0/0x2d8) from [<c011371c>] (sys_ioc)
    [ 5109.097381] [<c011371c>] (sys_ioctl+0x4c/0x6c) from [<c000d4a0>] (ret_fast_sys)
  • Hi,

    Can you please raise this as a new query? This will help the audio driver expert to help you with this problem. The current thread discussion is about SGX(graphics).

    Please close this query if the graphics(SGX) related issue is resolved.

    Thanks,

    Prathap.

  • Hi,

    Sorry I thought it was related -- the kernel is stopping at the same line in omap_l3_smx.c. It is unobvious to me that an application can crash the L3 bus, so I thought maybe the problem was with the bus driver omap_l3_smx.c. I will re-post the question as a new query.

    Best,

    Edgar