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 3/3] tests/imagination: Validate padding fields in FW/GPU info IOCTLs
Date: Wed, 2 Dec 2026 12:04:07 +0530 [thread overview]
Message-ID: <20261202-padding_test-v1-3-250ffd4c6da2@imgtec.com> (raw)
In-Reply-To: <20261202-padding_test-v1-0-250ffd4c6da2@imgtec.com>
Add validation of the FW and GPU info subtest under dev_query IOCTL for
a non-zero padding field.
Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
---
tests/imagination/pvr_dev_query.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/tests/imagination/pvr_dev_query.c b/tests/imagination/pvr_dev_query.c
index 8995ea777..17304ace8 100644
--- a/tests/imagination/pvr_dev_query.c
+++ b/tests/imagination/pvr_dev_query.c
@@ -114,6 +114,25 @@ int igt_main()
}
}
+ igt_describe("Test GPU info padding check for dev query");
+ igt_subtest("dev-query-gpu-info-type-nonzero-padding") {
+ struct drm_pvr_dev_query_gpu_info gpu_info_pad = {._padding_c = 1};
+
+ igt_pvr_ioctl_dev_query(fd, DRM_PVR_DEV_QUERY_GPU_INFO_GET,
+ sizeof(gpu_info_pad), &gpu_info_pad, EINVAL);
+ }
+
+ igt_describe("Test FW info padding check for dev query");
+ igt_subtest("dev-query-fw-info-type-nonzero-padding") {
+ struct drm_pvr_dev_query_fw_info fw_info_pad = {._padding_4 = 1};
+
+ if (version_major == 1 && version_minor < 1)
+ igt_skip("Skipping FW_INFO_GET padding test due to no support\n");
+
+ igt_pvr_ioctl_dev_query(fd, DRM_PVR_DEV_QUERY_FW_INFO_GET,
+ sizeof(fw_info_pad), &fw_info_pad, EINVAL);
+ }
+
igt_fixture()
{
drm_close_driver(fd);
--
2.43.0
next prev parent reply other threads:[~2026-12-02 6:37 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 ` [PATCH i-g-t 2/3] tests/imagination: Add padding field validation for destroy context IOCTL Brajesh Gupta
2026-12-02 6:34 ` Brajesh Gupta [this message]
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-3-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