雨夜

雨夜

0个粉丝

9

问答

0

专栏

0

资料

雨夜  发布于  2018-07-19 11:45:48
采纳率 0%
9个问答
5992

3559AV100设置MIPI错误

 
     我现在在做3559AV100方面的相关开发,遇到如下问题:
     按照媒体处理软件开发参考中第3.3节关于dev和mipi的绑定介绍,Hi3559AV100 的 Dev 不可以与 MIPI 设置绑定,也就是说dev0一定要对应mipi0、dev1对应mipi1(其它依此类推)。然后我们的硬件MIPI1上现在接有sensor,但是当我在程序中将输入dev设置成1,MIMI设置为1的时候,MIPI驱动报错“check_comm_attr(300): invalid dev number(1).”,如下:
check_comm_attr(300): invalid dev number(1).

----fun:mipi_set_combo_dev_attr line:1184----
[SAMPLE_COMM_VI_SetMipiAttr]-1949: MIPI_SET_DEV_ATTR failed
[SAMPLE_COMM_VI_StartMIPI]-2020: SAMPLE_COMM_VI_SetMipiAttr failed!
[SAMPLE_COMM_VI_StartVi]-2986: SAMPLE_COMM_VI_StartMIPI failed!
[SAMPLE_VENC_VI_Init]-325: SAMPLE_COMM_VI_StartVi failed with -1!
[SAMPLE_VENC_4K60]-650: Init VI err for 0xffffffff!
program exit abnormally!

也就是说不支持1,当我设置成3、5也是如此报不支持。
而当我设置成MIPI2/MPIP4却报的内核错误,如下:
Unable to handle kernel paging request at virtual address ffffff840e7957f8
pgd = ffffffc01d230000
[ffffff840e7957f8] *pgd=0000000000000000, *pud=0000000000000000

Internal error: Oops: 96000005 [#1] SMP
Modules linked in: hi_user(O) hi_mipi(O) hi3559av100_acodec(PO) hi3559av100_adec(PO) hi3559av100_aenc(PO) hi3559av100_ao(PO) hi3559av100_ai(PO) hi3559av100_aio(PO) hi3559av100_hdmi(PO) hi_sensor_spi(O) hi_sensor_i2c(O) hi_piris(O) hi_pwm(O) hi3559av100_dpu_match(PO) hi3559av100_dpu_rect(PO) hi3559av100_dsp(PO) hi3559av100_nnie(PO) hi_ipcm(O) hi3559av100_ive(PO) hi3559av100_vdec(PO) hi3559av100_vfmw(PO) hi3559av100_jpegd(PO) hi3559av100_jpege(PO) hi3559av100_h265e(PO) hi3559av100_h264e(PO) hi3559av100_vedu(PO) hi3559av100_chnl(PO) hi3559av100_venc(PO) hi3559av100_rc(PO) hifb(O) hi3559av100_vo(PO) hi3559av100_avs(PO) hi3559av100_vpss(PO) hi3559av100_vi(PO) hi3559av100_isp(PO) hi3559av100_dis(PO) hi3559av100_vgs(PO) hi3559av100_gdc(PO) hi3559av100_rgn(PO) hi3559av100_tde(O) hi3559av100_sys(PO) hi3559av100_base(PO) hi_osal(O)
CPU: 3 PID: 1271 Comm: sample_venc Tainted: P           O    4.9.37 #1
Hardware name: Hisilicon HI3559AV100 DEMO Board (DT)
task: ffffffc021d6bc00 task.stack: ffffffc022488000
PC is at mipi_drv_set_link_lane_id+0x6c/0x1e8 [hi_mipi]
LR is at mipi_set_mipi_dev_attr+0x1b8/0x448 [hi_mipi]
pc : [] lr : [] pstate: a0000145
sp : ffffffc02248bce0
x29: ffffffc02248bce0 x28: ffffffc022488000
x27: ffffff8008632000 x26: 000000000000001d
x25: ffffff800ce7b024 x24: 0000000000000000
x23: 000000000000000c x22: ffffff800ce7b01c
x21: 0000000000000000 x20: 0000000000000004
x19: ffffff800ce7b000 x18: 0000000000000000
x17: 0000007fa4a9bf20 x16: 0000000000000001
x15: 0000000000000001 x14: 0000000000000007
x13: ffffff80020c79b8 x12: 0000000000000008
x11: ffffff80020c79b8 x10: 0000000000000000
x9 : 0000000000005300 x8 : 0000000000000008
x7 : ffffff800e795300 x6 : 00000000fffffff8
x5 : 0000000000001004 x4 : 0000000000000000
x3 : ffffff800ce7b024 x2 : 00000000fffffffb
x1 : 0000000000000004 x0 : ffffff840e7952f8

Process sample_venc (pid: 1271, stack limit = 0xffffffc022488020)
Stack: (0xffffffc02248bce0 to 0xffffffc02248c000)
bce0: ffffffc02248bd40 ffffff80020b9788 ffffff800ce7b000 ffffff80020c6f00
bd00: ffffffc01bc9c000 0000007feaa4ca10 ffffff800ce7b000 0000000000000015
bd20: 0000000000000123 ffffff800815bcc4 ffffffc02248bd40 ffffff80020c4e20
bd40: ffffffc02248bd60 ffffff80020ba368 ffffff800ce7b000 0000000000000260
bd60: ffffffc02248bdc0 ffffff80006310f8 0000000042606d01 0000000000000260
bd80: ffffffc01bc9c000 0000007feaa4ca10 ffffff800ce7b000 0000000000000015
bda0: 0000000000000123 ffffffc0226a9498 ffffffc02248bdc0 ffffff800063109c
bdc0: ffffffc02248be00 ffffff8008182bac ffffffc0227a8e00 ffffffc0226a9498
bde0: ffffffc0227a8e00 0000007feaa4ca10 0000007feaa4ca10 0000000000000015
be00: ffffffc02248be80 ffffff800818329c ffffffc0227a8e00 0000000000000006
be20: ffffffc0227a8e00 0000000042606d01 0000007feaa4ca10 ffffff800816f34c
be40: 0000000000000006 ffffff800816f344 ffffffc02248beb0 ffffff800816f3e8
be60: 0000000000000000 000000000053ada8 ffffffc02248be80 ffffff800818327c
be80: 0000000000000000 ffffff80080826f0 0000000000000000 0000000000000000
bea0: ffffffffffffffff 0000007fa4a9bf2c 0000000080000000 ffffff80080826f0
bec0: 0000000000000006 0000000042606d01 0000007feaa4ca10 0000007feaa4cc10
bee0: 00000000005812a8 0000007feaa4cc70 0000000000000000 0000000000000000
bf00: 000000000000001d 0000000000000000 0000000000000000 0000000000000000
bf20: 0000000000000000 0000000000000000 0000000000000000 0000000000000077
bf40: 000000000057d5d8 0000007fa4a9bf20 0000000000000000 0000000000537cd8
bf60: 0000000000000000 00000000004094f0 0000000000000000 0000000000000000
bf80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
bfa0: 0000000000000000 0000007feaa4c9d0 000000000041a3ec 0000007feaa4c9d0
bfc0: 0000007fa4a9bf2c 0000000080000000 0000000000000006 000000000000001d
bfe0: 0000000000000000 0000000000000000 f87bdb5f9561b841 4cc00a4a8e495383
Call trace:
Exception stack(0xffffffc02248bb10 to 0xffffffc02248bc40)
bb00:                                   ffffff800ce7b000 0000008000000000
bb20: ffffffc02248bce0 ffffff80020bd154 0000000000000000 ffffff8008847000
bb40: 00000000024002c2 0000000000000000 00000000024002c2 0000000000000001
bb60: 00000000024000c2 ffffffc01bc9c380 00e8000000000713 ffffffc022488000
bb80: ffffffc021e06480 ffffffc0226a9498 ffffffc0227a8e00 ffffff80088af000
bba0: ffffffc02248bbf0 ffffff800816dec4 ffffff840e7952f8 0000000000000004
bbc0: 00000000fffffffb ffffff800ce7b024 0000000000000000 0000000000001004
bbe0: 00000000fffffff8 ffffff800e795300 0000000000000008 0000000000005300
bc00: 0000000000000000 ffffff80020c79b8 0000000000000008 ffffff80020c79b8
bc20: 0000000000000007 0000000000000001 0000000000000001 0000007fa4a9bf20
[] mipi_drv_set_link_lane_id+0x6c/0x1e8 [hi_mipi]
[] mipi_set_combo_dev_attr+0xa8/0x318 [hi_mipi]
[] hi_mipi_ioctl+0x308/0x5a8 [hi_mipi]
[] osal_unlocked_ioctl+0x140/0x278 [hi_osal]
[] do_vfs_ioctl+0xa4/0x750
[] SyS_ioctl+0x44/0x80
[] el0_svc_naked+0x24/0x28
Code: 1a82b000 13027c00 8b2048e0 710004df (b9450002)
---[ end trace 343b969ce199aefc ]---
Kernel panic - not syncing: Fatal exception
SMP: stopping secondary CPUs
Kernel Offset: disabled
Memory Limit: 512 MB
---[ end Kernel panic - not syncing: Fatal exception

疑问:MIPI设置成单数的时候为什么会报不支持,而设置成双数为什么报的是内核错误,这个应该如何正确地设置?
我来回答
回答3个
时间排序
认可量排序

Stranger

10个粉丝

0

问答

5

专栏

6

资料

Stranger 2018-07-20 10:58:47
认可0
你们自己的板子出来了?

雨夜

0个粉丝

9

问答

0

专栏

0

资料

雨夜 2018-07-23 15:43:55
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=101729&ptid=51348]stranger 发表于 2018-7-20 10:58[/url]
你们自己的板子出来了?[/quote]

嗯,已经出来了

hero

0个粉丝

1

问答

0

专栏

0

资料

hero 2018-10-22 09:53:41
认可0
:victory::victory::victory:
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区