From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751918AbdKULpI (ORCPT ); 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 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 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