This series fixes a synchronization issue in the existing writeback FB-ID test and adds a VKMS regression test for concurrent writeback and CRC capture.
The FB-ID test submits a writeback into the shared input framebuffer. It must wait for completion before a later subtest refills that buffer. Patch 1 requests and waits for the completion fence, preventing the older writeback from modifying the next subtest's reference contents. Patch 2 keeps CRC capture active across four alternating writebacks and checks fresh CRC samples after each completion. It is restricted to VKMS, does not allow modesets after capture starts, and releases capture and the new framebuffers from the final fixture. It also clears the format probe's pending out-fence request so the subtest works independently. Changes since v3: - Rebased both patches onto current IGT master, c9e2cc3119d9. - Added a cover letter with a subject describing the complete series. The patch contents are unchanged by the rebase. Previous revision: https://lore.kernel.org/igt-dev/[email protected]/ Validation performed on the rebased v4 series: - Rebuilt IGT and kms_writeback on master c9e2cc3119d9 with both patches. The generated testlist and documentation consistency checks pass. - ARM64 QEMU/HVF with one and two CPUs, using the original unfixed/fixed Linux kernel pair that demonstrated the VKMS composer lifetime bug. - The prerequisite alone and the complete series pass all four existing applicable subtests on both kernels; the two XRGB2101010 cases skip. - The new regression reaches the expected post-writeback CRC timeout on the unfixed kernel and passes with the VKMS composer lifetime fix, both independently and in the full writeback suite. - Temporary failure probes verify framebuffer and buffer-handle cleanup after partial setup, CRC comparison failure, timeout, success, and skip. - All 19 validation cases produced their expected outcomes, with no kernel warnings detected. Strict checkpatch reports no issues in either patch. Aditya Tipre (2): tests/kms_writeback: Wait for the valid FB ID writeback tests/kms_writeback: Check CRC capture survives writeback tests/kms_writeback.c | 75 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 73 insertions(+), 2 deletions(-) -- 2.50.1 (Apple Git-155)
