Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933731AbbLQVv7 (ORCPT ); Thu, 17 Dec 2015 16:51:59 -0500 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:59275 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932967AbbLQVvu (ORCPT ); Thu, 17 Dec 2015 16:51:50 -0500 Date: Thu, 17 Dec 2015 21:51:40 +0000 From: Russell King - ARM Linux To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org, Haijun Zhang Subject: BUG: SDHCI fails to DMA-unmap, and other warnings Message-ID: <20151217215140.GK8644@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: 4731 Lines: 81 Firstly, with a UHS-1 card on iMX6 (so sdhci-esdhc-imx): WARNING: CPU: 1 PID: 93 at lib/dma-debug.c:509 add_dma_entry+0xfc/0x13c() DMA-API: exceeded 7 overlapping mappings of cacheline 0x00f99290 Modules linked in: 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: 93 Comm: mmcqd/0 Tainted: G C 4.4.0-rc5+ #1934 Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) Backtrace: [] (dump_backtrace) from [] (show_stack+0x18/0x1c) r6:c033cb44 r5:000001fd r4:00000000 r3:00000000 [] (show_stack) from [] (dump_stack+0x7c/0x98) [] (dump_stack) from [] (warn_slowpath_common+0x80/0xbc) r4:ee715a48 r3:ee718b80 [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x38/0x40) r8:efdc3940 r7:3e64a400 r6:20010093 r5:00f99290 r4:c09fce77 [] (warn_slowpath_fmt) from [] (add_dma_entry+0xfc/0x13c) r3:00000007 r2:c086cc50 [] (add_dma_entry) from [] (debug_dma_map_page+0x128/0x164) r6:00000000 r5:ef1e1c10 r4:ef236800 [] (debug_dma_map_page) from [] (sdhci_send_command+0x300/0xe44) r10:c13bc880 r9:ee715bf8 r8:ef1e1c10 r7:ee715bc4 r6:3e64a400 r5:00000400 r4:ee6a0440 r3:00000200 [] (sdhci_send_command) from [] (sdhci_request+0x90/0x104) r10:00000001 r9:ee715e7c r8:00010013 r7:ee6a0440 r6:ee715c2c r5:ee6a05b8 r4:ee6a0000 [] (sdhci_request) from [] (__mmc_start_request+0x48/0xd8) r10:ee991e40 r8:c07217dc r7:ee715c2c r6:ee715c2c r5:ee6a0000 r4:ee715c2c [] (__mmc_start_request) from [] (mmc_start_request+0x100/0x130) r7:ee715c3c r6:ee715c2c r5:ee6a0000 r4:ee715c2c [] (mmc_start_request) from [] (mmc_wait_for_req+0x44/0x15c) r5:ee6a0000 r4:ee6a0000 [] (mmc_wait_for_req) from [] (mmc_send_tuning+0x130/0x1a4) r8:c07217dc r7:00000200 r6:00000000 r5:00000040 r4:ee6a0000 r3:00000001 [] (mmc_send_tuning) from [] (esdhc_executing_tuning+0x44/0xf8) r10:00000001 r8:ee6a0440 r7:00000013 r6:ee6a05b8 r5:ee6a0440 r4:0000000c [] (esdhc_executing_tuning) from [] (sdhci_execute_tuning+0xc4/0x6a8) r7:00000013 r6:ee6a05b8 r5:20000013 r4:ee6a0000 [] (sdhci_execute_tuning) from [] (mmc_execute_tuning+0x38/0x78) r10:00000001 r9:ee715e7c r8:ee710ad0 r7:ee7109a8 r6:00000000 r5:ee6a0000 r4:ee6a0000 [] (mmc_execute_tuning) from [] (mmc_retune+0x74/0xd0) r5:ee6a0000 r4:ee6a0000 [] (mmc_retune) from [] (__mmc_start_request+0x18/0xd8) r4:ee7109a8 r3:c0527808 [] (__mmc_start_request) from [] (mmc_start_request+0x100/0x130) r7:ee7109a8 r6:00000000 r5:ee6a0000 r4:ee7109a8 [] (mmc_start_request) from [] (mmc_start_req+0x298/0x3a8) r5:00000000 r4:ee6a0000 [] (mmc_start_req) from [] (mmc_blk_issue_rw_rq+0xd0/0xb30) r10:ee6a1000 r9:ee7109a8 r8:ee710824 r7:ee710800 r6:ee6a1000 r5:ee6a1000 r4:00000000 [] (mmc_blk_issue_rw_rq) from [] (mmc_blk_issue_rq+0x104/0x49c) r10:00000001 r9:24590000 r8:ee710800 r7:ee710800 r6:ee737b60 r5:ee6a1000 r4:ee710824 [] (mmc_blk_issue_rq) from [] (mmc_queue_thread+0xbc/0x160) r10:00000001 r9:ee71082c r8:24590000 r7:00000000 r6:ee5aec60 r5:ee737b60 r4:ee710824 [] (mmc_queue_thread) from [] (kthread+0xe0/0xfc) r10:00000000 r9:00000000 r8:00000000 r7:c0526520 r6:ee710824 r5:00000000 r4:ee67ed80 r3:00000000 [] (kthread) from [] (ret_from_fork+0x14/0x24) r7:00000000 r6:00000000 r5:c004d9bc r4:ee67ed80 ---[ end trace 41e5fc6596fc8196 ]--- Secondly, my logs are spammed with this at _info_ level: /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified which is really interesting, because the binding document says that "voltage-ranges" is optional. If it's optional, then we shouldn't be spamming the kernel log 24+ times during boot with this. -- 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/