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: 9914701 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 161C6600C5 for ; Tue, 22 Aug 2017 09:58:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2632028788 for ; Tue, 22 Aug 2017 09:58:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1ADB828854; Tue, 22 Aug 2017 09:58:51 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C841A28788 for ; Tue, 22 Aug 2017 09:58:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932662AbdHVJ6t (ORCPT ); Tue, 22 Aug 2017 05:58:49 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:38831 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932598AbdHVJ6q (ORCPT ); Tue, 22 Aug 2017 05:58:46 -0400 Received: by mail-wr0-f170.google.com with SMTP id p8so56559405wrf.5 for ; Tue, 22 Aug 2017 02:58:46 -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=P1HU4mNILTS94+D+MXHldkUWc4VqnUKRK30g0L8dgYub9YIOv/FrJAJwbv43RqzTGO 8IUmMy0Bb0EqNZhtAbPsUOJva2xKFU1kJlVxXvO0XVLwoS6KyXMWEV7pCg4X7tqhXr4f o0Zh8WPNf9ktCMDzbPuNIHChabG6iAXS1I1IriJfU8pbPLM9HfgalRNs52vK2wSrn5px VMCQoAqK1B0CqugODi1EprN5K32OcPJcxIHm45uJUHw6ix/IM0LpiKdUH5OUc32bKwEL ZyfpsvQfc0ET6bk5SJ2IYDqs3jF7NhXass4TmqFv5yY2ZxA83pkbxz63xNL0RTIP7mJm t1BA== X-Gm-Message-State: AHYfb5idi3tcBkQk/SX7iu4vnhCL/ANrOV0aLVDCNWUdjbexrutCEyqp n9qpQuFPZ3gEiQkm 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 Cc: Florian Fainelli , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Anup Patel 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> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.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; }