Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Brajesh Gupta <brajesh.gupta@imgtec.com>
To: Development mailing list for IGT GPU Tools
	<igt-dev@lists.freedesktop.org>
Cc: Alessio Belle <alessio.belle@imgtec.com>,
	Brajesh Gupta <brajesh.gupta@imgtec.com>,
	Luigi Santivetti <luigi.santivetti@imgtec.com>
Subject: [PATCH i-g-t 2/3] tests/imagination: Add padding field validation for destroy context IOCTL
Date: Wed, 2 Dec 2026 12:04:06 +0530	[thread overview]
Message-ID: <20261202-padding_test-v1-2-250ffd4c6da2@imgtec.com> (raw)
In-Reply-To: <20261202-padding_test-v1-0-250ffd4c6da2@imgtec.com>

Add a new subtest to validate destroy context IOCTL failure for a
non-zero padding field.

Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
---
 tests/imagination/pvr_submit_jobs.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/imagination/pvr_submit_jobs.c b/tests/imagination/pvr_submit_jobs.c
index 21ccb03fd..ed96b60d7 100644
--- a/tests/imagination/pvr_submit_jobs.c
+++ b/tests/imagination/pvr_submit_jobs.c
@@ -640,6 +640,18 @@ int igt_main()
 		}
 	}
 
+	igt_describe("Padding field validation for destroy context IOCTL");
+	igt_subtest("submit-jobs-destroy-context-nonzero-padding-field")
+	{
+		struct drm_pvr_ioctl_destroy_context_args destroy_context_args = {
+			.handle = compute_vm_ctx_handle,
+			._padding_4 = 1,
+		};
+
+		do_ioctl_err(fd, DRM_IOCTL_PVR_DESTROY_CONTEXT,
+			     &destroy_context_args, EINVAL);
+	}
+
 	igt_fixture()
 	{
 		igt_pvr_ioctl_destroy_hwrt_dataset(fd, hwrt_handle);

-- 
2.43.0


  parent reply	other threads:[~2026-12-02  6:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  6:34 [PATCH i-g-t 0/3] tests/imagination: Add padding field validation test for IOCTLs Brajesh Gupta
2026-12-02  6:34 ` [PATCH i-g-t 1/3] tests/imagination: Add padding field validation for map/unmap IOCTLs Brajesh Gupta
2026-12-02  6:34 ` Brajesh Gupta [this message]
2026-12-02  6:34 ` [PATCH i-g-t 3/3] tests/imagination: Validate padding fields in FW/GPU info IOCTLs Brajesh Gupta
2026-12-02  7:38 ` ✓ Xe.CI.BAT: success for tests/imagination: Add padding field validation test for IOCTLs Patchwork
2026-12-02  7:50 ` ✗ i915.CI.BAT: failure " Patchwork

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=20261202-padding_test-v1-2-250ffd4c6da2@imgtec.com \
    --to=brajesh.gupta@imgtec.com \
    --cc=alessio.belle@imgtec.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=luigi.santivetti@imgtec.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