Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751571AbdILKpk (ORCPT ); Tue, 12 Sep 2017 06:45:40 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:55999 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393AbdILKpd (ORCPT ); Tue, 12 Sep 2017 06:45:33 -0400 From: Peter Ujfalusi To: , CC: , , , , Subject: [PATCH 0/5] dmaengine: core/edma/omap-dma: maximum SG len reporting Date: Tue, 12 Sep 2017 13:44:19 +0300 Message-ID: <20170912104424.18495-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v8CAji4n015449 Content-Length: 1367 Lines: 38 Hi, Both TI eDMA and sDMA have limitation on the number of bursts it can handle within one trasnfer (CCNT in eDMA and CFN in sDMA are 16bit unsigned counters). If the the length of the SG in the sglist is bigger than what can be supported we either have corrupted data or failure in the setup phase. Add device_get_max_len() callback to devices where they can report such length restriction to client drivers so they can set up their SGlist that each element's length is going to be within the supported range. The first two patch is not strictly related to this issue, but it is needed that both eDMA and sDMA will have valid max_burst length. Regards, Peter --- Peter Ujfalusi (5): dmaengine: edma: Implement protection for invalid max_burst dmaengine: omap-dma: Implement protection for invalid max_burst dmaengine: Support for querying maximum trasnfer length (of an SG element) dmaengine: edma: Implement device_get_max_len callback dmaengine: omap-dma: Implement device_get_max_len callback drivers/dma/edma.c | 28 ++++++++++++++++++++++++++++ drivers/dma/omap-dma.c | 28 ++++++++++++++++++++++++++++ include/linux/dmaengine.h | 14 ++++++++++++++ 3 files changed, 70 insertions(+) -- 2.14.1 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki