From patchwork Tue Jun 6 11:58:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 13269006 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 887E0C77B7A for ; Tue, 6 Jun 2023 11:58:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235144AbjFFL6d (ORCPT ); Tue, 6 Jun 2023 07:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236099AbjFFL6d (ORCPT ); Tue, 6 Jun 2023 07:58:33 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAE6710CA for ; Tue, 6 Jun 2023 04:58:29 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1b026657a6fso52172135ad.0 for ; Tue, 06 Jun 2023 04:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686052709; x=1688644709; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OCaUDE4A9Imgmixgd3Y+GDeqRFqT+5tR5O8CZs6HCl8=; b=OutYyqP2xn67DBS724mHcqAKPlm5BziPEw9lgNNo/rpmoJrqoCOo0m77dboBQ5dYwS taARkLSVyKUedrKlkYHLmbaj2CIa59MSfjPwVoS2F1OCt9S24/0MBzbEnktIvBIjfQOk tvtR7z0eU3V4+O4A9eOkVpKnhOE+PLvZhTgsBGCSFPRgzau4LhkqjmQtviGpLqWhAVg/ aSFObId+faFtVHRbKDQN4u4PWUAbikKrGtI1xGfuPbFydxcqDmnBlZwISk6dTx89OBHZ D4vL/PaFiuU+QGfz+zakip6Dyn3Yt4UZtxRN9bALIA/2AAHWtG+u6NNVLsAnLBTwu5Dx 125A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686052709; x=1688644709; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OCaUDE4A9Imgmixgd3Y+GDeqRFqT+5tR5O8CZs6HCl8=; b=AzPeKqUsiqu7QedyYJrBeuhIGuZXVcINenPT/d+iDnRBtPihcT+eb+wPTkwZBYbp/s V9YixXEcM8VrXjzbXBLPeq0OUpOqtWLWwWtYK2Raw8krUx6O8I3hLD0xtUp6NZCtguZa zJrkYmRoOi4gpjKqPNWzjVjhnjcW1eUAHhH6eyiijpA3R2308Qh8nLDcmgrRBWLW5Rqz CWc3vPigBdTvS1xAKWcmHRox6/a7+HXe1P4oHIkzFcCtatUFuWgXWvB9aAa/LUuCVFCq F9rjUedrg45q6eM70taBAIo/NKnE9k2zWoe0zg6XF4BX7OE4lGsRhlTWsm4HIYvV1zYr O1Nw== X-Gm-Message-State: AC+VfDwzR7USmgSmZjkZ+9XoORYo+QPwGLcvcW6kRTHdGeJVhww9IsDZ EAi7/Z8HYAcxlEuTVJQ3wBlS X-Google-Smtp-Source: ACHHUZ7LiLTUZzIr7HVLq0dVaYBc4JzUaiFd97KbZ9P7zFK9qNmSK6k1+OyEzgML1k4N9ldhuGeh5A== X-Received: by 2002:a17:902:c411:b0:1ac:5717:fd5 with SMTP id k17-20020a170902c41100b001ac57170fd5mr2830030plk.60.1686052709081; Tue, 06 Jun 2023 04:58:29 -0700 (PDT) Received: from localhost.localdomain ([117.202.186.178]) by smtp.gmail.com with ESMTPSA id b5-20020a170903228500b001acaf7e22bdsm8419226plh.14.2023.06.06.04.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 04:58:28 -0700 (PDT) From: Manivannan Sadhasivam To: lpieralisi@kernel.org, kw@linux.com Cc: kishon@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 0/7] Improvements to Qcom PCIe EP and EPF MHI drivers Date: Tue, 6 Jun 2023 17:28:07 +0530 Message-Id: <20230606115814.53319-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hi, This series adds eDMA (embedded DMA) support to the Qcom PCIe EP and EPF MHI drivers for offloading the transfers between PCIe bus and the EP memory. eDMA support makes use of the recently merged eDMA DMAEngine driver and its integration with DWC PCIe EP core [1]. This series also adds Qcom SM8450 SoC support to EPF MHI driver that has the eDMA support built-in. - Mani [1] https://lore.kernel.org/all/20230113171409.30470-1-Sergey.Semin@baikalelectronics.ru/ Manivannan Sadhasivam (7): PCI: qcom-ep: Pass alignment restriction to the EPF core PCI: epf-mhi: Make use of the alignment restriction from EPF core PCI: qcom-ep: Add eDMA support PCI: epf-mhi: Add eDMA support PCI: epf-mhi: Add support for SM8450 PCI: epf-mhi: Use iATU for small transfers PCI: endpoint: Add kernel-doc for pci_epc_mem_init() API drivers/pci/controller/dwc/pcie-qcom-ep.c | 5 +- drivers/pci/endpoint/functions/pci-epf-mhi.c | 280 ++++++++++++++++++- drivers/pci/endpoint/pci-epc-mem.c | 10 + 3 files changed, 281 insertions(+), 14 deletions(-) base-commit: 1966e58011bc65eccf6d862096a94e4930ba4fe2