From patchwork Wed Jul 26 05:36:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9864207 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 3F8356038C for ; Wed, 26 Jul 2017 05:39:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3711028634 for ; Wed, 26 Jul 2017 05:39:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2BAA22866D; Wed, 26 Jul 2017 05:39:29 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE 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 CC8002866A for ; Wed, 26 Jul 2017 05:39:28 +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=mLoYElwdHInh7UQ14IQyBnDe33AViCf6D3l+0egOGQo=; b=KdtkrQKVJPgNR3XcWYTgIBjBYc mCApf9pPylxHC2z0BJJznORKjPmnptdwrETRsnz3fpBgJFCEIbg7qe919KKLaXKnr/PVQGa0k1eUX J6Vo3/G94DIjVhHv1Je5dsaybalvAF/jMJs2s7Wo/JDbwHBNRhtSMVonYtwqSFWKbXey4O2iYCVvN FW9MQGAFXdXGHQSqsbCuYGJzNVPWgsLFm3TT0gHFm2Rh8pi/e45yceHBIQlr6KaXi4z3Skui2dAyI 59gvGq8vJMhLNelTwIBVcf7LVqWoP0LZ87euePOOahBZHuBCgfy5KowopcFOUjy3/cdYA7Xhord8E bvVtQYxw==; 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 1daF2X-000549-Ro; Wed, 26 Jul 2017 05:39:21 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daF1P-0003xr-F7 for linux-arm-kernel@lists.infradead.org; Wed, 26 Jul 2017 05:38:13 +0000 Received: by mail-wm0-x22a.google.com with SMTP id m85so57820168wma.1 for ; Tue, 25 Jul 2017 22:37:51 -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=Gvtt2vOX+FiZE1AVgL45yZd8ikus92ZsVEcVcy+8NaE=; b=V7YlT2fBZcSxP3233N3IbJhGecUZ5MBI6gTDZ064uEkIZx/IVC2Rr3Q0qtb6h05p6/ MV3JdZ+ln4BlHFT+J/8lq0ChOZTunSkFrYJtGvG3NmmR59kNv+gZd7Sld8BmgdcU3Id/ Yd80hN98tV0kuPH+9h87Ocbpmc5AUomf7guFY= 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=Gvtt2vOX+FiZE1AVgL45yZd8ikus92ZsVEcVcy+8NaE=; b=XfJJOpJ31so5NK9aUg4wgcFo/4ze8WYT8TOw5/iSS3DXK2/EsQMLGZqiuthWYcRbAH 1dsvx4BDbXiCJYopK0L7aEUXGEFek3SMSF2hRET3E3upUwXYd3aFXspI/m2U2qZERJqo IfLxgN1+3m6FZajKh6rauL1pWYJbMfMDop3kPMmt97lIevHwkkScejoTxz+A7KXv12Za 2Vw0JojRVv0xMqPxhdmrBbyBsDMWhr6ZjZXvscXp43CXlYe/fjTCvle52cGzHqpZjNlJ zm87tXptpMQfSD16/sVO+ebC2NfAYkDqM6SqmwgeiaRNGOgL4X4AjizP3Tr4aRy2cXz8 aIwA== X-Gm-Message-State: AIVw11134xQL3P8QGlPXyAJHJX3r1Heh1wnzYZh2ViQqP44Y8aySkzla iioNZMVQuY8pFv6d X-Received: by 10.28.65.138 with SMTP id o132mr10154249wma.81.1501047469703; Tue, 25 Jul 2017 22:37:49 -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 34sm17417595wrt.36.2017.07.25.22.37.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Jul 2017 22:37:49 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Vinod Koul , Dan Williams Subject: [PATCH 3/6] dma: bcm-sba-raid: pre-ack async tx descriptor Date: Wed, 26 Jul 2017 11:06:41 +0530 Message-Id: <1501047404-14456-4-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501047404-14456-1-git-send-email-anup.patel@broadcom.com> References: <1501047404-14456-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170725_223811_711029_CEC48880 X-CRM114-Status: GOOD ( 10.28 ) 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: devicetree@vger.kernel.org, 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 321420b..db5e3db 100644 --- a/drivers/dma/bcm-sba-raid.c +++ b/drivers/dma/bcm-sba-raid.c @@ -236,6 +236,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; }