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.

Question About the AEW Module

Other Parts Discussed in Thread: THS7303

Hi all

I meet  a strange problem about the AEW module.

When I Open And Close the AEW device (/dev/dm365_aew) several times, the output data of the AEW may be zero.

or sometimes there is no data return or the kernel is damage, and show me a kernel dump messge. At this time if I reset the EVM with command reboot, the kernel sometimes show me panic message.

After Check the souce of dm365_aew.c, it same that the aew_enable register is not clear when the chip was reset?

How could I avoid this problem ? Here is the kernel log

 

Switching to clocksource timer0_1                                                                                            
musb_hdrc: version 6.0, cppi-dma, host, debug=0                                                                              
musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12                                                            
musb_hdrc musb_hdrc: MUSB HDRC host driver                                                                                   
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1                                                           
usb usb1: configuration #1 chosen from 1 choice                                                                              
hub 1-0:1.0: USB hub found                                                                                                   
hub 1-0:1.0: 1 port detected                                                                                                 
NET: Registered protocol family 2                                                                                            
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                               
TCP established hash table entries: 4096 (order: 3, 32768 bytes)                                                             
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                                                                    
TCP: Hash tables configured (established 4096 bind 4096)                                                                     
TCP reno registered                                                                                                          
NET: Registered protocol family 1                                                                                            
RPC: Registered udp transport module.                                                                                        
RPC: Registered tcp transport module.                                                                                        
RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                    
msgmni has been set to 118                                                                                                   
alg: No test for stdrng (krng)                                                                                               
io scheduler noop registered                                                                                                 
io scheduler anticipatory registered (default)                                                                               
Console: switching to colour frame buffer device 90x30                                                                       
davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 675KB                                                
davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB                                                   
davincifb davincifb.0: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB                                                 
davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 1020KB                                                   
DM365 IPIPEIF probed                                                                                                         
imp serializer initialized                                                                                                   
davinci_previewer initialized                                                                                                
davinci_resizer initialized                                                                                                  
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled                                                                     
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A                                                                 
console [ttyS0] enabled                                                                                                      
brd: module loaded                                                                                                           
loop: module loaded                                                                                                          
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)                                           
2 NAND chips detected                                                                                                        
Creating 5 MTD partitions on "davinci_nand.0":                                                                               
0x000000000000-0x0000003c0000 : "bootloader"                                                                                 
0x0000003c0000-0x000000400000 : "params"                                                                                     
0x000000400000-0x000000800000 : "kernel"                                                                                     
0x000000800000-0x000005800000 : "ipc_main_fs"                                                                                
0x000005800000-0x000010000000 : "ipc_bakup_fs"                                                                               
davinci_nand davinci_nand.0: controller rev. 2.3                                                                             
PPP generic driver version 2.4.2                                                                                             
PPP Deflate Compression module registered                                                                                    
Initializing USB Mass Storage driver...                                                                                      
usbcore: registered new interface driver usb-storage                                                                         
USB Mass Storage support registered.                                                                                         
mice: PS/2 mouse device common for all mice                                                                                  
i2c /dev entries driver                                                                                                      
Linux video capture interface: v2.00                                                                                         
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)                                                                      
vpfe_init                                                                                                                    
vpfe-capture: vpss clock vpss_master enabled                                                                                 
vpfe-capture vpfe-capture: v4l2 device registered                                                                            
vpfe-capture vpfe-capture: video device registered                                                                           
IPC2300: switch to HD imager-MT9P031 video input                                                                             
mt9p031 1-0048: Detected a MT9P031 chip ID 1801                                                                              
mt9p031 1-0048: mt9p031 1-0048 decoder driver registered !!                                                                  
vpfe-capture vpfe-capture: v4l2 sub device mt9p031 registered                                                                
vpfe_register_ccdc_device: DM365 ISIF                                                                                        
DM365 ISIF is registered with vpfe.                                                                                          
af major#: 252, minor# 0
AF Driver initialized                                                                                                        
aew major#: 251, minor# 0                                                                                                    
Unable to handle kernel NULL pointer dereference at virtual address 00000004                                                 
pgd = c0004000                                                                                                               
[00000004] *pgd=00000000                                                                                                     
Internal error: Oops: 80000005 [#1] PREEMPT                                                                                  
last sysfs file:                                                                                                             
Modules linked in:                                                                                                           
CPU: 0    Not tainted  (2.6.32.17-davinci1 #1)                                                                               
PC is at 0x4                                                                                                                 
LR is at __wake_up_common+0x38/0x7c                                                                                          
pc : [<00000004>]    lr : [<c0032b68>]    psr: 20000093                                                                      
sp : c2021e10  ip : c2021e94  fp : c2021e3c                                                                                  
r10: 00000000  r9 : 00000003  r8 : c22e879c                                                                                  
r7 : 00000001  r6 : c2020000  r5 : c22e8934  r4 : c2021e88                                                                   
r3 : 00000000  r2 : 00000000  r1 : 00000003  r0 : c2021e88                                                                   
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel                                                         
Control: 0005317f  Table: 80004000  DAC: 00000017                                                                            
Process swapper (pid: 1, stack limit = 0xc2020270)                                                                           
Stack: (0xc2021e10 to 0xc2022000)                                                                                            
1e00:                                     00000000 c22e879c 00000003 00000001                                                
1e20: 00000000 a0000013 c2020000 c03b3cd0 c2021e6c c2021e40 c0035660 c0032b40                                                
1e40: 00000000 c0155a20 c004b100 00000001 c03ecbe4 00000000 00000006 00000002                                                
1e60: c2021e84 c2021e70 c021c2d4 c0035624 c22e8940 00000000 c2021ea4 c2021e88                                                
1e80: c0065358 c021c274 c2020000 c03b3cb0 00000006 c22e8940 c2021ec4 c2021ea8                                                
1ea0: c00673e8 c0065324 00000006 00000000 c03b3cb0 00000003 c2021edc c2021ec8                                                
1ec0: c0026070 c00672b0 ffffffff fec48000 c2021f54 c2021ee0 c0026b4c c0026010                                                
1ee0: 00000000 00000040 00000000 00000000 c03b3cb0 c22e8940 c03b3cb0 00000006                                                
1f00: 60000013 c03803d8 c03b3cd0 c2021f54 c2021ef8 c2021f28 c0066c94 c0065f44                                                
1f20: 60000013 ffffffff c23d7480 00000000 c22e8940 c021c264 c03b3cb0 00000006                                                
1f40: 00000080 00000000 c2021f84 c2021f58 c006612c c0065cf8 00000080 c22e8780                                                
1f60: c03ecbe4 00000000 c03803a1 00000000 00000000 00000000 c2021fac c2021f88                                                
1f80: c001b790 c0066068 c03803d8 c22e8780 c0021bd0 00000000 c001b5d0 00000001                                                
1fa0: c2021fdc c2021fb0 c00263d4 c001b5e0 00000000 00000000 c2021fdc c2021fc8                                                
1fc0: c0021bd0 00000000 00000000 00000000 c2021ff4 c2021fe0 c0008474 c0026380                                                
1fe0: 00000000 00000000 00000000 c2021ff8 c003d408 c00083e8 ffb341d3 048d642a                                                
Backtrace:                                                                                                                   
[<c0032b30>] (__wake_up_common+0x0/0x7c) from [<c0035660>] (__wake_up+0x4c/0x7c)                                             
[<c0035614>] (__wake_up+0x0/0x7c) from [<c021c2d4>] (aew_isr+0x70/0x84)                                                      
 r8:00000002 r7:00000006 r6:00000000 r5:c03ecbe4 r4:00000001                                                                 
[<c021c264>] (aew_isr+0x0/0x84) from [<c0065358>] (handle_IRQ_event+0x44/0x114)                                              
 r5:00000000 r4:c22e8940                                                                                                     
[<c0065314>] (handle_IRQ_event+0x0/0x114) from [<c00673e8>] (handle_edge_irq+0x148/0x1b4)                                    
 r7:c22e8940 r6:00000006 r5:c03b3cb0 r4:c2020000                                                                             
[<c00672a0>] (handle_edge_irq+0x0/0x1b4) from [<c0026070>] (asm_do_IRQ+0x70/0x8c)                                            
 r7:00000003 r6:c03b3cb0 r5:00000000 r4:00000006                                                                             
[<c0026000>] (asm_do_IRQ+0x0/0x8c) from [<c0026b4c>] (__irq_svc+0x4c/0x90)                                                   
Exception stack(0xc2021ee0 to 0xc2021f28)                                                                                    
1ee0: 00000000 00000040 00000000 00000000 c03b3cb0 c22e8940 c03b3cb0 00000006                                                
1f00: 60000013 c03803d8 c03b3cd0 c2021f54 c2021ef8 c2021f28 c0066c94 c0065f44                                                
1f20: 60000013 ffffffff                                                                                                      
 r5:fec48000 r4:ffffffff                                                                                                     
[<c0065ce8>] (__setup_irq+0x0/0x370) from [<c006612c>] (request_threaded_irq+0xd4/0x120)                                     
[<c0066058>] (request_threaded_irq+0x0/0x120) from [<c001b790>] (aew_init+0x1c0/0x284)                                       
[<c001b5d0>] (aew_init+0x0/0x284) from [<c00263d4>] (do_one_initcall+0x64/0x1c4)                                             
 r7:00000001 r6:c001b5d0 r5:00000000 r4:c0021bd0                                                                             
[<c0026370>] (do_one_initcall+0x0/0x1c4) from [<c0008474>] (kernel_init+0x9c/0x118)                                          
 r7:00000000 r6:00000000 r5:00000000 r4:c0021bd0                                                                             
[<c00083d8>] (kernel_init+0x0/0x118) from [<c003d408>] (do_exit+0x0/0x610)                                                   
 r5:00000000 r4:00000000                                                                                                     
Code: bad PC value                                                                                                           
---[ end trace 724cfc8e5077b0f2 ]---                                                                                         
Kernel panic - not syncing: Fatal exception in interrupt

 

Best Regards