aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gpu
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2022-12-01 16:11:51 +0100
committerMaxime Ripard <maxime@cerno.tech>2022-12-08 09:56:56 +0100
commit5304c8e60100120c25557037edcc85791cb33a9a (patch)
tree395cb58d753464cec3c467a72b56e0c93ef6a7ca /Documentation/gpu
parent76ec18dc5afadb64257578ff91c1067331f2fcaa (diff)
downloadlinux-5304c8e60100120c25557037edcc85791cb33a9a.tar.gz
Documentation: gpu: vc4: Add KUnit Tests Section
Now that we have VC4-specific tests in place, let's document them properly. Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com> Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-20-4615a663a84a@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'Documentation/gpu')
-rw-r--r--Documentation/gpu/vc4.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/gpu/vc4.rst b/Documentation/gpu/vc4.rst
index 5df1d98b954461..a2375f1584e6d9 100644
--- a/Documentation/gpu/vc4.rst
+++ b/Documentation/gpu/vc4.rst
@@ -54,6 +54,22 @@ VEC (Composite TV out) encoder
.. kernel-doc:: drivers/gpu/drm/vc4/vc4_vec.c
:doc: VC4 SDTV module
+KUnit Tests
+===========
+
+The VC4 Driver uses KUnit to perform driver-specific unit and
+integration tests.
+
+These tests are using a mock driver and can be ran using the
+command::
+ ./tools/testing/kunit/kunit.py run \
+ --kunitconfig=drivers/gpu/drm/vc4/tests/.kunitconfig \
+ --cross_compile aarch64-linux-gnu- --arch arm64
+
+Parts of the driver that are currently covered by tests are:
+ * The HVS to PixelValve dynamic FIFO assignment, for the BCM2835-7
+ and BCM2711.
+
Memory Management and 3D Command Submission
===========================================
regkh@linuxfoundation.org>2021-12-08 09:04:57 +0100 commit602824cf9aa9db8830ffe5cfb2cd54365cada4fe (patch) treef830d984726fd3ebb5ddab7bad5599f9bf11c983 parent189c99c629bbf85916c02c153f904649cc0a9d7f (diff)downloadlinux-602824cf9aa9db8830ffe5cfb2cd54365cada4fe.tar.gz
serial: liteuart: fix use-after-free and memleak on unbind
commit 05f929b395dec8957b636ff14e66b277ed022ed9 upstream. Deregister the port when unbinding the driver to prevent it from being used after releasing the driver data and leaking memory allocated by serial core. Fixes: 1da81e5562fa ("drivers/tty/serial: add LiteUART driver") Cc: stable@vger.kernel.org # 5.11 Cc: Filip Kokosinski <fkokosinski@antmicro.com> Cc: Mateusz Holenko <mholenko@antmicro.com> Reviewed-by: Stafford Horne <shorne@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20211117100512.5058-2-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>