]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kselftests: dmabuf-heaps: Add extra checking that allocated buffers are zeroed
authorJohn Stultz <john.stultz@linaro.org>
Fri, 29 Jan 2021 03:05:14 +0000 (03:05 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 8 Feb 2021 23:25:53 +0000 (16:25 -0700)
commit1d317c1ca2930759669bf416d04f2fbd3ce99fa9
treebcdadfe68fb191d3c4d2bca34e8155efb50b4048
parent06fc1aaea968949d5413722742f74b2502b6e138
kselftests: dmabuf-heaps: Add extra checking that allocated buffers are zeroed

Add a check to validate that buffers allocated from the heaps
are properly zeroed before being given to userland.

It is done by allocating a number of buffers, and filling them
with a nonzero pattern, then closing and reallocating more
buffers and checking that they are all properly zeroed.

This is helpful to validate any cached buffers are zeroed
before being given back out.

Cc: Shuah Khan <shuah@kernel.org>
Cc: Brian Starkey <brian.starkey@arm.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Laura Abbott <labbott@kernel.org>
Cc: Hridya Valsaraju <hridya@google.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Sandeep Patil <sspatil@google.com>
Cc: Daniel Mentz <danielmentz@google.com>
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c