Uploaded image for project: 'ROGUE'
  1. ROGUE
  2. ESROGUE-666

aes-stream-driver.data_dev: kernel panic message when unloading the driver and using more than 1 datadev card

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: resolved
    • Icon: Major Major
    • None
    • None

      The kernel panic message you're encountering is related to an issue within the __iommu_dma_unmap function, which is part of the Linux kernel's Direct Memory Access (DMA) and Input/Output Memory Management Unit (IOMMU) handling. This part of the kernel is responsible for managing how devices access memory without going through the CPU, a critical function for performance and security in device operations.

       [ 2914.670267] datadev: Exit.
      [ 2914.670282] datadev: Remove: Remove called.
      [ 2914.670307] ------------[ cut here ]------------
      [ 2914.670308] WARNING: CPU: 10 PID: 3029 at drivers/iommu/dma-iommu.c:511 __iommu_dma_unmap+0x12b/0x140
      [ 2914.670315] Modules linked in: datadev(OE-) cmac algif_hash algif_skcipher af_alg falcon_lsm_serviceable(PE) falcon_nf_netcontain(PE) falcon_kal(E) falcon_lsm_pinned_16108(E) yfs(POE) ipmi_devintf ipmi_msghandler bnep nls_iso8859_1 snd_hda_codec_hdmi intel_rapl_msr snd_hda_intel snd_intel_dspcfg intel_rapl_common snd_usb_audio snd_intel_sdw_acpi edac_mce_amd snd_hda_codec snd_usbmidi_lib snd_hda_core mc snd_hwdep snd_pcm mt7921e kvm_amd mt76_connac_lib ccp snd_seq_midi mt76 snd_seq_midi_event kvm snd_rawmidi mac80211 snd_seq btusb btrtl crct10dif_pclmul btbcm ghash_clmulni_intel snd_seq_device aesni_intel btintel crypto_simd snd_timer bluetooth cryptd snd ecdh_generic cfg80211 rapl binfmt_misc wmi_bmof ecc input_leds joydev soundcore libarc4 mac_hid sch_fq_codel msr parport_pc ppdev lp parport ramoops reed_solomon pstore_blk pstore_zone drm efi_pstore ip_tables x_tables autofs4 hid_generic usbhid hid bnx2x crc32_pclmul thunderbolt i2c_piix4 r8169 nvme ahci xhci_pci mdio libahci
      [ 2914.670369]  xhci_pci_renesas libcrc32c realtek nvme_core wmi video
      [ 2914.670375] CPU: 10 PID: 3029 Comm: rmmod Tainted: P           OE     5.15.0-94-generic #104~20.04.1-Ubuntu
      [ 2914.670377] Hardware name: Micro-Star International Co., Ltd. MS-7D70/MPG X670E CARBON WIFI (MS-7D70), BIOS 1.C0 11/23/2023
      [ 2914.670379] RIP: 0010:__iommu_dma_unmap+0x12b/0x140
      [ 2914.670382] Code: 4c 89 ff e8 f7 fd ff ff 48 8b 45 d0 65 48 33 04 25 28 00 00 00 75 1a 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d e9 a5 59 7a 00 <0f> 0b e9 72 ff ff ff e8 e9 29 52 00 66 0f 1f 84 00 00 00 00 00 0f
      [ 2914.670384] RSP: 0018:ffffa80a8231bc00 EFLAGS: 00010206
      [ 2914.670386] RAX: 0000000000010000 RBX: 0000000000008000 RCX: 0000000000000000
      [ 2914.670387] RDX: 00000000bdde7fff RSI: ffffffffffffffff RDI: ffff97530bb19f00
      [ 2914.670388] RBP: ffffa80a8231bc58 R08: 0000000000010000 R09: 0000000000000000
      [ 2914.670389] R10: 0000000000000000 R11: ffff9761de6b1600 R12: 00000000bdde0000
      [ 2914.670390] R13: 0000000000008000 R14: ffff9753002f1210 R15: ffff97530570b800
      [ 2914.670391] FS:  00007f327550e740(0000) GS:ffff9761de680000(0000) knlGS:0000000000000000
      [ 2914.670393] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [ 2914.670394] CR2: 000056047d597bf8 CR3: 000000011608e000 CR4: 0000000000750ee0
      [ 2914.670395] PKRU: 55555554
      [ 2914.670396] Call Trace:
      [ 2914.670398]  <TASK>
      [ 2914.670400]  ? show_regs.cold+0x1a/0x1f
      [ 2914.670404]  ? __iommu_dma_unmap+0x12b/0x140
      [ 2914.670406]  ? __warn+0x8b/0xe0
      [ 2914.670409]  ? __iommu_dma_unmap+0x12b/0x140
      [ 2914.670411]  ? report_bug+0xd5/0x110
      [ 2914.670415]  ? handle_bug+0x39/0x90
      [ 2914.670418]  ? exc_invalid_op+0x19/0x70
      [ 2914.670420]  ? asm_exc_invalid_op+0x1b/0x20
      [ 2914.670423]  ? __iommu_dma_unmap+0x12b/0x140
      [ 2914.670427]  iommu_dma_free+0x1e/0x40
      [ 2914.670429]  dma_free_attrs+0x4e/0x60
      [ 2914.670432]  AxisG2_Clear+0xe2/0x150 [datadev]
      [ 2914.670437]  Dma_Clean+0x1f/0x140 [datadev]
      [ 2914.670440]  DataDev_Remove+0x82/0xca [datadev]
      [ 2914.670444]  pci_device_remove+0x3e/0xb0
      [ 2914.670447]  device_release_driver_internal+0x107/0x1f0
      [ 2914.670451]  driver_detach+0x4c/0xa0
      [ 2914.670454]  bus_remove_driver+0x6c/0xf0
      [ 2914.670456]  driver_unregister+0x31/0x50
      [ 2914.670458]  pci_unregister_driver+0x40/0x90
      [ 2914.670461]  cleanup_module+0x28/0x22f [datadev]
      [ 2914.670464]  __x64_sys_delete_module+0x14e/0x260
      [ 2914.670468]  ? __fput+0x127/0x280
      [ 2914.670472]  do_syscall_64+0x5c/0xc0
      [ 2914.670474]  ? exit_to_user_mode_prepare+0x3d/0x1c0
      [ 2914.670476]  ? syscall_exit_to_user_mode+0x35/0x50
      [ 2914.670479]  ? do_syscall_64+0x69/0xc0
      [ 2914.670481]  ? syscall_exit_to_user_mode+0x35/0x50
      [ 2914.670483]  ? do_syscall_64+0x69/0xc0
      [ 2914.670485]  ? syscall_exit_to_user_mode+0x35/0x50
      [ 2914.670487]  ? do_syscall_64+0x69/0xc0
      [ 2914.670489]  entry_SYSCALL_64_after_hwframe+0x62/0xcc
      [ 2914.670491] RIP: 0033:0x7f327565bc8b
      [ 2914.670493] Code: 73 01 c3 48 8b 0d 05 c2 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d d5 c1 0c 00 f7 d8 64 89 01 48
      [ 2914.670495] RSP: 002b:00007ffd15625de8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
      [ 2914.670497] RAX: ffffffffffffffda RBX: 000056047d58c760 RCX: 00007f327565bc8b
      [ 2914.670498] RDX: 000000000000000a RSI: 0000000000000800 RDI: 000056047d58c7c8
      [ 2914.670499] RBP: 00007ffd15625e48 R08: 0000000000000000 R09: 0000000000000000
      [ 2914.670499] R10: 00007f32756d7ac0 R11: 0000000000000206 R12: 00007ffd15626028
      [ 2914.670500] R13: 00007ffd1562685b R14: 000056047d58c2a0 R15: 000056047d58c760
      [ 2914.670502]  </TASK>
      [ 2914.670503] ---[ end trace 3a265266105c8d8b ]---
      [ 2914.670510] ------------[ cut here ]------------
      [ 2914.670511] WARNING: CPU: 10 PID: 3029 at drivers/iommu/dma-iommu.c:511 __iommu_dma_unmap+0x12b/0x140
      [ 2914.670514] Modules linked in: datadev(OE-) cmac algif_hash algif_skcipher af_alg falcon_lsm_serviceable(PE) falcon_nf_netcontain(PE) falcon_kal(E) falcon_lsm_pinned_16108(E) yfs(POE) ipmi_devintf ipmi_msghandler bnep nls_iso8859_1 snd_hda_codec_hdmi intel_rapl_msr snd_hda_intel snd_intel_dspcfg intel_rapl_common snd_usb_audio snd_intel_sdw_acpi edac_mce_amd snd_hda_codec snd_usbmidi_lib snd_hda_core mc snd_hwdep snd_pcm mt7921e kvm_amd mt76_connac_lib ccp snd_seq_midi mt76 snd_seq_midi_event kvm snd_rawmidi mac80211 snd_seq btusb btrtl crct10dif_pclmul btbcm ghash_clmulni_intel snd_seq_device aesni_intel btintel crypto_simd snd_timer bluetooth cryptd snd ecdh_generic cfg80211 rapl binfmt_misc wmi_bmof ecc input_leds joydev soundcore libarc4 mac_hid sch_fq_codel msr parport_pc ppdev lp parport ramoops reed_solomon pstore_blk pstore_zone drm efi_pstore ip_tables x_tables autofs4 hid_generic usbhid hid bnx2x crc32_pclmul thunderbolt i2c_piix4 r8169 nvme ahci xhci_pci mdio libahci
      [ 2914.670551]  xhci_pci_renesas libcrc32c realtek nvme_core wmi video
      [ 2914.670554] CPU: 10 PID: 3029 Comm: rmmod Tainted: P        W  OE     5.15.0-94-generic #104~20.04.1-Ubuntu
      [ 2914.670556] Hardware name: Micro-Star International Co., Ltd. MS-7D70/MPG X670E CARBON WIFI (MS-7D70), BIOS 1.C0 11/23/2023
      [ 2914.670557] RIP: 0010:__iommu_dma_unmap+0x12b/0x140
      [ 2914.670559] Code: 4c 89 ff e8 f7 fd ff ff 48 8b 45 d0 65 48 33 04 25 28 00 00 00 75 1a 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d e9 a5 59 7a 00 <0f> 0b e9 72 ff ff ff e8 e9 29 52 00 66 0f 1f 84 00 00 00 00 00 0f
      [ 2914.670560] RSP: 0018:ffffa80a8231bc00 EFLAGS: 00010206
      [ 2914.670562] RAX: 0000000000010000 RBX: 0000000000008000 RCX: 0000000000000000
      [ 2914.670563] RDX: 00000000bddf7fff RSI: ffffffffffffffff RDI: ffff97530bb19f80
      [ 2914.670564] RBP: ffffa80a8231bc58 R08: 0000000000010000 R09: 0000000000000000
      [ 2914.670565] R10: 0000000000000000 R11: ffff9761de6b1600 R12: 00000000bddf0000
      [ 2914.670565] R13: 0000000000008000 R14: ffff9753002f1210 R15: ffff97530570b800
      [ 2914.670566] FS:  00007f327550e740(0000) GS:ffff9761de680000(0000) knlGS:0000000000000000
      [ 2914.670568] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [ 2914.670569] CR2: 000056047d597bf8 CR3: 000000011608e000 CR4: 0000000000750ee0
      [ 2914.670570] PKRU: 55555554
      [ 2914.670570] Call Trace:
      [ 2914.670571]  <TASK>
      [ 2914.670572]  ? show_regs.cold+0x1a/0x1f
      [ 2914.670573]  ? __iommu_dma_unmap+0x12b/0x140
      [ 2914.670575]  ? __warn+0x8b/0xe0
      [ 2914.670577]  ? __iommu_dma_unmap+0x12b/0x140
      [ 2914.670579]  ? report_bug+0xd5/0x110
      [ 2914.670581]  ? handle_bug+0x39/0x90
      [ 2914.670583]  ? exc_invalid_op+0x19/0x70
      [ 2914.670585]  ? asm_exc_invalid_op+0x1b/0x20
      [ 2914.670587]  ? __iommu_dma_unmap+0x12b/0x140
      [ 2914.670590]  iommu_dma_free+0x1e/0x40
      [ 2914.670592]  dma_free_attrs+0x4e/0x60
      [ 2914.670593]  AxisG2_Clear+0x107/0x150 [datadev]
      [ 2914.670597]  Dma_Clean+0x1f/0x140 [datadev]
      [ 2914.670600]  DataDev_Remove+0x82/0xca [datadev]
      [ 2914.670603]  pci_device_remove+0x3e/0xb0
      [ 2914.670605]  device_release_driver_internal+0x107/0x1f0
      [ 2914.670607]  driver_detach+0x4c/0xa0
      [ 2914.670610]  bus_remove_driver+0x6c/0xf0
      [ 2914.670612]  driver_unregister+0x31/0x50
      [ 2914.670614]  pci_unregister_driver+0x40/0x90
      [ 2914.670617]  cleanup_module+0x28/0x22f [datadev]
      [ 2914.670619]  __x64_sys_delete_module+0x14e/0x260
      [ 2914.670622]  ? __fput+0x127/0x280
      [ 2914.670625]  do_syscall_64+0x5c/0xc0
      [ 2914.670627]  ? exit_to_user_mode_prepare+0x3d/0x1c0
      [ 2914.670629]  ? syscall_exit_to_user_mode+0x35/0x50
      [ 2914.670631]  ? do_syscall_64+0x69/0xc0
      [ 2914.670633]  ? syscall_exit_to_user_mode+0x35/0x50
      [ 2914.670635]  ? do_syscall_64+0x69/0xc0
      [ 2914.670637]  ? syscall_exit_to_user_mode+0x35/0x50
      [ 2914.670639]  ? do_syscall_64+0x69/0xc0
      [ 2914.670641]  entry_SYSCALL_64_after_hwframe+0x62/0xcc
      [ 2914.670643] RIP: 0033:0x7f327565bc8b
      [ 2914.670644] Code: 73 01 c3 48 8b 0d 05 c2 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d d5 c1 0c 00 f7 d8 64 89 01 48
      [ 2914.670645] RSP: 002b:00007ffd15625de8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
      [ 2914.670647] RAX: ffffffffffffffda RBX: 000056047d58c760 RCX: 00007f327565bc8b
      [ 2914.670648] RDX: 000000000000000a RSI: 0000000000000800 RDI: 000056047d58c7c8
      [ 2914.670648] RBP: 00007ffd15625e48 R08: 0000000000000000 R09: 0000000000000000
      [ 2914.670649] R10: 00007f32756d7ac0 R11: 0000000000000206 R12: 00007ffd15626028
      [ 2914.670650] R13: 00007ffd1562685b R14: 000056047d58c2a0 R15: 000056047d58c760
      [ 2914.670652]  </TASK>
      [ 2914.670652] ---[ end trace 3a265266105c8d8c ]---
      [ 2914.671348] datadev 0000:01:00.0: Clean: Destroying device class
      [ 2914.671467] datadev: Remove: Driver is unloaded.

              lorelli Jeremy J. Lorelli
              ruckman Larry Ruckman
              Ernest Williams, Jeremy J. Lorelli, Larry Ruckman, Marcio Paduan Donadio, Matthew Weaver, Ryan Herbst
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: