The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b551429ad65d73a717c7bfc589cfbe62773a8cb1

commit b551429ad65d73a717c7bfc589cfbe62773a8cb1
Author:     Sourojeet A <[email protected]>
AuthorDate: 2026-06-04 16:52:44 +0000
Commit:     Ed Maste <[email protected]>
CommitDate: 2026-06-04 16:56:58 +0000

    linuxkpi: Add dma_unmap_page_attrs
    
    This will be used by amdgpu as of Linux 6.13.
    
    Reviewed by:    bz
    Sponsored by:   The FreeBSD Foundation
---
 sys/compat/linuxkpi/common/include/linux/dma-mapping.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h 
b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
index 5e5d40ef8339..45dfcf350fa2 100644
--- a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
+++ b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
@@ -199,6 +199,13 @@ dma_map_page_attrs(struct device *dev, struct page *page, 
size_t offset,
            direction, attrs));
 }
 
+static inline void
+dma_unmap_page_attrs(struct device *dev, dma_addr_t dma_address, size_t size,
+    enum dma_data_direction direction, unsigned long attrs)
+{
+       lkpi_dma_unmap(dev, dma_address, size, direction, attrs);
+}
+
 /* linux_dma_(un)map_sg_attrs does not support attrs yet */
 #define        dma_map_sg_attrs(dev, sgl, nents, dir, attrs)   \
        linux_dma_map_sg_attrs(dev, sgl, nents, dir, attrs)

Reply via email to