selftests/udmabuf: add tests to verify data after page migrationSince the memfd pages associated with a udmabuf may be migrated as part ofudmabuf create, we need to verify the data coherency after
selftests/udmabuf: add tests to verify data after page migrationSince the memfd pages associated with a udmabuf may be migrated as part ofudmabuf create, we need to verify the data coherency after successfulmigration. The new tests added in this patch try to do just that using 4ksized pages and also 2 MB sized huge pages for the memfd.Successful completion of the tests would mean that there is no disconnectbetween the memfd pages and the ones associated with a udmabuf. And,these tests can also be augmented in the future to test newer udmabuffeatures (such as handling memfd hole punch).The idea for these tests comes from a patch by Mike Kravetz here:https://lists.freedesktop.org/archives/dri-devel/2023-June/410623.htmlv1->v2: (suggestions from Shuah)- Use ksft_* functions to print and capture results of tests- Use appropriate KSFT_* status codes for exit()- Add Mike Kravetz's suggested-by tagLink: https://lkml.kernel.org/r/[email protected]Signed-off-by: Vivek Kasireddy <[email protected]>Suggested-by: Mike Kravetz <[email protected]>Acked-by: Dave Airlie <[email protected]>Acked-by: Gerd Hoffmann <[email protected]>Cc: Shuah Khan <[email protected]>Cc: David Hildenbrand <[email protected]>Cc: Daniel Vetter <[email protected]>Cc: Hugh Dickins <[email protected]>Cc: Peter Xu <[email protected]>Cc: Jason Gunthorpe <[email protected]>Cc: Dongwon Kim <[email protected]>Cc: Junxiao Chang <[email protected]>Cc: Arnd Bergmann <[email protected]>Cc: Christoph Hellwig <[email protected]>Cc: Christoph Hellwig <[email protected]>Cc: Matthew Wilcox (Oracle) <[email protected]>Cc: Oscar Salvador <[email protected]>Signed-off-by: Andrew Morton <[email protected]>
show more ...
selftests: drivers: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in scena
selftests: drivers: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in scenarioswhere kernel headers are installed into a specific output directory(O=...).Signed-off-by: Mathieu Desnoyers <[email protected]>Cc: Shuah Khan <[email protected]>Cc: [email protected]Cc: Ingo Molnar <[email protected]>Cc: <[email protected]> # 5.18+Signed-off-by: Shuah Khan <[email protected]>
selftests: drivers/dma-buf: Improve message in selftest summarySelftest udmabuf for the dma-buf driver is skipped when the device file(e.g. /dev/udmabuf) for the DMA buffer cannot be opened i.e. n
selftests: drivers/dma-buf: Improve message in selftest summarySelftest udmabuf for the dma-buf driver is skipped when the device file(e.g. /dev/udmabuf) for the DMA buffer cannot be opened i.e. no DMA bufferhas been allocated.This patch adds clarity to the SKIP message.Signed-off-by: Soumya Negi <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
selftests: drivers/dma-buf: Fix implicit declaration warnsudmabuf has the following implicit declaration warns:udmabuf.c:30:10: warning: implicit declaration of function 'open';udmabuf.c:42:8: w
selftests: drivers/dma-buf: Fix implicit declaration warnsudmabuf has the following implicit declaration warns:udmabuf.c:30:10: warning: implicit declaration of function 'open';udmabuf.c:42:8: warning: implicit declaration of function 'fcntl'These are caused due to not including fcntl.h and including justlinux/fcntl.h. Fix it to include fcntl.h which will bring in thelinux/fcntl.h. In addition, define __EXPORTED_HEADERS__ to bring inF_ADD_SEALS and F_SEAL_SHRINK defines and fix the following errorthat show up when just fcntl.h is included.udmabuf.c:45:21: error: 'F_ADD_SEALS' undeclared 45 | ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); | ^~~~~~~~~~~udmabuf.c:45:34: error: 'F_SEAL_SHRINK' undeclared 45 | ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); | ^~~~~~~~~~~~~Signed-off-by: Shuah Khan <[email protected]>
selftests: dma-buf: Adding kernel config fragment CONFIG_UDMABUF=yThe test case drivers/dma-buf/udmabuf need this kernel config enabledCONFIG_UDMABUF=ySigned-off-by: Naresh Kamboju <naresh.kamb
selftests: dma-buf: Adding kernel config fragment CONFIG_UDMABUF=yThe test case drivers/dma-buf/udmabuf need this kernel config enabledCONFIG_UDMABUF=ySigned-off-by: Naresh Kamboju <[email protected]>Reviewed-by: Gerd Hoffmann <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
fix dma-buf/udmabuf selftestThis patch fixes the udmabuf selftest. Currently the selftest is broken.I fixed the selftest by setting the F_SEAL_SHRINK seal on the memfdfile descriptor which is req
fix dma-buf/udmabuf selftestThis patch fixes the udmabuf selftest. Currently the selftest is broken.I fixed the selftest by setting the F_SEAL_SHRINK seal on the memfdfile descriptor which is required by udmabuf and added the test tothe selftest Makefile.Signed-off-by: Tom Murphy <[email protected]>Reviewed-by: Gerd Hoffmann <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
Add udmabuf misc deviceA driver to let userspace turn memfd regions into dma-bufs.Use case: Allows qemu create dmabufs for the vga framebuffer orvirtio-gpu ressources. Then they can be passed
Add udmabuf misc deviceA driver to let userspace turn memfd regions into dma-bufs.Use case: Allows qemu create dmabufs for the vga framebuffer orvirtio-gpu ressources. Then they can be passed around to displaythose guest things on the host. To spice client for classic fullframebuffer display, and hopefully some day to wayland server forseamless guest window display.qemu test branch: https://git.kraxel.org/cgit/qemu/log/?h=sirius/udmabufCc: David Airlie <[email protected]>Cc: Tomeu Vizoso <[email protected]>Cc: Laurent Pinchart <[email protected]>Cc: Daniel Vetter <[email protected]>Signed-off-by: Gerd Hoffmann <[email protected]>Acked-by: Daniel Vetter <[email protected]>Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]