Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752838AbbGFI3v (ORCPT ); Mon, 6 Jul 2015 04:29:51 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:57904 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbbGFI3r (ORCPT ); Mon, 6 Jul 2015 04:29:47 -0400 Date: Mon, 6 Jul 2015 16:29:42 +0800 From: Herbert Xu To: Lokesh Vutla Cc: linux-crypto@vger.kernel.org, davem@davemloft.net, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, t-kristo@ti.com, nsekhar@ti.com Subject: Re: [PATCH] crypto: omap-des: Fix unmapping of dma channels Message-ID: <20150706082942.GA20741@gondor.apana.org.au> References: <1435842208-31382-1-git-send-email-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435842208-31382-1-git-send-email-lokeshvutla@ti.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2366 Lines: 39 On Thu, Jul 02, 2015 at 06:33:28PM +0530, Lokesh Vutla wrote: > dma_unmap_sg() is being called twice after completing the > task. Looks like this is a copy paste error when creating > des driver. > With this the following warn appears during boot: > > [ 4.210457] ------------[ cut here ]------------ > [ 4.215114] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:1080 check_unmap+0x710/0x9a0() > [ 4.222899] omap-des 480a5000.des: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x00000000ab2ce000] [size=8 bytes] > [ 4.236785] Modules linked in: > [ 4.239860] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.14.39-02999-g1bc045a-dirty #182 > [ 4.247918] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > [ 4.255710] [] (show_stack) from [] (dump_stack+0x84/0xb8) > [ 4.262977] [] (dump_stack) from [] (warn_slowpath_common+0x68/0x8c) > [ 4.271107] [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40) > [ 4.279854] [] (warn_slowpath_fmt) from [] (check_unmap+0x710/0x9a0) > [ 4.287991] [] (check_unmap) from [] (debug_dma_unmap_sg+0x90/0x19c) > [ 4.296128] [] (debug_dma_unmap_sg) from [] (omap_des_done_task+0x1cc/0x3e4) > [ 4.304963] [] (omap_des_done_task) from [] (tasklet_action+0x84/0x124) > [ 4.313370] [] (tasklet_action) from [] (__do_softirq+0xf0/0x20c) > [ 4.321235] [] (__do_softirq) from [] (irq_exit+0x98/0xec) > [ 4.328500] [] (irq_exit) from [] (handle_IRQ+0x50/0xb0) > [ 4.335589] [] (handle_IRQ) from [] (gic_handle_irq+0x28/0x5c) > > Removing the duplicate call to dma_unmap_sg(). > > Reported-by: Tomi Valkeinen > Signed-off-by: Lokesh Vutla Applied to crypto. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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/