]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/kunit: Use KUNIT_EXPECT_EQ() in xe_wa_gt()
authorGustavo Sousa <gustavo.sousa@intel.com>
Thu, 14 May 2026 21:44:48 +0000 (18:44 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Fri, 15 May 2026 21:05:13 +0000 (18:05 -0300)
Use KUNIT_EXPECT_EQ() in xe_wa_gt() as reg_sr errors in one GT do not
impact the next GT in the test.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260514-rtp-mcr-check-v3-5-30dd47855fee@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/xe/tests/xe_wa_test.c

index 49d191043dfaafd65fc9de17491a25ca6c5637bf..2bf6fab015cdca6e0b46c9b3c4c377d77d6f5f2c 100644 (file)
@@ -55,7 +55,7 @@ static void xe_wa_gt(struct kunit *test)
                xe_wa_process_gt(gt);
                xe_tuning_process_gt(gt);
 
-               KUNIT_ASSERT_EQ(test, gt->reg_sr.errors, 0);
+               KUNIT_EXPECT_EQ(test, gt->reg_sr.errors, 0);
        }
 }