Received: by 10.223.164.202 with SMTP id h10csp5035521wrb; Tue, 21 Nov 2017 03:48:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMZhZ0i4LwtVjAslaFWVdDbSrWGwR/wqEX1g2TkIq0DJUtAz3ssuG77mmypP0upvv5XRqc/G X-Received: by 10.98.15.22 with SMTP id x22mr14912229pfi.13.1511264915819; Tue, 21 Nov 2017 03:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511264915; cv=none; d=google.com; s=arc-20160816; b=d3Z+WyM1XkwgjfJEybx2/PKa1fQYytKcgdtlqSBWyX/xZ2qtNODApZcD/L6FpO9Jp3 XAt2OEwgprhwAZrnhctTvO0fOPEyP073O6VhqxBOXJg6ej/cMpTXirtrU5dUX+dT34Ke BpTf47TuP27+H9MUFlLn8IGtvbexPRC/Qi+MT2F7XjKGVTnjeFBXD6sIFx/o6pXqC1+O /Yt/MnXinCryib+GKsnRPK0a/ImGxi4pXLQoHN0RVoJbxjKtOZb+1RrMWkRdMXQcuU7A Xf3a7FbY092lQArrNqvEK45dx8rOExXlACdnLSNqEFZZ9lvkZuF6DINFLiSBKYqkfAob q79w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=docF9T54awQZ3Dxr5lReNA30zisw+X2qQ1S54letNVA=; b=nxpIYIb5/RcAAzH189EuA+ACuv/6MftPELnk2wCr5oScH+BvtWwHZsVyHo0TWanNo/ ETGGW/scfbhusF5SCumcPDnZi5WtAY3x0jzUU5HDSr5Fj5hb48TEseeENIwSYi52NjWp Gj32We4PnmeYBVBsgfzVuxzy1raxcJ9vdrlEu3bqN0+5wZnuw0gCPve/ffIco5sqAI3I PiopeFdwZYpGesA4EQItboLwrNoOzGkNfLnUy3fmgo7RpDRJgks8UvE4DOqWjCxyXFqU dFj6tLjzKXFzkJAt6mAlBVx+orZwISv1Sb2QWaHUVMrMVtWjCNxEkGClTD+zSVii20Ed jyoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZiHAIqND; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f34si10623454ple.249.2017.11.21.03.48.24; Tue, 21 Nov 2017 03:48:35 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=ZiHAIqND; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909AbdKULpI (ORCPT + 75 others); Tue, 21 Nov 2017 06:45:08 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:24660 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbdKULpG (ORCPT ); Tue, 21 Nov 2017 06:45:06 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id vALBi9c2025235; Tue, 21 Nov 2017 05:44:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1511264649; bh=WhrOp4rNLwOuzY5UV84l/sq6LR0AHpdoGohiXqozjCU=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ZiHAIqNDTrHEEcDrm6uybAzpl0VCVh1sM0/4qqX95T2JQo8X+wNj8IcqbhvSe60K7 SpZFZSsE7d5GxB5kN7tjF61Wdu9KhFzXTmP5WeZ04plQz6jOf4h+yIK+NCIWHlJFvb vHxyDy1rqNQcwoZLsmXuH5dkF7AOwX2/vjFWReO4= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vALBi9Oi026266; Tue, 21 Nov 2017 05:44:09 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 21 Nov 2017 05:44:08 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 21 Nov 2017 05:44:08 -0600 Received: from [172.22.5.0] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vALBi5JR003783; Tue, 21 Nov 2017 05:44:06 -0600 Subject: Re: [PATCH 05/10] dmaengine: bcm2835-dma: Use vchan_terminate_vdesc() instead of desc_free To: Eric Anholt , CC: , , , , Martin Sperl References: <20171114143212.8311-1-peter.ujfalusi@ti.com> <20171114143212.8311-6-peter.ujfalusi@ti.com> <87k1yr4blm.fsf@anholt.net> From: Peter Ujfalusi Message-ID: <2f3d48dd-f6a8-a3ff-635e-296f3e0f75f1@ti.com> Date: Tue, 21 Nov 2017 13:42:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <87k1yr4blm.fsf@anholt.net> Content-Type: text/plain; charset="utf-8" Content-Language: en-GB Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric, On 11/15/2017 08:53 PM, Eric Anholt wrote: > Peter Ujfalusi writes: > >> To avoid race with vchan_complete, use the race free way to terminate >> running transfer. >> >> Implement the device_synchronize callback to make sure that the terminated >> descriptor is freed. >> >> CC: Martin Sperl >> CC: Eric Anholt >> Signed-off-by: Peter Ujfalusi > > I haven't fully followed the series, but thanks for porting your fix to > other platforms! I have seen similar patterns in these drivers and it was the right thing to do imho. Unfortunately I can not test on other platforms than eDMA and sDMA, but I firmly believe that based on the usage it should be fine as it survives my torture tests. It would be great to see some Tested-by from others to have more coverage. > Acked-by: Eric Anholt Thank you! -- Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki From 1584175733188183769@xxx Wed Nov 15 23:15:09 +0000 2017 X-GM-THRID: 1584052564070608420 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread