Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp486315pxb; Wed, 3 Feb 2021 10:00:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKv5t40rrvF1Dsz/nVEzWONhVOfnl4EnBe4Pw2GkhiSUpRusCH96HixwCNoFtDKh7t04xM X-Received: by 2002:aa7:d649:: with SMTP id v9mr4234727edr.383.1612375231573; Wed, 03 Feb 2021 10:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612375231; cv=none; d=google.com; s=arc-20160816; b=DDKUg4w68tH+QqdH0PMeH0cnnYtKbnZt0C6XVkqYV7DPK6wFJugxiL0LTDSZzvRiiU CH1e2L6gK3Yqkqb9e2BE3OoDHycVGE8ZwpHX80Slh2pcx2SUG/4UvhzpvHJEXkxySHxz LlkL3JQ+mYgtAq1zFYG8dOKExwESFG+8X/A+nrDeSnTyZzhL3NCAc3OjZjS3LDybSInH AJZI8sXRBIUPOpTjQboTXCjl1c6mUnTpWuQqKz/W8Ls7zt533ITnITuukKUxbiEFZNW1 vyW5Z+/FQSXpzsOx67CkJW5T0U/uwog4fRCI++i2cHc5QBFpdlBqDThUjdECW/pZZmq2 MbXw== 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=rX8RlmO8LqTKLgqS+xx+RiZTePW94GMaDJfetL7S0iK2nBzLGRwN7VPDDl36vIR6uR Gu5T58vy/feXWzNdTuh54cVUnJAWtj+yMSOiOqjJf790rXSrUuL3FBdWisoRqp3KMibo Nh4YrCpjb5YsCTCXGKC3GCtQVrJqvgSxOs99Snh3ZDt3OoaoU8rs6WoeAMCa8BZw7Bxf Dj13fDf9Ab3Ca7bcR1rPXO8dCTtfao3/7uvBpPYbwgvrFzLWplOmf6Vj440yrm8p5U3R UxLPbNe5RG8vgg52plN7H+uMkH+etrLsZWjWCxPL/x0eAGJACOh+tnYzBVM+ZsV+Ho/e yXdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=Cx66f6H9; 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 q21si1781640ejz.227.2021.02.03.10.00.04; Wed, 03 Feb 2021 10:00:31 -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=Cx66f6H9; 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 S232517AbhBCR6n (ORCPT + 99 others); Wed, 3 Feb 2021 12:58:43 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:40802 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232408AbhBCR60 (ORCPT ); Wed, 3 Feb 2021 12:58:26 -0500 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (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 2E5CAC010C; Wed, 3 Feb 2021 17:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1612375045; bh=Q8p1awFRWvZQwAEJydjROiaIceJgT6c3cpPWic23uwQ=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=Cx66f6H9QlTY7FuZK6z1E96JQ4LM9Rmw3sE3IOt4KiiCkHEaSlGTgm27dj4Xkuwgt So9J3ECq39x6TzLIORV/o/GjdzaV1Mjq7e9+IzXRQ5l8HihlbDDBBgXJcetr4k75Ky mZrD+d7aBx5/6CGb/BQJmIfOZWe22c/x+FIQdDuMdrkUj5a3X2g0vDTHKIMtmg7KXu NCh83AqLkTLatIja7l/1HjtO/geIjwUI/9lFd3Gm1uSUG+ZC94lc2umpP+r3O5+DBU 8BN5BOm8yy/npsYAm8jscyA8c/Ryl8svysMACSk4sipaJ4pZWReys26nFhvStXqcFF hO3L2OnslKBdw== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id E794FA005E; Wed, 3 Feb 2021 17:57:23 +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 v3 10/15] dmaengine: dw-edma: Change linked list and data blocks offset and sizes Date: Wed, 3 Feb 2021 18:57:02 +0100 Message-Id: <837f9dd059f26d73b0ec9636ae6a069c8eceeb79.1612374941.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