[bootlin/training-materials updates] master: slides/kernel-driver-development-dma: remove duplicate slide (1b937f5e)

Alexis Lothoré alexis.lothore at bootlin.com
Mon Apr 3 12:06:51 CEST 2023


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/1b937f5e011ca61f560dc61df12dc8d9e2ad9e82

>---------------------------------------------------------------

commit 1b937f5e011ca61f560dc61df12dc8d9e2ad9e82
Author: Alexis Lothoré <alexis.lothore at bootlin.com>
Date:   Mon Apr 3 11:13:36 2023 +0200

    slides/kernel-driver-development-dma: remove duplicate slide


>---------------------------------------------------------------

1b937f5e011ca61f560dc61df12dc8d9e2ad9e82
 .../kernel-driver-development-dma.tex              | 24 ----------------------
 1 file changed, 24 deletions(-)

diff --git a/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex b/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex
index e6e526dc..3846e79f 100644
--- a/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex
+++ b/slides/kernel-driver-development-dma/kernel-driver-development-dma.tex
@@ -104,30 +104,6 @@
   \end{itemize}
 \end{frame}
 
-\begin{frame}
-  \frametitle{DMA memory allocation constraints}
-  The APIs must remain generic and handle all cases transparently, hence:
-  \begin{itemize}
-  \item Each memory chunk accessed by the DMA shall be physically
-    contiguous, which means one can use:
-    \begin{itemize}
-    \item any memory allocated by \kfunc{kmalloc} (up to 128 KB)
-    \item any memory allocated by \kfunc{__get_free_pages} (up to 8MB)
-    \item block I/O and networking buffers, designed to support DMA
-    \end{itemize}
-  \item Unless the buffer is smaller than one page, one cannot use:
-    \begin{itemize}
-    \item kernel memory allocated with \kfunc{vmalloc}
-    \item user memory allocated with \code{malloc()}
-      \begin{itemize}
-      \item Almost all the time userspace relies on the kernel to allocate
-        the buffers and \kfunc{mmap} them to be usable from userspace
-        (requires a dedicated user API)
-      \end{itemize}
-    \end{itemize}
-  \end{itemize}
-\end{frame}
-
 \subsection{Kernel APIs for DMA}
 
 \begin{frame}




More information about the training-materials-updates mailing list