Bug 1082266 - [abrt] WARNING: CPU: 0 PID: 536 at lib/dma-debug.c:937 check_unmap+0x47b/0x920()
Summary: [abrt] WARNING: CPU: 0 PID: 536 at lib/dma-debug.c:937 check_unmap+0x47b/0x920()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neil Horman
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:ebe827816e3ef1c306df2cf7352...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-29 23:54 UTC by GeoffLeach
Modified: 2014-05-21 23:20 UTC (History)
8 users (show)

Fixed In Version: kernel-3.14.4-100.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-16 10:03:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dmesg (73.21 KB, text/plain)
2014-03-29 23:54 UTC, GeoffLeach
no flags Details
[PATCH] jme: Fix DMA unmap warning (4.05 KB, patch)
2014-03-31 14:15 UTC, Neil Horman
no flags Details | Diff

Description GeoffLeach 2014-03-29 23:54:30 UTC
Description of problem:
On boot. Othwerwise, no indication.

Additional info:
reporter:       libreport-2.1.12
WARNING: CPU: 0 PID: 536 at lib/dma-debug.c:937 check_unmap+0x47b/0x920()
jme 0000:05:00.0: DMA-API: device driver failed to check map error[device address=0x000000022d18ae6a] [size=90 bytes] [mapped as page]
Modules linked in: ip6t_REJECT nfsd auth_rpcgss nfs_acl lockd bnep bluetooth sunrpc xt_conntrack 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 vfat fat x86_pkg_temp_thermal coretemp kvm_intel kvm snd_hda_codec_hdmi snd_hda_codec_realtek crct10dif_pclmul snd_hda_intel crc32_pclmul snd_hda_codec crc32c_intel uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core ghash_clmulni_intel snd_hwdep snd_seq snd_seq_device arc4 videodev sdhci_pci snd_pcm sdhci rtl8192ce rtl_pci rtlwifi rtl8192c_common microcode mac80211 cfg80211 iTCO_wdt mmc_core rfkill jme jmb38x_ms mii snd_page_alloc memstick iTCO_vendor_support snd_timer snd usblp shpchp i2c_i801 media soundcore serio_raw mei_me mei lpc_ich mfd_core uinput nouveau i915 ttm i2c_algo_bit drm_kms_helper drm i2c_core mxm_wmi wmi video
CPU: 0 PID: 536 Comm: NetworkManager Not tainted 3.13.7-100.fc19.x86_64.debug #1
Hardware name: CLEVO CO.                        W150HRM                         /W150HRM                         , BIOS 4.6.4 10/09/2011
 0000000000000009 ffff880236c03ca8 ffffffff81762b3f ffff880236c03cf0
 ffff880236c03ce0 ffffffff8107875d ffff8802333d4810 ffff88023058ce38
 ffffffff82bf8650 0000000000000282 ffffffff81a40c20 ffff880236c03d40
Call Trace:
 <IRQ>  [<ffffffff81762b3f>] dump_stack+0x4d/0x66
 [<ffffffff8107875d>] warn_slowpath_common+0x7d/0xa0
 [<ffffffff810787cc>] warn_slowpath_fmt+0x4c/0x50
 [<ffffffff813b4f3b>] check_unmap+0x47b/0x920
 [<ffffffff810bac05>] ? sched_clock_cpu+0xb5/0x100
 [<ffffffff813b543f>] debug_dma_unmap_page+0x5f/0x70
 [<ffffffff81021a03>] ? native_sched_clock+0x13/0x80
 [<ffffffffa031472d>] jme_tx_clean_tasklet+0x15d/0x320 [jme]
 [<ffffffff8107e80e>] tasklet_action+0x17e/0x1e0
 [<ffffffff8107ef34>] __do_softirq+0x104/0x430
 [<ffffffff8107f64d>] irq_exit+0xcd/0xe0
 [<ffffffff81777e56>] do_IRQ+0x56/0xc0
 [<ffffffff8176c8f2>] common_interrupt+0x72/0x72
 <EOI>  [<ffffffff81775b95>] ? sysret_check+0x22/0x5d

Comment 1 GeoffLeach 2014-03-29 23:54:39 UTC
Created attachment 880229 [details]
File: dmesg

Comment 2 Neil Horman 2014-03-31 14:15:52 UTC
Created attachment 880762 [details]
[PATCH] jme: Fix DMA unmap warning


The jme driver forgot to check the return status from pci_map_page in its tx
path, causing a dma api warning on unmap.  Easy fix, just do the check and
augment the tx path to tell the stack that the driver is busy so we re-queue the
frame.

Signed-off-by: Neil Horman <nhorman>
CC: Guo-Fu Tseng <cooldavid>
CC: "David S. Miller" <davem>
---
 drivers/net/ethernet/jme.c | 53 ++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 47 insertions(+), 6 deletions(-)

Comment 3 Neil Horman 2014-03-31 16:21:25 UTC
 http://koji.fedoraproject.org/koji/taskinfo?taskID=6692994


This is a test build of an f19 kernel with the above patch applied.  Please test it out and let me know if it solves the problem at hand.

Thanks!

Comment 4 GeoffLeach 2014-03-31 22:34:12 UTC
Hmmmm .... am I correct that this would require me to do a kernel build? I'm happy to try, if I could have a pointer to the newbie's guide to building from the Fedora buildsystem.

Comment 5 Neil Horman 2014-04-25 11:33:48 UTC
No, the kernel build was in the url above.  Do you have any feedback on the build?

Comment 6 GeoffLeach 2014-04-28 12:54:42 UTC
Sorry, no.

Comment 7 Neil Horman 2014-04-28 16:28:17 UTC
ok, here you go, new build, please test it and confirm that it fixes the problem

http://koji.fedoraproject.org/koji/taskinfo?taskID=6790857

Comment 8 GeoffLeach 2014-05-04 12:45:10 UTC
Problem appears to have been resolved. Thanks.

Comment 9 Neil Horman 2014-05-05 11:15:54 UTC
thank you!

Comment 10 Neil Horman 2014-05-05 19:06:36 UTC
posted upstream for review

Comment 11 Fedora Update System 2014-05-13 22:10:44 UTC
kernel-3.14.4-200.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/kernel-3.14.4-200.fc20

Comment 12 Fedora Update System 2014-05-13 22:11:18 UTC
kernel-3.14.4-100.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/kernel-3.14.4-100.fc19

Comment 13 Fedora Update System 2014-05-14 23:56:28 UTC
Package kernel-3.14.4-100.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-3.14.4-100.fc19'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6354/kernel-3.14.4-100.fc19
then log in and leave karma (feedback).

Comment 14 Fedora Update System 2014-05-16 10:03:37 UTC
kernel-3.14.4-200.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2014-05-21 23:20:56 UTC
kernel-3.14.4-100.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.