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 84405CD6E77 for ; Thu, 4 Jun 2026 18:52:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B81CB11A256; Thu, 4 Jun 2026 18:52:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="b2KHvH6Y"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id E96C511A255; Thu, 4 Jun 2026 18:52:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780599176; x=1812135176; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9V4J+FoVT213VGkNyI9OrxpGl04W7qd2bIPubdgI0oE=; b=b2KHvH6Y0+A1tW/dzanOrPnO7omhegsiJI/vAbeOVh5XhnrhX5Y+qYT/ G+gFypfEXZH4FqOvbcH+a1MSqgKjyL6KIiLfr3KWOoXBhTHb4h5jPjhmi yH7PN+5NK86Rpz4/VBUg3dLv8R4alNzI2WI+npn5T8J8kyNk9jgVyRYJx b8mPmKGArgKU168UaGMILOuWfuHfEwnQDxWJTc97vjpbY5AhNxAeah/tM E3gH6rHGD09RXP/Kd7QQ5630Jq1wvu+D4LIVA2FnxxNU6/5rpW3QNxZLr chwwGd3/xnX/d9i0yKcdR+5/QFLl9qc81aSBkDZ59l3fr5TxwIp8qO6a4 Q==; X-CSE-ConnectionGUID: /K3AD7qxRs6AGFlM3StcgQ== X-CSE-MsgGUID: 4IYsVCgNR2WSK4nlt58vYA== X-IronPort-AV: E=McAfee;i="6800,10657,11807"; a="81467780" X-IronPort-AV: E=Sophos;i="6.24,187,1774335600"; d="scan'208";a="81467780" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2026 11:52:56 -0700 X-CSE-ConnectionGUID: gaVV8JknQ7WpjbxyXaKbbA== X-CSE-MsgGUID: 8xV9yXDwRyOyiUreFb2ieg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,187,1774335600"; d="scan'208";a="240162025" Received: from jraag-z790m-itx-wifi.iind.intel.com ([10.190.239.23]) by fmviesa006.fm.intel.com with ESMTP; 04 Jun 2026 11:52:51 -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 v3 0/4] Introduce error threshold to drm_ras Date: Fri, 5 Jun 2026 00:16:39 +0530 Message-ID: <20260604184849.1011985-1-raag.jadav@intel.com> X-Mailer: git-send-email 2.43.0 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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series reuses some pieces of [1] and 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. [1] https://patchwork.freedesktop.org/series/164393/ 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) 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) Raag Jadav (3): drm/ras: Introduce error threshold drm/xe/ras: Add support for error threshold drm/xe/drm_ras: Wire up error threshold callbacks Riana Tauro (1): drm/xe/xe_ras: Add support for error counter Documentation/gpu/drm-ras.rst | 18 ++ Documentation/netlink/specs/drm_ras.yaml | 32 ++ drivers/gpu/drm/drm_ras.c | 167 ++++++++++ drivers/gpu/drm/drm_ras_nl.c | 27 ++ drivers/gpu/drm/drm_ras_nl.h | 4 + drivers/gpu/drm/xe/xe_device.c | 20 +- drivers/gpu/drm/xe/xe_device_types.h | 2 + drivers/gpu/drm/xe/xe_drm_ras.c | 71 ++++- drivers/gpu/drm/xe/xe_hw_error.c | 13 - drivers/gpu/drm/xe/xe_pci.c | 3 + drivers/gpu/drm/xe/xe_pci_types.h | 1 + drivers/gpu/drm/xe/xe_ras.c | 297 ++++++++++++++++++ drivers/gpu/drm/xe/xe_ras.h | 7 + drivers/gpu/drm/xe/xe_ras_types.h | 102 ++++++ drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 28 ++ drivers/gpu/drm/xe/xe_sysctrl_mailbox.h | 3 + drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 8 + include/drm/drm_ras.h | 29 ++ include/uapi/drm/drm_ras.h | 3 + include/uapi/drm/xe_drm.h | 11 +- 20 files changed, 811 insertions(+), 35 deletions(-) -- 2.43.0