Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp421987pxk; Fri, 11 Sep 2020 10:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg85n/vXNG8NM/XNyLfhtZaorMv6HP2kAo8zW9n9Xwf2EkKRQ1AUclbi5CNc3SpGjdJowe X-Received: by 2002:a50:fd19:: with SMTP id i25mr3345361eds.142.1599845133840; Fri, 11 Sep 2020 10:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845133; cv=none; d=google.com; s=arc-20160816; b=qnR8F2yA7Jy6CK78rbZQvZQ9ZvJgtXkLMCf/QoDYFdEbNXwf229lUciPLI4XYdcpzV OUPWANtVMxXDDwpZwTX0aB/1bbuhI99XeFnZXFMZoZIDAnBHLhHC9EkTHJu7O45SvR7k 6iDFSFoTMJ8YagQ2eh4dyGgGsM9EokdmZNjlGJKXt9Zq5JiGmUsKhfW278g4OnxUuFfo C7/grMjD3BrFIfAND2vTviDt4bJUAuLMzC0SVdVVcSOUcfzxLXnDtITCZu8/ic1XJ7Ex bWJP6lNpMuVC84AgYjPomd9g/mmWYzWZztMvV6P346xskPtRbdzQxGvjnZeq8321yflQ NYcA== 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=JSXiSn8aM77tCAYxjdwwtwq61/O6dhEOV/B5K7erocc=; b=x146O8P01Pg1s5a9Bs3twittqPkL6v++rpdd0c2q0oxQCIbgf1N2wdIMzgXlZegP6t 0k7C0Y2sLCqby5t73UoStzQsMTgIXgUS3px5AuABhcppEPlG4WaMjU5SfEbDvtK3v3kP fZwbtdDg+fRmPcve254Bd/eD86m2oxjkhds7LKZwnnASQ0k/JWEzceQRhpYirmTrGS0r XQDq1a1YaEV17Mqs5JxKi0WEd+K6/aROSi7MC8caPpJckK+x7xbn6VO+S1u62ATH6kxI IrgUIY5Hsd0Rvx8TcvcHlIwXTeKwLNGy0c2c49zkhYgV4JIZ8EXRhYf4coLBI2U4V5jz 2gZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AcLGz/D/"; 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 u15si1712057edo.55.2020.09.11.10.25.11; Fri, 11 Sep 2020 10:25: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="AcLGz/D/"; 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 S1726393AbgIKRVy (ORCPT + 99 others); Fri, 11 Sep 2020 13:21:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:49870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbgIKNAL (ORCPT ); Fri, 11 Sep 2020 09:00:11 -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 09FEB22272; Fri, 11 Sep 2020 12:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599828986; bh=4Vv2RDw7nKUlCzjSveipl9l0b2eKWH3UxDWSeO7rktA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AcLGz/D/E3donIIIn5JrUKp/rN2RukJcEAOiSHFwvXyI+LsYTMo2UT3HTKwiwuWRO W0pCiGBNtLHZn30jIF/chlRWo+2j29dobSfqYESuq6CkpFfqm9FHpGYx0kJ4qVbRV3 2Faw38BsiHv1tsSEuETBXVBiXHn4EM+c9x5GB6Xo= 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 4.9 21/71] dmaengine: pl330: Fix burst length if burst size is smaller than bus width Date: Fri, 11 Sep 2020 14:46:05 +0200 Message-Id: <20200911122505.999081976@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911122504.928931589@linuxfoundation.org> References: <20200911122504.928931589@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 57b375d0de292..16c08846ea0e1 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2677,6 +2677,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. @@ -2684,7 +2685,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