From patchwork Tue Aug 22 09:57:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9914863 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A600660381 for ; Tue, 22 Aug 2017 10:45:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8815328820 for ; Tue, 22 Aug 2017 10:45:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CD472884C; Tue, 22 Aug 2017 10:45:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 01DE728820 for ; Tue, 22 Aug 2017 10:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=QkHhPkrskzwdKTJBmuoNaL5OVEtBRFHIf0s+lHG9H28=; b=AEbZAo729lis0/yUVsBzcU7+KJ Wa/iVnkOO1VFVQtTN49TCpZ0c16cCPSyFnpYB8XfFNYta3EkMHka16wGck2GPEZVAVEgyP6PUxjvD er41o9StW1y3jPsT9MeAMnNGXAp64xGMPYg+vXVdR9DBPaWvYZKD8VWRxX8Lop/3q16sCA/4tVjeG LZklyUqJ3GIpxu9LetVr86by+qjpvwBvEroNiKIehsZVsY7j/zowKTsYv1IGinG4d/IGNZ3ZvRZ7o dwhMomX6Ir4tNO13YnLHNcLn4ix3WEWe5IjFoGsreAhB9BBV7Ag93AHvzNZLJ1pdYsYMwFYLE+JJN F8EQCTdA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dk6h0-0003bk-Jc; Tue, 22 Aug 2017 10:45:54 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dk6fl-0001aH-5D for linux-arm-kernel@bombadil.infradead.org; Tue, 22 Aug 2017 10:44:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kRNeCRaKw8AH1DyJUSgw/m2QvdCYfGpLpelnhoBa8/0=; b=J0qiifB6KNeOBuVSNEVsjw6+M jYPGZzJ131hWCEw4eg/uYVajOKP7WKwpR4oliRmYInS9j6ZbLUE5ccU80K0kyRW2qtuZS4LA8VNjf yNK1DrhMa0q73LNzdr6dGTUJkV5aJNq2T3XZjct4enjhhpRq689IOaDiF3XFU8M2s8NfOWZZ+hoSi pjAuQ5Ouc85FszjvaYQE7kFRbkbbiMdzqB5IxmX07qoeSvuexA8uTMcuhF9aPHBwalHVbpB1mcjKB Dc/Bel1p15/AwCmSxKIG3jhKs27dgbtwikQMXFL+n6QD01FhphXqx8HXZtmsd0agOd3Yx4azeJbS7 U06i98I7w==; Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dk5xj-0007ab-Lz for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2017 09:59:09 +0000 Received: by mail-wr0-x22a.google.com with SMTP id a47so6411779wra.0 for ; Tue, 22 Aug 2017 02:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kRNeCRaKw8AH1DyJUSgw/m2QvdCYfGpLpelnhoBa8/0=; b=eMOHOxPZYzF9/P6bB7vd9HjJe1yszlB4gGXyEqC9b+5hhLs4QbVTBhjKeHByqXs1n0 bNQxh+aqMRtVozCd0tOuX25iSk0rr0KE0eXOra6/UU6dGHENBNvER5tIRnDK+S//WpDb Obe2aBusH+QaJvWaNDsaZq2hJC4rzkIepA/OE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kRNeCRaKw8AH1DyJUSgw/m2QvdCYfGpLpelnhoBa8/0=; b=EFDJ3GA1Z9yIOshIQbSXspib7Nq9qSoc1Y05iDo3gPr8wFqEvHyCN5X9yzieTYANvg UND1VRqyH5m3YVmRwF3zNTBxilamCGdVfzlNDOvBkqOotCw5Yf7KhqXkZsBKbbwv2hYV UtalpY4eVd6jJWizrzbI3EZAfV0L0MPBSUFPyg0EVYfAdBNjgAiv5Ax3ppfD0o7kpSTA jbuBX4tSEK54xtx/nG1TkAgUusaoOA6yQlBZOmkatLGCwwtrw9u6Rx09cWf0XCt9n00F e00lPXKBCCF3+Qk82mJ2P5jTP8jM/Mi/j5mT4K+oeiTLyWVC6j6CvEHG+5ECn8aai1Gk kvHw== X-Gm-Message-State: AHYfb5ht26SUWIb3d5FAIbiuIyQTYrhwMaCXhxiuXF912jW7e64Umsgn WE7h3MYQFslFDrSD X-Received: by 10.28.34.215 with SMTP id i206mr47566wmi.38.1503395925168; Tue, 22 Aug 2017 02:58:45 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id e137sm12257913wma.29.2017.08.22.02.58.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Aug 2017 02:58:44 -0700 (PDT) From: Anup Patel To: Vinod Koul , Dan Williams Subject: [PATCH v3 12/17] dmaengine: bcm-sba-raid: Pre-ack async tx descriptor Date: Tue, 22 Aug 2017 15:27:01 +0530 Message-Id: <1503395827-19428-13-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503395827-19428-1-git-send-email-anup.patel@broadcom.com> References: <1503395827-19428-1-git-send-email-anup.patel@broadcom.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Fainelli , Anup Patel , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We should pre-ack async tx descriptor at time of allocating sba_request (just like other RAID drivers). Signed-off-by: Anup Patel Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/dma/bcm-sba-raid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c index 399250e..2f444cc 100644 --- a/drivers/dma/bcm-sba-raid.c +++ b/drivers/dma/bcm-sba-raid.c @@ -237,6 +237,7 @@ static struct sba_request *sba_alloc_request(struct sba_device *sba) atomic_set(&req->next_pending_count, 1); dma_async_tx_descriptor_init(&req->tx, &sba->dma_chan); + async_tx_ack(&req->tx); return req; }