作者小头像 Lv.1
21 成长值

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据
个人勋章
TA还没获得勋章~
成长雷达
0
21
0
0
0

个人资料

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据

达成规则

发布时间 2021/09/27 10:14:18 最后回复 fffdddsss 2022/02/22 17:44:49 版块 昇腾硬件
8139 83 0
他的回复:
你好,一、配置内核为48bithi3559av100支持atlas200需要一个内核配置配置内核为:Kernel Features  --->    Virtual address space size (48-bit)  --->其他uboot,文件系统不变加载海思多媒体框架驱动会出错。(海思多媒体框架没有提供源码,且在Virtual address space size (39-bit)下编译)/load3559av100_multicore_slaver  -i -sensor0 imx334 -sensor1 imx334sys_config: loading out-of-tree module taints kernel.0: not found./load3559av100_multicore_slaver: line 26: 0x100100000: not foundModule himedia: init okHisilicon Media Memory Zone ManagerERROR: Conflict MMZ:PHYS(0x64000000, 0xFF5FFFFF), GFP=0, nBYTES=2545664KB,    NAME="anonymous"MMZ conflict to kernel memory (0x40000000, 0x800047FFFFFF)Add MMZ failed: PHYS(0x64000000, 0xFF5FFFFF), GFP=0, nBYTES=2545664KB,    NAME="anonymous"hi_osal 1.0 init success!hi3559av100_base: module license 'Proprietary' taints kernel.Disabling lock debugging due to kernel taintmalloc buffer for SYS sclcoeffset fail!load sys.ko for Hi3559AV100...FAILURE!那么存在一个问题:用atlas200,则hi3559av100多媒体系统不能使用。用hi3559av100,则atlas200 无法使用二、配置内核为39bit海思多媒体框架加载不报错加载atlas200 pcie驱动成功 (device_boot_pcie.sh 3559)以前配置Virtual address space size (48-bit),因为atlas200 pcie驱动源码./source/driver/kernel/dev_inc/inc/devmm_dev.h以前:#define DEVMM_SVM_MEM_START 0x100000000000ULL 有45bit修改:#define DEVMM_SVM_MEM_START 0x4000000000ULL 有39bit执行acl应用失败如何执行修改源码,让其可以在内核配置Virtual address space size (39-bit)下运行成功附件:acl应用在39bit下内核打印acl应用在39bit下syslog打印
发布时间 2021/09/27 10:14:18 最后回复 fffdddsss 2022/02/22 17:44:49 版块 昇腾硬件
8139 83 0
他的回复:
[quote]回复:远望 发表于 2021-10-15 14:40 每次替换之后的动作都要做完1、不加载3559 冲突中断的驱动2、中断GIC-1803.请问屏蔽掉insert_pci hi3559这个动作做了没?做完后请将相关[/quote]你好,1.没有加载insert_pci2.中断GIC-180华为支持工程师说,需要PCIE MSI中断支持,目前占用180号逻辑中断,atlas200 pcie驱动也想占用180,这个180给谁用?是否需要MSI驱动?有没有给个定论?3.华为的load3559av100_multicore都没执行信息反馈:1.dts 见附件2.失败,见上一个回复的打印信息,十分明确肯定的说明了加载atlas200 pcie驱动失败3.cat /proc/interruptroot@ubuntu:/home/work/ko# cat /proc/interrupts            CPU0       CPU1       CPU2       CPU3         2:    1442416    1442416    1442416    1442415     GIC-0  30 Level     arch_timer 13:       8930          0          0          0     GIC-0  38 Level     uart-pl011 18:          0          0          0          0     GIC-0  63 Level     pl022 19:          0          0          0          0     GIC-0  64 Level     pl022 20:          0          0          0          0     GIC-0  65 Level     pl022 21:          0          0          0          0     GIC-0  66 Level     pl022 22:          0          0          0          0     GIC-0  67 Level     pl022 23:          0          0          0          0     GIC-0 192 Level     12140000.gpio_chip 24:          0          0          0          0     GIC-0 193 Level     12141000.gpio_chip 25:          0          0          0          0     GIC-0 194 Level     12142000.gpio_chip 26:          0          0          0          0     GIC-0 195 Level     12143000.gpio_chip 27:          0          0          0          0     GIC-0 196 Level     12144000.gpio_chip 28:          0          0          0          0     GIC-0 197 Level     12145000.gpio_chip 29:          0          0          0          0     GIC-0 198 Level     12146000.gpio_chip 30:          0          0          0          0     GIC-0 199 Level     12147000.gpio_chip 31:          0          0          0          0     GIC-0 200 Level     12148000.gpio_chip 32:          0          0          0          0     GIC-0 201 Level     12149000.gpio_chip 33:          0          0          0          0     GIC-0 202 Level     1214a000.gpio_chip 34:          0          0          0          0     GIC-0 203 Level     1214b000.gpio_chip 35:          0          0          0          0     GIC-0 204 Level     1214c000.gpio_chip 36:          0          0          0          0     GIC-0 205 Level     1214d000.gpio_chip 37:          0          0          0          0     GIC-0 206 Level     1214e000.gpio_chip 38:          0          0          0          0     GIC-0 207 Level     1214f000.gpio_chip 39:          0          0          0          0     GIC-0 208 Level     12150000.gpio_chip 40:          0          0          0          0     GIC-0 209 Level     12151000.gpio_chip 41:          0          0          0          0     GIC-0 210 Level     12152000.gpio_chip 42:          0          0          0          0     GIC-0  43 Level     180b0000.rtc 43:      46731          0          0          0     GIC-0  68 Level     101c0000.ethernet 47:      13665          0          0          0     GIC-0  58 Level     mmc0 48:          0          0          0          0     GIC-0 106 Level     mmc1 49:          0          0          0          0     GIC-0 107 Level     mmc2 50:          0          0          0          0     GIC-0 180 Level     HISI PCIe MSIIPI0:      3764      12408      24423      64156       Rescheduling interruptsIPI1:        35         30        754        798       Function call interruptsIPI2:         0          0          0          0       CPU stop interruptsIPI3:         0          0          0          0       CPU stop (for crash dump) interruptsIPI4:         0          0          0          0       Timer broadcast interruptsIPI5:         0          0          0          0       IRQ work interruptsIPI6:         0          0          0          0       CPU wake-up interrupts谢谢!
发布时间 2021/09/27 10:14:18 最后回复 fffdddsss 2022/02/22 17:44:49 版块 昇腾硬件
8139 83 0
他的回复:
你好,    1.按照之前的方法配置一下180中断,     之前有很多配置,不知道你说的哪个?目前使用其中之一     原始:interrupt-map = 0x0 0x0 0x0 0x1 &gic 0x0 143 0x4                    0x0 0x0 0x0 0x2 &gic 0x0 144 0x4                    0x0 0x0 0x0 0x3 &gic 0x0 145 0x4                    0x0 0x0 0x0 0x4 &gic 0x0 146 0x4>;    修改:                interrupt-map = 0x0 0x0 0x0 0x1 &gic 0x0 148 0x4                    0x0 0x0 0x0 0x2 &gic 0x0 144 0x4                    0x0 0x0 0x0 0x3 &gic 0x0 145 0x4                    0x0 0x0 0x0 0x4 &gic 0x0 146 0x4>;      照样出错:      [    0.823915] pcie_pme: probe of 0000:00:00.0:pcie001 failed with error -22     2.devdrv_irq_main_func申请中断不成功     /home/work/driver/boot/device_boot_pcie.sh 3559      Fri Oct 15 11:04:45 CST 2021 [INFO] davinci device startup     /home/work/driver/boot    insmod drv_seclib_host.ko finish    genirq: Flags mismatch irq 50. 00000084 (devdrv_irq_main_func) vs. 00010004 (HISI PCIe MSI)root@ubuntu:~# cat /proc/interrupts            CPU0       CPU1       CPU2       CPU3         2:      24853      24853      24853      24852     GIC-0  30 Level     arch_timer 13:       4351          0          0          0     GIC-0  38 Level     uart-pl011 18:          0          0          0          0     GIC-0  63 Level     pl022 19:          0          0          0          0     GIC-0  64 Level     pl022 20:          0          0          0          0     GIC-0  65 Level     pl022 21:          0          0          0          0     GIC-0  66 Level     pl022 22:          0          0          0          0     GIC-0  67 Level     pl022 23:          0          0          0          0     GIC-0 192 Level     12140000.gpio_chip 24:          0          0          0          0     GIC-0 193 Level     12141000.gpio_chip 25:          0          0          0          0     GIC-0 194 Level     12142000.gpio_chip 26:          0          0          0          0     GIC-0 195 Level     12143000.gpio_chip 27:          0          0          0          0     GIC-0 196 Level     12144000.gpio_chip 28:          0          0          0          0     GIC-0 197 Level     12145000.gpio_chip 29:          0          0          0          0     GIC-0 198 Level     12146000.gpio_chip 30:          0          0          0          0     GIC-0 199 Level     12147000.gpio_chip 31:          0          0          0          0     GIC-0 200 Level     12148000.gpio_chip 32:          0          0          0          0     GIC-0 201 Level     12149000.gpio_chip 33:          0          0          0          0     GIC-0 202 Level     1214a000.gpio_chip 34:          0          0          0          0     GIC-0 203 Level     1214b000.gpio_chip 35:          0          0          0          0     GIC-0 204 Level     1214c000.gpio_chip 36:          0          0          0          0     GIC-0 205 Level     1214d000.gpio_chip 37:          0          0          0          0     GIC-0 206 Level     1214e000.gpio_chip 38:          0          0          0          0     GIC-0 207 Level     1214f000.gpio_chip 39:          0          0          0          0     GIC-0 208 Level     12150000.gpio_chip 40:          0          0          0          0     GIC-0 209 Level     12151000.gpio_chip 41:          0          0          0          0     GIC-0 210 Level     12152000.gpio_chip 42:          0          0          0          0     GIC-0  43 Level     180b0000.rtc 43:        752          0          0          0     GIC-0  68 Level     101c0000.ethernet 47:       3608          0          0          0     GIC-0  58 Level     mmc0 48:          0          0          0          0     GIC-0 106 Level     mmc1 49:          0          0          0          0     GIC-0 107 Level     mmc2 50:          0          0          0          0     GIC-0 180 Level     HISI PCIe MSI 3.存在pci设备root@ubuntu:~# lspci00:00.0 PCI bridge: Huawei Technologies Co., Ltd. Device 3559 (rev 01)01:00.0 Processing accelerators: Huawei Technologies Co., Ltd. Device d100 (rev 20)4.HISI PCIe MSI中断计数不再增加,始终为0   5.能够把你的测试ok的内核发送我测试下?   谢谢!
发布时间 2021/09/27 10:14:18 最后回复 fffdddsss 2022/02/22 17:44:49 版块 昇腾硬件
8139 83 0
他的回复:
你好,    更新hi3559av100 sdk为Hi3559AV100R001C02SPC040,        目前出现的问题有如下特点:            1.hi3559 pcie驱动报错,    在附件中搜索root@ubuntu:~# dmesg | grep pci    [    1.773948] pcie_pme: probe of 0000:00:00.0:pcie001 failed with error -22            2.hi3559出现HISI PCIe MSI中断(未加载atlas200 pcie驱动之前)    在附件中搜索HISI PCIe MSI即可    其逻辑中断号为180,     50:       5000          0          0          0     GIC-0 180 Level     HISI PCIe MSI        且中断值一直会增加到5000然后停止增加        3.加载atlas200 pcie驱动依然出错    root@ubuntu:~# /home/work/driver/boot/device_boot_pcie.sh 3559     Thu Oct 14 17:33:24 CST 2021 [INFO] davinci device startup    /home/work/driver/boot    insmod drv_seclib_host.ko finish    insmod drv_pcie_host.ko type=3559 finish    insmod drv_tsdrv_platform_host.ko finish    insmod drv_devmng_host.ko finish    insmod drv_pcie_hdc_host.ko finish    insmod drv_devdrv_host.ko finish    insmod drv_devmm_host.ko finish    insmod drv_pcie_vnic_host.ko finish    upgrade-tool get device count failed        4.devdrv_irq_main_func    51:          0          0          0          0     GIC-0 175 Level     devdrv_irq_main_func    devdrv_irq_main_func逻辑中断号为175,且始终为0        5.执行acl应用程序依然出错    root@ubuntu:/home/work# ./y33_dev     app compiled at Sep 18 2021 11:19:21    [ERROR] DRV(1911,y33_dev):2021-10-14-17:43:12.111.132 [devdrv_manager.c:809][devmng] [drvGetDevInfo 809] ioctl error.    [ERROR] DRV(1911,y33_dev):2021-10-14-17:43:12.112.020 [devdrv_manager.c:892][devmng] [drvGetSystemInfo 892] drvGetDevInfo failed ret = 17.    [ERROR] DRV(1911,y33_dev):2021-10-14-17:43:12.112.115 [devdrv_manager.c:1247][devmng] [halGetDeviceInfo 1247] halGetDeviceInfo failed ret = 17, moduleType = 0, infoType = 1.    [ERROR] DRV(1911,y33_dev):2021-10-14-17:43:12.114.651 [devdrv_manager.c:809][devmng] [drvGetDevInfo 809] ioctl error.    [ERROR] DRV(1911,y33_dev):2021-10-14-17:43:12.114.783 [devdrv_manager.c:892][devmng] [drvGetSystemInfo 892] drvGetDevInfo failed ret = 17.    [ERROR] DRV(1911,y33_dev):2021-10-14-17:43:12.114.824 [devdrv_manager.c:1247][devmng] [halGetDeviceInfo 1247] halGetDeviceInfo failed ret = 17, moduleType = 0, infoType = 1.    [ERROR]  acl init failed    [ERROR]  Init acl resource failed    [ERROR]  Classification Init resource failed    [WARN]  no model had been loaded, unload failed    [INFO]  end to destroy stream    [INFO]  end to destroy context    [ERROR] DRV(1911,y33_dev):2021-10-14-17:43:12.116.257 [hdc_client.c:149][hdc] [drvHdcClientDestroy 149] magic error(0x80000728)        谢谢!
发布时间 2021/09/27 10:14:18 最后回复 fffdddsss 2022/02/22 17:44:49 版块 昇腾硬件
8139 83 0
发布时间 2021/09/27 10:14:18 最后回复 fffdddsss 2022/02/22 17:44:49 版块 昇腾硬件
8139 83 0
他的回复:
你好,    回复修改interrupt-map测试,    1.不启动海思load3559av100_multicore脚本    1.执行acl应用前,等待10来秒,devdrv_irq_main_fun中断始终未零     root@ubuntu:~# cat /proc/interrupts  | grep devdrv_irq_main_func     55:          0          0          0          0     GIC-0 179 Level     devdrv_irq_main_fun    2.中断逻辑号用原来177变为179,应该是和设备树修改有关系     3.执行acl应用程序卡死几分钟,随后报错。     app compiled at Sep 18 2021 11:19:21[ERROR] DRV(1871,y33_dev):2021-10-12-13:55:41.977.050 [devdrv_manager.c:809][devmng] [drvGetDevInfo 809] ioctl error.[ERROR] DRV(1871,y33_dev):2021-10-12-13:55:41.977.939 [devdrv_manager.c:892][devmng] [drvGetSystemInfo 892] drvGetDevInfo failed ret = 17.[ERROR] DRV(1871,y33_dev):2021-10-12-13:55:41.977.998 [devdrv_manager.c:1247][devmng] [halGetDeviceInfo 1247] halGetDeviceInfo failed ret = 17, moduleType = 0, infoType = 1.[ERROR] DRV(1871,y33_dev):2021-10-12-13:55:41.982.588 [devdrv_manager.c:809][devmng] [drvGetDevInfo 809] ioctl error.[ERROR] DRV(1871,y33_dev):2021-10-12-13:55:41.982.917 [devdrv_manager.c:892][devmng] [drvGetSystemInfo 892] drvGetDevInfo failed ret = 17.[ERROR] DRV(1871,y33_dev):2021-10-12-13:55:41.982.981 [devdrv_manager.c:1247][devmng] [halGetDeviceInfo 1247] halGetDeviceInfo failed ret = 17, moduleType = 0, infoType = 1.[ERROR]  acl init failed[ERROR]  Init acl resource failed[ERROR]  Classification Init resource failed[WARN]  no model had been loaded, unload failed[INFO]  end to destroy stream[INFO]  end to destroy context[ERROR] DRV(1871,y33_dev):2021-10-12-13:55:41.984.699 [hdc_client.c:149][hdc] [drvHdcClientDestroy 149] magic error(0x94000728)[INFO]  end to finalize acl    4. acl应用报错后,devdrv_irq_main_fun中断始终为0     2.启动海思load3559av100_multicore脚本   root@ubuntu:/home/work/ko# /home/work/driver/boot/device_boot_pcie.sh 3559 Tue Oct 12 14:01:11 CST 2021 [INFO] davinci device startup/home/work/driver/bootinsmod drv_seclib_host.ko finish------dev->irq = 55-----------devdrv_init_3559_alloc_irq 55------genirq: Flags mismatch irq 55. 00000084 (devdrv_irq_main_func) vs. 00000004 (PCIe DMA local-irq)中断冲突了。谢谢!