From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F1991710; Tue, 28 Nov 2023 22:57:20 -0800 (PST) Received: from kwepemm000013.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Sg94C20GyzMnMW; Wed, 29 Nov 2023 14:52:27 +0800 (CST) Received: from huawei.com (10.175.112.208) by kwepemm000013.china.huawei.com (7.193.23.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 29 Nov 2023 14:57:17 +0800 From: Guo Mengqi To: , , , , , CC: Subject: [PATCH RESEND v6 0/2] Add dma controller driver for HiSilicon Ascend310/910 Date: Wed, 29 Nov 2023 14:53:03 +0800 Message-ID: <20231129065305.70364-1-guomengqi3@huawei.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm000013.china.huawei.com (7.193.23.81) X-CFilter-Loop: Reflected The patch set add driver and device-tree bindings for a dma controller on HiSilicon Ascend310/910 platform. Changes v5 to v6: - Use "depends on IOMMU_SVA" rather than "selects IOMMU_SVA" in Kconfig, the latter will cause build errors Changes v4 to v5: - Remove the export symbol set_sdma_channel_info(), use current->mm->pasid for instead. - Reorganize the code and fix some indentations. - "dma-can-stall" now is not a required option in dts-binding Changes v3 to v4: - dts-binding * filename changed to hisilicon,ascend-sdma.yaml * use common property "dma-channel-mask" * make a clearer description of property "pasid-num-bits" Changes v2 to v3: - Fix dts-binding error: * Use "hisilicon" as a unified vendor prefix. Changes v1 to v2: - Fix dts-binding error: * change "compatible" to two exact models: ascend310/ascend910. * add vendor prefix for customized channel-map property. * add $ref for customized channel-map property. * remove unnecessary label in example. - Logic change in probe function: * If iommu sva feature is disabled, probe will not lead to failure - Use common driver apis: dev_xxx() devm_xxx() Guo Mengqi (2): dmaengine: Add HiSilicon Ascend SDMA engine support dt-bindings: dma: HiSilicon: Add bindings for HiSilicon Ascend sdma .../bindings/dma/hisilicon,ascend-sdma.yaml | 73 ++ drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/hisi-ascend-sdma.c | 788 ++++++++++++++++++ 4 files changed, 871 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/hisilicon,ascend-sdma.yaml create mode 100644 drivers/dma/hisi-ascend-sdma.c -- 2.17.1