Message ID | 20230717065459.14138-1-manivannan.sadhasivam@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp947667vqt; Mon, 17 Jul 2023 00:02:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlE97yXBf7Vejl8Gv8FhqMJ+Tux+KKo/yCtiMuYNIQU8oD8gF0vQaJGWUWjduNQ7D0bvSC0M X-Received: by 2002:a05:6a00:15c6:b0:66c:6766:7373 with SMTP id o6-20020a056a0015c600b0066c67667373mr14286891pfu.23.1689577321929; Mon, 17 Jul 2023 00:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689577321; cv=none; d=google.com; s=arc-20160816; b=Cg/qUKIDpkDMaD1jzm3qmE8111yiozYrej83wXqpQgWIFTj/02Gw9YVttc542PzVjC ZM5TwKM6eVBdazkOxnOZRSjytBHTqP3F12uchzatX5uSHGIm2psVgLOBRrGKnALqwtdb zqcdIshILzQ+OwQDV02V2J1bAC8JM8z0apgPeRP0O1A+OIONu5evVpTsrNXXYgOboJlA Qmpff8NQlYgbHSs4kW4IpcgzgsXM8mD90J7NyxV6q51A1d6s299fMf0MHkVgLVhaFz5F jhmzHXIJp76mCjKpSIGDkC5qaIgVilLrPLzU4UmAXFJZOvWd0EoDqJAc52IBEvtjLdfF 74PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nxDj0cr6PXkiRwnNoe82O3oD/hcUvA7dm6frlOMs3zE=; fh=oXSbR7qPhIu/pj3Zq0qWqQt6y9AXFbKKex0wUQ+Gvi4=; b=rIu4xdR44bI9+5T4atgfJuSF43tpU5/pWDFfGGmrnJBJTcRtmk1KNK2EiIkGgCFZ4l Y8pa7h3YDwgtPxIRNGK+VN4Ap10tdh7JJHFB7s0DTlhYsD652MUoR2oI2XZnvJJLQqUW JG6wXsQy+vrg6c9nMdFiuzMxIeSvGEqnPSSCk5S6f+Cg5T9yE3+hY/GrZBshsLZJjGcM ugnohlZe4JNiFt6a8Vtwie9LNzCpHSTdfo3QAgNZilsANGv0ejSp7jjYbiO7Sv8+0/tv 2dIEEPOrJObxkoWNy8IAt/yCOqzgl994+FMQrWDEqT28qo9yjullkMBIfBc+mzIuvaF6 mXvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mpQsO+nW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c21-20020a630d15000000b00557671b7ee5si10885496pgl.423.2023.07.17.00.01.48; Mon, 17 Jul 2023 00:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mpQsO+nW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbjGQGzL (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Mon, 17 Jul 2023 02:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbjGQGzJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Jul 2023 02:55:09 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58376E46 for <linux-kernel@vger.kernel.org>; Sun, 16 Jul 2023 23:55:08 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-666eef03ebdso2621671b3a.1 for <linux-kernel@vger.kernel.org>; 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=mGp9iifrNI7gGSXhplaDRt37jzZl57ge5XBuzJgf0iLM0awO3ARVUgQbVZcsXRuZOt aihC80V43L9FSHlQl5MZjp/j4xcagrhtqKkqDP6jMJben5DC8GR20a+EeVQb4x2StDzE qTpmLd7pvZTltKxKg80wQyyHNJt6wuSVwzVws+Rt2OOzWUH/WIgu2HYTFilTbIzTf2Ga fbLx6BfWHcVlC7n7cZOGWd7EWwI4MHVDtyFLBoDfLcU0k49UlbEcL9zSOVPnXuIT7eIC MYE8aRVzysoJD0nQg91juREcbehSKh4BD32M6xd36A8V0GIAt36jeHPgWVR5TObS+qR9 /YiQ== X-Gm-Message-State: ABy/qLaHqs29X8cLVnqAc56xncBaEMkyL4/dVhUjYZnev1QecJkbLfMn HAzHG0Yl9P4wqHbRRjTpfIpS 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 <manivannan.sadhasivam@linaro.org> 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 <manivannan.sadhasivam@linaro.org> 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771650229878914596 X-GMAIL-MSGID: 1771650229878914596 |
Series |
Improvements to Qcom PCIe EP and EPF MHI drivers
|
|
Message
Manivannan Sadhasivam
July 17, 2023, 6:54 a.m. UTC
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(-)
Comments
On 7/16/23 23:54, Manivannan Sadhasivam wrote: > Add missing kernel-doc for pci_epc_mem_init() API. > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Looks good. Thanks. Reviewed-by: Randy Dunlap <rdunlap@infradead.org> > --- > drivers/pci/endpoint/pci-epc-mem.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/pci/endpoint/pci-epc-mem.c b/drivers/pci/endpoint/pci-epc-mem.c > index 7dcf6f480b82..a9c028f58da1 100644 > --- a/drivers/pci/endpoint/pci-epc-mem.c > +++ b/drivers/pci/endpoint/pci-epc-mem.c > @@ -115,6 +115,16 @@ int pci_epc_multi_mem_init(struct pci_epc *epc, > } > EXPORT_SYMBOL_GPL(pci_epc_multi_mem_init); > > +/** > + * pci_epc_mem_init() - Initialize the pci_epc_mem structure > + * @epc: the EPC device that invoked pci_epc_mem_init > + * @base: Physical address of the window region > + * @size: Total Size of the window region > + * @page_size: Page size of the window region > + * > + * Invoke to initialize a single pci_epc_mem structure used by the > + * endpoint functions to allocate memory for mapping the PCI host memory > + */ > int pci_epc_mem_init(struct pci_epc *epc, phys_addr_t base, > size_t size, size_t page_size) > {
Hello, > 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. Apologies, I accidentally responded to an older series: https://lore.kernel.org/linux-pci/20230825175729.GB131548@rocinante This series version was applied, of course. Krzysztof