Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp121256pxa; Fri, 21 Aug 2020 02:57:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyOx+jDZaywnArWKsJdw68R/4YrFdOKa4CYs024k2WLClinK7zZVaWOOGLorLeQbA2hXVg X-Received: by 2002:a50:954d:: with SMTP id v13mr1905898eda.337.1598003878773; Fri, 21 Aug 2020 02:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598003878; cv=none; d=google.com; s=arc-20160816; b=PmMvX0GUZ/luad95cgGlKWAm+BxQ1HoFC/vZMc6FHUBLRUODe0imnl531ZIdO9uJ/I 0a1QL5f2xjssxRc3mg9/bHm4P2rqbwoCCk9grE2tG5TrseNxy5adPTHmOgMWXJiqgGBr W12oKya0WThnj3tnwEPjIgYlWm/UgqyG/VM1bxE7Kdl2K3eVIrLih/johJADKUs0+NW/ w0DgJUPAMrSTjsUpJNGWhlkr8qcyf5/NFOTIqUrapbcZUXg6ZOuj7dL1OGIy/IcHm6CP p05xzj2QFVQwGZQiBkt8ibX/PSCpTdTDzLYUMEm5S71YW5Z5ucjKswVWIKVhvjyOOTDa JEfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:dkim-signature; bh=gaj/0A3KonnuG01OvmUUmuMVTpVKekx1GMrL+7lwXPQ=; b=JNc119AsnZXOPuVCkTKHLYBnezxwh+lzrtsrbJbm4LoKEsTTuULkEDiXYWNwJ7E17z 4cgwJ1e1f4M2L9bwr9M4N9rBZUY0nmiaalPTNot7OhZMU+/wjjZl/usCX1twanNOgkvN mcQ60ncrw2950+wLj+NxlD1I0l7//cED1U4FWK6Gja/q1tzPAOa6TzalZ4ZOhZWkqwWR sor8PDGHwXSqD9agmx9h6ZErG59qdyccrh2JuWmGDa/1NKR800ijf6/4Kofx2v/+76jp T7djGKjlUUpX8iru3hX70Fy1GjLzazm2qEObNKaJOe89mYhlQB6P0A7j3Lkc3726FvhE fp9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=kRb96QOO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=skidata.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si760162ejj.277.2020.08.21.02.57.34; Fri, 21 Aug 2020 02:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b=kRb96QOO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=skidata.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727772AbgHUJyj (ORCPT + 99 others); Fri, 21 Aug 2020 05:54:39 -0400 Received: from mail1.skidata.com ([91.230.2.99]:49057 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbgHUJye (ORCPT ); Fri, 21 Aug 2020 05:54:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=skidata.com; i=@skidata.com; q=dns/txt; s=selector1; t=1598003673; x=1629539673; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NstbtL4h85xlZs4+XVTJ2ZVNFbQJtI/QKJuqZTJ2ZeQ=; b=kRb96QOOc5MO+LFrktYiLSRs7IwA3NGeTLusUmzGrVJVRDVGjmHF6ENc sCInO7yfgGH/0SEgvxXaMM0rBBcOfuXYV3IxAciCai+KKnNPulICBS8sx PRN+/oAAQG5pYdJhVUtWss9AZoS0ObYmkD0dJ678Fdmk9xcNodSQNAQLr 1EZerV/8QvohyhxTehcUhKtloM9TE9ngfd9YSFbK2eH7tnrWOMJnhHvTJ 19DnSr0R37yswQYzcwJ/m75bo7Bf5fwWzvb1d93I5tOG+S0EXk9oFioM2 8DsZEacsecj5a7Q211dhOqX7rv2UpS4le+yWf1rgMpNsuciJ/OxVEunrT Q==; IronPort-SDR: 3YRGmzjJwFhLM47ZZA2avh0ZdlsTTCQs/vrDyCckW8v4KIO9OYH5mDxDlRHi6DXdj0zw0l3grt zFumAJ3NT23lh0uS6wZWMxdgSpk1Xr0dBlNPCRmJ5lztPu3KFzyKJJxVV0PHvDrpHz4uKeJ14S y7+o1plvPyokFmzMttD3BtEOSYoQPPNKqa3w0vtJRhur8kqBqGxHvyCB5JVemSvoArcwHvWDf0 YPYQZgTBK+99J3q2ew3/FXG378z1H6pj4Y+XNESw2CcHD/V83drLWg6/hjN4wq/bNyCX19Qt/E N04= X-IronPort-AV: E=Sophos;i="5.76,335,1592863200"; d="scan'208";a="26271758" Date: Fri, 21 Aug 2020 11:54:30 +0200 From: Richard Leitner To: Robin Gong CC: Benjamin Bara - SKIDATA , Lars-Peter Clausen , "timur@kernel.org" , "nicoleotsuka@gmail.com" , "vkoul@kernel.org" , "dan.j.williams@intel.com" , dl-linux-imx , "shawnguo@kernel.org" , "kernel@pengutronix.de" , "dmaengine@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" Subject: Re: pcm|dmaengine|imx-sdma race condition on i.MX6 Message-ID: <20200821095430.GB65616@pcleri> References: <20200813112258.GA327172@pcleri> <61498763c60e488a825e8dd270732b62@skidata.com> <16942794-1e03-6da0-b8e5-c82332a217a5@metafoo.de> <6b5799a567d14cfb9ce34d278a33017d@skidata.com> <20200821043418.GA65616@pcleri> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex6srv.skidata.net (192.168.111.84) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 09:21:37AM +0000, Robin Gong wrote: > On 2020/08/21 12:34 Richard Leitner wrote: > > On Thu, Aug 20, 2020 at 03:01:44PM +0000, Robin Gong wrote: > > > On 2020/08/19 22:26 Benjamin Bara - SKIDATA > > wrote: > > > > > > > > @Robin: > > > > Is it possible to tag the commits for the stable-tree > > > > Cc: stable@vger.kernel.org? > > > Could my patch work in your side? If yes, I will add > > > Cc: stable@vger.kernel.org > > > > I've tested the patches 3 & 4 (removing sdmac->context_loaded) of the series > > you mentioned and sent Tested-by tags for them [1,2], as they fix the EIO > > problems for our use case. > > > > So from our side they are fine for stable. > > > Okay, I thought that's just decrease the issue in your side not totally fix, and the patch As Benjamin mentioned the issue isn't "fixed" for us from the logical/ technical side. Nonetheless the EIO error won't occur anymore with the patches applied. Therefore the issue is for me "fixed from a userspace point of view", as they don't get/see the error anymore. > I post in https://www.spinics.net/lists/arm-kernel/msg829972.html > could resolve the potential next descriptor wrongly freed by vchan_get_all_descriptors > in sdma_channel_terminate_work. Anyway, I'll add ' Cc: stable@vger.kernel.org' and > your Tested-by tags in 3&4, then resend it again, thanks. Great. Thank you! regards;rl