Colin Ian King
185926ef38
drm/selftests: fix spelling mistake "misssing" -> "missing"
...
There is a spelling mistake in a literal string, fix it.
Signed-off-by: Colin Ian King <[email protected] >
Signed-off-by: Daniel Vetter <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2019-09-17 14:58:00 +02:00
Sam Ravnborg
54ccae0c08
drm/selftests: drop use of drmP.h
...
Drop the single user of drmP.h - replace it with relevant includes.
Signed-off-by: Sam Ravnborg <[email protected] >
Acked-by: Emil Velikov <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Cc: David Airlie <[email protected] >
Cc: Daniel Vetter <[email protected] >
Cc: Alexandru-Cosmin Gheorghe <[email protected] >
Cc: Maarten Lankhorst <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2019-07-17 12:52:55 +02:00
Alexandru-Cosmin Gheorghe
9341c668c8
drm/selftests: Fix build warning -Wframe-larger-than
...
It seems for some random configuration drm_device is bigger than 2048
bytes.
The fix is to make the mock objects static variables.
Bug reported by 0-DAY Kernel test infrastructure here:
https://lists.01.org/pipermail/kbuild-all/2018-November/054431.html
Fixes: 6ff3d9ffdc ("drm/selftests: Add tests for drm_internal_framebuffer_create")
Signed-off-by: Alexandru-Cosmin Gheorghe <[email protected] >
Signed-off-by: Maarten Lankhorst <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-11-02 14:25:32 +01:00
Alexandru Gheorghe
6ff3d9ffdc
drm/selftests: Add tests for drm_internal_framebuffer_create
...
Add tests that verify that drm_internal_framebuffer_create creates
buffers correctly by creating a dummy drm_device with a mock function
for the fb_create callback.
To decide if a buffer has been created or not it just checks if
fb_create callback has been called for the particular drm_mode_fb_cmd2
that's being tested.
Reviewed-by: Daniel Vetter <[email protected] >
Signed-off-by: Alexandru Gheorghe <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2018-11-02 09:58:30 +00:00