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.

处理器论坛

Part Number: TMS320DM8168
Other Parts Discussed in Thread: TVP7002

在加载ti81xxvin.ko的时候出现如下段错误,请问是什么原因呢?是不是这个段错误导致video0读不到数据呢?还请指教!

tvp7002 2-005d: tvp7002 found @ 0x5d (OMAP I2C adapter)
tvp7002 2-005d: Rev. 02 detected.
Unable to handle kernel NULL pointer dereference at virtual address 00000002
pgd = cadc4000
[00000002] *pgd=8ae07031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
last sysfs file: /sys/devices/virtual/video4linux/video4/index
Modules linked in: ti81xxvin(+) tvp7002 ti81xxvo ti81xxhdmi ti81xxfb vpss osa_kk
CPU: 0 Not tainted (2.6.37 #1)
PC is at vps_ti816x_select_video_decoder+0x28/0xa4
LR is at ti81xxvin_probe+0x394/0x4e4 [ti81xxvin]
pc : [<c0063c48>] lr : [<bf14eef4>] psr: a0000013
sp : caef7d38 ip : caef7d68 fp : caef7d64
r10: c0522cf0 r9 : bf15035c r8 : 00000002
r7 : c0522e34 r6 : caca57c0 r5 : 00000000 r4 : 00000000
r3 : c055e144 r2 : 0000000c r1 : 00000000 r0 : caef7d3c
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 8adc4019 DAC: 00000015
Process insmod (pid: 1599, stack limit = 0xcaef62e8)
Stack: (0xcaef7d38 to 0xcaef8000)
7d20: caef7d64 caef7d48
7d40: c02c6ad8 c009cb6c 00000000 00000000 bf15031c caca57c0 caef7da4 caef7d68
7d60: bf14eef4 c0063c2c 00000000 00000001 00000000 bf150364 caef7d94 c0522cf8
7d80: c0522d2c bf15019c bf15019c 00000000 0000001f 0000001c caef7db4 caef7da8
7da0: c0219f00 bf14eb6c caef7dd4 caef7db8 c0218f70 c0219ef0 c0522cf8 c0522d2c
7dc0: bf15019c 00000000 caef7df4 caef7dd8 c0219094 c0218eac cc81ccb4 bf15019c
7de0: caef7df8 c021902c caef7e1c caef7df8 c0218108 c0219038 cc81ccb8 cc866a30
7e00: bf15019c cb135c80 c0543258 00000000 caef7e2c caef7e20 c0218c08 c02180bc
7e20: caef7e5c caef7e30 c021880c c0218bf4 bf14fdba caef7e40 bf15019c 00000000
7e40: 00000001 bf154000 00000000 0000001c caef7e84 caef7e60 c02192f0 c0218764
7e60: bf150188 00000000 00000001 bf154000 00000000 0000001c caef7e94 caef7e88
7e80: c021a1ec c021924c caef7eac caef7e98 c021a220 c021a1ac bf1501f8 00000000
7ea0: caef7ebc caef7eb0 bf154018 c021a20c caef7ef4 caef7ec0 c00414f8 bf15400c
7ec0: bf1501f8 00000000 00000001 cae06900 caef7ef4 bf1501f8 00000000 00000001
7ee0: cae06900 00000001 caef7fa4 caef7ef8 c009ef30 c0041448 bf150204 caef7f08
7f00: c0041298 c009ca98 00000000 00012008 bf150300 c03bf85c c00dc1b8 e3708000
7f20: 00008e2f e370da34 e370d915 e3710054 cae02400 0000439c 00004bfc 00000000
7f40: 00000000 0000001d 0000001e 00000015 00000012 00000009 00000000 00000000
7f60: 00000000 bf15010c 00000003 00000000 00000000 c04ed12c cb135780 00000000
7f80: 00010000 00000003 00000080 c004b568 caef6000 00000000 00000000 caef7fa8
7fa0: c004b3c0 c009d8d4 00000000 00010000 00012018 00008e2f 00012008 00000001
7fc0: 00000000 00010000 00000003 00000080 00012008 00000000 00012018 00000000
7fe0: be853e73 be853c0c 00008da0 402907d4 60000010 00012018 00000000 00000000
Backtrace:
[<c0063c20>] (vps_ti816x_select_video_decoder+0x0/0xa4) from [<bf14eef4>] (ti81)
r6:caca57c0 r5:bf15031c r4:00000000
[<bf14eb60>] (ti81xxvin_probe+0x0/0x4e4 [ti81xxvin]) from [<c0219f00>] (platfor)
[<c0219ee4>] (platform_drv_probe+0x0/0x20) from [<c0218f70>] (driver_probe_devi)
[<c0218ea0>] (driver_probe_device+0x0/0x18c) from [<c0219094>] (__driver_attach)
r7:00000000 r6:bf15019c r5:c0522d2c r4:c0522cf8
[<c021902c>] (__driver_attach+0x0/0x8c) from [<c0218108>] (bus_for_each_dev+0x5)
r6:c021902c r5:caef7df8 r4:bf15019c r3:cc81ccb4
[<c02180b0>] (bus_for_each_dev+0x0/0x88) from [<c0218c08>] (driver_attach+0x20/)
r7:00000000 r6:c0543258 r5:cb135c80 r4:bf15019c
[<c0218be8>] (driver_attach+0x0/0x28) from [<c021880c>] (bus_add_driver+0xb4/0x)
[<c0218758>] (bus_add_driver+0x0/0x230) from [<c02192f0>] (driver_register+0xb0)
[<c0219240>] (driver_register+0x0/0x134) from [<c021a1ec>] (platform_driver_reg)
[<c021a1a0>] (platform_driver_register+0x0/0x60) from [<c021a220>] (platform_dr)
[<c021a200>] (platform_driver_probe+0x0/0x70) from [<bf154018>] (ti81xxvin_init)
r5:00000000 r4:bf1501f8
[<bf154000>] (ti81xxvin_init+0x0/0x24 [ti81xxvin]) from [<c00414f8>] (do_one_in)
[<c004143c>] (do_one_initcall+0x0/0x190) from [<c009ef30>] (sys_init_module+0x1)
r8:00000001 r7:cae06900 r6:00000001 r5:00000000 r4:bf1501f8
[<c009d8c8>] (sys_init_module+0x0/0x1830) from [<c004b3c0>] (ret_fast_syscall+0)
Code: e3a01000 e3a0200c e24b0028 e5934004 (e1d460b2)
---[ end trace e5ab92948cd8a760 ]---
Segmentation fault
root@dm816x-evm:/opt/dvr_rdk/ti816x/kermod# cd ..
root@dm816x-evm:/opt/dvr_rdk/ti816x# ./ljq.sh
VPSS_GRPX : please open fb0 node first.
VPSS_GRPX : please open fb1 node first.
Simple mixer control 'Left PGA Mixer Mic3L',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Left PGA Mixer Mic3R',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Right PGA Mixer Mic3L',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Right PGA Mixer Mic3R',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
numid=1,iface=MIXER,name='PCM Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
: values=96,96
| dBscale-mi3.50dB,step=0.50dB,mute=0
numid=37,iface=MIXER,name='PGA Capture Volume'
Unable to handle kernel NULL pointer dereference at virtual address 00000002
; type=INTEGER,pgd = cada4000
access=rw---R--,[00000002] *pgd=8cbf4031values=2,min=0,m, *pte=00000000ax=119,s0
, *ppte=00000000 : values=90,90

| dBscale-minInternal error: Oops: 17 [#2]
last sysfs file: /sys/devices/platform/vpss/graphics1/enabled
Modules linked in: ti81xxvin(+) tvp7002 ti81xxvo ti81xxhdmi ti81xxfb vpss osa_kk
CPU: 0 Tainted: G D (2.6.37 #1)
PC is at vps_ti816x_set_tvp7002_filter+0x28/0x128
LR is at vidioc_query_dv_preset+0x208/0x260 [ti81xxvin]
pc : [<c0063b20>] lr : [<bf14ca44>] psr: 00000013
sp : cae53cb0 ip : cae53ce0 fp : cae53cdc
r10: cae53e10 r9 : 00000000 r8 : 00000000
r7 : cade79d8 r6 : bf15031c r5 : 00000000 r4 : 0000000d
r3 : c055e144 r2 : 0000000c r1 : 00000000 r0 : cae53cb4
Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 8ada4019 DAC: 00000015
Process init_tvp7002 (pid: 1622, stack limit = 0xcae522e8)
Stack: (0xcae53cb0 to 0xcae54000)
3ca0: bf14529c bf1451d0 00000000 01200000
3cc0: cade7800 cade7800 c0522e34 bf15031c cae53d2c cae53ce0 bf14ca44 c0063b04
3ce0: cae53e20 c0522e08 80685600 00000500 000002d0 0000200d 00000001 00000003
3d00: cae02400 cae53e10 00010bc8 cae02400 bf14f554 80145656 cca4fa40 cc198a80
3d20: cae53dfc cae53d30 c02c11b0 bf14c848 00000041 00000000 00000000 00000000
3d40: c055cbd0 000200da 00000001 ffffffff c079bac8 cae06b40 cae53d7c cae53d68
3d60: c01c91c4 c01ca440 c079bac8 bf1501f8 cae53d94 cae53d80 c00cea2c cade7800
3d80: cae53d9c cae53d90 c02c6334 c02c62b0 cae53dbc cae53da0 bf14eb34 c03b5294
3da0: cae02400 bf14e9b8 cae02408 cc198a80 cae53ddc cae53dc0 c02bd14c bf14e9c4
3dc0: cc839380 cc198a80 cae06b40 00000000 cae53e0c 80145656 00010bc8 cae53e10
3de0: 00000000 00000000 00000000 00000000 cae53ebc cae53e00 c02c1c70 c02bda94
3e00: c02bda88 cc198a80 00000002 00010bc8 00000000 00000000 00000000 00000000
3e20: 00000000 635f7878 6c617461 6575676f 00000000 00000000 00000000 00000000
3e40: 31384954 50207878 6674616c 006d726f 00000000 00000000 00000000 00000000
3e60: 00000001 04000003 00000000 00000000 00000000 00000000 cae53e9c cae53e88
3e80: c00d4510 c00e1f50 ccb05240 cae53ec8 cae53f5c cc198a80 00010bc8 bf150354
3ea0: cc198a80 00010bc8 cae52000 00000000 cae53ed4 cae53ec0 c02c1df8 c02c19a0
3ec0: cae02400 80145656 cae53efc cae53ed8 c02bcf34 c02c1dd4 c02bce4c cc5fcf80
3ee0: 00000003 00010bc8 00000003 00000000 cae53f74 cae53f00 c00d957c c02bce58
3f00: c0041298 c03b805c 401ac000 cc35f898 00000000 00000003 00000000 cc198a80
3f20: 00000002 00000000 00000000 00000000 c00e09c4 00000003 cc198a80 cc017000
3f40: 00000000 00000020 00000003 cc198a80 cc198a80 00010bc8 80145656 00000003
3f60: 00000000 cae52000 cae53fa4 cae53f78 c00d9648 c00d90b8 00000005 00000000
3f80: cae52000 00000003 00010a90 00008470 00000036 c004b568 00000000 cae53fa8
3fa0: c004b3c0 c00d95fc 00000003 00010a90 00000003 80145656 00010bc8 00000000
3fc0: 00000003 00010a90 00008470 00000036 00000000 00000000 400f5000 00000000
3fe0: 00000000 beeb4c38 00008580 4032eaec 60000010 00000003 00000000 00000000
Backtrace:
[<c0063af8>] (vps_ti816x_set_tvp7002_filter+0x0/0x128) from [<bf14ca44>] (vidio)
r6:bf15031c r5:c0522e34 r4:cade7800
[<bf14c83c>] (vidioc_query_dv_preset+0x0/0x260 [ti81xxvin]) from [<c02c11b0>] ()
[<c02bda88>] (__video_do_ioctl+0x0/0x3e9c) from [<c02c1c70>] (__video_usercopy+)
[<c02c1994>] (__video_usercopy+0x0/0x434) from [<c02c1df8>] (video_ioctl2+0x30/)
[<c02c1dc8>] (video_ioctl2+0x0/0x38) from [<c02bcf34>] (v4l2_ioctl+0xe8/0x11c)
r5:80145656 r4:cae02400
[<c02bce4c>] (v4l2_ioctl+0x0/0x11c) from [<c00d957c>] (do_vfs_ioctl+0x4d0/0x544)
r8:00000000 r7:00000003 r6:00010bc8 r5:00000003 r4:cc5fcf80
r3:c02bce4c
[<c00d90ac>] (do_vfs_ioctl+0x0/0x544) from [<c00d9648>] (sys_ioctl+0x58/0x7c)
r9:cae52000 r8:00000000 r7:00000003 r6:80145656 r5:00010bc8
r4:cc198a80
[<c00d95f0>] (sys_ioctl+0x0/0x7c) from [<c004b3c0>] (ret_fast_syscall+0x0/0x30)
r8:c004b568 r7:00000036 r6:00008470 r5:00010a90 r4:00000003
Code: e3a01000 e3a0200c e24b0028 e5935004 (e1d560b2)
=0.00dB,step=0.5---[ end trace e5ab92948cd8a761 ]---
0dB,mute=0

  • Part Number: TMS320DM8168

    加载ti81xxvin.ko出现如下段错误,这是什么原因造成的呢?是不是就是因为这个段错误导致video0读不到图像数据?还请指教!

    tvp7002 2-005d: tvp7002 found @ 0x5d (OMAP I2C adapter) tvp7002 2-005d: Rev. 02 detected. Unable to handle kernel NULL pointer dereference at virtual address 00000002 pgd = cadc4000 [00000002] *pgd=8ae07031, *pte=00000000, *ppte=00000000 Internal error: Oops: 17 [#1] last sysfs file: /sys/devices/virtual/video4linux/video4/index Modules linked in: ti81xxvin(+) tvp7002 ti81xxvo ti81xxhdmi ti81xxfb vpss osa_kk CPU: 0 Not tainted (2.6.37 #1) PC is at vps_ti816x_select_video_decoder+0x28/0xa4 LR is at ti81xxvin_probe+0x394/0x4e4 [ti81xxvin] pc : [] lr : [] psr: a0000013 sp : caef7d38 ip : caef7d68 fp : caef7d64 r10: c0522cf0 r9 : bf15035c r8 : 00000002 r7 : c0522e34 r6 : caca57c0 r5 : 00000000 r4 : 00000000 r3 : c055e144 r2 : 0000000c r1 : 00000000 r0 : caef7d3c Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user Control: 10c5387d Table: 8adc4019 DAC: 00000015 Process insmod (pid: 1599, stack limit = 0xcaef62e8) Stack: (0xcaef7d38 to 0xcaef8000) 7d20: caef7d64 caef7d48 7d40: c02c6ad8 c009cb6c 00000000 00000000 bf15031c caca57c0 caef7da4 caef7d68 7d60: bf14eef4 c0063c2c 00000000 00000001 00000000 bf150364 caef7d94 c0522cf8 7d80: c0522d2c bf15019c bf15019c 00000000 0000001f 0000001c caef7db4 caef7da8 7da0: c0219f00 bf14eb6c caef7dd4 caef7db8 c0218f70 c0219ef0 c0522cf8 c0522d2c 7dc0: bf15019c 00000000 caef7df4 caef7dd8 c0219094 c0218eac cc81ccb4 bf15019c 7de0: caef7df8 c021902c caef7e1c caef7df8 c0218108 c0219038 cc81ccb8 cc866a30 7e00: bf15019c cb135c80 c0543258 00000000 caef7e2c caef7e20 c0218c08 c02180bc 7e20: caef7e5c caef7e30 c021880c c0218bf4 bf14fdba caef7e40 bf15019c 00000000 7e40: 00000001 bf154000 00000000 0000001c caef7e84 caef7e60 c02192f0 c0218764 7e60: bf150188 00000000 00000001 bf154000 00000000 0000001c caef7e94 caef7e88 7e80: c021a1ec c021924c caef7eac caef7e98 c021a220 c021a1ac bf1501f8 00000000 7ea0: caef7ebc caef7eb0 bf154018 c021a20c caef7ef4 caef7ec0 c00414f8 bf15400c 7ec0: bf1501f8 00000000 00000001 cae06900 caef7ef4 bf1501f8 00000000 00000001 7ee0: cae06900 00000001 caef7fa4 caef7ef8 c009ef30 c0041448 bf150204 caef7f08 7f00: c0041298 c009ca98 00000000 00012008 bf150300 c03bf85c c00dc1b8 e3708000 7f20: 00008e2f e370da34 e370d915 e3710054 cae02400 0000439c 00004bfc 00000000 7f40: 00000000 0000001d 0000001e 00000015 00000012 00000009 00000000 00000000 7f60: 00000000 bf15010c 00000003 00000000 00000000 c04ed12c cb135780 00000000 7f80: 00010000 00000003 00000080 c004b568 caef6000 00000000 00000000 caef7fa8 7fa0: c004b3c0 c009d8d4 00000000 00010000 00012018 00008e2f 00012008 00000001 7fc0: 00000000 00010000 00000003 00000080 00012008 00000000 00012018 00000000 7fe0: be853e73 be853c0c 00008da0 402907d4 60000010 00012018 00000000 00000000 Backtrace: [] (vps_ti816x_select_video_decoder+0x0/0xa4) from [] (ti81) r6:caca57c0 r5:bf15031c r4:00000000 [] (ti81xxvin_probe+0x0/0x4e4 [ti81xxvin]) from [] (platfor) [] (platform_drv_probe+0x0/0x20) from [] (driver_probe_devi) [] (driver_probe_device+0x0/0x18c) from [] (__driver_attach) r7:00000000 r6:bf15019c r5:c0522d2c r4:c0522cf8 [] (__driver_attach+0x0/0x8c) from [] (bus_for_each_dev+0x5) r6:c021902c r5:caef7df8 r4:bf15019c r3:cc81ccb4 [] (bus_for_each_dev+0x0/0x88) from [] (driver_attach+0x20/) r7:00000000 r6:c0543258 r5:cb135c80 r4:bf15019c [] (driver_attach+0x0/0x28) from [] (bus_add_driver+0xb4/0x) [] (bus_add_driver+0x0/0x230) from [] (driver_register+0xb0) [] (driver_register+0x0/0x134) from [] (platform_driver_reg) [] (platform_driver_register+0x0/0x60) from [] (platform_dr) [] (platform_driver_probe+0x0/0x70) from [] (ti81xxvin_init) r5:00000000 r4:bf1501f8 [] (ti81xxvin_init+0x0/0x24 [ti81xxvin]) from [] (do_one_in) [] (do_one_initcall+0x0/0x190) from [] (sys_init_module+0x1) r8:00000001 r7:cae06900 r6:00000001 r5:00000000 r4:bf1501f8 [] (sys_init_module+0x0/0x1830) from [] (ret_fast_syscall+0) Code: e3a01000 e3a0200c e24b0028 e5934004 (e1d460b2) ---[ end trace e5ab92948cd8a760 ]--- Segmentation fault

  • 你好,

    能否在vps_ti816x_select_video_decoder加一些打印调试一下?如果有仿真器的话,可以连上调试。