From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56AEFC5DF74 for ; Tue, 18 Aug 2026 13:54:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1472310EB88; Tue, 18 Aug 2026 13:54:19 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Jqas2Nrs"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9DFD810EB88; Tue, 18 Aug 2026 13:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787061257; x=1818597257; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=s1441D8HsT9UML/GZuB17TndmMn0RNZKKvuKVLwvd2M=; b=Jqas2NrsftfntyXWuZKyLIxSc2Y7AvPB78ZJhTULctDWHr3Y61THFgq5 b2MSFgAnmoriO3gF243/SJtWRkveskCS6E9/YNYH7rBgotMiKlggyztQn MiAYgPOSb4E50l6QZMgD00eAz2l2++XjiWBchEzstKcHn9XBbS/b7KpQC NomeR8f85xbt/6al0moCU+Zjm9IsxmMvUUbyOmg2aH+SrE+RIWm1SZ/sZ R0qTTJ5lawO0HY8ZgnbO13wiMirHFBZn3bAlJEPaghftHpjG4iqt53xWL Kn5ulgnaIiXz4ufZIAUi1a8bOEKm6Edl4VJV7evYBrV+k7FnfssjJ85pp g==; X-CSE-ConnectionGUID: aGCz3GjeRQexINFIWtjQkw== X-CSE-MsgGUID: iD10Ifg0Tc6CU92Oyl3L0w== X-IronPort-AV: E=McAfee;i="6800,10657,11878"; a="87315089" X-IronPort-AV: E=Sophos;i="6.25,230,1779174000"; d="scan'208";a="87315089" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2026 06:54:17 -0700 X-CSE-ConnectionGUID: 9I0MNthKSfKNYJrvUI/RUQ== X-CSE-MsgGUID: 23a9bmO7QGmesg9EeFE8wA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,230,1779174000"; d="scan'208";a="261021574" Received: from jraag-z790m-itx-wifi.iind.intel.com ([10.190.239.23]) by fmviesa006.fm.intel.com with ESMTP; 18 Aug 2026 06:54:12 -0700 From: Raag Jadav To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, netdev@vger.kernel.org Cc: simona.vetter@ffwll.ch, airlied@gmail.com, kuba@kernel.org, lijo.lazar@amd.com, Hawking.Zhang@amd.com, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, dev@lankhorst.se, zachary.mckevitt@oss.qualcomm.com, rodrigo.vivi@intel.com, riana.tauro@intel.com, michal.wajdeczko@intel.com, matthew.d.roper@intel.com, mallesh.koujalagi@intel.com, Raag Jadav Subject: [PATCH v6 0/5] Introduce error threshold to drm_ras Date: Tue, 18 Aug 2026 19:22:04 +0530 Message-ID: <20260818135304.497098-1-raag.jadav@intel.com> X-Mailer: git-send-email 2.43.0 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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" This series introduces error threshold to drm_ras infrastructure. This allows user to get and set the error threshold of a specific counter. Detailed description in commit message and documentation. v2: Document threshold definition (Riana) Return -EOPNOTSUPP on threshold callbacks absence (Riana) Cancel and free genlmsg on failure (Riana) Document threshold bounds checking responsibility (Riana) Add RAS operation status codes (Riana) Use goto (Riana) v3: Move documentation from yaml to rst file (Riana) s/value/threshold (Riana) Use goto for error handling (Riana) Reuse status codes and uapi mapping from counter series (Riana) Access request/response counter using local pointer (Riana) Mark unused field as reserved (Riana) Return -ENOENT on info absence (Riana) v4: Clarify 0 threshold expectations (Riana) Drop redundant wrapping (Riana) Make debug logs consistent (Riana) Update kdoc (Riana) v5: Drop redundant documentation (Riana) Aesthetic adjustment (Riana) v6: Check for valid counter Raag Jadav (5): drm/ras: Cancel and free message on get counter failure drm/ras: Introduce error threshold drm/xe/ras: Add support for error threshold drm/xe/drm_ras: Wire up error threshold callbacks drm/xe/sysctrl: Reuse xe_sysctrl_create_command() Documentation/gpu/drm-ras.rst | 18 ++ Documentation/netlink/specs/drm_ras.yaml | 32 ++++ drivers/gpu/drm/drm_ras.c | 175 +++++++++++++++++- drivers/gpu/drm/drm_ras_nl.c | 27 +++ drivers/gpu/drm/drm_ras_nl.h | 4 + drivers/gpu/drm/xe/xe_drm_ras.c | 34 ++++ drivers/gpu/drm/xe/xe_ras.c | 111 +++++++++++ drivers/gpu/drm/xe/xe_ras.h | 2 + drivers/gpu/drm/xe/xe_ras_types.h | 50 +++++ drivers/gpu/drm/xe/xe_sysctrl_event.c | 28 +-- drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 4 + include/drm/drm_ras.h | 29 +++ include/uapi/drm/drm_ras.h | 3 + 13 files changed, 490 insertions(+), 27 deletions(-) -- 2.43.0