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.

Unable to handle kernel paging request at virtual address

Hello,

I am using DM6467 and dvsdk_2_00_00_22, DSPLink version 1.61.03. I just followed the "UserGuide.pdf" and "InstallGuide_Linux_DM6446_DM6467.pdf" to build dsplink.

my bootargs setting is "bootargs mem=90M" and "bootargs mem=120M"...

With these setting, if I run the sample message application am getting the following error..

-----------------------------------------------------------------------------------------------------------------                                                                                                

root@192.168.1.34:~/message# insmod dsplinkk.ko                                                                                                   

 

root@192.168.1.34:~/message# mknod /dev/dsplink c 230 0                                                                                                   

root@192.168.1.34:~/message# lsmod                                                                                                                        

Module                  Size  Used by                                                                                                                     

dsplinkk              218764  0                                                                                                                           

root@192.168.1.34:~/message# ./messagegpp message.out 8 0                                                                                                 

========== Sample Application : MESSAGE ==========                                                                                                        

Entered MESSAGE_Create ()                                                                                                                                            

Unable to handle kernel paging request at virtual address fec40014                                                                            

pgd = c3040000                  

[fec40014] *pgd=8046a011, *pte=00000000, *ppte=00000000                                                                                                   

Internal error: Oops: 7 [#1]                                                                                                                              

Modules linked in: dsplinkk                                                                                                                               

CPU: 0                                                                                                                                                    

PC is at DM6467GEM_halPscEnable+0xc/0x9c [dsplinkk]                                                                                                       

LR is at DM6467GEM_halPwrCtrl+0x4c/0xb0 [dsplinkk]                                                                                                        

pc : [<bf00aa10>]    lr : [<bf00ab00>]    Not tainted                                                                                                     

sp : c3bd1db8  ip : c3bd1dc8  fp : c3bd1dc4                                                                                                               

r10: 00000000  r9 : c3bd1de0  r8 : bf0347e4                                                                                                               

r7 : c6066000  r6 : 00000007  r5 : 00000000  r4 : c6096000                                                                                                

r3 : 00040000  r2 : 00000000  r1 : 00000000  r0 : fec40000                                                                                                

Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  Segment user                                                                                                  

Control: 5317F                                                                                                                                            

Table: 83040000  DAC: 00000015                                                                                                                            

Process messagegpp (pid: 709, stack limit = 0xc3bd0258)                                                                                                   

Stack: (0xc3bd1db8 to 0xc3bd2000)                                                                                                                         

1da0:                                                       c3bd1ddc c3bd1dc8                                                                             

1dc0: bf00ab00 bf00aa14 c6096000 00008000 c3bd1e1c c3bd1de0 bf00b770 bf00aac4                                                                             

1de0: 11f00000 00008000 c60a0000 00000000 c3bd1e0c bf033a48 00000000 00000028                                                                             

1e00: 00008000 00000000 bf0351a8 00000000 c3bd1e34 c3bd1e20 bf00bd24 bf00b634                                                                             

1e20: c6066000 00000000 c3bd1e7c c3bd1e38 bf017db4 bf00bce0 bf00a754 c6066024                                                                             

1e40: bf033a48 c6064000 00008000 00000000 c3bd1e7c 00000000 00008000 bf033d48                                                                             

1e60: 00000000 00000000 00000000 00000001 c3bd1ebc c3bd1e80 bf003f20 bf017ad4                                                                             

1e80: c003951c 0000d200 c608f000 00000000 0000003c 00006c08 be83bbf4 00006c08                                                                             

1ea0: c04f4b40 c0031fe8 c3bd0000 00000000 c3bd1f2c c3bd1ec0 bf00066c bf003b58                                                                             

1ec0: c3bbbbf0 00000000 00000000 00000054 c3bd1f3c c3bd1ee0 c007fd44 c0039438                                                                             

1ee0: 00001000 00000000 00000000 00000000 00008000 00000000 00000000 4001dbf8                                                                             

1f00: be83bc14 be83bee4 0000072b c04f4b40 be83bbf4 00006c08 c04f4b40 c0031fe8                                                                             

1f20: c3bd1f4c c3bd1f30 c00a692c bf00009c c3bd1f84 c04f4b40 00000003 be83bbf4                                                                             

1f40: c3bd1f7c c3bd1f50 c00a6b4c c00a68b0 00000000 00015000 00000003 be83bbf4                                                                             

1f60: 00006c08 c04f4b40 c0031fe8 c3bd0000 c3bd1fa4 c3bd1f80 c00a6c98 c00a694c                                                                             

1f80: c3bd0000 00000000 00008000 00000000 be83bed8 00000036 00000000 c3bd1fa8                                                                             

1fa0: c0031e40 c00a6c68 00008000 00000000 00000003 00006c08 be83bbf4 00000003                                                                             

1fc0: 00008000 00000000 be83bed8 00000036 be83bed8 00000000 00000000 be83bbe4                                                                             

1fe0: be83bee4 be83bac8 0000b808 400ff27c 80000010 00000003 00000000 00000000                                                                             

Backtrace:                                                                                                                                                

[<bf00aa04>] (DM6467GEM_halPscEnable+0x0/0x9c [dsplinkk]) from [<bf00ab00>] (DM6467GEM_halPwrCtrl+0x4c/0xb0 [dsplinkk])                                   

[<bf00aab4>] (DM6467GEM_halPwrCtrl+0x0/0xb0 [dsplinkk]) from [<bf00b770>] (DM6467GEM_init+0x14c/0x224 [dsplinkk])                                         

 r5 = 00008000  r4 = C6096000                                                                                                                             

[<bf00b624>] (DM6467GEM_init+0x0/0x224 [dsplinkk]) from [<bf00bd24>] (DSP_init+0x54/0x64 [dsplinkk])                                                      

[<bf00bcd0>] (DSP_init+0x0/0x64 [dsplinkk]) from [<bf017db4>] (LDRV_PROC_init+0x2f0/0x424 [dsplinkk])                                                     

 r5 = 00000000  r4 = C6066000                                                                                                                             

[<bf017ac4>] (LDRV_PROC_init+0x0/0x424 [dsplinkk]) from [<bf003f20>] (PMGR_PROC_attach+0x3d8/0x4e8 [dsplinkk])                                            

[<bf003b48>] (PMGR_PROC_attach+0x0/0x4e8 [dsplinkk]) from [<bf00066c>] (DRV_Ioctl+0x5e0/0xc58 [dsplinkk])                                                 

[<bf00008c>] (DRV_Ioctl+0x0/0xc58 [dsplinkk]) from [<c00a692c>] (do_ioctl+0x8c/0x9c)                                                                      

 r8 = C0031FE8  r7 = C04F4B40  r6 = 00006C08  r5 = BE83BBF4                                                                                               

 r4 = C04F4B40                                                                                                                                            

[<c00a68a0>] (do_ioctl+0x0/0x9c) from [<c00a6b4c>] (vfs_ioctl+0x210/0x31c)                                                                                

 r6 = BE83BBF4  r5 = 00000003  r4 = C04F4B40                                                                                                              

[<c00a693c>] (vfs_ioctl+0x0/0x31c) from [<c00a6c98>] (sys_ioctl+0x40/0x68)                                                                                

 r9 = C3BD0000  r8 = C0031FE8  r7 = C04F4B40  r6 = 00006C08                                                                                               

 r5 = BE83BBF4  r4 = 00000003                                                                                                                             

[<c00a6c58>] (sys_ioctl+0x0/0x68) from [<c0031e40>] (ret_fast_syscall+0x0/0x2c)                                                                           

 r7 = 00000036  r6 = BE83BED8  r5 = 00000000  r4 = 00008000                                                                                               

Code: bf033a70 e1a0c00d e92dd800 e24cb004 (e5903014)                                                                                                      

 Segmentation fault                                                                                                                                       

root@192.168.1.34:~/message#                           

 

-----------------------------------------------------------------------------------------------------------------  

 

Note:

I am using the following to compile dsplink.

"perl dsplinkcfg.pl --platform=DAVINCIHD --nodsp=1 --dspcfg_0=DM6467GEMSHMEM --dspos_0=DSPBIOS5XX --gppos=MVL5G --comps=ponslrmc"

Looking forward for the reply, as am stuck with my development work.

 

 

  •  

    Hello,

    After enabling the --trace=1 option, below is the display...

    -----------------------------------------------------------------------------------------------------------------

    ========== Sample Application : MESSAGE ==========

    Entered MESSAGE_Create ()

    Entered PROC_setuUnable to handle kernel paging request at virtual address fec40014

    p ()

            linkCfg [0x0]

    Entered DRpgd = c5a2c000

    V_Initialize ()

            drvObj  [0x36b2[fec40014] *pgd=804b20118]

            arg     [0x0]

    Leaving DRV_Init, *pte=00000000ialize ()        status [0x8000]

    Ente, *ppte=00000000red DRV_ProtectInit ()

            drvObj

    [0x37008]

    Leaving DRV_ProtectInInternal error: Oops: 7 [#1]

    Modules linked in: dsplinkk

    CPU: 0

    PC is at DM6467GEM_halPscEnable+0x28/0xd8 [dsplinkk]

    LR is at DM6467GEM_halPscEnable+0x28/0xd8 [dsplinkk]

    pc : [<bf00d04c>]    lr : [<bf00d04c>]    Not tainted

    sp : c54efd88  ip : 00000001  fp : c54efd9c

    r10: 00000000  r9 : c54efdc8  r8 : bf04b764

    r7 : c8066000  r6 : 00000007  r5 : 00000000  r4 : fec40000

    r3 : 00000000  r2 : 0000000b  r1 : bf04c5e4  r0 : 00000800                                                                                                

    Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  Segment user                                                                                                  

    Control: 5317F                                                                                                                                            

    Table: 85A2C000  DAC: 00000015                                                                                                                            

    Process messagegpp (pid: 714, stack limit = 0xc54ee258)                                                                                                   

    Stack: (0xc54efd88 to 0xc54f0000)                                                                                                                         

    fd80:                   bf04b764 c8096000 c54efdbc c54efda0 bf00d16c bf00d034                                                                             

    fda0: 00000000 00000000 c8096000 00008000 c54efe04 c54efdc0 bf00e0c4 bf00d10c                                                                             

    fdc0: bf04b764 00008000 11f00000 00008000 c80a0000 00000000 c8066024 00000000                                                                             

    fde0: bf04a9c0 00000028 00008000 00000000 bf04c128 00000000 c54efe24 c54efe08                                                                             

    fe00: bf00e94c bf00df6c bf04a9c0 00000000 c8066000 00000000 c54efe6c c54efe28                                                                             

    fe20: bf01de84 bf00e8e4 00008000 c8066024 bf04a9c0 c8064000 c54efe6c 00000000                                                                             

    fe40: bf01a0c4 bf04acc8 00000000 00008000 00000000 00000000 00000001 bf04acc8                                                                             

    fe60: c54efeb4 c54efe70 bf004b80 bf01db8c 00000000 a0000013 4001f00c 00000000                                                                             

    fe80: c808f000 00000000 c54efeb4 00006c08 bed0dbf4 bed0dbf4 c66b60e0 c0031fe8                                                                             

    fea0: c54ee000 00000000 c54eff2c c54efeb8 bf000650 bf0047a0 c54efef0 00006c08                                                                             

    fec0: bed0dbf4 c602f0a0 c54eff1c c54efed8 c0149dd0 c0148498 c056e3d4 c014d368                                                                             

    fee0: c056e00c 0000000c 0000005a 2faf0800 00008000 00000000 00000000 4001dbf8                                                                             

    ff00: bed0dc14 bed0dee5 c54ee000 c66b60e0 bed0dbf4 00006c08 c66b60e0 c0031fe8                                                                             

    ff20: c54eff4c c54eff30 c00a692c bf00009c c54ee000 c66b60e0 00000003 bed0dbf4                                                                             

    ff40: c54eff7c c54eff50 c00a6b4c c00a68b0 00000000 00000000 00000003 bed0dbf4                                                                             

    ff60: 00006c08 c66b60e0 c0031fe8 c54ee000 c54effa4 c54eff80 c00a6c98 c00a694c                                                                             

    ff80: c54ee000 00000000 00008000 00000000 bed0dee7 00000036 00000000 c54effa8                                                                             

    ffa0: c0031e40 c00a6c68 00008000 00000000 00000003 00006c08 bed0dbf4 00000003                                                                             

    ffc0: 00008000 00000000 bed0dee7 00000036 bed0ded9 00000000 00000000 bed0dbe4                                                                             

    ffe0: bed0dee5 bed0dac8 0000c254 400ff27c 80000010 00000003 00000000 00000000                                                                             

    Backtrace:                                                                                                                                                

    [<bf00d024>] (DM6467GEM_halPscEnable+0x0/0xd8 [dsplinkk]) from [<bf00d16c>] (DM6467GEM_halPwrCtrl+0x70/0x100 [dsplinkk])                                  

     r4 = C8096000                                                                                                                                            

    [<bf00d0fc>] (DM6467GEM_halPwrCtrl+0x0/0x100 [dsplinkk]) from [<bf00e0c4>] (DM6467GEM_init+0x168/0x25c [dsplinkk])                                        

     r5 = 00008000  r4 = C8096000                                                                                                                             

    [<bf00df5c>] (DM6467GEM_init+0x0/0x25c [dsplinkk]) from [<bf00e94c>] (DSP_init+0x78/0xb0 [dsplinkk])                                                      

    [<bf00e8d4>] (DSP_init+0x0/0xb0 [dsplinkk]) from [<bf01de84>] (LDRV_PROC_init+0x308/0x45c [dsplinkk])                                                     

     r5 = 00000000  r4 = C8066000                                                                                                                             

    [<bf01db7c>] (LDRV_PROC_init+0x0/0x45c [dsplinkk]) from [<bf004b80>] (PMGR_PROC_attach+0x3f0/0x520 [dsplinkk])                                            

    [<bf004790>] (PMGR_PROC_attach+0x0/0x520 [dsplinkk]) from [<bf000650>] (DRV_Ioctl+0x5c4/0xc58 [dsplinkk])                                                 

    [<bf00008c>] (DRV_Ioctl+0x0/0xc58 [dsplinkk]) from [<c00a692c>] (do_ioctl+0x8c/0x9c)                                                                      

     r8 = C0031FE8  r7 = C66B60E0  r6 = 00006C08  r5 = BED0DBF4                                                                                               

     r4 = C66B60E0                                                                                                                                            

    [<c00a68a0>] (do_ioctl+0x0/0x9c) from [<c00a6b4c>] (vfs_ioctl+0x210/0x31c)                                                                                

     r6 = BED0DBF4  r5 = 00000003  r4 = C66B60E0                                                                                                              

    [<c00a693c>] (vfs_ioctl+0x0/0x31c) from [<c00a6c98>] (sys_ioctl+0x40/0x68)                                                                                

     r9 = C54EE000  r8 = C0031FE8  r7 = C66B60E0  r6 = 00006C08                                                                                               

     r5 = BED0DBF4  r4 = 00000003                                                                                                                             

    [<c00a6c58>] (sys_ioctl+0x0/0x68) from [<c0031e40>] (ret_fast_syscall+0x0/0x2c)                                                                           

     r7 = 00000036  r6 = BED0DEE7  r5 = 00000000  r4 = 00008000                                                                                               

    Code: e3a01001 e59f00a0 e59f20a0 eb0072b7 (e5943014)                                                                                                      

     it ()  status [0x8000]                                                                                                                                   

    Entered DRV_ProtectEnter ()                                                                                                                               

            drvObj  [0x37008]                                                                                                                                 

    Leaving DRV_ProtectEnter ()     status [0x8000]                                                                                                           

    Entered DRV_Invoke ()                                                                                                                                     

            drvObj  [0x37008]                                                                                                                                 

            cmdId   [0x6c01]                                                                                                                                  

            arg1    [0xbed0dbf8]                                                                                                                              

            arg2    [0x0]                                                                                                                                     

    Entered DRV_installCleanupRoutines ()                                                                                                                     

            linkCfgPtr      [0x3674c]                                                                                                                         

    Leaving DRV_installCleanupRoutines ()                                                                                                                     

    osStatus: 0                                                                                                                                               

    Entered _POOL_init ()                                                                                                                                     

    Leaving _POOL_init ()                                                                                                                                     

    Status: 8000                                                                                                                                              

    Leaving DRV_Invoke ()   status [0x8000]                                                                                                                   

    Entered _MEM_USR_init ()                                                                                                                                  

    Leaving _MEM_USR_init ()        status [0x8000]                                                                                                           

    Entered _IDM_USR_init ()                                                                                                                                  

    Entered DRV_Invoke ()                                                                                                                                     

            drvObj  [0x37008]                                                                                                                                 

            cmdId   [0x7351]                                                                                                                                  

            arg1    [0xbed0dbc4]                                                                                                                              

            arg2    [0x0]                                                                                                                                     

    Status: 8000                                                                                                                                              

    Leaving DRV_Invoke ()   status [0x8000]                                                                                                                   

    Leaving _IDM_USR_init ()        status [0x8000]                                                                                                           

    Entered _SYNC_USR_init ()                                                                                                                                 

    Entered _IDM_USR_create ()                                                                                                                                

            key     [0x10080]                                                                                                                                 

            attrs   [0xbed0dbcc]                                                                                                                              

    Entered DRV_Invoke ()                                                                                                                                     

            drvObj  [0x37008]                                                                                                                                 

            cmdId   [0x7353]                                                                                                                                  

            arg1    [0xbed0db9c]                                                                                                                              

            arg2    [0x0]                                                                                                                                     

    Status: 8000                                                                                                                                              

    Leaving DRV_Invoke ()   status [0x8000]                                                                                                                   

    Leaving _IDM_USR_create ()      status [0x8000]                                                                                                           

    Leaving _SYNC_USR_init ()       status [0x8000]                                                                                                           

    Entered _SYNC_USR_createCS ()                                                                                                                             

            idKey   [0x2b078]                                                                                                                                 

            csObj   [0x36b30]                                                                                                                                 

    Entered _IDM_USR_acquireId ()                                                                                                                             

            key     [0x10080]                                                                                                                                 

            idKey   [0x2b078]                                                                                                                                 

            id      [0xbed0dbd0]                                                                                                                              

    Entered DRV_Invoke ()                                                                                                                                     

            drvObj  [0x37008]                                                                                                                                 

            cmdId   [0x7355]                                                                                                                                  

            arg1    [0xbed0db9c]                                                                                                                              

            arg2    [0x0]                                                                                                                                     

    Status: 8000                                                                                                                                              

    Leaving DRV_Invoke ()   status [0x8000]                                                                                                                   

    Leaving _IDM_USR_acquireId ()   status [0x8000]                                                                                                           

    Leaving _SYNC_USR_createCS ()   status [0x8000]                                                                                                           

    Entered DRV_ProtectLeave ()                                                                                                                               

            drvObj  [0x37008]                                                                                                                                 

    Leaving DRV_ProtectLeave ()     status [0x8000]                                                                                                           

    Entered PROC_resetCurStatus ()                                                                                                                            

    Leaving PROC_resetCurStatus ()                                                                                                                            

    Leaving PROC_setup ()   status [0x8000]                                                                                                                   

    Entered PROC_attach ()                                                                                                                                    

            procId  [0x0]                                                                                                                                     

            attr    [0x0]                                                                                                                                     

    Entered DRV_Initialize ()                                                                                                                                 

            drvObj  [0x36b28]                                                                                                                                 

            arg     [0x0]                                                                                                                                     

    Entered _SYNC_USR_enterCS ()                                                                                                                              

            csObj   [0x37020]                                                                                                                                 

    Leaving _SYNC_USR_enterCS ()    status [0x8000]                                                                                                           

    Entered _SYNC_USR_leaveCS ()                                                                                                                              

            csObj   [0x37020]                                                                                                                                 

    Leaving _SYNC_USR_leaveCS ()    status [0x8000]                                                                                                           

    Leaving DRV_Initialize ()       status [0x8000]                                                                                                           

    Entered _SYNC_USR_enterCS ()                                                                                                                              

            csObj   [0x37020]                                                                                                                                 

    Leaving _SYNC_USR_enterCS ()    status [0x8000]                                                                                                           

    Entered DRV_Invoke ()                                                                                                                                     

            drvObj  [0x37008]                                                                                                                                 

            cmdId   [0x6c08]                                                                                                                                  

            arg1    [0xbed0dbf4]                                                                                                                              

            arg2    [0x0]                                                                                                                                     

    Segmentation fault                                                

     

    -----------------------------------------------------------------------------------------------------------------

     

  • Hello,

    I was able to resolve this issue.

    1. Build kernel with loadable modules which  generates "Module.symvers" file.

    2. Set the corresponding KERNEL_DIR path in  $DSPLINK/make/Rules.mk file.

     

     

  • Thanks for the update. Good to know that you are able to fix the issue.

    Regards, Srirami.