Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A10F8606A31C for ; Sun, 29 Nov 2026 18:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=FoohqVi3 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1555110E830; Sun, 29 Nov 2026 18:07:17 +0000 (UTC) Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id E869610E0C6 for ; Sun, 29 Nov 2026 18:07:10 +0000 (UTC) Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-86103aaac12so5622420a34.0 for ; Sun, 29 Nov 2026 10:07:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795975630; x=1796580430; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=K9JUYSg4HvnG1pbieikFoEo3v/USL8vlzFp4OMneB/Q=; b=FoohqVi3dKP+tUW+8WQf8kdUJqxbFnBLfF+2WSYtWHnyckeqfo9JdOBmNy3WFBIwhw FoaqHvrVJThB/2CmgXxF9dBdBCdJuslVLTY9NN89gx3+axk7FFbeZ1VUJ0lr2VZaRqs7 Dv8W18kQu1eH3D9/CDiVs0bwJmjki8XqRbPMPl9D2+oMgAGqbHyQmNkgZqtHj7fsCmJL YWpG+DktHCYUtptxBOnV2amqC5vC9mcIMEET6za0rvozthE6Pr2LFysBGpxtvTqpvF/U pHUHxZgpBR6RHf2syeO2nHylsvegHYsrfDOSkMdqTPeEPqkvhHrRxuhZSXwURpqkjmWa RoTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795975630; x=1796580430; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=K9JUYSg4HvnG1pbieikFoEo3v/USL8vlzFp4OMneB/Q=; b=YIVK3LZjqt+GTMeFlZsxf9ut86xwZ+VHgP5Wt3DYQQ1hBTsUT7ZEFFF2T95AP2lI7n opzNFpuu9jy35UIKVfjkXmlu4VnVJ4ch9IWGSLvp77mSDnbY3CpJFG4p2/nbyNjuKj9k EyNjLj+4utqfmuwgK/xlriGflt+G9DXHCAVoYyWfcEatgDvFGnvBJzRUmbbaCJ/RtcpK Jj7F5ywgHJ+rLeZ3GD0iTJ5Pjs6Z+rrqg98sPRI/bDbkspjfp1GOdmH54l/IR93/JQY5 raqYK9iioRbT26vvqqjqCcsu/ZpKCz2j2OcrWXG4BX0Zu6HKKap2cZ+g7srhT53LzvHT WE9g== X-Gm-Message-State: APuU4Z/pmCzeACpO2QOy0scr3Ww1N4vzYwh1wRm5P6mKSGWs/DVVeEsz H9GCVVw40RA7FLl+6zPJVf1xXw7VKlJzcqBNJfDXJrxplvtBIHM2n/Qj X-Gm-Gg: AZFdTZdVp0NT4OA4nS05IC5780GSqC1DzGbJz37mZGAGyoWGD6eRVB3/a/9SaKmBQcR 2Oyefawc+cXrLwIQ0vbKX8cX9wm4sRzRARUZ9NCgrc+6ME5M6Sqcv1QNOCrRrlx6hab/gY4seLp etvHgSHgBUNRyo6b7gKb7/KKn7ArpKBjShSCorbXzj+sS62ohv8LAJzOklpi2uKhul6CWs+1NLX ummqUArRoLt9//F657nC1vwSWjv9SS+3KfONX4jzzsecaW0J4QcuOXZ/2ULsUqowGr9fc+JVduu PXiyw/J74hocD9IQzwzmXotUUleqQMD/sg+KHCddLDYQu1pYkRbnc/kIf8VqN/yQK/NRV0hZrNZ AAySyqM2RGOsh5d35WDh11G4u6ePoIHmM8bczRiuFVETWzsZL8nJvCGt7/2KDs4YjatETyLceOc zjhMjXrI0LJhcFPLX7rFDvOOZ0LpKmp6kgQ+jqQKzm6EiTIzVCWsreeTuW1o5tyazE3Q4NAwaV9 eeZlS57cqXB3IMsxu7VEOsTzCZkuKKafpe13TahiWGucbCWl/Fyqpu6moXGJCT0INqHqVN2NA54 esz16gTVBLdBzPkQnIEjv7uUQStx/SVpzKX/L1mfLS7qd6VI/0IyA9qzTCDZentO7akX5JDQ1+M 1gaclLZlA7iCfEC318hrpZ+DHK9Wd8wg= X-Received: by 2002:a05:6808:6d93:b0:4b8:46e3:e221 with SMTP id 5614622812f47-57a09c1de59mr20150894b6e.13.1795975629871; Sun, 29 Nov 2026 10:07:09 -0800 (PST) Received: from localhost.localdomain ([72.12.197.23]) by smtp.gmail.com with ESMTPSA id 5614622812f47-57a34250ef2sm24226176b6e.3.2026.11.29.10.07.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 29 Nov 2026 10:07:09 -0800 (PST) From: Aditya Tipre To: igt-dev@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, louis.chauvet@bootlin.com, sowmiya.s@intel.com, kamil.konieczny@linux.intel.com, karthik.b.s@intel.com, swati2.sharma@intel.com, tipreaditya@gmail.com Subject: [PATCH i-g-t v4 0/2] kms_writeback: Synchronize writeback and test CRC continuity Date: Sun, 29 Nov 2026 13:06:58 -0500 Message-ID: <20261129180700.89278-1-tipreaditya@gmail.com> X-Mailer: git-send-email 2.50.1 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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/20261105225628.4123-1-tipreaditya@gmail.com/ 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)