From patchwork Wed Dec 12 11:13:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Pimentel X-Patchwork-Id: 1011830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="lH1hLnX/"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43FDhV5h5hz9s1c for ; Wed, 12 Dec 2018 22:13:46 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726970AbeLLLNp (ORCPT ); Wed, 12 Dec 2018 06:13:45 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:37672 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbeLLLNp (ORCPT ); Wed, 12 Dec 2018 06:13:45 -0500 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 9627B24E2138; Wed, 12 Dec 2018 03:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1544613224; bh=K2hKC/6zhy5lsPdlpOslABhs/QShB7zgSUAfrTDJadA=; h=From:To:Cc:Subject:Date:From; b=lH1hLnX/HiPIG/FPs3V1jFlAHeZtJSJoH4SRiY+jYLVDiRUAKvwo/vKgLHP96t9kr WTaBHyX2JbmDeRrgBZMPlu6feLP4q3QsbfplUF6i+74CB4pSE8DhDvnjM45OQ3W+SS 4OoWZ8+S51EbxN6KOQRVD+KlPYIpDvWxRWcSivgLaEQe8+KD9LdqyCZ1sREz+HCF8O 7bmvNipbMSRjSjmoxdGkRes2QdXOHXikcMyDjHA9jH3DrMGLPj8Z9No865JDhvyqNa uMTBUlN8zIWEqJ0QgiULmYOzTAlhZkScO0gqcxGGHB+Ar6P0Lo9qyn3Iha1r9mUPv6 UgUx1gEGbouYg== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 09DD43CFB; Wed, 12 Dec 2018 03:13:44 -0800 (PST) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 3C7E73BDC0; Wed, 12 Dec 2018 12:13:43 +0100 (CET) From: Gustavo Pimentel To: linux-pci@vger.kernel.org, dmaengine@vger.kernel.org Cc: Gustavo Pimentel , Vinod Koul , Eugeniy Paltsev , Andy Shevchenko , Lorenzo Pieralisi , Bjorn Helgaas , Kishon Vijay Abraham I , Joao Pinto Subject: [RFC 0/6] dma: Add Synopsys eDMA IP driver (version 0) Date: Wed, 12 Dec 2018 12:13:20 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Add Synopsys eDMA IP driver (version 0) to Linux kernel. This IP is generally distributed with Synopsys PCIe EndPoint IP (depends of the use and licensing agreement), which supports: - legacy and unroll modes - 16 independent and concurrent channels (8 write + 8 read) - supports linked list (scatter-gather) transfer - each linked list descriptor can transfer from 1 byte to 4 Gbytes - PCIe EndPoint glue-logic Gustavo Pimentel (6): dma: Add Synopsys eDMA IP core driver dma: Add Synopsys eDMA IP version 0 support dma: Add Synopsys eDMA IP version 0 debugfs support dma: Add Synopsys eDMA IP PCIe glue-logic MAINTAINERS: Add Synopsys eDMA IP driver maintainer pci: pci_ids: Add Synopsys device id 0xedda MAINTAINERS | 7 + drivers/dma/Kconfig | 2 + drivers/dma/Makefile | 1 + drivers/dma/dw-edma/Kconfig | 18 + drivers/dma/dw-edma/Makefile | 7 + drivers/dma/dw-edma/dw-edma-core.c | 945 +++++++++++++++++++++++++++++++ drivers/dma/dw-edma/dw-edma-core.h | 145 +++++ drivers/dma/dw-edma/dw-edma-pcie.c | 302 ++++++++++ drivers/dma/dw-edma/dw-edma-v0-core.c | 347 ++++++++++++ drivers/dma/dw-edma/dw-edma-v0-core.h | 24 + drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 359 ++++++++++++ drivers/dma/dw-edma/dw-edma-v0-debugfs.h | 21 + drivers/dma/dw-edma/dw-edma-v0-regs.h | 143 +++++ drivers/misc/pci_endpoint_test.c | 2 +- include/linux/dma/edma.h | 42 ++ include/linux/pci_ids.h | 1 + 16 files changed, 2365 insertions(+), 1 deletion(-) create mode 100644 drivers/dma/dw-edma/Kconfig create mode 100644 drivers/dma/dw-edma/Makefile create mode 100644 drivers/dma/dw-edma/dw-edma-core.c create mode 100644 drivers/dma/dw-edma/dw-edma-core.h create mode 100644 drivers/dma/dw-edma/dw-edma-pcie.c create mode 100644 drivers/dma/dw-edma/dw-edma-v0-core.c create mode 100644 drivers/dma/dw-edma/dw-edma-v0-core.h create mode 100644 drivers/dma/dw-edma/dw-edma-v0-debugfs.c create mode 100644 drivers/dma/dw-edma/dw-edma-v0-debugfs.h create mode 100644 drivers/dma/dw-edma/dw-edma-v0-regs.h create mode 100644 include/linux/dma/edma.h Signed-off-by: Gustavo Pimentel Cc: Vinod Koul Cc: Eugeniy Paltsev Cc: Andy Shevchenko Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Kishon Vijay Abraham I Cc: Joao Pinto