Skip to contentSkip to conversation

MD Acceleration: Base ADMA interface

RFC PATCH New Dan Williams 1 participant 1 message Feb 3, 2006

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 MD Acceleration: Base ADMA interface

This is a draft implementation of the ADMA interface. The basic premise is an interface that receives descriptors from a client and processes them in a separate thread. The descriptors address a wide range of commands (xor, copy, compare, etc).

On the front end a client can assume that operations queued to an engine will be executed in queued order. On the backend it is expected that multiple hardware DMA channels may comprise a single ADMA engine. For example an XOR channel and a normal memory copy channel could be presented to a client as a single ADMA engine.

The descriptor should remain under complete control of the engine. This allows the backend engine code to format the descriptor according to any hardware requirements/constraints. For this reason all access to descriptor variables from the client side is through accessor routines. Later on theses routines will take into account engine specific descriptor constraints.

For now this code makes some pio_adma_engine assumptions which will be addressed in future releases.

drivers/adma/Kconfig new file +16 -0
new file mode 100644
index 0000000..772bd44
@@ -0,0 +1,16 @@
+menu "Asynchronous memory engine support (ADMA)"
+
+config ADMA
+	bool "Support asynchronous memory engines"
+	help
+	  Support asynchronous (hardware acceleratated) dma, xor, memset, etc... 
+	  Required for RAID 5/6.
+
+config PIO_ADMA
+	bool "Software ADMA engine implementation"
+	depends on ADMA
+	help
+	  Select this option to use a soft engine rather than a hardware accelerated
+	  ADMA engine
+
+endmenu
drivers/adma/Makefile new file +2 -0
new file mode 100644
index 0000000..2d1d640
@@ -0,0 +1,2 @@
+obj-$(CONFIG_ADMA)		+= adma.o
+obj-$(CONFIG_PIO_ADMA)		+= pio_adma.o
drivers/adma/adma.c new file +255 -0

255 lines not on this page · raw message

drivers/adma/pio_adma.c new file +91 -0

91 lines not on this page · raw message

include/linux/adma/adma.h new file +132 -0

132 lines not on this page · raw message