From patchwork Mon Jul 17 06:54:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 703777 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 4A23AC001B0 for ; Mon, 17 Jul 2023 06:55:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbjGQGzK (ORCPT ); Mon, 17 Jul 2023 02:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbjGQGzJ (ORCPT ); Mon, 17 Jul 2023 02:55:09 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 553581BC for ; Sun, 16 Jul 2023 23:55:08 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-666e916b880so2613307b3a.2 for ; Sun, 16 Jul 2023 23:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689576908; x=1692168908; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nxDj0cr6PXkiRwnNoe82O3oD/hcUvA7dm6frlOMs3zE=; b=mpQsO+nWOYeY1Qwk7wnek4NxieRekIpcFy4mrVnTsOVzB7X6Cn3XuJjkEtMfigZb1M btMPEuwT+tDgJc/spo+tAUV3wrUIxUDnQjUga8N1bAoN0WTMEMbQs+Oy+E7iA958JP3J uRuACVrcFNa2t5wBmKEZiX391yEtGFM3oWfqNPB1++a0/kG63D0a9Ldl8I3dN3z3ZEt5 dch29l7i44tKfS5lraHIBqaXpZIHpDoI96zQhVt87plNHF4FDDRGGG0+xHNm8zhEJ5k4 1aWPkeK1EkPxNgef0y3jpWThbIxMo96Z+3CNlj81//16qZAxRHppt7XLxWzmDsAkGloG pQuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689576908; x=1692168908; 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=nxDj0cr6PXkiRwnNoe82O3oD/hcUvA7dm6frlOMs3zE=; b=e2xkiXWphAOWb9yNfVJ/o+SWHfl2EMGMEx5NjDkmt5Z+DSolX9h7S1UpC/wpPDTOVT YZirWARRxgfHuC9Wgt9feoj2Y2T1zhuky97hRfLXLBXn68EZTo83phkdxa8lWdeDRKzF 8w4KbZjK2zA4K8/tYcy+Vo6wiyhSKxyhRUjKBrTVVJQfEqd6i4m89Q22q77HDMQmQIVT 94kCWJig892ZmoMxqOIHylAN1ZHQoY1Is5VcWQQu7TZkHamyAQbrjgZyakoclh5LJozr wJjbN6uuD2yG8mt+5A7QCT9i1chrNl6pR5Re075OFqNuDuI2RkXYo4lzeYFjMD9XMT5S W72A== X-Gm-Message-State: ABy/qLZQaIodKnsqs7oJi7+MwDc4uFlrsbnSykmwchfPRv6xj8MjfZzC NVFexa9wFxZonoNTFdhrojfu X-Google-Smtp-Source: APBJJlFPuHY8ear94TdRwC1bkMd6oiUULZrC/Rb0WVzdEKLvyIuycaJT9ok4CdCKiKP1dBr8DFXsVw== X-Received: by 2002:a05:6a00:198a:b0:67e:4313:811e with SMTP id d10-20020a056a00198a00b0067e4313811emr12393345pfl.0.1689576907742; Sun, 16 Jul 2023 23:55:07 -0700 (PDT) Received: from localhost.localdomain ([117.193.215.209]) by smtp.gmail.com with ESMTPSA id x7-20020a62fb07000000b006675c242548sm11196422pfm.182.2023.07.16.23.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 23:55:07 -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 v2 0/7] Improvements to Qcom PCIe EP and EPF MHI drivers Date: Mon, 17 Jul 2023 12:24:52 +0530 Message-Id: <20230717065459.14138-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-arm-msm@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/ Changes in v2: * Rebased on top of v6.5-rc1 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(-) Reviewed-by: Randy Dunlap