Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10986

DRA821: PCIe: Segmentation fault

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Linux Core SDK
    • LCPD-28432
    • 08.02.00
    • 08.05.00
    • j7200-evm

      There are segmentation fault during load/unload PCIe driver test

      Please check below logs.

       

      [Test step]

      1. Load PCIe driver (modprobe pci-j721e)

      2. Unload PCIe driver (rmmod pci-j721e)

      3, Load PCie driver (modprobe pci-j721e)  -> Segmentation fault occured

       

       

      icon-bam login: root
      root@icon-bam:~#
      root@icon-bam:~#
      root@icon-bam:~# dmesg -C
      root@icon-bam:~#
      root@icon-bam:~#
      root@icon-bam:~# modprobe pci-j721e
      root@icon-bam:~# rmmod pci-j721e
      root@icon-bam:~# modprobe pci-j721e
      [ 147.537009] Unable to handle kernel paging request at virtual address ffff800009d103b8
      [ 147.544974] Mem abort info:
      [ 147.547766] ESR = 0x96000007
      [ 147.552610] EC = 0x25: DABT (current EL), IL = 32 bits
      [ 147.558007] SET = 0, FnV = 0
      [ 147.561115] EA = 0, S1PTW = 0
      [ 147.564252] Data abort info:
      [ 147.567169] ISV = 0, ISS = 0x00000007
      [ 147.571049] CM = 0, WnR = 0
      [ 147.574065] swapper pgtable: 64k pages, 48-bit VAs, pgdp=0000000083190000
      [ 147.580907] [ffff800009d103b8] pgd=00000008ffff0003, p4d=00000008ffff0003, pud=00000008ffff0003, pmd=00000008fffe0003, pte=0000000000000000
      [ 147.593477] Internal error: Oops: 96000007 1 PREEMPT SMP
      [ 147.599049] Modules linked in: pci_j721e pci_endpoint_test xt_conntrack xt_MASQUERADE xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables bridge stp llc overlay omap_rng cdns3 roles rpmsg_char rng_core ti_am335x_adc kfifo_buf usbcore crct10dif_ce ti_j721e_cpsw_virt_mac ti_k3_r5_remoteproc virtio_rpmsg_bus ti_am335x_tscadc sa2ul rti_wdt sha512_generic authenc cdns3_ti sch_fq_codel rpmsg_kdrv_switch ipv6 [last unloaded: pci_j721e]
      Broadcast message from systemd-journald@icon-bam (Wed 2022-06-[ 147.645044] CPU: 1 PID: 441 Comm: modprobe Not tainted 5.10.65-ge456617e4d #1
      08 02:57:46 UTC):
      kernel[215]: [ 147.593477] Internal erro[ 147.657683] Hardware name: BMW ICON 24 based on TI J7200 SoC (DT)
      r: Oops: 96000007 1 PREEMPT SMP
      [ 147.669301] pstate: 80000005 (Nzcv daif PAN -UAO -TCO BTYPE=-)
      [ 147.678765] pc : irq_find_matching_fwspec+0x64/0x120
      [ 147.683726] lr : irq_find_matching_fwspec+0x44/0x120
      [ 147.688684] sp : ffff800012b0f6b0
      [ 147.691993] x29: ffff800012b0f6b0 x28: ffff0008048bf800
      [ 147.697305] x27: ffff00087ff3eb00 x26: ffff800012b0f738
      [ 147.702616] x25: ffff00087ff2c5b8 x24: 0000000000000001
      [ 147.707926] x23: ffff00087ff2c5a0 x22: ffff8000116bf648
      [ 147.713236] x21: ffff800010d98538 x20: ffff8000116bf668
      [ 147.718545] x19: ffff00080465aa00 x18: 0140000000000000
      [ 147.723855] x17: ffff800012b60000 x16: 0000000000000000
      [ 147.729166] x15: ffff800011840000 x14: ffffffffffffffff
      [ 147.734476] x13: 0000000000000010 x12: 0101010101010101
      [ 147.739785] x11: 0000000000000020 x10: 0101010101010101
      [ 147.745095] x9 : ffff8000100d16c4 x8 : 7f7f7f7f7f7f7f7f
      [ 147.750405] x7 : 6d6821ff71646b6b x6 : 000000008023696e
      [ 147.755715] x5 : ffff00087ff2c630 x4 : 0000000000000000
      [ 147.761024] x3 : ffff800009d103b0 x2 : ffff0008011bc780
      [ 147.766334] x1 : 0000000000000000 x0 : 0000000000000000
      [ 147.771644] Call trace:
      [ 147.774093] irq_find_matching_fwspec+0x64/0x120
      [ 147.778708] irq_find_host+0x50/0xa8
      [ 147.782279] of_irq_get+0x60/0x80
      [ 147.785590] of_irq_get_byname+0x40/0x58
      [ 147.789512] __platform_get_irq_byname+0x2c/0x88
      [ 147.794123] platform_get_irq_byname+0x28/0x70
      [ 147.798573] j721e_pcie_probe+0x170/0x7e4 [pci_j721e]
      [ 147.803621] platform_drv_probe+0x5c/0xb0
      [ 147.807626] really_probe+0xf4/0x3e8
      [ 147.811196] driver_probe_device+0x60/0xc0
      [ 147.815287] device_driver_attach+0x7c/0x88
      [ 147.819464] __driver_attach+0x60/0xe8
      [ 147.823211] bus_for_each_dev+0x78/0xc8
      [ 147.827041] driver_attach+0x2c/0x38
      [ 147.830610] bus_add_driver+0x158/0x200
      [ 147.834441] driver_register+0x6c/0x128
      [ 147.838273] __platform_driver_register+0x50/0x60
      [ 147.842975] j721e_pcie_driver_init+0x2c/0x10000 [pci_j721e]
      [ 147.848629] do_one_initcall+0x4c/0x2e0
      [ 147.852462] do_init_module+0x60/0x228
      [ 147.856208] load_module+0x2068/0x26a0
      [ 147.859952] __do_sys_finit_module+0xb8/0xf8
      [ 147.864218] __arm64_sys_finit_module+0x28/0x38
      [ 147.868747] el0_svc_common.constprop.0+0x80/0x1d0
      [ 147.873533] do_el0_svc+0x2c/0x98
      [ 147.876848] el0_svc+0x20/0x30
      [ 147.879906] el0_sync_handler+0xb0/0xb8
      [ 147.883739] el0_sync+0x180/0x1c0
      [ 147.887057] Code: d1006337 9114e2b5 d503201f f9400e63 (f9400464)
      [ 147.893147] --[ end trace 98b07a2101a94f9e ]--
      Segmentation fault

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: