nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   295.20 DMA-API: device driver has pending DMA allocations (http://www.nvnews.net/vbulletin/showthread.php?t=175758)

johnb 03-07-12 02:23 PM

295.20 DMA-API: device driver has pending DMA allocations
 
On systems using a debug kernel with CONFIG_DMA_API_DEBUG=y and
CONFIG_DMAR=y, using a 2.6.36.4 kernel.org kernel on a RHEL 6.1 system,
I see the following WARNING from the DMA-API debug kernel code
when I "modprobe -r nvidia" to unload the nvidia kernel module.

This happens for me on various types of systems, using 32 bit i868
or 64 bit x86_64 kernel.org kernels.

The only catch is that you must first open the /dev/nvida0 (run an X session)
and then close the session before unloading the nvidia.ko kernel module.

Thanks.

Mar 7 14:07:46 ath kernel: nvidia 0000:02:00.0: PCI INT A disabled
Mar 7 14:07:46 ath kernel: ------------[ cut here ]------------
Mar 7 14:07:46 ath kernel: WARNING: at lib/dma-debug.c:688 dma_debug_device_change+0x12e/0x15a()
Mar 7 14:07:46 ath kernel: Hardware name: MS-7599
Mar 7 14:07:46 ath kernel: pci 0000:02:00.0: DMA-API: device driver has pending DMA allocations while released from device [count=24]
Mar 7 14:07:46 ath kernel: Modules linked in: ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle iptable_filter ip_tables tun bridge autofs4 fcoe libfcoe libfc scsi_transport_fc 8021q garp stp llc scsi_tgt sunrpc cachefiles fscache ipv6 dm_mirror dm_region_hash dm_log nvidia(P-) sg microcode k10temp hwmon edac_core edac_mce_amd i2c_core shpchp ext4 mbcache jbd2 sr_mod cdrom sd_mod crc_t10dif atl1c ata_generic pata_atiixp ahci libahci button dm_mod [last unloaded: i2c_piix4]
Mar 7 14:07:46 ath kernel: Pid: 2243, comm: modprobe Tainted: P 2.6.36.4-RedHawk-6.0.3-iommu-debug #1
Mar 7 14:07:46 ath kernel: Call Trace:
Mar 7 14:07:46 ath kernel: [<ffffffff81049b25>] warn_slowpath_common+0x85/0x9d
Mar 7 14:07:46 ath kernel: [<ffffffff81049be0>] warn_slowpath_fmt+0x46/0x48
Mar 7 14:07:46 ath kernel: [<ffffffff813f35bd>] ? sub_preempt_count+0x97/0xb6
Mar 7 14:07:46 ath kernel: [<ffffffff811f36f4>] dma_debug_device_change+0x12e/0x15a
Mar 7 14:07:46 ath kernel: [<ffffffff813f3718>] notifier_call_chain+0x68/0x9c
Mar 7 14:07:46 ath kernel: [<ffffffff8106d8a9>] __blocking_notifier_call_chain+0x50/0x67
Mar 7 14:07:46 ath kernel: [<ffffffff8106d8d4>] blocking_notifier_call_chain+0x14/0x16
Mar 7 14:07:46 ath kernel: [<ffffffff812989ad>] __device_release_driver+0xb0/0xb5
Mar 7 14:07:46 ath kernel: [<ffffffff81298a41>] driver_detach+0x8f/0xb5
Mar 7 14:07:46 ath kernel: [<ffffffff81297a5d>] bus_remove_driver+0xac/0xeb
Mar 7 14:07:46 ath kernel: [<ffffffff81299153>] driver_unregister+0x6c/0x74
Mar 7 14:07:46 ath kernel: [<ffffffff811fbc94>] pci_unregister_driver+0x44/0x8d
Mar 7 14:07:46 ath kernel: [<ffffffffa08b382e>] nvidia_exit_module+0x2c6/0x3e7 [nvidia]
Mar 7 14:07:46 ath kernel: [<ffffffff813ecba6>] ? wait_for_completion+0x1d/0x1f
Mar 7 14:07:46 ath kernel: [<ffffffff8109be11>] ? synchronize_sched+0x6c/0x81
Mar 7 14:07:46 ath kernel: [<ffffffff810832f5>] sys_delete_module+0x1c0/0x238
Mar 7 14:07:46 ath kernel: [<ffffffff8100d203>] ? syscall_trace_enter+0xf7/0x137
Mar 7 14:07:46 ath kernel: [<ffffffff8100d261>] ? syscall_trace_enter_wrapper+0x1e/0x22
Mar 7 14:07:46 ath kernel: [<ffffffff810030ce>] tracesys+0xcc/0xd1
Mar 7 14:07:46 ath kernel: ---[ end trace 9f55a7711d65d7e2 ]---

johnb 03-07-12 02:25 PM

Re: 295.20 DMA-API: device driver has pending DMA allocations
 
sorry, I meant i686, of course, not i868.


All times are GMT -5. The time now is 11:42 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.