From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:40902 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbeCRKYS (ORCPT ); Sun, 18 Mar 2018 06:24:18 -0400 Date: Sun, 18 Mar 2018 11:24:17 +0100 From: Greg Kroah-Hartman To: Vinod Koul Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Peter Ujfalusi , Eric Anholt , Sasha Levin Subject: Re: [PATCH 4.14 064/109] dmaengine: bcm2835-dma: Use vchan_terminate_vdesc() instead of desc_free Message-ID: <20180318102417.GA30164@kroah.com> References: <20180316152329.844663293@linuxfoundation.org> <20180316152333.462064800@linuxfoundation.org> <20180316184640.rxw6kwvqghsmdgcc@xps> <20180317143253.GI15443@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180317143253.GI15443@localhost> Sender: stable-owner@vger.kernel.org List-ID: On Sat, Mar 17, 2018 at 08:02:57PM +0530, Vinod Koul wrote: > On Fri, Mar 16, 2018 at 01:46:40PM -0500, Dan Rue wrote: > > On Fri, Mar 16, 2018 at 04:23:33PM +0100, Greg Kroah-Hartman wrote: > > > 4.14-stable review patch. If anyone has any objections, please let me know. > > > > > > ------------------ > > > > > > From: Peter Ujfalusi > > > > > > > > > [ Upstream commit de92436ac40ffe9933230aa503e24dbb5ede9201 ] > > > > > > 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. > > > > > > Signed-off-by: Peter Ujfalusi > > > Acked-by: Eric Anholt > > > Signed-off-by: Vinod Koul > > > Signed-off-by: Sasha Levin > > > Signed-off-by: Greg Kroah-Hartman > > > > This patch is causing a build error on arm and arm64 per i.e. > > https://kernelci.org/build/id/5aac017e59b5141cb1b3a4d5/ > > > > Builds are also failing for arm/arm64 on 4.15 and this patch seems to be a > > problem there as well, but I have not verified it yet. > > I think we are missing commit 1c7f072d94e8. Pls cherrypick that as well > > commit 1c7f072d94e8b697fd9b70cdb268622a18faf522 > Author: Peter Ujfalusi > Date: Tue Nov 14 16:32:04 2017 +0200 > > dmaengine: virt-dma: Support for race free transfer termination > > This adds vchan_terminate_vdesc API.. Thanks, that helped. I've now added this and send out a -rc2 for this kernel. greg k-h