Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3243855pxb; Mon, 16 Nov 2020 09:19:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyc1y9ym1KvWrLB49XBEic9fawOGAdJPZkNLWnB9u8/cLVTlTBRrwQoS0eFWM/opGPxiR3D X-Received: by 2002:aa7:ca41:: with SMTP id j1mr16886726edt.295.1605547146220; Mon, 16 Nov 2020 09:19:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605547146; cv=none; d=google.com; s=arc-20160816; b=VBg+dwYQ9xCW78UFzYrca8DzEKg6YXy7SLteAE44iszn7+CMD+hPkbrqWElMxjB01k XqS78TiVjY+n/wRpnuJRgYOnIfwRfqJvkMm4gzL3BZ+aCUPudP7H9zE9mcheMO/rZI6b EcL2mQTkckVQ1LDvdNKBBBpatvNwwjYBAjFsGBCSirFBjubLZ/4F9uZshAXb/k4JTjWP ebM8Zg72kWaqe+lMCC7snRPuqFOgnxF1wPy8Wm4QsKxMTGnQlzufM+qcV0lhLB1hw9UY ZfxROj+NToR7gy0sK+03JwbmRUhlIDYVa7jYnOD37JqX0S5uyOD8xBZpDSK0lXCjauRe np4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9LUrLG0kEyhxb8qYnU9qi+2Uvp02fS0lBRCc/iMHFQU=; b=uBAAm016qiN97LqnioLNvnda6Fx3EDJhpoyi7XVaysM8UP5XAMcgtlA3vdX4wbew4/ +GXLjeA1gLxKZqGAH//jhhsgQ+X/a6QN5Xl90pOqn6v3F0V9djmUrippUtKdRTDxwdIG c4x4XcKXVzqUHWh+2FzcnklvE+RQCXEkaNxjbwIrJFZspCO8c2RFtYh1EucCDp968MqL /Y8F1Yw87Gsmg74nLDT+m7wHqzdPcVHlaQ3bR/ORYYjf289b/7WIJ08+RSp260nAavOu VCHaocMgf4C88d9sT9+I9aa1Uw7dr76gNC68ve5UORRl2L+uNFlzavlFsfl6ozQ9kDw8 nTvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="V/PPfYy+"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si12145178edo.371.2020.11.16.09.18.41; Mon, 16 Nov 2020 09:19:06 -0800 (PST) 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="V/PPfYy+"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732597AbgKPROu (ORCPT + 99 others); Mon, 16 Nov 2020 12:14:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:41208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731793AbgKPROt (ORCPT ); Mon, 16 Nov 2020 12:14:49 -0500 Received: from localhost (unknown [122.171.203.152]) (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 21FF720797; Mon, 16 Nov 2020 17:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605546889; bh=Do6LikazT2GPRsF4PjZgIWIMXnzhA/SSk92JoCfMLG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V/PPfYy+fVraJmzX0RDzARI4yPpVSeu+Oy83cU0rFyWc1/B/nhWFK+gECtLr1C7qm TVyt6NwFmgV6JALFNsNP7bVzYB5hOBpqbTAVZuRdhYQpzzpgSEOCT8I1l97RSEkOe/ sLWhP2Kc80FumzzaasgjvK+D7S16ddfq+oLViDRA= Date: Mon, 16 Nov 2020 22:44:44 +0530 From: Vinod Koul To: Sugar Zhang Cc: linux-rockchip@lists.infradead.org, Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: pl330: _prep_dma_memcpy: Fix wrong burst size Message-ID: <20201116171444.GA50232@vkoul-mobl> References: <1605326106-55681-1-git-send-email-sugar.zhang@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1605326106-55681-1-git-send-email-sugar.zhang@rock-chips.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14-11-20, 11:55, Sugar Zhang wrote: > Actually, burst size is equal to '1 << desc->rqcfg.brst_size'. > we should use burst size, not desc->rqcfg.brst_size. > > dma memcpy performance on Rockchip RV1126 > @ 1512MHz A7, 1056MHz LPDDR3, 200MHz DMA: > > dmatest: > > /# echo dma0chan0 > /sys/module/dmatest/parameters/channel > /# echo 4194304 > /sys/module/dmatest/parameters/test_buf_size > /# echo 8 > /sys/module/dmatest/parameters/iterations > /# echo y > /sys/module/dmatest/parameters/norandom > /# echo y > /sys/module/dmatest/parameters/verbose > /# echo 1 > /sys/module/dmatest/parameters/run > > dmatest: dma0chan0-copy0: result #1: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > dmatest: dma0chan0-copy0: result #2: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > dmatest: dma0chan0-copy0: result #3: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > dmatest: dma0chan0-copy0: result #4: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > dmatest: dma0chan0-copy0: result #5: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > dmatest: dma0chan0-copy0: result #6: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > dmatest: dma0chan0-copy0: result #7: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > dmatest: dma0chan0-copy0: result #8: 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000 > > Before: > > dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 48 iops 200338 KB/s (0) > > After this patch: > > dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 179 iops 734873 KB/s (0) > > After this patch and increase dma clk to 400MHz: > > dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 259 iops 1062929 KB/s (0) Applied, thanks -- ~Vinod