Skip to content

Increase coverage on drm_framebuffer.c

Carlos Eduardo Gallo Filho dri-devel 5 versions – Applied

Status from this message: Applied to misc/kernel.git (drm-misc-next).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/29 patches 5 repliesApplied
  2. v4 posting 1/29 patches 0 repliesSuperseded
  3. v39 patches 10 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v211 patches9 repliesSuperseded
v19 of 10 patches18 repliesSuperseded

v3 from the cover letter

- Drop drm_mode_addfb2 and drm_fb_release tests (patches 10 and 11 from v2)
---

Patches in v4 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/9drm/tests: Stop using deprecated dev_private member on drm_framebuffer testsdrivers/gpu/drm/tests/drm_framebuffer_test.c+38 -160 replies
2/9drm/tests: Add parameters to the drm_test_framebuffer_create testdrivers/gpu/drm/tests/drm_framebuffer_test.c+27 -00 replies
3/9drm/tests: Replace strcpy to strscpy on drm_test_framebuffer_create testdrivers/gpu/drm/tests/drm_framebuffer_test.c+1 -10 replies
4/9drm/tests: Add test case for drm_internal_framebuffer_create()drivers/gpu/drm/tests/drm_framebuffer_test.c+24 -00 replies
5/9drm/tests: Add test for drm_framebuffer_check_src_coords()drivers/gpu/drm/drm_framebuffer.c drivers/gpu/drm/tests/drm_framebuffer_test.c+62 -00 replies
6/9drm/tests: Add test for drm_framebuffer_cleanup()drivers/gpu/drm/tests/drm_framebuffer_test.c+32 -00 replies
7/9drm/tests: Add test for drm_framebuffer_lookup()drivers/gpu/drm/tests/drm_framebuffer_test.c+41 -00 replies
8/9drm/tests: Add test for drm_framebuffer_init()drivers/gpu/drm/drm_framebuffer.c drivers/gpu/drm/tests/drm_framebuffer_test.c+85 -01 reply
9/9drm/tests: Add test for drm_framebuffer_free()drivers/gpu/drm/drm_mode_object.c drivers/gpu/drm/tests/drm_framebuffer_test.c+51 -00 replies

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchMaxime Ripard
1/9A-b
2/9A-b
3/9A-b
4/9
5/9A-b
6/9A-b
7/9A-b
8/9
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 RESEND 0/9] Increase coverage on drm_framebuffer.c

This patchset includes new KUnit tests for 5 untested functions from drm_framebuffer.c and improvements to the existent one.

The first patch replace the use of dev_private member from drm_device mock on the existent test by embedding it into an outer struct containing a generic pointer.

The patches 2 and 4 extends the test of drm_internal_framebuffer_create() by creating a new test case and adding new parameters to the existent case.

The patch 3 just replace a strcpy() call to strscpy().

Finally, the remainder of this set contains 5 new test cases, one for each of the follow functions:

- drm_framebuffer_check_src_coords()
- drm_framebuffer_cleanup()
- drm_framebuffer_lookup()
- drm_framebuffer_init()
- drm_framebuffer_free()

---
v3:
- Drop drm_mode_addfb2 and drm_fb_release tests (patches 10 and 11 from v2)
---

Carlos Eduardo Gallo Filho (9):
drm/tests: Stop using deprecated dev_private member on drm_framebuffer
tests
drm/tests: Add parameters to the drm_test_framebuffer_create test drm/tests: Replace strcpy to strscpy on drm_test_framebuffer_create
test
drm/tests: Add test case for drm_internal_framebuffer_create() drm/tests: Add test for drm_framebuffer_check_src_coords() drm/tests: Add test for drm_framebuffer_cleanup() drm/tests: Add test for drm_framebuffer_lookup() drm/tests: Add test for drm_framebuffer_init()
drm/tests: Add test for drm_framebuffer_free()

 drivers/gpu/drm/drm_framebuffer.c            |   2 +
 drivers/gpu/drm/drm_mode_object.c            |   1 +
 drivers/gpu/drm/tests/drm_framebuffer_test.c | 375 ++++++++++++++++++-
 3 files changed, 361 insertions(+), 17 deletions(-)
Signature · 1 line
2.44.2