Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753502AbbEKQMz (ORCPT ); Mon, 11 May 2015 12:12:55 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36638 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753272AbbEKQMw (ORCPT ); Mon, 11 May 2015 12:12:52 -0400 Date: Sun, 10 May 2015 23:26:38 -0700 From: Shaohua Li To: Maxime Ripard Cc: Neil Brown , Shaohua Li , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, Lior Amsalem , Thomas Petazzoni , Gregory Clement , Boris Brezillon Subject: Re: Possible RAID6 regression with ASYNC_TX_DMA enabled in 4.1 Message-ID: <20150511062638.GA63893@kernel.org> References: <20150507125702.GI11057@lukather> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150507125702.GI11057@lukather> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1784 Lines: 44 On Thu, May 07, 2015 at 02:57:02PM +0200, Maxime Ripard wrote: > Hi, > > I'm currently trying to add support for the PQ operations on the > marvell XOR engine, in dmaengine, obviously to be able to use async_tx > to offload these operations. > > I'm testing these patches with a RAID6 array with 4 disks. > > However, since the commit 59fc630b8b5f ("RAID5: batch adjacent full > stripe write", every write to that array fails with the following > stacktrace. > > http://code.bulix.org/eh8iew-88342?raw > > It seems to be generated by that warning here: > > http://lxr.free-electrons.com/source/crypto/async_tx/async_tx.c#L173 > > And indeed, if we dump the status of depend_tx here, it's already been > acked. > > That doesn't happen if ASYNC_TX_DMA is disabled, hence using the > software version of it, instead of relying on our XOR engine. It > doesn't happen on any commit prior to the one mentionned above, with > the exact same changes applied. These changes are meant to be > contributed, so I can definitely push them somewhere if needed. > > I don't really know where to look for though, the change that is > causing this is probably the change in ops_run_reconstruct6, but I'm > not sure that this partial revert alone would work with regard to the > rest of the patch. I don't have a machine with dmaengine, it's likely there is error in this side. Could you please make stripe_can_batch() returns false always and check if the error disappear? This should narrow down if it's related to batch issue. Thanks, Shaohua -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/