From patchwork Tue Aug 1 10:37:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9874219 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 9ABAA603F4 for ; Tue, 1 Aug 2017 10:54:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB4F228684 for ; Tue, 1 Aug 2017 10:54:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A01E72869A; Tue, 1 Aug 2017 10:54:39 +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.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no 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 316D928684 for ; Tue, 1 Aug 2017 10:54:37 +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=uaKAt09t8fl7UJdQ8Ez7G/DR2C fC3VFiAbRys4xBmCfBVTmIifIjSPXjJDmMP+CjZvr5ApTMhqF8siDYr88u7ONGnTdBIuBWtWEPwW3 LeLCr2Z8oROXB/WdIFm8EY5sUZKaanEMnIl0aPQ2BTiESmgYVjml/qYjQKNEGRKfXsBru//aGcF3q bu1ktNxIatqTOBtJB8FOwS5hzXSKnIyaIeB8wUY2TOCI1+YoT27gHsLt0Ntz1EOzl+V81M7LBaTLY y0EB3pRS8xIT+VKKFKEw9VVO/lMatTDv0EMaCnsX8jyE9zRtP0eirZsR6+5BHfZdGk147Z5uWm18d w0lTw5QQ==; 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 1dcUoO-0005iG-EM; Tue, 01 Aug 2017 10:54:04 +0000 Received: from mail-qk0-f181.google.com ([209.85.220.181]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dcUbc-0005PB-FQ for linux-arm-kernel@lists.infradead.org; Tue, 01 Aug 2017 10:42:01 +0000 Received: by mail-qk0-f181.google.com with SMTP id d145so6531974qkc.2 for ; Tue, 01 Aug 2017 03:40:32 -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=PETPbvfyg/vTv8KdYZGC0yWJJ1KDJYuEkAFh8Z/3/weDK89xYehrEhw0ySjY4LUWsn 61SbrBj+z7Fq4EeOJNO+0zAUpJKkVotrE33FXGihRvREcBXrOMSs4B/k9WJsvpkmuxCO 3DIeNf7Z3hN81gqcucp5QqlFOB6IB4VYIgm/I= 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=IHZC7toDHYNWeMS8nVl2j1+PoxY+b/oHYs56dY+EaP2IsZ9PGKYwWqnAi4HfxAY+D+ +FYwN/98/G6W70rP19yeZ7sBtz2elwqFTdX659hpVTANsdorgYdsHyRZUhBY9KjahuKa EY3m4W579goeVj9uk8PTVfqD14/DT2yr+b0I+T0ur1tnBZ/UrhKYzGq/oDqO0BRaGge9 QjqcQvVskciHxnwX8de9evxdNlvtc8Jb1GQSNGwKC6VULKhvHY3fKq+YBa1tJXkKAWJo 7Qlm16BBqxJBSH/3ltr3TTYil8uWjHRoNJCV3K4/Mk3GiWnuYgPhKo+HztZJVD6S0ves eFgw== X-Gm-Message-State: AIVw1118xUbJVd2FFIA9EZdGoSVzKgf09293L486P6K0hu+M6XhHn1Lr in5uokEVS564J4je X-Received: by 10.55.24.146 with SMTP id 18mr24273229qky.190.1501584030826; Tue, 01 Aug 2017 03:40:30 -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 e32sm21784162qtb.63.2017.08.01.03.40.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Aug 2017 03:40:30 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Vinod Koul , Dan Williams Subject: [PATCH v2 12/16] dmaengine: bcm-sba-raid: Pre-ack async tx descriptor Date: Tue, 1 Aug 2017 16:07:56 +0530 Message-Id: <1501583880-32072-13-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501583880-32072-1-git-send-email-anup.patel@broadcom.com> References: <1501583880-32072-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170801_034053_288098_8CF5DD1F X-CRM114-Status: GOOD ( 10.64 ) 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 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; }