Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933640AbbLQVm3 (ORCPT ); Thu, 17 Dec 2015 16:42:29 -0500 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:59263 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933484AbbLQVmQ (ORCPT ); Thu, 17 Dec 2015 16:42:16 -0500 Date: Thu, 17 Dec 2015 21:42:09 +0000 From: Russell King - ARM Linux To: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-mm@kvack.org Subject: sata with dma-debug enabled: DMA-API: cpu touching an active dma mapped cacheline [cln=0x00f270c0] Message-ID: <20151217214208.GJ8644@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3381 Lines: 60 Booting 4.4-rc5 on iMX6 with a SATA rootfs produces the following DMA-API warning: WARNING: CPU: 1 PID: 404 at lib/dma-debug.c:604 debug_dma_assert_idle+0x1ac/0x218() ahci-imx 2200000.sata: DMA-API: cpu touching an active dma mapped cacheline [cln=0x00f270c0] Modules linked in: caam_jr snd_soc_imx_sgtl5000 snd_soc_fsl_asoc_card hid_cypress snd_soc_imx_spdif snd_soc_sgtl5000 snd_soc_imx_audmux cec_dev imx_sdma rc_cec caam imx2_wdt snd_soc_fsl_spdif snd_soc_fsl_ssi coda v4l2_mem2mem imx_pcm_dma videobuf2_dma_contig videobuf2_vmalloc dw_hdmi_cec videobuf2_memops imx_thermal dw_hdmi_ahb_audio cec etnaviv(C) fuse rc_pinnacle_pctv_hd CPU: 1 PID: 404 Comm: alsactl Tainted: G WC 4.4.0-rc5+ #1934 Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) Backtrace: [] (dump_backtrace) from [] (show_stack+0x18/0x1c) r6:c033dcac r5:0000025c r4:00000000 r3:00000000 [] (show_stack) from [] (dump_stack+0x7c/0x98) [] (dump_stack) from [] (warn_slowpath_common+0x80/0xbc) r4:ec4add20 r3:ec40f300 [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x38/0x40) r8:c09bfad4 r7:a0070113 r6:c13d52c0 r5:c097fb2c r4:ef235400 [] (warn_slowpath_fmt) from [] (debug_dma_assert_idle+0x1ac/0x218) r3:c08930b8 r2:c086d0e4 [] (debug_dma_assert_idle) from [] (wp_page_copy+0x6c/0x38c) r10:0003c9c3 r8:efd8a860 r7:efd8a720 r6:b6956000 r5:efd8a860 r4:ec46ed68 [] (wp_page_copy) from [] (do_wp_page+0xb0/0x540) r10:ee453558 r9:ee440000 r8:efd8a860 r7:ee440000 r6:3c9c379f r5:b6956000 r4:ec46ed68 [] (do_wp_page) from [] (handle_mm_fault+0xa60/0xe14) r10:00000001 r9:ee440000 r8:3c9c379f r7:b6956000 r6:ec4fc000 r5:eeaf3e80 r4:ec46ed68 [] (handle_mm_fault) from [] (do_page_fault+0x26c/0x388) r10:ee440054 r9:00000055 r8:b6956f44 r7:0000081f r6:ee440000 r5:ec40f300 r4:ec4adfb0 [] (do_page_fault) from [] (do_DataAbort+0x3c/0xbc) r10:00000002 r9:becbad04 r8:ec4adfb0 r7:c0984ac4 r6:b6956f44 r5:c001d910 r4:0000081f [] (do_DataAbort) from [] (__dabt_usr+0x44/0x60) Exception stack(0xec4adfb0 to 0xec4adff8) dfa0: 015b2c00 00000005 b694d3f8 b6956f40 dfc0: b6941000 015b2be0 effffef9 becbab98 becbab70 becbad04 00000002 b69597b4 dfe0: 00000000 becbab70 b6ef8783 b6ef84d4 a0070030 ffffffff r8:10c5387d r7:10c5387d r6:ffffffff r5:a0070030 r4:b6ef84d4 ---[ end trace 41e5fc6596fc8197 ]--- Mapped at: [] ata_qc_issue+0x294/0x3f0 [] ata_scsi_translate+0xa0/0x160 [] ata_scsi_queuecmd+0x90/0x268 [] scsi_dispatch_cmd+0xdc/0x24c [] scsi_request_fn+0x4f4/0x6d0 EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro (This is the second warning: the first warning is down to SDHCI DMA-mapping the same memory multiple times, which I'm about to report as well.) -- RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/