Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3554561pxu; Tue, 15 Dec 2020 09:36:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0nvToPn/iXRwt12QniiHAWUdKrOs2RJIA7z5X3yzY/U8EV85Lw9glK+wxBXKQ/MFtzHut X-Received: by 2002:a05:6402:3186:: with SMTP id di6mr3379134edb.16.1608053768707; Tue, 15 Dec 2020 09:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608053768; cv=none; d=google.com; s=arc-20160816; b=in8p+8rOzrmIEtzvoaWW5c695TzLXDTNfexUkn55uzVp0hR6OsKRF8roW7qJpaGGmY e1ht6qqrzfU9Xng/+13ZZvMmru2Ceqqf3eOdpfODQ8OZfP4SLcnOiJZhSf9kt/f+5n3P NxnEqL2ordC/j+hB6NukC4J4wGxvEj0DxnV/IZohJ+6ccZkwGq57C4PfB4xRQKtr6rbv OIlyWauY4PXgbpl2ZZKRHmEXu0SrDUpBnDQjVj55OIgMIIDb+o9opKaEr+P/wNSz6n9z bCD3eYedVbHx1APHhpWcuQ1R5RdRyoNqLdeBIvqAj8Oizf0nguRa8FVV3Fp62J8UBEhm CHLg== 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:cc:to:from:dkim-signature; bh=37fqQjTlMTp6QUrlZx0tEuQAYkAR6K8WRMrZ592QfFI=; b=pdEq7d+Zo4ihT7ujHh21RhSKJXyg4AcJsQheVzgNd/dqkAbh4wF1Gnxhoif00zQ+4q /bQrQIu78JIJTPpEWJhS9IgI0poITsIAprqNK3WQ69yzNtdoBm1rX6ydIs1aui1r0CV1 wqB/DKpdhViIaBRRbSiSUCwahiolLCOgLbVD6dfPDG1ZYMMfmY9sxXmKDFx2lBXiyskH bcvZGEUexRr7wWVV/uEXGjGJNok1p01FQJtZ5WU7eSr8DQSEA6Ms7IRgqkVgLbO2GXJD JXmtzAa5bwfGfgYp3iVEiNQwKks8Czsdt3YD1QfxcC/owjQu6VxBXooLSjCGMeJjCiWf pvtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=CjhLUsSF; 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 y26si1209405edo.273.2020.12.15.09.35.42; Tue, 15 Dec 2020 09:36:08 -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=CjhLUsSF; 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 S1731352AbgLORdD (ORCPT + 99 others); Tue, 15 Dec 2020 12:33:03 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:46048 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731163AbgLORbp (ORCPT ); Tue, 15 Dec 2020 12:31:45 -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 5F5C5C04D4; Tue, 15 Dec 2020 17:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1608053444; bh=2zvlnfO8mEL0+jPkJwBkzuRWJMiljFKkus2w4yewnww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=CjhLUsSFguuRH+xVBd7BDiykucwKI0FLFQXzcCstuV7dhoMBgkHV4HBRVOv5stFio NKovK4magjehLAphUl0KGxsggOlSlJoEWc/1yJ6hlQfdknVjWEGhTt5UntYX9cn2N7 skgcT/6K22SutV4ia6pHx60ArbpAqKbrBy/yd5IUJtttdMSHCyCtBGGhv9MChqsYPN k7wKQPi84ZUoAH8d309QFaIRWFHsfGTkVDR10ORFaABwKH5QyGNBN23v8Ui5IKAEaM D710WuUs/KLAuP6yMrCuLI1sOoYGNXFRIyd1QbmBh/+45eAd1k4YLg+sJ9NAfdsyJn 62wRcbwODu1jw== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id E96E4A024A; Tue, 15 Dec 2020 17:30:42 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Gustavo Pimentel To: Gustavo Pimentel , Dan Williams , Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/15] dmaengine: dw-edma: Change linked list and data blocks offset and sizes Date: Tue, 15 Dec 2020 18:30:19 +0100 Message-Id: <0c547e7ce575e7059659a99be1ad64aed4614633.1608053262.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 8c1b538..1fa43e3 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