Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp648241pxb; Wed, 3 Feb 2021 14:10:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfNIctu2ZFFHn6D94bJHKa9lvp97Nq3uyAdj2DUH+PuX/yqHiv0nyNzwUnG28s4J4Sz1wC X-Received: by 2002:a05:6402:26c9:: with SMTP id x9mr5346084edd.365.1612390252276; Wed, 03 Feb 2021 14:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612390252; cv=none; d=google.com; s=arc-20160816; b=WEsgz1NItxD6CQHjP76TdF8PLwQ+S6wnWlsl5FFCLbP7eX615xTDnlidKYWje6wKHT aZi3jYckQRAeSEBl+kmp4S0YmcX/SsP4s807wlNqwfjn8eimpIZfGHNLfyOR/Teh/a+9 Q/bYma+D9p1znr4yIctp1K+foPzf8kJEASSHo+OWbBkIta+a3Wr0n4TdOMDXTf8lCJYn +UeaqHaui9OLZbA1VllNcwJFe6+6et6V8wY2Kc2h/RBXTwwaZlkTIl333smVa/nQbDr/ GRUegBkSDwUVa7wL/Omn4ZsFkuw5qY40xC1yLAUV1eXmOdV+XY4l+laiAVbrqi/Kh5RU UdWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=4EKjKmvyJ6CCBebh3WQRlFqvFZUsipiGKcvUv+DebhU=; b=D84PleajYBmAZFsp7fqzPuVicYdlNmFq5OVF/Kf/9xctHOK1CGnQhwrx0dk7Cif4f/ n1vMnlNq13d4bqxRiPSN1VIMG0xwK8vXrxZW+YEm0PSU5Q7ktRXk0S1M0HHehohC9hp+ yySfpMtmg2iAw031N2p0K5JeOArifwr4rg5y0OTp3IknMzOB7eOvvHgi/pytAP5HvUMI 7e11wa9ITM9DDtdIoTzChN8duC9Dfs/dEcDAjoXZDNu473llw5eIIpgiuWPL0CdSOI1x PqS9GcL41mD+AnYpR4kog5ReImzvOcVD76eII+RhgJEn50ZwCc/gubxZSq6TwMewDro/ Vx4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=PGIZmoxf; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si2119181edk.461.2021.02.03.14.10.27; Wed, 03 Feb 2021 14:10:52 -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=@synopsys.com header.s=mail header.b=PGIZmoxf; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232825AbhBCWBm (ORCPT + 99 others); Wed, 3 Feb 2021 17:01:42 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:60276 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232645AbhBCV7Y (ORCPT ); Wed, 3 Feb 2021 16:59:24 -0500 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id F2CD84049B; Wed, 3 Feb 2021 21:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1612389504; bh=Q8p1awFRWvZQwAEJydjROiaIceJgT6c3cpPWic23uwQ=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=PGIZmoxftdCaluF7S9VhVDrUUdyx8rkXXKjCFnJyHxSP98ARHWZHDZgCmUoBA10SR KDQNffDHSQ+MszPr3/u9pjz/tsRTQNck/X+LTzFOGQWNmv/6AL5MxjwNAU0dCYnDtw m8EWFvrfr2IbBZTrx0FSd7w0s0VDde7A2b/HmHUxymd020Lnmx2PTh1N9L/1EwMx69 nZ/57vdHlrPjhVGr1O4NqYki308iLb5qGiZ1dxY/iJrYQgGD7M3yKUvH6s5BLXsV0j 0dW0YrS3jzBvHae5FGzfp06XBQQ+rkkBRVnJU4Cs0YAU4cA4LL1+hS40Eo8z76nEEH mae/4OVfJj1qA== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id BE646A024B; Wed, 3 Feb 2021 21:58:22 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Gustavo Pimentel To: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Vinod Koul , Dan Williams , Bjorn Helgaas , Gustavo Pimentel Subject: [PATCH v4 10/15] dmaengine: dw-edma: Change linked list and data blocks offset and sizes Date: Wed, 3 Feb 2021 22:58:01 +0100 Message-Id: <9e60326f906093f1110bcde6286b8f743c8f19f9.1612389406.git.gustavo.pimentel@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes the linked list and data blocks offset and sizes to follow the recommendation given by the hardware team for the IPK solution. Although the previous data blocks offset and sizes are still valid and functional, using them that might present some issues related to the IPK solution, since this solution is based on FPGA and might be subjected to timmings constrains. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-pcie.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c index a0fa809..686b4ff 100644 --- a/drivers/dma/dw-edma/dw-edma-pcie.c +++ b/drivers/dma/dw-edma/dw-edma-pcie.c @@ -59,29 +59,29 @@ static const struct dw_edma_pcie_data snps_edda_data = { .rg.sz = 0x00002000, /* 8 Kbytes */ /* eDMA memory linked list location */ .ll_wr = { - /* Channel 0 - BAR 2, offset 0 Mbytes, size 2 Mbytes */ - DW_BLOCK(BAR_2, 0x00000000, 0x00200000) - /* Channel 1 - BAR 2, offset 2 Mbytes, size 2 Mbytes */ - DW_BLOCK(BAR_2, 0x00200000, 0x00200000) + /* Channel 0 - BAR 2, offset 0 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00000000, 0x00000800) + /* Channel 1 - BAR 2, offset 2 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00200000, 0x00000800) }, .ll_rd = { - /* Channel 0 - BAR 2, offset 4 Mbytes, size 2 Mbytes */ - DW_BLOCK(BAR_2, 0x00400000, 0x00200000) - /* Channel 1 - BAR 2, offset 6 Mbytes, size 2 Mbytes */ - DW_BLOCK(BAR_2, 0x00600000, 0x00200000) + /* Channel 0 - BAR 2, offset 4 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00400000, 0x00000800) + /* Channel 1 - BAR 2, offset 6 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00600000, 0x00000800) }, /* eDMA memory data location */ .dt_wr = { - /* Channel 0 - BAR 2, offset 8 Mbytes, size 14 Mbytes */ - DW_BLOCK(BAR_2, 0x00800000, 0x00e00000) - /* Channel 1 - BAR 2, offset 22 Mbytes, size 14 Mbytes */ - DW_BLOCK(BAR_2, 0x01600000, 0x00e00000) + /* Channel 0 - BAR 2, offset 8 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00800000, 0x00000800) + /* Channel 1 - BAR 2, offset 9 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00900000, 0x00000800) }, .dt_rd = { - /* Channel 0 - BAR 2, offset 36 Mbytes, size 14 Mbytes */ - DW_BLOCK(BAR_2, 0x02400000, 0x00e00000) - /* Channel 1 - BAR 2, offset 50 Mbytes, size 14 Mbytes */ - DW_BLOCK(BAR_2, 0x03200000, 0x00e00000) + /* Channel 0 - BAR 2, offset 10 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00a00000, 0x00000800) + /* Channel 1 - BAR 2, offset 11 Mbytes, size 2 Kbytes */ + DW_BLOCK(BAR_2, 0x00b00000, 0x00000800) }, /* Other */ .mf = EDMA_MF_EDMA_UNROLL, -- 2.7.4