aes-stream-driver: reloading data_dev driver causes "rmmod Tainted"

XMLWordPrintable

    • Type: Task
    • Resolution: resolved
    • Priority: Trivial
    • Component/s: None
    • None

      Note: No data streaming from FW in this situation. 

      $ dmesg
      [   95.943470] datadev: Init
      [   95.943504] datadev 0000:0a:00.0: enabling device (0000 -> 0002)
      [   95.943605] (NULL device *): Init: Mapping Register space 0xf6000000 with size 0x1000000.
      [   95.943622] (NULL device *): Init: Mapped to 0xffffa10489000000.
      [   95.943623] datadev 0000:0a:00.0: Init: Setting user reset
      [   95.943625] datadev 0000:0a:00.0: Init: Clearing user reset
      [   95.943628] datadev 0000:0a:00.0: Init: Using 40-bit DMA mask.
      [   95.943630] datadev 0000:0a:00.0: Init: Creating device class
      [   95.943717] datadev 0000:0a:00.0: Init: Creating 16 TX Buffers. Size=2097152 Bytes. Mode=1.
      [   95.946426] datadev 0000:0a:00.0: Init: Created  16 out of 16 TX Buffers. 33554432 Bytes.
      [   95.946501] datadev 0000:0a:00.0: Init: Creating 1024 RX Buffers. Size=2097152 Bytes. Mode=1.
      [   96.087377] datadev 0000:0a:00.0: Init: Created  1024 out of 1024 RX Buffers. 2147483648 Bytes.
      [   96.087523] datadev 0000:0a:00.0: Init: Read  ring at: sw 0xffff8fb056a10000 -> hw 0x70ff0000.
      [   96.087524] datadev 0000:0a:00.0: Init: Write ring at: sw 0xffff8fb056a20000 -> hw 0x70fe0000.
      [   96.088080] datadev 0000:0a:00.0: Init: Found Version 2 Device. Desc128En=1
      [   96.088080] datadev 0000:0a:00.0: Init: IRQ 135
      [   96.088104] datadev 0000:0a:00.0: Init: Reg  space mapped to 0xffffa10489000000.
      [   96.088105] datadev 0000:0a:00.0: Init: User space mapped to 0xffffa10489010000 with size 0xff0000.
      [   96.088106] datadev 0000:0a:00.0: Init: Top Register = 0x4010101
      [  113.876608] datadev: Exit.
      [  113.876620] datadev: Remove: Remove called.
      [  113.876704] ------------[ cut here ]------------
      [  113.876705] remove_proc_entry: removing non-empty directory 'irq/135', leaking at least 'datadev_0'
      [  113.876717] WARNING: CPU: 21 PID: 2207 at fs/proc/generic.c:682 remove_proc_entry+0x153/0x180
      [  113.876717] Modules linked in: datadev(OE-) openafs(POE) cmac algif_hash algif_skcipher af_alg bnep binfmt_misc nls_iso8859_1 dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep edac_mce_amd snd_pcm snd_seq_midi snd_seq_midi_event iwlmvm snd_rawmidi mac80211 libarc4 btusb snd_seq btrtl btbcm btintel snd_seq_device bluetooth input_leds snd_timer iwlwifi ecdh_generic kvm wmi_bmof ccp k10temp ecc snd soundcore cfg80211 mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crct10dif_pclmul crc32_pclmul ghash_clmulni_intel nouveau video ttm aesni_intel crypto_simd drm_kms_helper mxm_wmi syscopyarea cryptd sysfillrect sysimgblt glue_helper igb fb_sys_fops i2c_piix4
      [  113.876754]  ahci drm libahci dca nvme i2c_algo_bit nvme_core wmi
      [  113.876760] CPU: 21 PID: 2207 Comm: rmmod Tainted: P           OE     5.4.0-40-generic #44-Ubuntu
      [  113.876760] Hardware name: Gigabyte Technology Co., Ltd. X570 AORUS PRO WIFI/X570 AORUS PRO WIFI, BIOS F11 12/06/2019
      [  113.876763] RIP: 0010:remove_proc_entry+0x153/0x180
      [  113.876764] Code: 88 cf 38 b7 48 85 c0 48 8d 90 78 ff ff ff 48 0f 45 c2 49 8b 54 24 78 4c 8b 80 a0 00 00 00 48 8b 92 a0 00 00 00 e8 b8 9c d2 ff <0f> 0b eb 84 4c 89 ee 48 c7 c7 c7 ce 38 b7 e8 a5 9c d2 ff 0f 0b e9
      [  113.876765] RSP: 0018:ffffa104838abbf8 EFLAGS: 00010282
      [  113.876766] RAX: 0000000000000000 RBX: ffff8fb11710e000 RCX: 0000000000000006
      [  113.876767] RDX: 0000000000000007 RSI: 0000000000000082 RDI: ffff8fb12ed578c0
      [  113.876768] RBP: ffffa104838abc20 R08: 0000000000000559 R09: 0000000000000004
      [  113.876768] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8fb110869c80
      [  113.876769] R13: ffff8fb110869d00 R14: 0000000000000088 R15: 0000000000000000
      [  113.876770] FS:  00007fc69c18b540(0000) GS:ffff8fb12ed40000(0000) knlGS:0000000000000000
      [  113.876771] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  113.876772] CR2: 00007fc69c200c20 CR3: 0000000b96d8a000 CR4: 0000000000340ee0
      [  113.876773] Call Trace:
      [  113.876778]  unregister_irq_proc+0xe4/0x110
      [  113.876780]  free_desc+0x2e/0x70
      [  113.876782]  irq_free_descs+0x50/0x80
      [  113.876784]  irq_domain_free_irqs+0x11b/0x140
      [  113.876786]  mp_unmap_irq+0x64/0x70
      [  113.876789]  acpi_unregister_gsi_ioapic+0x31/0x50
      [  113.876790]  acpi_unregister_gsi+0x1a/0x20
      [  113.876793]  acpi_pci_irq_disable+0xab/0xba
      [  113.876796]  pcibios_disable_device+0x23/0x30
      [  113.876798]  do_pci_disable_device+0x40/0x80
      [  113.876800]  pci_disable_device+0x9d/0xb0
      [  113.876803]  DataDev_Remove+0x4a/0x8c [datadev]
      [  113.876805]  pci_device_remove+0x3e/0xb0
      [  113.876807]  device_release_driver_internal+0xf0/0x1d0
      [  113.876809]  driver_detach+0x4c/0x8f
      [  113.876811]  bus_remove_driver+0x5c/0xd0
      [  113.876812]  driver_unregister+0x31/0x50
      [  113.876814]  pci_unregister_driver+0x40/0x90
      [  113.876816]  cleanup_module+0x28/0xce7 [datadev]
      [  113.876819]  __x64_sys_delete_module+0x147/0x2b0
      [  113.876821]  ? exit_to_usermode_loop+0xea/0x160
      [  113.876823]  do_syscall_64+0x57/0x190
      [  113.876826]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
      [  113.876827] RIP: 0033:0x7fc69c2d7a3b
      [  113.876828] Code: 73 01 c3 48 8b 0d 55 84 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 25 84 0c 00 f7 d8 64 89 01 48
      [  113.876829] RSP: 002b:00007ffed8ce7198 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
      [  113.876830] RAX: ffffffffffffffda RBX: 00005600d3378760 RCX: 00007fc69c2d7a3b
      [  113.876831] RDX: 000000000000000a RSI: 0000000000000800 RDI: 00005600d33787c8
      [  113.876831] RBP: 00007ffed8ce71f8 R08: 0000000000000000 R09: 0000000000000000
      [  113.876832] R10: 00007fc69c353ac0 R11: 0000000000000206 R12: 00007ffed8ce73d8
      [  113.876833] R13: 00007ffed8ce8860 R14: 00005600d33782a0 R15: 00005600d3378760
      [  113.876835] ---[ end trace 5956aaa50e82a3ce ]---
      [  113.893492] datadev 0000:0a:00.0: Clean: Destroying device class
      [  113.893510] datadev: Remove: Driver is unloaded.
      [  113.914046] datadev: Init
      [  113.914161] (NULL device *): Init: Mapping Register space 0xf6000000 with size 0x1000000.
      [  113.914177] (NULL device *): Init: Mapped to 0xffffa10489000000.
      [  113.914180] datadev 0000:0a:00.0: Init: Setting user reset
      [  113.914181] datadev 0000:0a:00.0: Init: Clearing user reset
      [  113.914184] datadev 0000:0a:00.0: Init: Using 40-bit DMA mask.
      [  113.914186] datadev 0000:0a:00.0: Init: Creating device class
      [  113.914250] datadev 0000:0a:00.0: Init: Creating 16 TX Buffers. Size=2097152 Bytes. Mode=1.
      [  113.916787] datadev 0000:0a:00.0: Init: Created  16 out of 16 TX Buffers. 33554432 Bytes.
      [  113.916862] datadev 0000:0a:00.0: Init: Creating 1024 RX Buffers. Size=2097152 Bytes. Mode=1.
      [  114.056588] datadev 0000:0a:00.0: Init: Created  1024 out of 1024 RX Buffers. 2147483648 Bytes.
      [  114.056729] datadev 0000:0a:00.0: Init: Read  ring at: sw 0xffff8fb056ab0000 -> hw 0x70fd0000.
      [  114.056730] datadev 0000:0a:00.0: Init: Write ring at: sw 0xffff8fb056ac0000 -> hw 0x70fc0000.
      [  114.057260] datadev 0000:0a:00.0: Init: Found Version 2 Device. Desc128En=1
      [  114.057260] datadev 0000:0a:00.0: Init: IRQ 135
      [  114.057283] datadev 0000:0a:00.0: Init: Reg  space mapped to 0xffffa10489000000.
      [  114.057284] datadev 0000:0a:00.0: Init: User space mapped to 0xffffa10489010000 with size 0xff0000.
      [  114.057285] datadev 0000:0a:00.0: Init: Top Register = 0x4010201 

              Assignee:
              Ryan Herbst
              Reporter:
              Larry Ruckman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: