<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Looks good, Feel free to add Reviewed-by:
    Arunpravin Paneer Selvam <<a href="mailto:Arunpravin.PaneerSelvam@amd.com" class="moz-txt-link-freetext">Arunpravin.PaneerSelvam@amd.com</a>><br>
    <br>
    Regards,<br>
    Arun.<br>
    <br>
    <div class="moz-cite-prefix">On 7/13/2023 12:09 PM, Christian König
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:c1d632a3-4e5b-6ab9-3ac1-cb4d696becf9@amd.com">[Adding
      Arun]
      <br>
      <br>
      Am 12.07.23 um 16:28 schrieb Mauro Carvalho Chehab:
      <br>
      <blockquote type="cite">As an example for the new documentation
        tool, add a documentation
        <br>
        for drm_buddy_test.
        <br>
        <br>
        I opted to place this on a completely different directory, in
        order
        <br>
        to make easier to test the feature with:
        <br>
        <br>
            $ make SPHINXDIRS="tests" htmldocs
        <br>
        <br>
        Signed-off-by: Mauro Carvalho Chehab <a class="moz-txt-link-rfc2396E" href="mailto:mchehab@kernel.org"><mchehab@kernel.org></a>
        <br>
      </blockquote>
      <br>
      Acked-by: Christian König <a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com"><christian.koenig@amd.com></a>
      <br>
      <br>
      Arun please take a look as well.
      <br>
      <br>
      Thanks,
      <br>
      Christian.
      <br>
      <br>
      <blockquote type="cite">---
        <br>
        <br>
        To avoid mailbombing on a large number of people, only mailing
        lists were C/C on the cover.
        <br>
        See [PATCH RFC 0/2] at:
        <a class="moz-txt-link-freetext" href="https://lore.kernel.org/all/cover.1689171160.git.mchehab@kernel.org/">https://lore.kernel.org/all/cover.1689171160.git.mchehab@kernel.org/</a>
        <br>
        <br>
          Documentation/index.rst                |  2 +-
        <br>
          Documentation/tests/index.rst          |  6 ++++++
        <br>
          Documentation/tests/kunit.rst          |  5 +++++
        <br>
          drivers/gpu/drm/tests/drm_buddy_test.c | 12 ++++++++++++
        <br>
          4 files changed, 24 insertions(+), 1 deletion(-)
        <br>
          create mode 100644 Documentation/tests/index.rst
        <br>
          create mode 100644 Documentation/tests/kunit.rst
        <br>
        <br>
        diff --git a/Documentation/index.rst b/Documentation/index.rst
        <br>
        index 9dfdc826618c..80a6ce14a61a 100644
        <br>
        --- a/Documentation/index.rst
        <br>
        +++ b/Documentation/index.rst
        <br>
        @@ -60,7 +60,7 @@ Various other manuals with useful information
        for all kernel developers.
        <br>
             fault-injection/index
        <br>
             livepatch/index
        <br>
             rust/index
        <br>
        -
        <br>
        +   test/index
        <br>
            User-oriented documentation
        <br>
          ===========================
        <br>
        diff --git a/Documentation/tests/index.rst
        b/Documentation/tests/index.rst
        <br>
        new file mode 100644
        <br>
        index 000000000000..bfc39eb5c0aa
        <br>
        --- /dev/null
        <br>
        +++ b/Documentation/tests/index.rst
        <br>
        @@ -0,0 +1,6 @@
        <br>
        +========================
        <br>
        +Kunit documentation test
        <br>
        +========================
        <br>
        +
        <br>
        +.. toctree::
        <br>
        +   kunit
        <br>
        diff --git a/Documentation/tests/kunit.rst
        b/Documentation/tests/kunit.rst
        <br>
        new file mode 100644
        <br>
        index 000000000000..6ffc151988a0
        <br>
        --- /dev/null
        <br>
        +++ b/Documentation/tests/kunit.rst
        <br>
        @@ -0,0 +1,5 @@
        <br>
        +Kunit tests
        <br>
        +-----------
        <br>
        +
        <br>
        +.. include-test:: drivers/gpu/drm/tests/drm_buddy_test.c
        <br>
        +
        <br>
        diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c
        b/drivers/gpu/drm/tests/drm_buddy_test.c
        <br>
        index 09ee6f6af896..dd6c5afd6cd6 100644
        <br>
        --- a/drivers/gpu/drm/tests/drm_buddy_test.c
        <br>
        +++ b/drivers/gpu/drm/tests/drm_buddy_test.c
        <br>
        @@ -737,6 +737,18 @@ static int drm_buddy_suite_init(struct
        kunit_suite *suite)
        <br>
              return 0;
        <br>
          }
        <br>
          +/**
        <br>
        + * KTEST_SUITE: set of tests for drm buddy alloc
        <br>
        + * Scope: drm subsystem
        <br>
        + * Mega feature: drm
        <br>
        + * Feature: buddy_alloc
        <br>
        + *
        <br>
        + * KTEST_TEST: drm_test_buddy_alloc_%s
        <br>
        + * Description: Run DRM buddy allocation %arg[1] test
        <br>
        + *
        <br>
        + * arg[1].values: limit, range, optimistic, smoke, pathological
        <br>
        + */
        <br>
        +
        <br>
          static struct kunit_case drm_buddy_tests[] = {
        <br>
              KUNIT_CASE(drm_test_buddy_alloc_limit),
        <br>
              KUNIT_CASE(drm_test_buddy_alloc_range),
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>