* [PATCH i-g-t 0/3] tests/imagination: Add padding field validation test for IOCTLs
@ 2026-12-02 6:34 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
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Brajesh Gupta @ 2026-12-02 6:34 UTC (permalink / raw)
To: Development mailing list for IGT GPU Tools
Cc: Alessio Belle, Brajesh Gupta, Luigi Santivetti
This patch series adds missing non-zero padding field validation for
following IOCTLs:
- FW and GPU info query
- Context destroy
- Map/Unmap
Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
---
Brajesh Gupta (3):
tests/imagination: Add padding field validation for map/unmap IOCTLs
tests/imagination: Add padding field validation for destroy context IOCTL
tests/imagination: Validate padding fields in FW/GPU info IOCTLs
tests/imagination/pvr_dev_query.c | 19 +++++++++++++++
tests/imagination/pvr_submit_jobs.c | 12 ++++++++++
tests/imagination/pvr_vm_map.c | 47 +++++++++++++++++++++++++++++++++++++
3 files changed, 78 insertions(+)
---
base-commit: 91236650591c0a835f3c12e0bd0db402a72682e8
change-id: 20261202-padding_test-535a3510d0bc
Best regards,
--
Brajesh Gupta <brajesh.gupta@imgtec.com>
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH i-g-t 1/3] tests/imagination: Add padding field validation for map/unmap IOCTLs 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 ` 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 ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: Brajesh Gupta @ 2026-12-02 6:34 UTC (permalink / raw) To: Development mailing list for IGT GPU Tools Cc: Alessio Belle, Brajesh Gupta, Luigi Santivetti Add a new subtest to validate map and unmap IOCTLs failure for a non-zero padding field. Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com> --- tests/imagination/pvr_vm_map.c | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/tests/imagination/pvr_vm_map.c b/tests/imagination/pvr_vm_map.c index c74cc4f62..dc6d1d6f5 100644 --- a/tests/imagination/pvr_vm_map.c +++ b/tests/imagination/pvr_vm_map.c @@ -190,4 +190,51 @@ int igt_main() remap_range(fd, addr, size, addr + size / 2, size / 4); } } + + igt_describe("Padding field validation for map IOCTL"); + igt_subtest("map-padding-non-zero-failure") { + size_t bo_size = LEAK_BO_SIZE; + const uint64_t addr = align_up(heap.base, SZ_2M) + SZ_1M; + const uint32_t handle = igt_pvr_ioctl_create_bo(fd, &bo_size); + const uint32_t vm_ctx = igt_pvr_ioctl_create_vm_context(fd, 0); + + struct drm_pvr_ioctl_vm_map_args map_arg = { + .vm_context_handle = vm_ctx, + .flags = 0, + .device_addr = addr, + .handle = handle, + .offset = 0, + .size = bo_size, + ._padding_14 = 1, + }; + + do_ioctl_err(fd, DRM_IOCTL_PVR_VM_MAP, &map_arg, EINVAL); + + gem_close(fd, handle); + igt_pvr_ioctl_destroy_vm_context(fd, vm_ctx, 0); + } + + igt_describe("Padding field validation for unmap IOCTL"); + igt_subtest("unmap-padding-non-zero-failure") { + size_t bo_size = LEAK_BO_SIZE; + const uint64_t addr = align_up(heap.base, SZ_2M) + SZ_1M; + const uint32_t handle = igt_pvr_ioctl_create_bo(fd, &bo_size); + const uint32_t vm_ctx = igt_pvr_ioctl_create_vm_context(fd, 0); + + struct drm_pvr_ioctl_vm_unmap_args unmap_arg = { + .vm_context_handle = vm_ctx, + ._padding_4 = 1, + .device_addr = addr, + .size = bo_size, + }; + + igt_pvr_ioctl_vm_map(fd, vm_ctx, handle, addr, 0, bo_size); + do_ioctl_err(fd, DRM_IOCTL_PVR_VM_UNMAP, &unmap_arg, EINVAL); + + /* Unmap the memory */ + igt_pvr_ioctl_vm_unmap(fd, vm_ctx, addr, bo_size); + + gem_close(fd, handle); + igt_pvr_ioctl_destroy_vm_context(fd, vm_ctx, 0); + } } -- 2.43.0 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH i-g-t 2/3] tests/imagination: Add padding field validation for destroy context IOCTL 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 2026-12-02 6:34 ` [PATCH i-g-t 3/3] tests/imagination: Validate padding fields in FW/GPU info IOCTLs Brajesh Gupta ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: Brajesh Gupta @ 2026-12-02 6:34 UTC (permalink / raw) To: Development mailing list for IGT GPU Tools Cc: Alessio Belle, Brajesh Gupta, Luigi Santivetti 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 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH i-g-t 3/3] tests/imagination: Validate padding fields in FW/GPU info IOCTLs 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 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 4 siblings, 0 replies; 6+ messages in thread From: Brajesh Gupta @ 2026-12-02 6:34 UTC (permalink / raw) To: Development mailing list for IGT GPU Tools Cc: Alessio Belle, Brajesh Gupta, Luigi Santivetti 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 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* ✓ Xe.CI.BAT: success for tests/imagination: Add padding field validation test for IOCTLs 2026-12-02 6:34 [PATCH i-g-t 0/3] tests/imagination: Add padding field validation test for IOCTLs Brajesh Gupta ` (2 preceding siblings ...) 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 ` Patchwork 2026-12-02 7:50 ` ✗ i915.CI.BAT: failure " Patchwork 4 siblings, 0 replies; 6+ messages in thread From: Patchwork @ 2026-12-02 7:38 UTC (permalink / raw) To: Brajesh Gupta; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 1958 bytes --] == Series Details == Series: tests/imagination: Add padding field validation test for IOCTLs URL : https://patchwork.freedesktop.org/series/180230/ State : success == Summary == CI Bug Log - changes from XEIGT_9221_BAT -> XEIGTPW_16251_BAT ==================================================== Summary ------- **SUCCESS** No regressions found. Participating hosts (14 -> 12) ------------------------------ Missing (2): bat-bmg-vm bat-ptl-vm Known issues ------------ Here are the changes found in XEIGTPW_16251_BAT that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_force_connector_basic@force-edid: - bat-ptl-1: [PASS][1] -> [SKIP][2] ([Intel XE#352]) +2 other tests skip [1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9221/bat-ptl-1/igt@kms_force_connector_basic@force-edid.html [2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16251/bat-ptl-1/igt@kms_force_connector_basic@force-edid.html * igt@kms_hdmi_inject@inject-audio: - bat-ptl-1: [PASS][3] -> [SKIP][4] ([Intel XE#2853]) [3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_9221/bat-ptl-1/igt@kms_hdmi_inject@inject-audio.html [4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16251/bat-ptl-1/igt@kms_hdmi_inject@inject-audio.html [Intel XE#2853]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2853 [Intel XE#352]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/352 Build changes ------------- * IGT: IGT_9221 -> IGTPW_16251 * Linux: xe-6273-84c2801ba68c91f613802f666010676d07847116 -> xe-6276-51fc35d2a44b7a10d2cc97e229b8d2c8f737f337 IGTPW_16251: 16251 IGT_9221: 9221 xe-6273-84c2801ba68c91f613802f666010676d07847116: 84c2801ba68c91f613802f666010676d07847116 xe-6276-51fc35d2a44b7a10d2cc97e229b8d2c8f737f337: 51fc35d2a44b7a10d2cc97e229b8d2c8f737f337 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_16251/index.html [-- Attachment #2: Type: text/html, Size: 2569 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* ✗ i915.CI.BAT: failure for tests/imagination: Add padding field validation test for IOCTLs 2026-12-02 6:34 [PATCH i-g-t 0/3] tests/imagination: Add padding field validation test for IOCTLs Brajesh Gupta ` (3 preceding siblings ...) 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 ` Patchwork 4 siblings, 0 replies; 6+ messages in thread From: Patchwork @ 2026-12-02 7:50 UTC (permalink / raw) To: Brajesh Gupta; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 6428 bytes --] == Series Details == Series: tests/imagination: Add padding field validation test for IOCTLs URL : https://patchwork.freedesktop.org/series/180230/ State : failure == Summary == CI Bug Log - changes from IGT_9221 -> IGTPW_16251 ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_16251 absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_16251, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them to document this new failure mode, which will reduce false positives in CI. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/index.html Participating hosts (38 -> 37) ------------------------------ Additional (1): bat-jsl-5 Missing (2): bat-dg2-13 fi-glk-j4005 Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_16251: ### IGT changes ### #### Possible regressions #### * igt@core_auth@basic-auth: - bat-apl-1: [PASS][1] -> [DMESG-WARN][2] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_9221/bat-apl-1/igt@core_auth@basic-auth.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-apl-1/igt@core_auth@basic-auth.html Known issues ------------ Here are the changes found in IGTPW_16251 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_huc_copy@huc-copy: - bat-jsl-5: NOTRUN -> [SKIP][3] ([i915#2190]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@gem_huc_copy@huc-copy.html * igt@gem_lmem_swapping@basic: - bat-jsl-5: NOTRUN -> [SKIP][4] ([i915#4613]) +3 other tests skip [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@gem_lmem_swapping@basic.html * igt@i915_selftest@live@requests: - bat-apl-1: [PASS][5] -> [DMESG-WARN][6] ([i915#13735]) +37 other tests dmesg-warn [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_9221/bat-apl-1/igt@i915_selftest@live@requests.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-apl-1/igt@i915_selftest@live@requests.html * igt@intel_hwmon@hwmon-write: - bat-jsl-5: NOTRUN -> [SKIP][7] ([i915#7707]) +1 other test skip [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@intel_hwmon@hwmon-write.html * igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy: - bat-jsl-5: NOTRUN -> [SKIP][8] ([i915#4103]) +1 other test skip [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html * igt@kms_dsc@dsc-basic: - bat-jsl-5: NOTRUN -> [SKIP][9] ([i915#16361]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@kms_dsc@dsc-basic.html * igt@kms_flip@basic-flip-vs-modeset@b-dp1: - bat-apl-1: [PASS][10] -> [DMESG-WARN][11] ([i915#13735] / [i915#180]) +54 other tests dmesg-warn [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_9221/bat-apl-1/igt@kms_flip@basic-flip-vs-modeset@b-dp1.html [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-apl-1/igt@kms_flip@basic-flip-vs-modeset@b-dp1.html * igt@kms_force_connector_basic@force-load-detect: - bat-jsl-5: NOTRUN -> [SKIP][12] ([i915#17452]) [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@kms_force_connector_basic@force-load-detect.html * igt@kms_pm_backlight@basic-brightness: - bat-jsl-5: NOTRUN -> [SKIP][13] ([i915#15205]) [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@kms_pm_backlight@basic-brightness.html * igt@kms_psr@psr-sprite-plane-onoff: - bat-jsl-5: NOTRUN -> [SKIP][14] ([i915#1072]) +3 other tests skip [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@kms_psr@psr-sprite-plane-onoff.html * igt@kms_setmode@basic-clone-single-crtc: - bat-jsl-5: NOTRUN -> [SKIP][15] ([i915#3555]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-jsl-5/igt@kms_setmode@basic-clone-single-crtc.html * igt@vgem_basic@unload: - bat-rpls-4: [PASS][16] -> [DMESG-WARN][17] ([i915#13400]) [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_9221/bat-rpls-4/igt@vgem_basic@unload.html [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/bat-rpls-4/igt@vgem_basic@unload.html #### Possible fixes #### * igt@kms_pipe_crc_basic@read-crc: - fi-cfl-8109u: [DMESG-WARN][18] ([i915#15673]) -> [PASS][19] +48 other tests pass [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_9221/fi-cfl-8109u/igt@kms_pipe_crc_basic@read-crc.html [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/fi-cfl-8109u/igt@kms_pipe_crc_basic@read-crc.html [i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072 [i915#13400]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13400 [i915#13735]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13735 [i915#15205]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15205 [i915#15673]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15673 [i915#16361]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/16361 [i915#17452]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/17452 [i915#180]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/180 [i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190 [i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555 [i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103 [i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613 [i915#7707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7707 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_9221 -> IGTPW_16251 * Linux: CI_DRM_19647 -> CI_DRM_19650 CI-20190529: 20190529 CI_DRM_19647: 84c2801ba68c91f613802f666010676d07847116 @ git://anongit.freedesktop.org/gfx-ci/linux CI_DRM_19650: 51fc35d2a44b7a10d2cc97e229b8d2c8f737f337 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_16251: 16251 IGT_9221: 9221 == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_16251/index.html [-- Attachment #2: Type: text/html, Size: 7470 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-12-02 7:51 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 ` [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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox