debug_dma_assert_idle - snd_hda_intel - cpu touching an active dma mapped cacheline
Subsystems (67)
Sound whispers,
WARNING: CPU: 3 PID: 900 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03014000] CPU: 3 PID: 900 Comm: chronyd Not tainted 3.15.0-0.rc1.git1.1.fc21.i686 #1 Call Trace: [<c0ae256d>] dump_stack+0x48/0x60 [<c0454402>] warn_slowpath_common+0x82/0xa0 [<c0750b69>] ? debug_dma_assert_idle+0x159/0x1d0 [<c0750b69>] ? debug_dma_assert_idle+0x159/0x1d0 [<c045445e>] warn_slowpath_fmt+0x3e/0x60 [<c0750b69>] debug_dma_assert_idle+0x159/0x1d0 [<c05860b9>] ? anon_vma_prepare+0x29/0x140 [<c057a4ee>] do_wp_page+0xce/0x890 [<c0500045>] ? auditsc_get_stamp+0x45/0x70 [<c057caf2>] handle_mm_fault+0x662/0xb70 [<c0500045>] ? auditsc_get_stamp+0x45/0x70 [<c0aee507>] __do_page_fault+0x1a7/0x5d0 [<c040ace8>] ? sched_clock+0x8/0x10 [<c040ace8>] ? sched_clock+0x8/0x10 [<c04ab036>] ? lock_release_holdtime.part.28+0x96/0xf0 [<c0aee930>] ? __do_page_fault+0x5d0/0x5d0 [<c0aee94a>] do_page_fault+0x1a/0x20 [<c0aeb344>] error_code+0x6c/0x74 [<c07334b6>] ? __put_user_4+0x1a/0x24 [<c048d280>] ? schedule_tail+0x60/0xa0 [<c0af3746>] ret_from_fork+0x6/0x20 ---[ end trace d31d73481e988403 ]--- Mapped at: [<c074ec12>] debug_dma_alloc_coherent+0x22/0x70 [<f812de90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f812dfe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f812e3b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f812df23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm]
https://bugzilla.redhat.com/show_bug.cgi?id=1087565
poma
Quoted 1 line · poma
Sound whispers,
???
Quoted 5 lines
WARNING: CPU: 3 PID: 900 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03014000] ... Mapped at: [<c074ec12>] debug_dma_alloc_coherent+0x22/0x70
"Coherent" means "touching DMA mappings is allowed". Why does dma-debug complain about that?
Regards,
Clemens
Quoted 11 lines · Clemens Ladisch
Quoted 1 line · poma
Sound whispers,
???
Quoted 5 lines
WARNING: CPU: 3 PID: 900 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03014000] ... Mapped at: [<c074ec12>] debug_dma_alloc_coherent+0x22/0x70
Quoted 7 lines
"Coherent" means "touching DMA mappings is allowed". Why does dma-debug complain about that?
Regards,
Clemens
Thanks for comment.
Waiting for rc2 to be sure!
poma
This one comes and goes...
------------[ cut here ]------------ WARNING: CPU: 2 PID: 521 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03019000] ------------[ cut here ]------------ WARNING: CPU: 3 PID: 927 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0()
snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03019000]
CPU: 3 PID: 927 Comm: firewalld Not tainted 3.15.0-0.rc2.git1.1.fc21.i686 #1 Call Trace: [<c0ae29dd>] dump_stack+0x48/0x60 [<c0454402>] warn_slowpath_common+0x82/0xa0
[<c0750e09>] ? debug_dma_assert_idle+0x159/0x1d0
[<c0750e09>] ? debug_dma_assert_idle+0x159/0x1d0
[<c045445e>] warn_slowpath_fmt+0x3e/0x60 [<c0750e09>] debug_dma_assert_idle+0x159/0x1d0
[<c0586189>] ? anon_vma_prepare+0x29/0x140
[<c057a5be>] do_wp_page+0xce/0x890
[<c0640065>] ? ext4_releasepage+0x95/0x130
[<c057cbc2>] handle_mm_fault+0x662/0xb70
[<c0640065>] ? ext4_releasepage+0x95/0x130
[<c0aee997>] __do_page_fault+0x1a7/0x5d0
[<c04adcac>] ? trace_hardirqs_on_caller+0x13c/0x1e0
[<c04ff83c>] ? __audit_syscall_entry+0x8c/0xe0
[<c04add5b>] ? trace_hardirqs_on+0xb/0x10
[<c04adcac>] ? trace_hardirqs_on_caller+0x13c/0x1e0
[<c04adcac>] ? trace_hardirqs_on_caller+0x13c/0x1e0
[<c0aeedc0>] ? __do_page_fault+0x5d0/0x5d0
[<c0aeedda>] do_page_fault+0x1a/0x20 [<c0aeb7b4>] error_code+0x6c/0x74 ---[ end trace 0464944e27da06b8 ]---
Mapped at:
[<c074eeb2>] debug_dma_alloc_coherent+0x22/0x70 [<f839de90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f839dfe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f839e3b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f839df23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm] CPU: 2 PID: 521 Comm: firewalld Tainted: G W 3.15.0-0.rc2.git1.1.fc21.i686 #1 Call Trace: [<c0ae29dd>] dump_stack+0x48/0x60 [<c0454402>] warn_slowpath_common+0x82/0xa0 [<c0750e09>] ? debug_dma_assert_idle+0x159/0x1d0 [<c0750e09>] ? debug_dma_assert_idle+0x159/0x1d0 [<c045445e>] warn_slowpath_fmt+0x3e/0x60 [<c0750e09>] debug_dma_assert_idle+0x159/0x1d0 [<c0586189>] ? anon_vma_prepare+0x29/0x140 [<c057a5be>] do_wp_page+0xce/0x890 [<c0640065>] ? ext4_releasepage+0x95/0x130 [<c057cbc2>] handle_mm_fault+0x662/0xb70 [<c0640065>] ? ext4_releasepage+0x95/0x130 [<c0aee997>] __do_page_fault+0x1a7/0x5d0 [<c04ff83c>] ? __audit_syscall_entry+0x8c/0xe0 [<c04add5b>] ? trace_hardirqs_on+0xb/0x10 [<c04adcac>] ? trace_hardirqs_on_caller+0x13c/0x1e0 [<c0aeedc0>] ? __do_page_fault+0x5d0/0x5d0 [<c0aeedda>] do_page_fault+0x1a/0x20 [<c0aeb7b4>] error_code+0x6c/0x74 ---[ end trace 0464944e27da06b9 ]--- Mapped at: [<c074eeb2>] debug_dma_alloc_coherent+0x22/0x70 [<f839de90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f839dfe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f839e3b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f839df23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm]
https://bugzilla.redhat.com/attachment.cgi?id=888686
dma debug: account for cachelines and read-only mappings in overlap tracking
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/lib/dma-debug.c?id=3b7a6418c7494b8bf0bf0537ddee1dedbca10f51
Are these two in some relation?
poma
Quoted 99 lines · poma
This one comes and goes...
------------[ cut here ]------------ WARNING: CPU: 2 PID: 521 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03019000] ------------[ cut here ]------------ WARNING: CPU: 3 PID: 927 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0()
snd_hda_intel0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03019000]CPU: 3 PID: 927 Comm: firewalld Not tainted 3.15.0-0.rc2.git1.1.fc21.i686 #1 Call Trace: [<c0ae29dd>] dump_stack+0x48/0x60 [<c0454402>] warn_slowpath_common+0x82/0xa0[<
c0750e09>] ?debug_dma_assert_idle+0x159/0x1d0[<
c0750e09>] ?debug_dma_assert_idle+0x159/0x1d0[<c045445e>] warn_slowpath_fmt+0x3e/0x60 [<c0750e09>] debug_dma_assert_idle+0x159/0x1d0[<
c0586189>] ?anon_vma_prepare+0x29/0x140[<
c057a5be>]do_wp_page+0xce/0x890[<
c0640065>] ?ext4_releasepage+0x95/0x130[<
c057cbc2>]handle_mm_fault+0x662/0xb70[<
c0640065>] ?ext4_releasepage+0x95/0x130[<
c0aee997>]__do_page_fault+0x1a7/0x5d0[<
c04adcac>] ?trace_hardirqs_on_caller+0x13c/0x1e0[<
c04ff83c>] ?__audit_syscall_entry+0x8c/0xe0[<
c04add5b>] ?trace_hardirqs_on+0xb/0x10[<
c04adcac>] ?trace_hardirqs_on_caller+0x13c/0x1e0[<
c04adcac>] ?trace_hardirqs_on_caller+0x13c/0x1e0[<
c0aeedc0>] ?__do_page_fault+0x5d0/0x5d0[<c0aeedda>] do_page_fault+0x1a/0x20 [<c0aeb7b4>] error_code+0x6c/0x74 ---[ end trace 0464944e27da06b8 ]---Mapped at:
[<c074eeb2>] debug_dma_alloc_coherent+0x22/0x70 [<f839de90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f839dfe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f839e3b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f839df23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm] CPU: 2 PID: 521 Comm: firewalld Tainted: G W 3.15.0-0.rc2.git1.1.fc21.i686 #1 Call Trace: [<c0ae29dd>] dump_stack+0x48/0x60 [<c0454402>] warn_slowpath_common+0x82/0xa0 [<c0750e09>] ? debug_dma_assert_idle+0x159/0x1d0 [<c0750e09>] ? debug_dma_assert_idle+0x159/0x1d0 [<c045445e>] warn_slowpath_fmt+0x3e/0x60 [<c0750e09>] debug_dma_assert_idle+0x159/0x1d0 [<c0586189>] ? anon_vma_prepare+0x29/0x140 [<c057a5be>] do_wp_page+0xce/0x890 [<c0640065>] ? ext4_releasepage+0x95/0x130 [<c057cbc2>] handle_mm_fault+0x662/0xb70 [<c0640065>] ? ext4_releasepage+0x95/0x130 [<c0aee997>] __do_page_fault+0x1a7/0x5d0 [<c04ff83c>] ? __audit_syscall_entry+0x8c/0xe0 [<c04add5b>] ? trace_hardirqs_on+0xb/0x10 [<c04adcac>] ? trace_hardirqs_on_caller+0x13c/0x1e0 [<c0aeedc0>] ? __do_page_fault+0x5d0/0x5d0 [<c0aeedda>] do_page_fault+0x1a/0x20 [<c0aeb7b4>] error_code+0x6c/0x74 ---[ end trace 0464944e27da06b9 ]--- Mapped at: [<c074eeb2>] debug_dma_alloc_coherent+0x22/0x70 [<f839de90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f839dfe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f839e3b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f839df23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm]
Quoted 6 lines
https://bugzilla.redhat.com/attachment.cgi?id=888686
dma debug: account for cachelines and read-only mappings in overlap tracking
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/lib/dma-debug.c?id=3b7a6418c7494b8bf0bf0537ddee1dedbca10f51Are these two in some relation?
Yep.
3.15.0-0.rc2.git1.1.fc21.x86_64 PASSED 3.15.0-0.rc2.git1.1.fc21.i686 FAILED 3.15.0-0.rc2.git1.2.fc21.i686 PASSED <-
3.15.0-0.rc2.git1.2.fc21.i686 is 3.15.0-0.rc2.git1.1.fc21.i686 with reverted linux-next git commit 3b7a641 "dma debug: account for cachelines and read-only mappings in overlap tracking"
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/lib/dma-debug.c?id=3b7a641
Information for build kernel-3.15.0-0.rc2.git1.1.fc21
http://koji.fedoraproject.org/koji/buildinfo?buildID=512446
poma
$ file *
linux-3.15.0-0.rc3.git1.10.fc21.i686: directory
linux-3.15.0-0.rc3.git2.1.fc21.i686: directory
linux-3.15.0-0.rc3.git3.1.fc21.i686: directory
$
$ grep -R AZX_DCAPS_CORBRP_SELF_CLEAR
linux-3.15.0-0.rc3.git3.1.fc21.i686/sound/pci/hda/hda_intel.c: AZX_DCAPS_CORBRP_SELF_CLEAR)
linux-3.15.0-0.rc3.git3.1.fc21.i686/sound/pci/hda/hda_controller.c: if (!(chip->driver_caps & AZX_DCAPS_CORBRP_SELF_CLEAR)) {
linux-3.15.0-0.rc3.git3.1.fc21.i686/sound/pci/hda/hda_priv.h:#define AZX_DCAPS_CORBRP_SELF_CLEAR (1 << 28) /* CORBRP clears itself after reset */
$
$ uname -r
3.15.0-0.rc3.git3.1.fc21.i686 PASSEDReferent commit
ALSA: hda - Suppress CORBRP clear on Nvidia controller chips
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/sound/pci/hda?id=6ba736d
Eye Of The Tiger, Takashi!
poma
The truth is that sometimes it takes more than a few reboot for the bug to occur.
3.15.0-0.rc4.git0.1.fc21.i686+debug FAILED
http://koji.fedoraproject.org/koji/buildinfo?buildID=515111
...
ACPI: PCI Interrupt Link [AAZA] enabled at IRQ 22 snd_hda_intel 0000:00:07.0: Disabling MSIsnd_hda_intel 0000:00:07.0: position_fix set to 1 for device 1458:a022
...
------------[ cut here ]------------ WARNING: CPU: 1 PID: 496 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03012000] Modules linked in: ip6t_rpfilter ip6t_REJECT xt_conntrack cfg80211 rfkill ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller kvm_amd snd_hda_codec kvm snd_hwdep nouveau snd_seq mxm_wmi video snd_seq_device snd_pcm i2c_algo_bit ttm drm_kms_helper ppdev microcode parport_serial parport_pc snd_timer k10temp drm serio_raw i2c_nforce2 parport snd i2c_core soundcore wmi acpi_cpufreq sunrpc ata_generic pata_acpi r8169 mii skge pata_amd uas usb_storage ------------[ cut here ]------------ CPU: 1 PID: 496 Comm: firewalld Not tainted 3.15.0-0.rc4.git0.1.fc21.i686+debug #1 Hardware name: Gigabyte Technology Co., Ltd. M720-US3/M720-US3, BIOS F7n 09/07/2010 WARNING: CPU: 2 PID: 852 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() 00000000 252e7679 00000000 snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03012000] eed99df0 c0ae6f0d eed99e34 Modules linked in: eed99e24 c0454432 ip6t_rpfilter ip6t_REJECT c0ceddd8 xt_conntrack cfg80211 rfkill eed99e54 ebtable_nat ebtable_broute bridge 000001f0 stp llc c0cebc97 ebtable_filter 00000251 ebtables ip6table_nat nf_conntrack_ipv6 c0754c39 nf_defrag_ipv6 00000251 nf_nat_ipv6 ip6table_mangle ip6table_security c0754c39 ip6table_raw ip6table_filter ip6_tables
iptable_nat nf_conntrack_ipv4
f3721700
nf_defrag_ipv4 nf_nat_ipv4
f2cfc480
nf_nat
03012000
eed99e40 c045448e 00000009 eed99e34 c0ceddd8
Call Trace: [<c0ae6f0d>] dump_stack+0x48/0x60 nf_conntrack iptable_mangle
iptable_security iptable_raw
[<c0454432>] warn_slowpath_common+0x82/0xa0 snd_hda_codec_realtek snd_hda_codec_generic
snd_hda_intel snd_hda_controller
[<c0754c39>] ? debug_dma_assert_idle+0x159/0x1d0
kvm_amd
[<c0754c39>] ? debug_dma_assert_idle+0x159/0x1d0
snd_hda_codec
kvm snd_hwdep nouveau snd_seq
[<c045448e>] warn_slowpath_fmt+0x3e/0x60 [<c0754c39>] debug_dma_assert_idle+0x159/0x1d0
mxm_wmi video
[<c0589d69>] ? anon_vma_prepare+0x29/0x140
[<c057e18e>] do_wp_page+0xce/0x890 snd_seq_device snd_pcm
[<c0480065>] ? __hrtimer_start_range_ns+0x35/0x550 i2c_algo_bit
[<c0580792>] handle_mm_fault+0x662/0xb70
ttm drm_kms_helper
[<c0480065>] ? __hrtimer_start_range_ns+0x35/0x550 ppdev microcode parport_serial
parport_pc snd_timer
[<c0af31f7>] __do_page_fault+0x1a7/0x5d0 k10temp drm serio_raw i2c_nforce2
[<c05031fc>] ? __audit_syscall_entry+0x8c/0xe0
parport snd
[<c04b17ab>] ? trace_hardirqs_on+0xb/0x10
i2c_core soundcore
[<c04b16fc>] ? trace_hardirqs_on_caller+0x13c/0x1e0 wmi acpi_cpufreq
[<c0af3620>] ? __do_page_fault+0x5d0/0x5d0
[<c0af363a>] do_page_fault+0x1a/0x20
sunrpc ata_generic pata_acpi
[<c0af0014>] error_code+0x6c/0x74 r8169 mii ---[ end trace 08b99da35a4e0d8c ]---
Mapped at:
[<c0752ce2>] debug_dma_alloc_coherent+0x22/0x70 [<f80f8e90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f80f8fe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] skge [<f80f93b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f80f8f23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm] pata_amd uas usb_storage CPU: 2 PID: 852 Comm: firewalld Tainted: G W 3.15.0-0.rc4.git0.1.fc21.i686+debug #1 Hardware name: Gigabyte Technology Co., Ltd. M720-US3/M720-US3, BIOS F7n 09/07/2010 00000000 cef7cf31 00000000 ecf2ddf0 c0ae6f0d ecf2de34 ecf2de24 c0454432 c0ceddd8 ecf2de54 00000354 c0cebc97 00000251 c0754c39 00000251 c0754c39 f3721700 f2cfc480 03012000 ecf2de40 c045448e 00000009 ecf2de34 c0ceddd8 Call Trace: [<c0ae6f0d>] dump_stack+0x48/0x60 [<c0454432>] warn_slowpath_common+0x82/0xa0 [<c0754c39>] ? debug_dma_assert_idle+0x159/0x1d0 [<c0754c39>] ? debug_dma_assert_idle+0x159/0x1d0 [<c045448e>] warn_slowpath_fmt+0x3e/0x60 [<c0754c39>] debug_dma_assert_idle+0x159/0x1d0 [<c0589d69>] ? anon_vma_prepare+0x29/0x140 [<c057e18e>] do_wp_page+0xce/0x890 [<c0480065>] ? __hrtimer_start_range_ns+0x35/0x550 [<c0580792>] handle_mm_fault+0x662/0xb70 [<c0480065>] ? __hrtimer_start_range_ns+0x35/0x550 [<c0af31f7>] __do_page_fault+0x1a7/0x5d0 [<c04b16fc>] ? trace_hardirqs_on_caller+0x13c/0x1e0 [<c05031fc>] ? __audit_syscall_entry+0x8c/0xe0 [<c04b17ab>] ? trace_hardirqs_on+0xb/0x10 [<c04b16fc>] ? trace_hardirqs_on_caller+0x13c/0x1e0 [<c0af3620>] ? __do_page_fault+0x5d0/0x5d0 [<c0af363a>] do_page_fault+0x1a/0x20 [<c0af0014>] error_code+0x6c/0x74 ---[ end trace 08b99da35a4e0d8d ]--- Mapped at: [<c0752ce2>] debug_dma_alloc_coherent+0x22/0x70 [<f80f8e90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f80f8fe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f80f93b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f80f8f23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm]
...
However with the 'cachelines-revert.patch',
related to https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/lib/dma-debug.c?id=3b7a641,
after rebooting 12 times sequentially, everything is OK!
i.e.
kernel-3.15.0-0.rc4.git0.3.fc21.i686 PASSED
poma
Tested with 12 consecutive reboots and several non consecutive(multiboot), 3.15.0-0.rc4.git1.1.fc21.i686 PASSED
Probably some of these net patches did the job,
$ xzgrep diff\ --git kernel-3.15.0-0.rc4.git1.1.fc21.src/patch-3.15-rc4-git1.xz
Documentation/devicetree/bindings/net/arc_emac.txt +0 -0
Documentation/networking/scaling.txt +0 -0
MAINTAINERS +0 -0
arch/xtensa/Kconfig +0 -0
arch/xtensa/boot/dts/kc705.dts +0 -0
arch/xtensa/boot/dts/xtfpga-flash-128m.dtsi +0 -0
arch/xtensa/boot/dts/xtfpga-flash-16m.dtsi +0 -0
arch/xtensa/boot/dts/xtfpga-flash-4m.dtsi +0 -0
arch/xtensa/boot/dts/xtfpga.dtsi +0 -0
arch/xtensa/include/asm/bootparam.h +0 -0
arch/xtensa/include/asm/fixmap.h +0 -0
arch/xtensa/include/asm/highmem.h +0 -0
arch/xtensa/include/asm/pgtable.h +0 -0
arch/xtensa/include/asm/sysmem.h +0 -0
arch/xtensa/include/asm/tlbflush.h +0 -0
arch/xtensa/kernel/setup.c +0 -0
arch/xtensa/kernel/smp.c +0 -0
arch/xtensa/kernel/xtensa_ksyms.c +0 -0
arch/xtensa/mm/Makefile +0 -0
arch/xtensa/mm/cache.c +0 -0
arch/xtensa/mm/highmem.c +0 -0
arch/xtensa/mm/init.c +0 -0
arch/xtensa/mm/mmu.c +0 -0
arch/xtensa/mm/tlb.c +0 -0
arch/xtensa/platforms/iss/Makefile +0 -0
arch/xtensa/platforms/xt2000/setup.c +0 -0
crypto/crypto_user.c +0 -0
drivers/block/floppy.c +0 -0
drivers/bluetooth/ath3k.c +0 -0
drivers/bluetooth/btusb.c +0 -0
drivers/connector/cn_proc.c +0 -0
drivers/iio/adc/Kconfig +0 -0
drivers/iio/adc/exynos_adc.c +0 -0
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +0 -0
drivers/isdn/hisax/icc.c +0 -0
drivers/mtd/ubi/block.c +0 -0
drivers/mtd/ubi/wl.c +0 -0
drivers/net/bonding/bond_sysfs.c +0 -0
drivers/net/can/c_can/Kconfig +0 -0
drivers/net/can/c_can/c_can.c +0 -0
drivers/net/can/c_can/c_can.h +0 -0
drivers/net/can/c_can/c_can_pci.c +0 -0
drivers/net/can/c_can/c_can_platform.c +0 -0
drivers/net/can/dev.c +0 -0
drivers/net/can/sja1000/sja1000_isa.c +0 -0
drivers/net/can/slcan.c +0 -0
drivers/net/ethernet/altera/Kconfig +0 -0
drivers/net/ethernet/altera/altera_msgdma.c +0 -0
drivers/net/ethernet/altera/altera_msgdma.h +0 -0
drivers/net/ethernet/altera/altera_sgdma.c +0 -0
drivers/net/ethernet/altera/altera_sgdma.h +0 -0
drivers/net/ethernet/altera/altera_tse.h +0 -0
drivers/net/ethernet/altera/altera_tse_ethtool.c +0 -0
drivers/net/ethernet/altera/altera_tse_main.c +0 -0
drivers/net/ethernet/arc/emac.h +0 -0
drivers/net/ethernet/arc/emac_main.c +0 -0
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +0 -0
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +0 -0
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h +0 -0
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c +0 -0
drivers/net/ethernet/cadence/Kconfig +0 -0
drivers/net/ethernet/cadence/macb.c +0 -0
drivers/net/ethernet/chelsio/Kconfig +0 -0
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +0 -0
drivers/net/ethernet/freescale/gianfar.c +0 -0
drivers/net/ethernet/freescale/gianfar_ethtool.c +0 -0
drivers/net/ethernet/intel/e1000e/ich8lan.c +0 -0
drivers/net/ethernet/intel/e1000e/ich8lan.h +0 -0
drivers/net/ethernet/intel/e1000e/netdev.c +0 -0
drivers/net/ethernet/intel/e1000e/phy.h +0 -0
drivers/net/ethernet/intel/i40e/i40e_main.c +0 -0
drivers/net/ethernet/intel/i40e/i40e_nvm.c +0 -0
drivers/net/ethernet/intel/i40e/i40e_ptp.c +0 -0
drivers/net/ethernet/intel/i40e/i40e_txrx.c +0 -0
drivers/net/ethernet/intel/igb/e1000_i210.c +0 -0
drivers/net/ethernet/intel/igb/e1000_mac.c +0 -0
drivers/net/ethernet/intel/igb/igb_main.c +0 -0
drivers/net/ethernet/intel/igb/igb_ptp.c +0 -0
drivers/net/ethernet/intel/ixgbe/ixgbe.h +0 -0
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +0 -0
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +0 -0
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c +0 -0
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +0 -0
drivers/net/ethernet/marvell/mvmdio.c +0 -0
drivers/net/ethernet/mellanox/mlx4/main.c +0 -0
drivers/net/ethernet/mellanox/mlx4/port.c +0 -0
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c +0 -0
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +0 -0
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c +0 -0
drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h +0 -0
drivers/net/ethernet/smsc/smc91x.c +0 -0
drivers/net/hyperv/netvsc_drv.c +0 -0
drivers/net/macvlan.c +0 -0
drivers/net/macvtap.c +0 -0
drivers/net/phy/micrel.c +0 -0
drivers/net/phy/phy.c +0 -0
drivers/net/slip/slip.c +0 -0
drivers/net/team/team.c +0 -0
drivers/net/usb/cdc_ncm.c +0 -0
drivers/net/usb/qmi_wwan.c +0 -0
drivers/net/virtio_net.c +0 -0
drivers/net/vxlan.c +0 -0
drivers/net/wireless/ath/ath9k/ahb.c +0 -0
drivers/net/wireless/ath/ath9k/ani.c +0 -0
drivers/net/wireless/ath/ath9k/ath9k.h +0 -0
drivers/net/wireless/ath/ath9k/debug_sta.c +0 -0
drivers/net/wireless/ath/ath9k/init.c +0 -0
drivers/net/wireless/ath/ath9k/pci.c +0 -0
drivers/net/wireless/ath/ath9k/recv.c +0 -0
drivers/net/wireless/ath/ath9k/xmit.c +0 -0
drivers/net/wireless/brcm80211/brcmfmac/chip.c +0 -0
drivers/net/wireless/rt2x00/rt2x00mac.c +0 -0
drivers/net/wireless/rtlwifi/rtl8188ee/trx.c +0 -0
drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +0 -0
drivers/net/wireless/rtlwifi/rtl8192se/trx.c +0 -0
drivers/scsi/scsi_netlink.c +0 -0
drivers/staging/iio/resolver/ad2s1200.c +0 -0
drivers/tty/hvc/hvc_console.c +0 -0
drivers/tty/n_tty.c +0 -0
drivers/tty/serial/8250/8250_core.c +0 -0
drivers/tty/tty_buffer.c +0 -0
drivers/usb/gadget/at91_udc.c +0 -0
drivers/usb/host/ehci-fsl.c +0 -0
drivers/usb/host/ohci-hub.c +0 -0
drivers/usb/host/ohci-pci.c +0 -0
drivers/usb/host/ohci.h +0 -0
drivers/usb/phy/phy-fsm-usb.c +0 -0
drivers/usb/serial/qcserial.c +0 -0
drivers/usb/storage/shuttle_usbat.c +0 -0
drivers/usb/storage/unusual_devs.h +0 -0
fs/ceph/caps.c +0 -0
fs/ceph/dir.c +0 -0
fs/ceph/inode.c +0 -0
fs/ceph/ioctl.c +0 -0
fs/ceph/locks.c +0 -0
fs/ceph/super.h +0 -0
fs/ubifs/super.c +0 -0
include/linux/netlink.h +0 -0
include/linux/sock_diag.h +0 -0
include/linux/tty.h +0 -0
include/net/af_vsock.h +0 -0
include/net/sock.h +0 -0
kernel/audit.c +0 -0
mm/slab.c +0 -0
net/bluetooth/hci_conn.c +0 -0
net/bluetooth/hci_event.c +0 -0
net/bridge/br_netlink.c +0 -0
net/can/gw.c +0 -0
net/ceph/osdmap.c +0 -0
net/core/filter.c +0 -0
net/core/rtnetlink.c +0 -0
net/core/sock.c +0 -0
net/core/sock_diag.c +0 -0
net/dcb/dcbnl.c +0 -0
net/decnet/dn_dev.c +0 -0
net/decnet/dn_fib.c +0 -0
net/decnet/netfilter/dn_rtmsg.c +0 -0
net/ipv4/ip_tunnel.c +0 -0
net/ipv4/tcp_cubic.c +0 -0
net/ipv4/tcp_output.c +0 -0
net/ipv6/ip6_fib.c +0 -0
net/ipv6/ip6mr.c +0 -0
net/ipv6/netfilter/ip6t_rpfilter.c +0 -0
net/ipv6/route.c +0 -0
net/netfilter/nfnetlink.c +0 -0
net/netlink/af_netlink.c +0 -0
net/netlink/genetlink.c +0 -0
net/packet/diag.c +0 -0
net/phonet/pn_netlink.c +0 -0
net/sched/act_api.c +0 -0
net/sched/cls_api.c +0 -0
net/sched/sch_api.c +0 -0
net/sched/sch_hhf.c +0 -0
net/sctp/protocol.c +0 -0
net/sctp/sm_sideeffect.c +0 -0
net/tipc/netlink.c +0 -0
net/vmw_vsock/af_vsock.c +0 -0
net/xfrm/xfrm_user.c +0 -0
scripts/sortextable.c +0 -0
tools/net/bpf_dbg.c +0 -0
poma
------------[ cut here ]------------ WARNING: CPU: 2 PID: 628 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03074000] CPU: 2 PID: 628 Comm: lightdm Not tainted 3.15.0-0.rc5.git0.1.fc21.i686+debug #1 Call Trace: [<c0ae737d>] dump_stack+0x48/0x60 [<c04547b2>] warn_slowpath_common+0x82/0xa0 [<c0754d99>] ? debug_dma_assert_idle+0x159/0x1d0 [<c0754d99>] ? debug_dma_assert_idle+0x159/0x1d0 [<c045480e>] warn_slowpath_fmt+0x3e/0x60 [<c0754d99>] debug_dma_assert_idle+0x159/0x1d0 [<c058a149>] ? anon_vma_prepare+0x29/0x140 [<c057e56e>] do_wp_page+0xce/0x890 [<c0580b72>] handle_mm_fault+0x662/0xb70 [<c0af3667>] __do_page_fault+0x1a7/0x5d0 [<c04e1057>] ? SyS_futex+0x97/0x180 [<c04b1b00>] ? trace_hardirqs_on_caller+0x1c0/0x1e0 [<c04b1a7c>] ? trace_hardirqs_on_caller+0x13c/0x1e0 [<c0af3a90>] ? __do_page_fault+0x5d0/0x5d0 [<c0af3aaa>] do_page_fault+0x1a/0x20 [<c0af0484>] error_code+0x6c/0x74 ---[ end trace b400a64c04aed387 ]--- Mapped at: [<c0752e42>] debug_dma_alloc_coherent+0x22/0x70 [<f80c3e90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f80c3fe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f80c43b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f80c3f23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm]
poma
Re: debug_dma_assert_idle - ahci - cpu touching an active dma mapped cacheline
Quoted 21 lines · poma
------------[ cut here ]------------ WARNING: CPU: 2 PID: 628 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03074000] CPU: 2 PID: 628 Comm: lightdm Not tainted 3.15.0-0.rc5.git0.1.fc21.i686+debug #1 Call Trace: [<c0ae737d>] dump_stack+0x48/0x60 [<c04547b2>] warn_slowpath_common+0x82/0xa0 [<c0754d99>] ? debug_dma_assert_idle+0x159/0x1d0 [<c0754d99>] ? debug_dma_assert_idle+0x159/0x1d0 [<c045480e>] warn_slowpath_fmt+0x3e/0x60 [<c0754d99>] debug_dma_assert_idle+0x159/0x1d0 [<c058a149>] ? anon_vma_prepare+0x29/0x140 [<c057e56e>] do_wp_page+0xce/0x890 [<c0580b72>] handle_mm_fault+0x662/0xb70 [<c0af3667>] __do_page_fault+0x1a7/0x5d0 [<c04e1057>] ? SyS_futex+0x97/0x180 [<c04b1b00>] ? trace_hardirqs_on_caller+0x1c0/0x1e0 [<c04b1a7c>] ? trace_hardirqs_on_caller+0x13c/0x1e0 [<c0af3a90>] ? __do_page_fault+0x5d0/0x5d0 [<c0af3aaa>] do_page_fault+0x1a/0x20
Quoted 9 lines
[<c0af0484>] error_code+0x6c/0x74 ---[ end trace b400a64c04aed387 ]--- Mapped at: [<c0752e42>] debug_dma_alloc_coherent+0x22/0x70 [<f80c3e90>] snd_dma_alloc_pages+0x170/0x260 [snd_pcm] [<f80c3fe2>] snd_dma_alloc_pages_fallback+0x62/0x90 [snd_pcm] [<f80c43b0>] snd_malloc_sgbuf_pages+0xf0/0x211 [snd_pcm] [<f80c3f23>] snd_dma_alloc_pages+0x203/0x260 [snd_pcm]
------------[ cut here ]------------ WARNING: CPU: 1 PID: 1180 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() ahci 0000:00:09.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03001000] Modules linked in: ip6t_rpfilter ip6t_REJECT xt_conntrack cfg80211 rfkill ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw mt7601Usta(OE) nouveau kvm_amd ata_generic kvm uas pata_acpi ppdev mxm_wmi parport_serial video usb_storage k10temp r8169 i2c_algo_bit ttm drm_kms_helper serio_raw microcode parport_pc skge parport mii drm wmi i2c_nforce2 i2ccore pata_amd acpi_cpufreq sunrpc CPU: 1 PID: 1180 Comm: gmain Tainted: G OE 3.17.0-0.rc2.git3.1.fc22.i686 #1 ... Call Trace: [<c0b137d8>] dump_stack+0x48/0x60 [<c0459092>] warn_slowpath_common+0x82/0xa0 [<c076c1e9>] ? debug_dma_assert_idle+0x159/0x1d0 [<c076c1e9>] ? debug_dma_assert_idle+0x159/0x1d0 [<c04590ee>] warn_slowpath_fmt+0x3e/0x60 [<c076c1e9>] debug_dma_assert_idle+0x159/0x1d0 [<c059b8a9>] ? anon_vma_prepare+0x29/0x140 [<c0590524>] do_wp_page+0xe4/0x8c0 [<c0592722>] handle_mm_fault+0x662/0xba0 [<c0447237>] ? __do_page_fault+0x1a7/0x5d0 [<c0447298>] __do_page_fault+0x208/0x5d0 [<c058ebd1>] ? might_fault+0x51/0xb0 [<c058ec27>] ? might_fault+0xa7/0xb0 [<c074dbb0>] ? _copy_to_user+0x40/0x60 [<c0447660>] ? __do_page_fault+0x5d0/0x5d0 [<c044767a>] do_page_fault+0x1a/0x20 [<c0b1d2b4>] error_code+0x6c/0x74 ---[ end trace d1e2e0e42481c1e4 ]--- Mapped at: [<c076a292>] debug_dma_alloc_coherent+0x22/0x70 [<c0867cbb>] dmam_alloc_coherent+0xdb/0x130 [<c08b798d>] ahci_port_start+0xed/0x230 [<c089d23b>] ata_host_start.part.24+0xcb/0x1b0 [<c08a2a35>] ata_host_activate+0x45/0x100
ahci:
00:09.0 SATA controller: NVIDIA Corporation MCP78S [GeForce 8200] AHCI Controller (rev a2) andsnd_hda_intel:
00:07.0 Audio device: NVIDIA Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1) swapped the roles. :)
mt7601Usta is irrelevant as tainter, here.
poma
Re: debug_dma_assert_idle - ohci - cpu touching an active dma mapped cacheline
------------[ cut here ]------------ WARNING: CPU: 2 PID: 1065 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() ohci-pci 0000:00:04.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03004180] CPU: 2 PID: 1065 Comm: tumblerd Not tainted 3.17.0-0.rc5.git1.1.fc22.i686 #1 Call Trace: [<c0b1bdb6>] dump_stack+0x48/0x60 [<c04591e2>] warn_slowpath_common+0x82/0xa0 [<c076dad9>] ? debug_dma_assert_idle+0x159/0x1d0 [<c076dad9>] ? debug_dma_assert_idle+0x159/0x1d0 [<c045923e>] warn_slowpath_fmt+0x3e/0x60 [<c076dad9>] debug_dma_assert_idle+0x159/0x1d0 [<c059a909>] ? anon_vma_prepare+0x29/0x140 [<c058f594>] do_wp_page+0xe4/0x8c0 [<c0591792>] handle_mm_fault+0x662/0xba0 [<c0447398>] __do_page_fault+0x208/0x5d0 [<c058053b>] ? vm_mmap_pgoff+0x9b/0xc0 [<c0595178>] ? SyS_mmap_pgoff+0xe8/0x220 [<c04a8e1c>] ? trace_hardirqs_on_caller+0x13c/0x1e0 [<c0447760>] ? __do_page_fault+0x5d0/0x5d0 [<c044777a>] do_page_fault+0x1a/0x20 [<c0b258b4>] error_code+0x6c/0x74 ---[ end trace ce8b30fb8a3415c9 ]--- Mapped at: [<c076bb82>] debug_dma_alloc_coherent+0x22/0x70 [<c09050dc>] ohci_init+0x22c/0x450 [<c0905359>] ohci_setup+0x59/0x60 [<c09064cf>] ohci_pci_reset+0x4f/0x60 [<c08dd8aa>] usb_add_hcd+0x29a/0x8c0
$ lsusb -s 004: Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
poma
Quoted 5 lines · Clemens Ladisch
Quoted 1 line · poma
Sound whispers,
???
Quoted 8 lines
Quoted 5 lines
WARNING: CPU: 3 PID: 900 at lib/dma-debug.c:593 debug_dma_assert_idle+0x159/0x1d0() snd_hda_intel 0000:00:07.0: DMA-API: cpu touching an active dma mapped cacheline [cln=0x03014000] ... Mapped at: [<c074ec12>] debug_dma_alloc_coherent+0x22/0x70"Coherent" means "touching DMA mappings is allowed". Why does dma-debug complain about that?
Right, but coherency does not follow copy-on-write. The check is there to catch cases where a page is COW'd while an active dma mapping on the source page is present. Sure, the write is coherent, but due to the COW it's going to the wrong page, so you are potentially missing data in the new mapping.
See how NET_DMA inspired this check: