Message ID | 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4~5klprrrtK1347113471eucas1p2M@eucas1p2.samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 75A19601D7 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 19 Jun 2018 13:21:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D05328C2A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 19 Jun 2018 13:21:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DCED28C66; Tue, 19 Jun 2018 13:21:43 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 8885528C75 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 19 Jun 2018 13:21:42 +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: 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: In-Reply-To:List-Owner; bh=mCjVxpW3UHeT4dtu/d6dkW2jU6aartbeL770Ogt6EmY=; b=TF L/ar6RPekej714BWhhBUHnna+EDvRTTs5pJ4P3DXjUcdpTFLGD0CH7T915dPhEpoV317K3FM3B/SQ A6PUmrotI/pl0j0t/+PzJ/eh8dO0LefksXYpku5OZIyfLB2DiYkXNQRBZcbgF3CWWdtQFWWVd12EX N3YZeDlgDY2dCnXvuqOf7YVjZW0KcGvbGvMxA+6NwTqDZcObh6F7UvG9Rl8QOHJQTdRRem/nutsZb 3IfD9yC01dMIGAf5Es5vqd3T4caV5lbkBb4vIFGyKGqYsh/zQP71CNuxeRlSbBDlw9jwMYXuof/2I R3WyjCJjt3qQd6wuCg21NIhIru0zPdaw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVGZg-0003pf-DL; Tue, 19 Jun 2018 13:21:32 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVGZb-0003ow-NP for linux-arm-kernel@lists.infradead.org; Tue, 19 Jun 2018 13:21:29 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180619132113euoutp02cd5729a762db876e02a2b06629d69d31~5klxKv7XD0441204412euoutp02R for <linux-arm-kernel@lists.infradead.org>; Tue, 19 Jun 2018 13:21:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180619132113euoutp02cd5729a762db876e02a2b06629d69d31~5klxKv7XD0441204412euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1529414473; bh=AopyXzZZStgO21ZL2cwN9AcAK+ju6vQDkv2PMdfvhEs=; h=From:To:Cc:Subject:Date:References:From; b=iTdfSijg6n9DKrU7fE0JowzgeLLqxFt/tVlpEMmer5DOZVrihcs3vA/+2F+r/UjcM Qz5Y+rNr1Ro6X8O5MzOcEzZFkSSP6JG91ekfp0h1+KX/DkQjHkkzLC92+YvatLifZl KDyGwmn7fmX8RJAofh8UJjgSpVpX56KwCpspdbT4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180619132110eucas1p2ad2ad43c718d4506bc855b3a438d41fd~5kluZo09m1347613476eucas1p2W; Tue, 19 Jun 2018 13:21:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 1C.46.10409.343092B5; Tue, 19 Jun 2018 14:21:07 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4~5klprrrtK1347113471eucas1p2M; Tue, 19 Jun 2018 13:21:05 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180619132103eusmtrp165b5876e521693d0e4df4c3abe7798c0~5kln5e0rW0837908379eusmtrp1b; Tue, 19 Jun 2018 13:21:03 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-7d-5b290343898e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 16.20.04183.F33092B5; Tue, 19 Jun 2018 14:21:03 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.116.147.25]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180619132103eusmtip2d3cdce470e6e9eeafbdfc6532d1e2c22~5klndjFX_2740627406eusmtip2I; Tue, 19 Jun 2018 13:21:03 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: linux-samsung-soc@vger.kernel.org, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dmaengine: pl330: report BURST residue granularity Date: Tue, 19 Jun 2018 15:20:50 +0200 X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEIsWRmVeSWpSXmKPExsWy7djP87rOzJrRBns3ylhsnLGe1WL11L+s FufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i5d9+1kcODwW73nJ5LFpVSebx+Yl9R59W1Yx enzeJBfAGsVlk5Kak1mWWqRvl8CV8WPzP+aCJ+wVe7adY2lgvMbWxcjJISFgInH7/zTGLkYu DiGBFYwS+x9ch3K+MErc+XuDFcL5zCjx68pRVpiWyS+eQiWWM0qc29TFAuF8ZZQ4/ngWO0gV m4ChRNfbLjaQhIhAG6PE7PaTzCAOs8BmRollXy+xgFQJCzhLbHxwC8jm4GARUJVoXckHsUJe YvWGA8wQ9n02ie1rhUBsXoEyiXWT7zJCxF0k7vzYB3WSsMSr41vYIWwZidOTe8AukhBoZpRo nwFyEYjTwyixdc4OqL+tJQ4fv8gKsphZQFNi/S59iLCjxNOmU4wgYQkBPokbbwVBwsxA5qRt 05khwrwSHW1CENVqErOOr4Nbe/DCJagSD4mJf+xBTCGBWImL03UmMMrNQti0gJFxFaN4amlx bnpqsXFearlecWJucWleul5yfu4mRmBKOP3v+NcdjPv+JB1iFOBgVOLh1VivHi3EmlhWXJl7 iFGCg1lJhJfhlEa0EG9KYmVValF+fFFpTmrxIUZpDhYlcd44jbooIYH0xJLU7NTUgtQimCwT B6dUA+NGw5cb1TYISD85U8sdx9SZWl1Ve+QG3zG/tfutXb/aWknULp6yOmDfa+9WMYNev3vO i9ZW1q4VKjWw9T62LbyR55z9oqz+4vufZfYZLI0V25+csc+0vOgCX2py2QPPqNLJ+V/6PkRe iHVoCL+TqzuPR+Zqzzy14r8mPX1rP//imTqFe2niaiWW4oxEQy3mouJEAOxR+l4FAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFLMWRmVeSWpSXmKPExsVy+t/xe7r2zJrRBg9XK1psnLGe1WL11L+s FufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i5d9+1kcODwW73nJ5LFpVSebx+Yl9R59W1Yx enzeJBfAGqVnU5RfWpKqkJFfXGKrFG1oYaRnaGmhZ2RiqWdobB5rZWSqpG9nk5Kak1mWWqRv l6CX8WPzP+aCJ+wVe7adY2lgvMbWxcjJISFgIjH5xVPWLkYuDiGBpYwSExuWMEIkZCROTmtg hbCFJf5c62KDKPrMKPH09XKwBJuAoUTXW4iEiEAXo8TCXccYQRxmga2MEn9ufgKrEhZwltj4 4BZLFyMHB4uAqkTrSj6QMK+AjcT+jzuZITbIS6zecIB5AiPPAkaGVYwiqaXFuem5xUZ6xYm5 xaV56XrJ+bmbGIHhuO3Yzy07GLveBR9iFOBgVOLhbdioHi3EmlhWXJl7iFGCg1lJhJfhlEa0 EG9KYmVValF+fFFpTmrxIUZToN0TmaVEk/OBsZJXEm9oamhuYWlobmxubGahJM573qAySkgg PbEkNTs1tSC1CKaPiYNTqoFx6Z541X3nH4RIfmB5dm/xxvsKS69sd7DO3jgjV+DlnrdbqtRf Out57M58EvA7OWVqVJC3hmy3u6t9E/e6Q9brJ0wt1dxnF/dCqNQgeJtSZfz66836AcvLJmZU rme+tWKbkUd4MX/d4gZRSebcJ4ob2zzXMB1Q4Sky/mZ0K6LgboL+NKeimiAlluKMREMt5qLi RACo3+J6XQIAAA== Message-Id: <20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4~5klprrrtK1347113471eucas1p2M@eucas1p2.samsung.com> X-CMS-MailID: 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4 X-Msg-Generator: CA X-RootMTR: 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4 References: <CGME20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4@eucas1p2.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180619_062128_092910_910F6C40 X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Vinod Koul <vinod.koul@intel.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Krzysztof Kozlowski <krzk@kernel.org>, Marek Szyprowski <m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 19-06-18, 15:20, Marek Szyprowski wrote: > The reported residue is already calculated in BURST unit granularity, so > advertise this capability properly to other devices in the system. Applied, thanks
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index defcdde4d358..de0957fe9668 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -3033,7 +3033,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) pd->src_addr_widths = PL330_DMA_BUSWIDTHS; pd->dst_addr_widths = PL330_DMA_BUSWIDTHS; pd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); - pd->residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; + pd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; pd->max_burst = ((pl330->quirks & PL330_QUIRK_BROKEN_NO_FLUSHP) ? 1 : PL330_MAX_BURST);
The reported residue is already calculated in BURST unit granularity, so advertise this capability properly to other devices in the system. Fixes: aee4d1fac887 ("dmaengine: pl330: improve pl330_tx_status() function") Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- drivers/dma/pl330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)