devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/2] Add dma controller driver for HiSilicon Ascend310/910
@ 2023-10-26  7:25 Guo Mengqi
  2023-10-26  7:25 ` [PATCH v6 1/2] dmaengine: Add HiSilicon Ascend SDMA engine support Guo Mengqi
  2023-10-26  7:25 ` [PATCH v6 2/2] dt-bindings: dma: HiSilicon: Add bindings for HiSilicon Ascend sdma Guo Mengqi
  0 siblings, 2 replies; 6+ messages in thread
From: Guo Mengqi @ 2023-10-26  7:25 UTC (permalink / raw)
  To: vkoul, dmaengine, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	devicetree
  Cc: xuqiang36, chenweilong, guomengqi3

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-27  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26  7:25 [PATCH v6 0/2] Add dma controller driver for HiSilicon Ascend310/910 Guo Mengqi
2023-10-26  7:25 ` [PATCH v6 1/2] dmaengine: Add HiSilicon Ascend SDMA engine support Guo Mengqi
2023-10-26  7:25 ` [PATCH v6 2/2] dt-bindings: dma: HiSilicon: Add bindings for HiSilicon Ascend sdma Guo Mengqi
2023-10-26 13:09   ` Rob Herring
2023-10-26 16:55   ` Rob Herring
2023-10-27  9:37     ` guomengqi (A)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).