Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4868418imm; Fri, 18 May 2018 12:03:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDFQfpYFsqyAhVIiNTAbmWR7LIgVF/rtCrqnL3hbjUrBAmqboHwaYgKmHgjvVY4KU25P6Q X-Received: by 2002:a62:5050:: with SMTP id e77-v6mr10722289pfb.16.1526670224010; Fri, 18 May 2018 12:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526670223; cv=none; d=google.com; s=arc-20160816; b=umRuuL9BnnqC436rSDJrSRhAx/RLJ7uD4DQcOJ2O/kChv0c8kJKG7a2sVyfjXgyxuA DsYZ+FY0usVgHqg2SwnMZvnBEuEwYZQG7B4PJ+J1K6DFVWc8gI5hQDXcCyE819f4MLRh HE9Z+6AXzo6YZCwnVJSeWK2W/VyqpX4TRD3XfohevwyqOA32btgef7YczB65lVHWoOqU bi1b6qTHfAR8+2TBgnw4+z4anwBxnA8XfgPLjVYG2rPyUjZIJFnEPwykzWE5GKxlIPaN vnCwnYuKtqJIbykfjMiBniO433TpTLMZH0FuTQvXA0b7/LCAglXTJZoX2i/dk8561wXN yIKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=O2mfDUNbuuIRbTsoTTQ9gqDPzzpHLfB4qtVSypkjAoY=; b=Er0rjcJTc0m6FNINkgOR5M7T4lngxEu75ztLUbmbZ13hDkwU0aKIvVMp++LOdf8jWA 5k0jgDoM6dX9OfIM1yDXPThp+x0rCrXTLcrCqpEL4iuc/7yd3whkbXu9X+/XC4WtXtD3 ii/MtOBIrrZ0WqYDPV5rZ7FwBPunldcq+5WtPZ1wN3Lb8g96YqSjMHIIB2oCUJVcCCxl 1gK+w/1uCY5TGL4MbVZoyRYxW2jIHp1Raglyrfd476oWeCeVedeXlFeyvw1cxNTgjDy5 siGHzcX+kkuHxgf7mwr36yhP7RCEQiQS4qbTcgL9TP600u5kfqvVio5fOLAaFXWXMavO UTJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X4pBmW1e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i190-v6si6556677pge.408.2018.05.18.12.03.15; Fri, 18 May 2018 12:03:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X4pBmW1e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751897AbeERTBq (ORCPT + 99 others); Fri, 18 May 2018 15:01:46 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:38058 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751363AbeERTBm (ORCPT ); Fri, 18 May 2018 15:01:42 -0400 Received: by mail-io0-f177.google.com with SMTP id z4-v6so7394856iof.5; Fri, 18 May 2018 12:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O2mfDUNbuuIRbTsoTTQ9gqDPzzpHLfB4qtVSypkjAoY=; b=X4pBmW1ewflMVlSFxT1Gao15aT20svqXZZo/xb1YWrkvtJ93cAza3BvSp6ipNkdJqQ 1q0eSVHZRM/oNC5QHd5Dv8M8zYeRwwmi+UR3w4qgFcJQpmLNN9/sxmktCYiRqXD1C+Gf kDotdOA6tvpahFBc1hB4BYOyVGKGdmPrYKkDkblHC6rczIxDCh+Z14pPiv52Q7JQFF13 3iUQXih9Nczp7tdjthn0udY28iLvFiw6czhxW66HNzywVVr/m6BKBE7zS/StMCj7EIil 10mw64ltwuVI+OdtvZmTcGI54vlO+DKCmbAqY2goh+1Xu3k2M5VcBz8SUlN1vMuiDil9 0Ixg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O2mfDUNbuuIRbTsoTTQ9gqDPzzpHLfB4qtVSypkjAoY=; b=J3iN7VcjAMCFjXxOhX824Dz36WuKcN3FzhQIIUc71qKD4aryg0Y0iM0+1ERvEj8wPL gCWXn7wWR6ZC+rDdmyz5sBUnnGdPLt81WwkHVJjiYq7EFuN1n7QRcHRJWzBYScSy2arJ 1+iNky6X0TQzjO4yVJPO3QCmTKoU5fFuEwX35K3Z6IiLSGc8jgKmZM+QVxSUPod7+VgJ xIaoP6c3GsUbpZzbXXAr9QJi1+je0LDoG4tD+pwmBrucJOKH1OIcYq0kt8lFihsifN9h a0SwEl+LkLdw4FzX+0LVJeIGltCB4xS+Hay9EztvbMpXaYoHc3jA9TqF1kRtHxFOkAYY KIDQ== X-Gm-Message-State: ALKqPweAU/SK9iFWTMp8xQ3wBTwk0uYY8mhxPVNR09++yVWe7f4wgewC QLADr/9VeA5ms3MYHzyh7nGayKk/zkeqQQ6yDX4= X-Received: by 2002:a6b:cd49:: with SMTP id d70-v6mr11712232iog.150.1526670101942; Fri, 18 May 2018 12:01:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:4d51:0:0:0:0:0 with HTTP; Fri, 18 May 2018 12:01:41 -0700 (PDT) In-Reply-To: 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> <20180517041946.GQ13271@vkoul-mobl> From: Frank Mori Hess Date: Fri, 18 May 2018 15:01:41 -0400 Message-ID: Subject: Re: Revert "dmaengine: pl330: add DMA_PAUSE feature" To: Lars-Peter Clausen Cc: Vinod Koul , 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 1:22 PM, Lars-Peter Clausen wrote: > On 05/17/2018 06:20 PM, Frank Mori Hess wrote: > The problem is not so much on the software side but even more so on the > hardware side. Not all hardware even supports aborting a transfer with no > data loss because there is no precise measurement of how much data has been > transferred. The residue that is reported is always the lower bound, this > much has been transferred but it might actually have been more. I'd just like to point out, if the pl330 driver actually did report a upper bound on the residue (lower bound on bytes transferred) that would also blow up Marek's samsung serial driver use case. Instead of being in a situation where data loss might occur rarely due to a race condition, they would be in a situation where data loss occurs every time they stop a transfer. Not that such a residue reporting would be incorrect though, the pl330 driver doesn't even advertise burst level granularity with its residue reporting.