From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A115469835 for ; Tue, 18 Aug 2026 13:54:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787061262; cv=none; b=nE8JUo6YIHh/2jf4wzFCl9uOouGO+4cefmlN2r9HW7CJwqUvaGds2tOr53bbQVqLN1MJRp6b0e1fxxyNI9BGGtcFcMWVSvl4DCXUssvP+WwyFaa4k0Meb0WrEN+bvK0faeFG025ZJJ49Gx3qg+qddiAMIyi6t6+p0D1CbbSJ7v4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787061262; c=relaxed/simple; bh=s1441D8HsT9UML/GZuB17TndmMn0RNZKKvuKVLwvd2M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o9dc6nUZefDGdnH1YDn8UmCbSwIOx+fZJXTgbaliajSp9muKUtYlflH1kDkZAF3XOoHs2PZkwXR9tMiKaxEtd7/c/al1igR/f4mtUWaN02xoslkoBiBYujxqbKQbHcBR2jF+4ItQkKqSq8/PtqKGVmbFvd3TrGodeG6zA81SgDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cd554t5T; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cd554t5T" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787061258; x=1818597258; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=s1441D8HsT9UML/GZuB17TndmMn0RNZKKvuKVLwvd2M=; b=cd554t5TO/E7Q61GCShoqB1MVz416rjVRnOAgTiXH/R4nMTKgPawovX8 GFYCLAAeWP5SOgA4dEdvEkgmlEnuKMQzPH19aNg4DTIpVhX5Tny9AHL+C MyRL/5MqgIdgcCozJZJUMZscr1dm46sRNbda3FfDbbmrQnWwu1RJ18hbD wJC4zK8UM28PviJWU98PrRhKMc4zkLO6le9wYZnsd5MPDxmGLjGfxRBmr +782gsJn/sl8Gh+2NBcYNvF204hgjUqOhsyZpjiONosspME1PIPXJac+p leiIwrmFInsJFcL/5AOKwIxbnwJ/zq1T4a14XWMfScIIcl1zQWV8BGhRk g==; X-CSE-ConnectionGUID: lEQNriv6QgaoA87e4hmTTg== X-CSE-MsgGUID: 5VXGmCjMT9S1mTuqpBjWnA== X-IronPort-AV: E=McAfee;i="6800,10657,11878"; a="87315091" X-IronPort-AV: E=Sophos;i="6.25,230,1779174000"; d="scan'208";a="87315091" 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 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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