Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3124713pxb; Fri, 12 Feb 2021 09:45:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZA0tnA9Fktenwz4Js6JMeVDRNNxj8OCZPP1XMsmAmUMstvF4gtG6FhdRU8BT+WRiDkjBI X-Received: by 2002:a17:906:25db:: with SMTP id n27mr4092136ejb.552.1613151913248; Fri, 12 Feb 2021 09:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613151913; cv=none; d=google.com; s=arc-20160816; b=cSkEhgRkQ87L5Qv5oeWQMLqSU6iKTdRyK3FQ0kaxrMrXk6gfeveA2LvkvoAIJ4u9lN 8lMvfIRnGbifgEYF11rurW0wR48Z7UKJgR1isq/5NUX7IpF4E6/Am4he4tjNxB0+wf+e ofn0kQGbiiCVpoKC6Iab8DRZhZo93DS0jrefoPO3LqFP8FwfkxOFNkz/KRuUjzb8Y1+Z 4u9VENVniig3xdDap5DAPyBLStMqeoTxzBufUd6MBHjQQaf/Sv27Vfd0MQSs8csElghW hOCm89+DjUk50LT+cWJt5d2DvUQGjfLl2nrTePFGMj4wPmhMQXj77m81aa3P+vBL5lQH J1+Q== 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=y609IXxjhTiBD8Bepuv9QaKTdlUzbvktUrPgZold6gE=; b=z4E8h9U0KcuLXB7KYfuXtZole0C9AlYAJMfd3Ruj2yVJsLfHoEAd8l89if/OW2NRAz OBHI3JvGxJ7leCH6gno0//kfP9+gQ7TnAXluxqBZ5RA94fPClQZ/aHZJrl2/TdbLa5o7 C0NjPB+IqpxK29jfIVpuulJupMAzmJsC52ImZi0VRj2o1wfs4peuCOvmyHNQcoCht3HD yt67m0TT/vInsxojsI3NOjQE+9Wk2pG1NcJZORBJLgEkCfhXkfkFIjY9gf7YHpRzG0iP YUcJZPo/Ly6WivkQuMp3p566fLbsVw6g5CGaV18Qo5RdOkqT7xMDIRAvzo8wjpnFGDkG iAiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TxD9ua2F; 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 z17si6672709edl.91.2021.02.12.09.44.49; Fri, 12 Feb 2021 09:45:13 -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=TxD9ua2F; 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 S231936AbhBLRlq (ORCPT + 99 others); Fri, 12 Feb 2021 12:41:46 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:42862 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231638AbhBLRjH (ORCPT ); Fri, 12 Feb 2021 12:39:07 -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 21FB740C78; Fri, 12 Feb 2021 17:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1613151487; bh=RCnDpO53Bb/0HVUjN9B8wC3VPb4hWflIDzyjkR3OoEo=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=TxD9ua2FQ0rWusjhPrPEgECQe7nq83EWuLsmhbaeCCg81YSFJfvaY8hd/QS34jpZM 21uuoP8ybFyb6Snk79xfr2wSUmiT+X8OMs9Ngi1oS+Vy3u0V65ocZnPYdV6FULimuH bvzip6b5n34GpjoNB8yFTRCSGeKxQtDIyjo5nKkK7qSqI+803wXwX2PEEain2UF5On VUeepaec6oQd79y8qASOcw1fjh0aXFFTf1unyzAa9dDmuATr5zGCh63+kdyEc87JXX 9AiHeZoUb0t3HjDVT9g5g0KLqfsTniM6Mq7ejd1kPVthhzCXgiWcX1SC9RRci4euAL B9mMc/UzSR/Ag== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id E40D2A005C; Fri, 12 Feb 2021 17:38:05 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Gustavo Pimentel To: dmaengine@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul , Dan Williams , Bjorn Helgaas , Gustavo Pimentel Subject: [PATCH v6 10/15] dmaengine: dw-edma: Change linked list and data blocks offset and sizes Date: Fri, 12 Feb 2021 18:37:45 +0100 Message-Id: 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 4e404f9..502de71 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