From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754416AbeEOPwU (ORCPT ); Tue, 15 May 2018 11:52:20 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:55478 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752661AbeEOPus (ORCPT ); Tue, 15 May 2018 11:50:48 -0400 X-Google-Smtp-Source: AB8JxZrNL1Gtn2e38xLobWD4ogBEf8o2WLM2ZvVqUQpSe57Xw2FYCqtiI0obVBr7VmQoWm6wh+TrZak7KmV28OKw4D0= MIME-Version: 1.0 In-Reply-To: <20180515062144.GC13271@vkoul-mobl> References: <2484918.HKVQc3yJkt@bear> <53b13d76-16a1-0e0a-09e1-c917e5d49326@samsung.com> <182f50b9-55b6-c9ce-07fb-718a1d22e9c8@samsung.com> <06f54061-c537-b399-e493-ec2cdf4def5d@samsung.com> <20180515062144.GC13271@vkoul-mobl> From: Frank Mori Hess Date: Tue, 15 May 2018 11:50:46 -0400 Message-ID: Subject: Re: Revert "dmaengine: pl330: add DMA_PAUSE feature" To: Vinod Cc: Marek Szyprowski , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Williams , r.baldyga@hackerion.com, Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Linux Samsung SOC Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 2:21 AM, Vinod wrote: > > For Pause/resume data loss is _not_ expected. > >> > and some of the 8250 drivers like 8250_dw.c set a maxburst > 1. If it >> > can't count on the pause/residue/terminate working without data loss >> > then it is just broken. As is the 8250_omap.c driver. Is the >> > description of dmaengine_pause in the documentation of "This pauses >> > activity on the DMA channel without data loss" to be interpreted as >> > "as long as you resume afterwards"? >> >> I assume that this requirement is for both - resuming and terminating. > > Terminate is abort, data loss may happen here. Wait, are you saying if you do dma pause read residue dma terminate then it is acceptable for there to be data loss, because it can be blamed on the terminate? In that case the usage of dmaengine in all the 8250 serial drivers is broken. Every time there is a break in the incoming rx data, the 8250 driver does pause/residue/terminate which could potentially cause data from the incoming data stream to be dropped.