🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1406

[PATCH 0/3] Extend drm_ras for qaic telemetry

#1406
From: Zack McKevitt
Date: Fri, 09 Oct 2026 17:31
42 lines
10177 bytes
This patch series extends the drm_ras netlink interface to include a new
node type for telemetry nodes. Telemetry nodes support two operations,
reading and writing, and drivers may specify an optional predoit function
to validate each operation.

Telemetry read operations take the drm_ras node id and telemetry field to
be read and return the field's value and any status reported by the driver.
Telemetry write operations take the node id, telemetry field, and value,
and return only the status reported by the driver.

This extension removes the admin requirement on the list-nodes operation.
This allows drm_ras nodes to be discovered by userspace programs for drivers
that do not necessarily require admin privileges, like qaic.

The new drm_ras telemetry interface is implemented by the qaic driver, which
exposes the telemetry fields to userspace and enforces filesystem-esque
permission checks on telemetry operations in its telemetry_pre callback.

Zack McKevitt (3):
  drm/drm_ras: Remove admin-perm flag from list-nodes operation
  drm/drm_ras: Extend DRM RAS interface to include telemetry nodes
  accel/qaic: Add callbacks for DRM RAS netlink telemetry

 Documentation/netlink/specs/drm_ras.yaml |  56 ++-
 drivers/accel/qaic/Makefile              |   1 +
 drivers/accel/qaic/qaic.h                |  19 +
 drivers/accel/qaic/qaic_drv.c            |  19 +
 drivers/accel/qaic/qaic_telemetry.c      | 463 +++++++++++++++++++++++
 drivers/accel/qaic/qaic_telemetry.h      |  18 +
 drivers/gpu/drm/drm_ras.c                | 193 +++++++++-
 drivers/gpu/drm/drm_ras_nl.c             |  31 +-
 drivers/gpu/drm/drm_ras_nl.h             |   6 +
 include/drm/drm_ras.h                    |  39 ++
 include/uapi/drm/drm_ras.h               |  14 +
 include/uapi/drm/qaic_accel.h            |  28 ++
 12 files changed, 876 insertions(+), 11 deletions(-)
 create mode 100644 drivers/accel/qaic/qaic_telemetry.c
 create mode 100644 drivers/accel/qaic/qaic_telemetry.h

-- 
2.43.0
Technical Details
Message-ID: <20261009173152.2436195-1-zachary.mckevitt@oss.qualcomm.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343843-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343843-linux-kernel-netdev=dewy.ru
From: zachary.mckevitt@oss.qualcomm.com (Zack McKevitt)
Newsgroups: linux.kernel.netdev
Subject: [PATCH 0/3] Extend drm_ras for qaic telemetry
Date: Fri,  9 Oct 2026 10:31:49 -0700
Organization: Usenet Network
Message-ID: <20261009173152.2436195-1-zachary.mckevitt@oss.qualcomm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1158740"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:HZabmy4WirjEYl1cdudZkK7la2A= sha256:UWyYUX/27N07yQdGAHHM51CNFyBrr4vWpCALF/i3YXc=
	sha1:F5az/QLI3ZaK+mnEVATGzZgqZJE= sha256:J95UZYqKJu7iOaXIfN24+ipPshx98Dge+0nldeN2+QA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id A054710F765; Fri,  9 Oct 2026 20:36:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.651
X-Spam-Status: No, score=-0.651 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=qualcomm.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id tP-qOgZOwQFg;
	Fri,  9 Oct 2026 20:36:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-343843-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=oss.qualcomm.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 7638910F6C8; Fri,  9 Oct 2026 20:36:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 377613CF22; Fri,  9 Oct 2026 17:35:58 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DDE34718FA;
	Fri,  9 Oct 2026 17:35:57 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="MMVaN8Cz"
X-Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131])
	(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 47F603CFF51
	for <netdev@vger.kernel.org>; Fri,  9 Oct 2026 17:35:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791567357; cv=none; b=g5a/8DP0UTg0TmUv3fbavO/17GY+YtC59KAmlzzGyQJJhaw0azxyoECLwjq8aacG7itDsnphXWUukXIk79VE/kussh2R7qIlaWa6tnm5awn3ZbOX9Ot4+oO0SpFdND2ealy5u27fpQUFlxnXhUvvz+dywiGtnVWzG+UHYqPAfyE=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791567357; c=relaxed/simple;
	bh=L8DsMriT0Wc09v+zdO7gKKiSgHLIOb6SWdNfnDjDxYk=;
	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BMEroOGNrrORwhX9lsnsW9Ob1libIdFXoJF2+sKDaqAcqch/bSQCCRKF+RIhshfRvV9Ext880mjwRuURuPgjjVIzxrYsB/Yvhn7KnwJT7W+CjMz32L3bzDC4A0P5yjben+JOvkY8Q7RJPyRkDaDe1ahI5dL1PvhbRs4A7iwjpco=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=MMVaN8Cz; arc=none smtp.client-ip=205.220.168.131
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com
X-Received: from pps.filterd (m0279866.ppops.net [127.0.0.1])
	by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 699HZSPL1620332;
	Fri, 9 Oct 2026 17:35:49 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
	cc:content-transfer-encoding:date:from:message-id:mime-version
	:subject:to; s=qcppdkim1; bh=hfDRbIVDvoyy72MmzalTRQ8ok3oTjReeawC
	AV4tNXco=; b=MMVaN8Cz38skAZCJDyufjg0bIWxiggCwfHgZ/TBm59lcgEDWCgN
	6PaZ53kd56Ljn0i6mXcOhxcHY8k1bTF2gL/EALKfjt9COPF4YyQixDl+6CzHGRom
	omswCdtNBdkTkancYh5nV+DMuQ9Ugwedi50yN3Evv7pWhsPdGC9U1UqPdi0JsT6A
	gmzlOZXMXhlA7da5LqrrEc4bCGSAymrt3DAJmHuKyVB7PdpwYolyxWVaCUjr+CKj
	dY6++Pk8StxAZ0NVSSLWQGq+TVR3reXiGi7XYgpVCN7cxN28rN5CZo2hb3ox9TwC
	b3FpmjQ8wxbz20iHWL/Dmva7l+0Z8U/vEnQ==
X-Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20])
	by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h74t7002b-1
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
	Fri, 09 Oct 2026 17:35:49 +0000 (GMT)
X-Received: from pps.filterd (nalasppmta04.qualcomm.com [127.0.0.1])
	by NALASPPMTA04.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 699HUmQA1186375;
	Fri, 9 Oct 2026 17:35:10 GMT
X-Received: from hu-devc-lv-u24-a.qualcomm.com (hu-zmckevit-lv.qualcomm.com [10.81.84.220])
	by NALASPPMTA04.qualcomm.com (PPS) with ESMTPS id 699HZ9511192880
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
	Fri, 09 Oct 2026 17:35:09 +0000 (GMT)
X-Received: by hu-devc-lv-u24-a.qualcomm.com (Postfix, from userid 4696302)
	id BB4BB221BD; Fri,  9 Oct 2026 10:35:09 -0700 (PDT)
X-Cc: jeff.hugo@oss.qualcomm.com, carl.vanderlip@oss.qualcomm.com,
        troy.hanson@oss.qualcomm.com, youssef.abdulrahman@oss.qualcomm.com,
        Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
X-Mailer: git-send-email 2.43.0
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-Proofpoint-Reinject: loops=2 maxloops=12
X-QCInternal: smtphost
X-QCInternal: smtphost
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDA5MDA3MCBTYWx0ZWRfX/vPqdDC9RrN/
 YtuNnMM98AQZBX1U6u39OY6RgWW5usIu/7lt6Mnxzm0y8SvzZdkzxGsxUEnZIgOv8C2IGfjR7Jv
 SJmimbpa2EDqBOnScLz+IswWDqDvLxsTDsG3u1AzbwgtzpiQ8arul0RtPWdjPxgNoyjIVrrSveg
 L73CC9PZ9fobdTvTXdGoLLUvzdmU1/5xfdVBwbibX2NxzD5sdeoLHX/6zIzBIQwNw/WJnmDW+M+
 Q7MMNu+Ab/GzQQyLvImsAB2YY1M5ooV2xbMYNGT7LGHpA6GtV/GDSiI4oBwH7AfzM0qJ1u11khy
 GBKUMG24gkz0T2y4H9H8ygtJQKPbOfDYeIs7HBTcpbsOFiGoYdrPi+eqOXDpuEEYYl9YfPPGro5
 XKcwag/BPvgzAq4KdQCh8K6+q2Oy8VTJbEVf88x8GnmhEGKaCA3YKK3u0unufFWQUxtF5k4m3SH
 WQZzm7lYTeu52+nmK8A==
X-Authority-Analysis: v=2.4 cv=Zt94uN7G c=1 sm=1 tr=0 ts=6ac925f5 cx=c_pps
 a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17
 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22
 a=YMgV9FUhrdKAYTUUvYB2:22 a=LHmS43p_Y2w_anzHtZ0A:9
X-Proofpoint-Spam-Info: AW1haW4tMjYxMDA5MDA3MCBTYWx0ZWRfX81FtWbv8fKB4
 x4YscIEG1o9HvOv4hGBPKk74G+shYBPgwJwdUs7jXzKQoJPjcS14la6ZEjYZ53DC/C0kAUpBA07
 2670eHg9pUPvlMx4SAmYkFy4mUcDjyI=
X-Proofpoint-GUID: w3hP71m5MYF2kiH-kIJKpRVWnhDhNv-O
X-Proofpoint-ORIG-GUID: w3hP71m5MYF2kiH-kIJKpRVWnhDhNv-O
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49
 definitions=2026-10-09_05,2026-10-09_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 malwarescore=0 bulkscore=0 priorityscore=1501 impostorscore=0 clxscore=1011
 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0
 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610090070