From patchwork Tue Jul 1 08:32:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuelin Shi X-Patchwork-Id: 4457321 X-Patchwork-Delegate: dan.j.williams@gmail.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DAB07BEEAA for ; Tue, 1 Jul 2014 09:17:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22A4B203F3 for ; Tue, 1 Jul 2014 09:17:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43F28203F1 for ; Tue, 1 Jul 2014 09:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757509AbaGAJRf (ORCPT ); Tue, 1 Jul 2014 05:17:35 -0400 Received: from mail-bn1lp0142.outbound.protection.outlook.com ([207.46.163.142]:52460 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756376AbaGAJRf (ORCPT ); Tue, 1 Jul 2014 05:17:35 -0400 Received: from BLUPR03MB149.namprd03.prod.outlook.com (10.255.212.17) by BLUPR03MB264.namprd03.prod.outlook.com (10.255.213.27) with Microsoft SMTP Server (TLS) id 15.0.974.11; Tue, 1 Jul 2014 09:17:33 +0000 Received: from BY2PR03CA028.namprd03.prod.outlook.com (10.242.234.149) by BLUPR03MB149.namprd03.prod.outlook.com (10.255.212.17) with Microsoft SMTP Server (TLS) id 15.0.974.11; Tue, 1 Jul 2014 09:17:31 +0000 Received: from BN1BFFO11FD024.protection.gbl (2a01:111:f400:7c10::1:102) by BY2PR03CA028.outlook.office365.com (2a01:111:e400:2c2c::21) with Microsoft SMTP Server (TLS) id 15.0.980.8 via Frontend Transport; Tue, 1 Jul 2014 09:17:30 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD024.mail.protection.outlook.com (10.58.144.87) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Tue, 1 Jul 2014 09:17:30 +0000 Received: from localhost (rock.ap.freescale.net [10.193.20.106]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s619HR83027744; Tue, 1 Jul 2014 02:17:28 -0700 From: To: , CC: , , Xuelin Shi Subject: [PATCH] dmaengine: fix xor sources continuation Date: Tue, 1 Jul 2014 16:32:38 +0800 Message-ID: <1404203558-18193-1-git-send-email-xuelin.shi@freescale.com> X-Mailer: git-send-email 1.8.4 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(189002)(199002)(92566001)(99396002)(85306003)(92726001)(76506005)(86152002)(57986006)(89996001)(50986999)(97736001)(44976005)(87936001)(31966008)(20776003)(104016002)(95666004)(47776003)(74662001)(86362001)(74502001)(64706001)(83072002)(83322001)(69596002)(84676001)(76482001)(50226001)(19580395003)(85852003)(46102001)(62966002)(68736004)(19580405001)(36756003)(87286001)(33646001)(88136002)(6806004)(4396001)(48376002)(102836001)(93916002)(79102001)(77982001)(81542001)(81342001)(50466002)(104166001)(21056001)(106466001)(80022001)(26826002)(229853001)(105606002)(107046002)(81156004)(77156001); DIR:OUT; SFP:; SCL:1; SRVR:BLUPR03MB149; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02596AB7DA Received-SPF: Fail (: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=xuelin.shi@freescale.com; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-OriginatorOrg: freescale.com Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Xuelin Shi the partial xor result must be kept until the next tx is generated. Signed-off-by: Xuelin Shi --- crypto/async_tx/async_xor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c index 3c562f5..e1bce26 100644 --- a/crypto/async_tx/async_xor.c +++ b/crypto/async_tx/async_xor.c @@ -78,8 +78,6 @@ do_async_xor(struct dma_chan *chan, struct dmaengine_unmap_data *unmap, tx = dma->device_prep_dma_xor(chan, dma_dest, src_list, xor_src_cnt, unmap->len, dma_flags); - src_list[0] = tmp; - if (unlikely(!tx)) async_tx_quiesce(&submit->depend_tx); @@ -92,6 +90,7 @@ do_async_xor(struct dma_chan *chan, struct dmaengine_unmap_data *unmap, xor_src_cnt, unmap->len, dma_flags); } + src_list[0] = tmp; dma_set_unmap(tx, unmap); async_tx_submit(chan, tx, submit);