public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Melissa Wen <mwen@igalia.com>
To: "Maíra Canal" <mcanal@igalia.com>
Cc: Rob Clark <robdclark@chromium.org>,
	igt-dev@lists.freedesktop.org,
	Petri Latvala <petri.latvala@intel.com>,
	Tomeu Vizoso <tomeu.vizoso@collabora.com>,
	Jason Ekstrand <jason.ekstrand@collabora.com>,
	Iago Toral Quiroga <itoral@igalia.com>,
	Emma Anholt <emma@anholt.net>
Subject: Re: [igt-dev] [PATCH i-g-t 0/6] V3D Job Submission Tests
Date: Thu, 12 Jan 2023 10:24:02 -0100	[thread overview]
Message-ID: <20230112112402.y3p5l2r2vjim4mir@mail.igalia.com> (raw)
In-Reply-To: <20230103105835.604394-1-mcanal@igalia.com>

[-- Attachment #1: Type: text/plain, Size: 2424 bytes --]

On 01/03, Maíra Canal wrote:
> Currently, the V3D tests don't cover the job submission feature of the driver.
> Therefore, create tests for DRM_IOCTL_V3D_SUBMIT_CL, an ioctl for submitting
> commands to the 3D engine. In order to develop the tests, it was necessary to
> bring some Mesa structures to IGT. Those structures have the definitions needed
> for the creation of an acceptable packet that can be sent to the GPU.
> 
> So, patches 1-3 add the Mesa structures needed for the tests and also create a
> struct to manage a CL job, the struct v3d_cl_job. Patch 4 introduces a helper
> function to submit a minimal job to the GPU, which will be useful for the tests.
> The minimal job will use the Mesa structures to produce a minimal valid packet.
> Finally, patches 5-6 include new tests in the V3D test suite for
> DRM_IOCTL_V3D_WAIT_BO and DRM_IOCTL_V3D_SUBMIT_CL. The tests for the Wait BO
> IOCTL depend on the submission of a job, so they are included in this series.

Hi Maíra,

I suggested minor adjusts in the last set of tests for CL job
submissions. Otherwise, LGTM.

With those comments addressed, you can add to the next version:
Reviewed-by: Melissa Wen <mwen@igalia.com>

Thanks for your comprehensive work!

Melissa
> 
> Best Regards,
> - Maíra Canal
> 
> Maíra Canal (6):
>   lib/v3d: Add V3D packet helpers
>   lib/v3d: Add V3D packet description
>   lib/v3d: Introduce the struct v3d_cl_job
>   lib/v3d: Add a helper to create a noop job
>   tests/v3d_wait_bo: Create test for V3D's Wait BO IOCTL
>   tests/v3d_submit_cl: Create test for V3D's Submit CL IOCTL
> 
>  lib/bitpack_helpers.h        |   78 +
>  lib/igt_v3d.c                |  182 ++
>  lib/igt_v3d.h                |   18 +
>  lib/v3d/v3d_cl.h             |  157 ++
>  lib/v3d/v3d_packet.h         | 5164 ++++++++++++++++++++++++++++++++++
>  lib/v3d/v3d_packet_helpers.h |  119 +
>  tests/v3d/meson.build        |    2 +
>  tests/v3d/v3d_submit_cl.c    |  352 +++
>  tests/v3d/v3d_wait_bo.c      |  127 +
>  tests/v3d_ci/v3d.testlist    |   27 +
>  10 files changed, 6226 insertions(+)
>  create mode 100644 lib/bitpack_helpers.h
>  create mode 100644 lib/v3d/v3d_cl.h
>  create mode 100644 lib/v3d/v3d_packet.h
>  create mode 100644 lib/v3d/v3d_packet_helpers.h
>  create mode 100644 tests/v3d/v3d_submit_cl.c
>  create mode 100644 tests/v3d/v3d_wait_bo.c
> 
> -- 
> 2.38.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2023-01-12 11:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-03 10:58 [igt-dev] [PATCH i-g-t 0/6] V3D Job Submission Tests Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 1/6] lib/v3d: Add V3D packet helpers Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 2/6] lib/v3d: Add V3D packet description Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 3/6] lib/v3d: Introduce the struct v3d_cl_job Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 4/6] lib/v3d: Add a helper to create a noop job Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 5/6] tests/v3d_wait_bo: Create test for V3D's Wait BO IOCTL Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 6/6] tests/v3d_submit_cl: Create test for V3D's Submit CL IOCTL Maíra Canal
2023-01-12 11:20   ` Melissa Wen
2023-01-03 12:02 ` [igt-dev] ✓ Fi.CI.BAT: success for V3D Job Submission Tests Patchwork
2023-01-03 16:25 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-01-12 11:24 ` Melissa Wen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230112112402.y3p5l2r2vjim4mir@mail.igalia.com \
    --to=mwen@igalia.com \
    --cc=emma@anholt.net \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=itoral@igalia.com \
    --cc=jason.ekstrand@collabora.com \
    --cc=mcanal@igalia.com \
    --cc=petri.latvala@intel.com \
    --cc=robdclark@chromium.org \
    --cc=tomeu.vizoso@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox