From: Matthew Auld <matthew.auld@intel.com>
To: "Balasubramanyam, Smitha" <smitha.balasubramanyam@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"Kempczynski, Zbigniew" <zbigniew.kempczynski@intel.com>
Subject: Re: [PATCH v2 1/3] tests/intel/xe_ccs : Add helpers and Negative test for VM_Bind Decomp
Date: Mon, 22 Jun 2026 15:50:58 +0100 [thread overview]
Message-ID: <23c5d34e-0a47-4f84-a0e6-d26432711616@intel.com> (raw)
In-Reply-To: <PH7PR11MB58630EAE29905C52CC33E31085EF2@PH7PR11MB5863.namprd11.prod.outlook.com>
On 22/06/2026 06:24, Balasubramanyam, Smitha wrote:
>
> On 15/06/2026 18:02, Matthew Auld wrote:
>> On 15/06/2026 13:31, Smitha Balasubramanyam wrote:
>>> Introduce data structures and helper utilities used by the VM
>>> negative tests to validate the VM_Bind Decomp feature
>>>
>>> These helpers provide resource management and setup/cleanup logic
>>> that simplifies the implementation of the test cases introduced in
>>> subsequent patches.
>>>
>>> One functional subtest is introduced in this patch.
>>> This test verifies handling of invalid UAPI Params in Non-fault Mode.
>>
>> Why is there so much code being added in this series? The negative
>> tests should just be checking that an ioctl gets rejected, when doing
>> various bogus things? Series is adding like +1000 lines of code? What am I missing?
>
>> Also, if we do need all of this, can we not extend the existing code in some way to handle the negative tests?
>
> Thanks for the feedback.
>
> The major bloat in patch 1 is coming from the two positive cases I included in the bad-params test (decompress-default-pat and decompress-gpu-wb-pat).
> For those cases, I was not just checking ioctl outcome, but also doing full mmap + pattern verification + memcmp, which is really positive-test coverage.
> I plan to move those out into a separate follow-up patch.
>
> For the fault-mode bad-params case, the invalid parameter combinations themselves are the same as the non-fault-mode case.
> I split them in v1 mainly because that follows the current pattern already present in xe_ccs.c, where fault and non-fault positive paths are separate.
> To reduce duplication, I plan to fold the fault-mode and non-fault-mode bad-params coverage into a single implementation driven by a config flag,
> with separate subtest entry points. Please let me know if this is in the right direction.
>
> I initially wanted to keep the negative test self-contained, but I also see that the setup is almost common between the positive and negative paths.
> So, to contain the code bloat, I plan to refactor the existing positive non-fault case first and then reuse the common setup pieces from there.
> Please let me know if this is in the right direction.
>
Yeah, code re-use would be good, if possible. I think to make this
easier to review it might make sense to just keep the scope to negative
tests, and maybe any extra coverage as another series, if possible. Or
at the very least split out more stuff into separate patches.
>
>
next prev parent reply other threads:[~2026-06-22 14:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 5:42 [PATCH 0/3] Negative tests for VM_BIND decompression Smitha Balasubramanyam
2026-05-27 5:42 ` [PATCH 1/3] tests/intel/xe_ccs : Add helpers and Negative test for VM_Bind Decomp Smitha Balasubramanyam
2026-05-27 5:42 ` [PATCH 2/3] tests/intel/xe_ccs: Add fault-mode helper and VM_BIND decomp neg test Smitha Balasubramanyam
2026-05-27 5:42 ` [PATCH 3/3] tests/intel/xe_ccs : Add CCS corruption neg test for VM_BIND decomp Smitha Balasubramanyam
2026-05-27 6:40 ` ✓ Xe.CI.BAT: success for Negative tests for VM_BIND decompression Patchwork
2026-05-27 6:42 ` ✓ i915.CI.BAT: " Patchwork
2026-05-27 8:39 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-27 13:21 ` ✓ i915.CI.Full: success " Patchwork
2026-06-15 12:31 ` [PATCH v2 0/3] " Smitha Balasubramanyam
2026-06-15 12:31 ` [PATCH v2 1/3] tests/intel/xe_ccs : Add helpers and Negative test for VM_Bind Decomp Smitha Balasubramanyam
2026-06-15 17:02 ` Matthew Auld
2026-06-15 17:06 ` Matthew Auld
2026-06-22 5:24 ` Balasubramanyam, Smitha
2026-06-22 14:50 ` Matthew Auld [this message]
2026-06-15 12:31 ` [PATCH v2 2/3] tests/intel/xe_ccs: Add fault-mode helper and VM_BIND decomp neg test Smitha Balasubramanyam
2026-06-15 12:31 ` [PATCH v2 3/3] tests/intel/xe_ccs : Add CCS corruption neg test for VM_BIND decomp Smitha Balasubramanyam
2026-06-15 17:05 ` Matthew Auld
2026-06-22 6:08 ` Balasubramanyam, Smitha
2026-06-22 15:21 ` Matthew Auld
-- strict thread matches above, loose matches on Subject: below --
2026-04-20 4:57 [PATCH 0/2] Negative tests for VM_BIND decompression Smitha Balasubramanyam
2026-05-25 11:40 ` [PATCH v2 0/3] " Smitha Balasubramanyam
2026-05-25 11:40 ` [PATCH v2 1/3] tests/intel/xe_ccs : Add helpers and Negative test for VM_Bind Decomp Smitha Balasubramanyam
2026-05-25 12:15 ` [PATCH v2 0/3] Negative tests for VM_BIND decompression Smitha Balasubramanyam
2026-05-25 12:15 ` [PATCH v2 1/3] tests/intel/xe_ccs : Add helpers and Negative test for VM_Bind Decomp Smitha Balasubramanyam
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=23c5d34e-0a47-4f84-a0e6-d26432711616@intel.com \
--to=matthew.auld@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=smitha.balasubramanyam@intel.com \
--cc=zbigniew.kempczynski@intel.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