From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sekhar Nori Subject: Re: [PATCH 1/1] dma: edma: fix incorrect SG list handling Date: Mon, 14 Apr 2014 14:01:11 +0530 Message-ID: <534B9CCF.1070904@ti.com> References: <1395208550-1603-1-git-send-email-nsekhar@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:53114 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753557AbaDNIbU (ORCPT ); Mon, 14 Apr 2014 04:31:20 -0400 In-Reply-To: <1395208550-1603-1-git-send-email-nsekhar@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Dan Williams , Vinod Koul Cc: DMA Engine Mailing List , Linux DaVinci Mailing List , Jon Ringle , Alexander Holler , Linux OMAP Mailing List , Joel Fernandes Vinod, On Wednesday 19 March 2014 11:25 AM, Sekhar Nori wrote: > The code to handle any length SG lists calls edma_resume() > even before edma_start() is called. This is incorrect > because edma_resume() enables edma events on the channel > after which CPU (in edma_start) cannot clear posted > events by writing to ECR (per the EDMA user's guide). > > Because of this EDMA transfers fail to start if due > to some reason there is a pending EDMA event registered > even before EDMA transfers are started. This can happen if > an EDMA event is a byproduct of device initialization. > > Fix this by calling edma_resume() only if it is not the > first batch of MAX_NR_SG elements. > > Without this patch, MMC/SD fails to function on DA850 EVM > with DMA. The behaviour is triggered by specific IP and > this can explain why the issue was not reported before > (example with MMC/SD on AM335x). > > Tested on DA850 EVM and AM335x EVM-SK using MMC/SD card. > > Cc: stable@vger.kernel.org # v3.12.x+ > Cc: Joel Fernandes > Acked-by: Joel Fernandes > Tested-by: Jon Ringle > Tested-by: Alexander Holler > Reported-by: Jon Ringle > Signed-off-by: Sekhar Nori Looks like this patch is not in mainline still? Thanks, Sekhar