From mboxrd@z Thu Jan 1 00:00:00 1970 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 50429606A31B for ; Tue, 20 Oct 2026 02:37:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Ripl9xH5 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 07CA510E212; Tue, 20 Oct 2026 02:37:29 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id E15FE10E212 for ; Tue, 20 Oct 2026 02:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1792463843; x=1823999843; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mgGCxNdqXVWOL6XkGDE7zGzC4Ery0CkCY1B1Mu+/hqw=; b=Ripl9xH5hRGz2SN4rn2Cl008+77xpITl8AoGg3+e+itfP3RzYwP4cYV1 0bDyGzffcvAfqf2Pumd5BGQNJ18yy2dtfShpc34uP2m9DHWnmeHRBFbmp ZXIZYgSwnIF5q/jyeqM964icna0OmLXxUaZOyqh/M3EYOAEiF0+Q/UpHs UStBSYIjficpb7ZZ8Pvgu+zsobRRHoiM18uUDS7ZSSLAK8xGhEWQifuDu UqGdGheNxHzNZcEqnLFo+zDvXaO6Nno3eVKklleMEt6XRrH7wYrw/6pf2 3a5PIRD+HStEOy3ogFCHnQOYX+k49l6Rf0dSKoF1KTUcofB25DTG2mImT w==; X-CSE-ConnectionGUID: +yXBPAMKSDSZbIyQxdQ/Sg== X-CSE-MsgGUID: H5EuE5sPTSuVH/AXqgvzJw== X-IronPort-AV: E=McAfee;i="6800,10657,11940"; a="1040801" X-IronPort-AV: E=Sophos;i="6.27,168,1787036400"; d="scan'208";a="1040801" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2026 19:37:22 -0700 X-CSE-ConnectionGUID: yypeoYkjQk+RQkzfMcPF7Q== X-CSE-MsgGUID: ZSpSR87DQCmlub5BDp5rCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,168,1787036400"; d="scan'208";a="2648608" Received: from jraag-z790m-itx-wifi.iind.intel.com ([10.190.239.23]) by orviesa005.jf.intel.com with ESMTP; 19 Oct 2026 19:37:19 -0700 From: Raag Jadav To: intel-xe@lists.freedesktop.org Cc: riana.tauro@intel.com, michal.wajdeczko@intel.com, lukasz.laguna@intel.com, matthew.d.roper@intel.com, matthew.brost@intel.com, mallesh.koujalagi@intel.com, rodrigo.vivi@intel.com, Raag Jadav Subject: [PATCH v13 0/9] Introduce xe_wedge Date: Tue, 20 Oct 2026 08:06:00 +0530 Message-ID: <20261020023641.200658-1-raag.jadav@intel.com> X-Mailer: git-send-email 2.43.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 In the history of xe technical debt, this series takes one more step and consolidates all wedging implementation into a dedicated xe_wedge component. While at it, this fixes a few pre-existing issues related to wedge handling. Detailed description in commit message. v1: https://patchwork.freedesktop.org/series/172727/ v2: Split fixes into separate patches (Rodrigo, Michal) Also move struct xe_wedge and wedged_mode debt to xe_wedge (Lukasz, Michal) Naming and aesthetic adjustments (Lukasz, Michal) v3: Respect the component namespace (Rodrigo) Avoid chaining header includes (Rodrigo) Squash debugfs changes with xe_wedge patch (Lukasz) v4: Introduce for_each_initialized_gt() (Michal) Include xe_sriov.h (Rodrigo) v5: Flush GT wedge worker to avoid races (Sashiko) Drop IRQ safe wedging for its flawed design v6: Move wedge worker initialization to xe_gt_init_early() (Rodrigo) Don't flush GT wedge worker to avoid deadlock (Sashiko) Include IRQ safe wedging with redesign v7: Guard GT wedge worker with runtime PM (Rodrigo) Retain xe_pm_runtime_get_noresume() in IRQ context (Rodrigo) v8: Rebase v9: Drop runtime PM guard from GT wedge worker (Matthew Brost) v10: Guard wedge callers with runtime PM (Sashiko) v11: Use traditional xe_pm_runtime_get/put() with goto (Sashiko) v12: Teardown GT wedge worker alongside GT reset worker (Sashiko) v13: Avoid deadlock with GuC CT waiters (Sashiko) Raag Jadav (9): drm/xe/gt: Use GT ordered workqueue for wedging drm/xe: Drop xe_device_set_wedged_method() drm/xe/hw_error: Guard csc_hw_error_work() with runtime PM drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early() drm/xe: Make xe_device_declare_wedged() IRQ safe drm/xe/pci_error: Flush GT wedge worker before bus reset drm/xe/amc: Guard xe_amc_work() with runtime PM drm/xe: Introduce xe_wedge drm/xe/ras: Move xe_ras_process_errors() to xe_ras Documentation/gpu/xe/xe_device.rst | 2 +- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/tests/xe_kunit_helpers.c | 3 +- drivers/gpu/drm/xe/xe_amc.c | 11 +- drivers/gpu/drm/xe/xe_bo.c | 3 +- drivers/gpu/drm/xe/xe_debugfs.c | 66 +---- drivers/gpu/drm/xe/xe_device.c | 190 +------------- drivers/gpu/drm/xe/xe_device.h | 14 +- drivers/gpu/drm/xe/xe_device_types.h | 28 +-- drivers/gpu/drm/xe/xe_gsc.c | 4 +- drivers/gpu/drm/xe/xe_gt.c | 48 +++- drivers/gpu/drm/xe/xe_gt.h | 2 +- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 3 +- drivers/gpu/drm/xe/xe_gt_types.h | 9 + drivers/gpu/drm/xe/xe_guc.c | 5 +- drivers/gpu/drm/xe/xe_guc.h | 2 +- drivers/gpu/drm/xe/xe_guc_ct.c | 7 +- drivers/gpu/drm/xe/xe_guc_pc.c | 11 +- drivers/gpu/drm/xe/xe_guc_rc.c | 5 +- drivers/gpu/drm/xe/xe_guc_submit.c | 14 +- drivers/gpu/drm/xe/xe_guc_tlb_inval.c | 3 +- drivers/gpu/drm/xe/xe_hw_error.c | 2 + drivers/gpu/drm/xe/xe_mert.c | 5 +- drivers/gpu/drm/xe/xe_pci_error.c | 13 +- drivers/gpu/drm/xe/xe_ras.c | 11 +- drivers/gpu/drm/xe/xe_sriov_pf.c | 3 +- drivers/gpu/drm/xe/xe_survivability_mode.c | 4 +- drivers/gpu/drm/xe/xe_uc.c | 6 +- drivers/gpu/drm/xe/xe_uc.h | 2 +- drivers/gpu/drm/xe/xe_wedge.c | 262 ++++++++++++++++++++ drivers/gpu/drm/xe/xe_wedge.h | 24 ++ drivers/gpu/drm/xe/xe_wedge_types.h | 44 ++++ 32 files changed, 468 insertions(+), 339 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_wedge.c create mode 100644 drivers/gpu/drm/xe/xe_wedge.h create mode 100644 drivers/gpu/drm/xe/xe_wedge_types.h -- 2.43.0