Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] tests/kms_rmfb: Add check for xe driver
@ 2023-09-22 16:13 Nemesa Garg
  2023-09-22 18:43 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Nemesa Garg @ 2023-09-22 16:13 UTC (permalink / raw)
  To: igt-dev; +Cc: Nemesa Garg

As the xe check is missing the value of open_count
variable is not incrementing and because of this
during drm_close_driver operation based on open_count
value mutex is acquired and there is a callback to
lastclose function.

Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
---
 lib/drmtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index e1da66c87..99b655680 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -649,7 +649,7 @@ int drm_open_driver(int chipset)
 	 * starting a test and we install an exit handler to wait until
 	 * idle before quitting.
 	 */
-	if (is_i915_device(fd)) {
+	if (is_i915_device(fd) || is_xe_device(fd)) {
 		if (__sync_fetch_and_add(&open_count, 1) == 0) {
 			__cancel_work_at_exit(fd);
 			at_exit_drm_fd = drm_reopen_driver(fd);
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-26 12:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-22 16:13 [igt-dev] [PATCH] tests/kms_rmfb: Add check for xe driver Nemesa Garg
2023-09-22 18:43 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-09-22 20:01 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-09-23 21:34 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-09-26 10:26 ` [igt-dev] [PATCH] " Sharma, Swati2
2023-09-26 10:27   ` Sharma, Swati2
2023-09-26 12:02     ` Garg, Nemesa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox