Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4133201pxk; Tue, 8 Sep 2020 11:30:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDQYjJfiZaXtpUlkKj1SYW6jm+zw247M9x60mWJqJF0QcPMwODgo2uNgYx0EYeI0tWBl1F X-Received: by 2002:a17:906:68d2:: with SMTP id y18mr28225353ejr.197.1599589833918; Tue, 08 Sep 2020 11:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589833; cv=none; d=google.com; s=arc-20160816; b=RxcRBAt28A6a3/wdAl/0ol0UG6PQO2+v5GYVrBTGTlb0Z+VpsEy1RpWHCsJi2rSXwm Eu0B1Jbfnq383bwiGhPnGILeSzhyzo3otCS45CYW1yl72yTsY6E5bynTE6WI9vig2DzH aEW64s6cQypCBJKHx7wVyHWMmjaCNOfpYkZ7qNzIVBjNGdqxQla3UgAf4T/UKuiPJzSp UvsfJFdnipJuBuhP8s8JckuXkHOgNZnitQhSOrhclQjk+1BIGzjUbNT/qWHt0JdKhiHc lXY7TxGOv0gjo+rfr/HfX5lS0+/K0SzAyzk4RFE1LJ6q0Y1K8mu2TbmHxvBEh8SxEZOD zRAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2BGkAb0qBS8jMku5vlrfFnoIlrefeb8X+h3UYQ/3Qe0=; b=XHYhrZfIq/MkVrJ7485XEbE1tNY+KJKFGWxqVXEKsAyIuKSv+BsLwasKmQqnLSHyY0 IFzVLiSpIPeCrsbNQOU8FxMRW1gpx00NCRR+Gf4HvWdCWfCSDcX3ktR4w9e7ndBvKbej Mc9mFbwK/HmZntBBatDDWURHi3WSw4W7h6SkDroWG4FCf6KhqpMCQdz4VaIg+dtPewNh mkQuLvGesmR2vDxJmq1OEtr/Lu3tXTWCRCotf+QJ7ftGpax89qZOo6eu8YHisn3zvjvZ MTz+zw3ouuULDXDXSqXBRJlBkiChYu/2HS6Q8hVBWdd2EDk6fBym2rOoAaZZuIeKFDFi IMPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IPt9hvXE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k30si12452216edk.76.2020.09.08.11.30.11; Tue, 08 Sep 2020 11:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IPt9hvXE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731496AbgIHS0j (ORCPT + 99 others); Tue, 8 Sep 2020 14:26:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:56080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731441AbgIHQKg (ORCPT ); Tue, 8 Sep 2020 12:10:36 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 689E124807; Tue, 8 Sep 2020 15:43:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599579801; bh=LuqAQTUqtL6HFzAzTGMqWk172HN34Be2mNrwsMi8xN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IPt9hvXEUnR6jGKLceVAc7nZFc0r6nlLde3I1U16K+qnZirl0w+NcAOOoIpaITUWY TgNJrD2oBPzT5+nBGCKXXEQSESpLCefNVqmSqQH5sZJlY9T6Bqkk1AyNVdLEgl1Xf1 /p7GaV9HCadl/lAT0/wk6Nw9L7URi9mRs2zCeVWM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Marek Szyprowski , Vinod Koul , Sasha Levin Subject: [PATCH 5.4 039/129] dmaengine: pl330: Fix burst length if burst size is smaller than bus width Date: Tue, 8 Sep 2020 17:24:40 +0200 Message-Id: <20200908152231.630693284@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200908152229.689878733@linuxfoundation.org> References: <20200908152229.689878733@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit 0661cef675d37e2c4b66a996389ebeae8568e49e ] Move the burst len fixup after setting the generic value for it. This finally enables the fixup introduced by commit 137bd11090d8 ("dmaengine: pl330: Align DMA memcpy operations to MFIFO width"), which otherwise was overwritten by the generic value. Reported-by: kernel test robot Fixes: 137bd11090d8 ("dmaengine: pl330: Align DMA memcpy operations to MFIFO width") Signed-off-by: Marek Szyprowski Link: https://lore.kernel.org/r/20200825064617.16193-1-m.szyprowski@samsung.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/pl330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 6cce9ef61b294..cd81d10974a29 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2788,6 +2788,7 @@ pl330_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dst, while (burst != (1 << desc->rqcfg.brst_size)) desc->rqcfg.brst_size++; + desc->rqcfg.brst_len = get_burst_len(desc, len); /* * If burst size is smaller than bus width then make sure we only * transfer one at a time to avoid a burst stradling an MFIFO entry. @@ -2795,7 +2796,6 @@ pl330_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dst, if (desc->rqcfg.brst_size * 8 < pl330->pcfg.data_bus_width) desc->rqcfg.brst_len = 1; - desc->rqcfg.brst_len = get_burst_len(desc, len); desc->bytes_requested = len; desc->txd.flags = flags; -- 2.25.1