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 C7FE4C43458 for ; Mon, 6 Jul 2026 16:53:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 84F8410E9E8; Mon, 6 Jul 2026 16:53:12 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="XfX4Jpq2"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74C6E10E9E8 for ; Mon, 6 Jul 2026 16:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1783356792; x=1814892792; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JHREw7ii2H3VFvFqRrgmKzextDM5bIQC7cCLQuI2Las=; b=XfX4Jpq20iRbQTjs+YH5r+cx0xVmg8GETCyOHwDDlk0RDEZoztvFi0Xi 0iAta7iMEF2VjZO645LqRu/Sas+dRFacCS0ASoJ/ESDXCRCyFzUXkcCgu xTdAqz8zf+JaZ6ao9QMX7I2IVCczkl6J2Q4LJ67p3rMEI4OkBDfB45bt+ e3y4WtuKMAkysGcBcjj/Q5uRZ0m31FbTedJOJqTOfBc0OwdRZIZaq4kjj 0ZO+Iz6Y3ltSvjxaemnfC/4F4WkSREp+Me3AbqUGSINSgCIlxGlqM9rLv 6/o3rFkep+6v8ystwY+MkaMnXACDVSWVtkLjjhUyUNU69NQ6j1TPSKW+b g==; X-CSE-ConnectionGUID: NFGAwJNHStOpVLNWRnxvHA== X-CSE-MsgGUID: cvN4JMgITSSTJ/RbUNpYtQ== X-IronPort-AV: E=McAfee;i="6800,10657,11838"; a="84022008" X-IronPort-AV: E=Sophos;i="6.25,151,1779174000"; d="scan'208";a="84022008" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2026 09:53:11 -0700 X-CSE-ConnectionGUID: zgzTrbUsRGyy3QSG8u75fw== X-CSE-MsgGUID: 2XJCvoAaSqyzau6GxpN8qw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,151,1779174000"; d="scan'208";a="247372613" Received: from psoham-ms-7e03.iind.intel.com ([10.223.55.64]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2026 09:53:07 -0700 From: Soham Purkait To: intel-xe@lists.freedesktop.org, riana.tauro@intel.com, anshuman.gupta@intel.com, aravind.iddamsetty@linux.intel.com, badal.nilawar@intel.com, raag.jadav@intel.com, ravi.kishore.koppuravuri@intel.com, mallesh.koujalagi@intel.com, andi.shyti@intel.com, rodrigo.vivi@intel.com Cc: soham.purkait@intel.com, anoop.c.vijay@intel.com Subject: [PATCH v6 0/1] drm/xe: Add support for GPU health indicator Date: Mon, 6 Jul 2026 22:22:08 +0530 Message-ID: <20260706165207.3773469-3-soham.purkait@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" GPUs commonly rely on various reactive health monitoring approaches. The Xe GPU health indicator is intended to fit into such reactive monitoring flows, where it could be used by management tools to fetch and update GPU health status. This patch adds Xe GPU health indicator support as a RAS feature. It introduces the health command IDs and request/response structures used by the System Controller mailbox, and integrates the feature into Xe through the gpu_health sysfs interface. The sysfs file, gpu_health, is created at the device level and provides a simple interface for observing and updating the reported GPU health state. It is exposed as read-only for non admin users while write access is only provided to the admin users. The sysfs file (gpu_health) is placed at the device level and behaves as follows: $ cat /sys/.../device/gpu_health ok $ echo critical > /sys/.../device/gpu_health $ cat /sys/.../device/gpu_health critical Userspace consumer (Level Zero Sysman): https://github.com/intel/compute-runtime/commit/3d974c6d9b65bede475c118e582761670ef110d2 Soham Purkait (1): drm/xe/xe_ras: Add RAS GPU health indicator .../ABI/testing/sysfs-driver-intel-xe-ras | 30 ++++ Documentation/gpu/xe/xe_device.rst | 9 + drivers/gpu/drm/xe/xe_ras.c | 157 ++++++++++++++++++ drivers/gpu/drm/xe/xe_ras_types.h | 57 +++++++ drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 4 + 5 files changed, 257 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-intel-xe-ras -- 2.43.0