🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8697

[PATCH v2 0/3] Extend drm_ras for qaic telemetry

#8697
From: Zack McKevitt
Date: Thu, 29 Oct 2026 20:29
62 lines
14305 bytes
This patch series extends the drm_ras netlink interface to include a new
node type for telemetry nodes. Telemetry nodes support two operations,
getting and setting, and drivers may specify an optional predoit function
to validate each operation.

Telemetry get 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 set 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.

Changes in v2:
 - Address Sashiko comments:
    - Initialize certain stack variables in drm_ras.c.
    - Added attribute guards (GENL_REQ_ATTR_CHECK) in telemetry doits.
    - Added a valid node check in drm_ras_nl_pre_telemetry.
    - Fixed improper node callback in telemetry_set.
    - Now registering drm_ras node after MHI initialization.
    - Now removing drm_ras node before freeing MHI controller.
    - Added scoped_with_init_fs guard to qaic_telemetry_pre's inode check.
    - Fixed improper kfree in qaic_drm_ras_register_node.
- Changed telemetry value attribute to sint and dropped padding attribute.
- Updated documentation in drm_ras.yaml.
- Renamed telemetry read/write to get/set.
- Added dumpit for gettable and settable telemetry values.
- Made telemetry_set optional and added admin-perm for it.
- Specified ynl file regeneration in commit message for patch 2.

Link to v1: https://lore.kernel.org/all/20261009173152.2436195-1-zachary.mckevitt@oss.qualcomm.com/

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 |  83 +++-
 drivers/accel/qaic/Makefile              |   1 +
 drivers/accel/qaic/qaic.h                |  19 +
 drivers/accel/qaic/qaic_drv.c            |  22 +
 drivers/accel/qaic/qaic_telemetry.c      | 513 +++++++++++++++++++++++
 drivers/accel/qaic/qaic_telemetry.h      |  18 +
 drivers/gpu/drm/drm_ras.c                | 310 +++++++++++++-
 drivers/gpu/drm/drm_ras_nl.c             |  55 ++-
 drivers/gpu/drm/drm_ras_nl.h             |   9 +
 include/drm/drm_ras.h                    |  57 +++
 include/uapi/drm/drm_ras.h               |  19 +-
 include/uapi/drm/qaic_accel.h            |  28 ++
 12 files changed, 1117 insertions(+), 17 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: <20261029203000.1763447-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-353468-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-353468-linux-kernel-netdev=dewy.ru
From: zachary.mckevitt@oss.qualcomm.com (Zack McKevitt)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v2 0/3] Extend drm_ras for qaic telemetry
Date: Thu, 29 Oct 2026 13:29:57 -0700
Organization: Usenet Network
Message-ID: <20261029203000.1763447-1-zachary.mckevitt@oss.qualcomm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2092813"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:XiqLjEmr5IbMcwo+ie/Ec/U4D/A= sha256:qES4kCCCQiJQY2f/Rw1axMLDsTIzgOIFfCZxQX15TC8=
	sha1:eCAm+rhlBJuEydBTN6xZqSIfrsQ= sha256:yyLgM5JRq+/JgtJe+eBH4yk/pMQukMyh0j7MdWGQXFs=
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 3E636125C74; Thu, 29 Oct 2026 23:31:05 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.949
X-Spam-Status: No, score=-2.949 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.25, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=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 OmjyYiU-SO24;
	Thu, 29 Oct 2026 23:30:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353468-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (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 1822C125C72; Thu, 29 Oct 2026 23:30:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 995FA280DE; Thu, 29 Oct 2026 20:30:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793305829;
	b=LLUVGhmbor0W6tpL7qp/8la6um9qeUQaU8io21JfT+8yYqg9XesbwkYVDGJZLi73mXCH
	 3m4KtouJaLP8nQuQri76CuSQZ39TfL+ovUVD7GNTcmzy7/K3rhToH2muPS0FuGEoEJN2C
	 IDbwgZPbY6ckJkUrOzmgz2gpXw1QZgb3ViZ+tclxUcF3l6ASUytwJ1Kin5MljL64ccgWl
	 Oy3efhvUPRLHA7WAESe+d63h3FIYzdPYGYtuw2Wb9V8rXGH8mbJO9JMvaS+I7kzAEQC/D
	 8BLhEJKRiw3eq9kAz71Fm8ZaC0Tv8+ROYojj3BzyxUGL4cgAbBX5dE472nUA3TEb2ug==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793305829;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
	 Received:Received:Received:From:To:Cc:Subject:Date:Message-ID:
	 X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:X-Proofpoint-Reinject:X-QCInternal:
	 X-QCInternal:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:
	 X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc:
	 X-Authority-Analysis:X-Proofpoint-Virus-Version:
	 X-Proofpoint-Spam-Details;
	bh=lJlWwCF0XyB1DfxVENHzWSKFDxTRp/SQUcI9eHBpAR8=;
	b=om0TqRnz5Rxcp+pWKUHpabze+0Dn6XemhaChye2aqJ9fivSRuwgg85dZkRd5QjMluz6d
	 Ln/0ltTJFN6OxZgZKzSYu5zzqy9D4b6Or1y3rGdQMYrFFmuGf6fUzu8runqGKIESiaCrN
	 UiJa5T+k+7hKETp6GqnCgHVPTG1X0LwhwLATt4BETqEnSRvLG77tvsWaG7/t4zj/eN+EZ
	 eb/WMd8w3ttg8z/tDljO4m4YDL0kc7IVtYvBLVX9ogFw1Ljh6rqR2cXT5D/Ft2s257TFX
	 DQpSEXhWVCQhkcAevVMLRj+JALszU8wG0emQykD0Oue+HXeWX19UyOBnmuWCbXTpX4A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=UaBr6ipL;
	dmarc=pass header.from=oss.qualcomm.com;
	spf=pass smtp.mailfrom=qualcomm.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7004A606A324;
	Thu, 29 Oct 2026 20:30:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=UaBr6ipL
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793305828;
	b=cM5L0AtiC27Ke4BclwObyzBw/Fwh2SrD/ZF19btKwoT/7XNt4hPAIidAZIwu9u2HfV15
	 dRjd0fJ2+1Uz2ly7toroXolKq60S7NXoxZDcot5URzeOtf8f7/VnoRyWH7Cv38AlSOVii
	 ih1lI/sZO5BukXrU/Ae+sXWe8fvqRYJy8Hp/MPrx3hz/ojDeJGiOpvrZB//wBYjFFJrAL
	 KlBM0a9NS0L9WbEkvEqLWiSN9qwvQTydLoyQ6QT3McYh2eNuaXdn0ApbsIPmyssuxoSq9
	 8iIzJTiVFr78MXfKe/O1ac3UfnoY2UtNzSnRxlArCpguA1KCEGrg2XNRPQSHe69e8qw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793305828;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version:
	 Content-Transfer-Encoding:X-Proofpoint-Reinject:X-QCInternal:
	 X-QCInternal:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:
	 X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc:
	 X-Authority-Analysis:X-Proofpoint-Virus-Version:
	 X-Proofpoint-Spam-Details;
	bh=lJlWwCF0XyB1DfxVENHzWSKFDxTRp/SQUcI9eHBpAR8=;
	b=Phb8DYP/n7MuEkf+98HzqM8xTXMSoDTH7KEBz6fppuC+dnQ2inOo+fxoXgPyR9B8Jmnf
	 izV/svu8EocWssYmrMT83l0dRQ6BKuzOcNkdwERGJAh5gbdI2qguAo3CENt0jivj9fnzM
	 +lD8P82W/a34+KSa1b+j+2FKh+RIuagDomEY+wWfe286GZeVTpGvqqQzrULIXIzSGqeZa
	 0aXUvNymOIG92/L5ohsg0FByx5bGjVywXe/A3h2i4GRpKNfdDO/B4mzE/Gb0kt6LquCZS
	 Vlof/NTt4zmV1BXaxsAKFL33p1JLpoSG5qz4C4sg6CzoMMTX/k96EcsF4hVD18KLbfw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=oss.qualcomm.com;
	spf=pass smtp.mailfrom=qualcomm.com;
	dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=UaBr6ipL;
	arc=none smtp.remote-ip=205.220.168.131
X-Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20DBF606A31D
	for <netdev@vger.kernel.org>; Thu, 29 Oct 2026 20:30:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 20DBF606A31D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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 (m0279862.ppops.net [127.0.0.1])
	by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69TJk3fB532607;
	Thu, 29 Oct 2026 20:30:15 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=lJlWwCF0XyB1DfxVENHzWSKFDxTRp/SQUcI
	9eHBpAR8=; b=UaBr6ipLGXxkBcxhaZdJJVzVLk7vqU4pui1vGmv0i2TsOJ7AXjU
	MnH6NpR6o3QAnKxfOQaawJ2cQH4z8TuU+za0hqIci5HHi0ORdCKOHVfdcbxmwGHH
	WoW4NI0Oo/zhYJo/3GRShIexpiqKjEzHOyQunz8PSmc1AuK3U45/5vScwBnP32aF
	VsOSP71FvrBb9HkzTYhfH38961gWArYDv2r8YJ3Rp5M/ck0iIj/sNRZNwFD9DR4n
	byUNoRV/ZeYMwjxqJtxmGxGFKr6vlZQVLJ3L2OJCu7l4ggzO909o20AvfQAurQ+a
	f0vxm+YdsvxcEzX1LiAzVHBIXzVtXHqxpYg==
X-Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20])
	by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hmac0rwsy-1
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
	Thu, 29 Oct 2026 20:30:15 +0000 (GMT)
X-Received: from pps.filterd (nalasppmta03.qualcomm.com [127.0.0.1])
	by NALASPPMTA03.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 69TKUEZs2780797;
	Thu, 29 Oct 2026 20:30:14 GMT
X-Received: from hu-devc-lv-u24-a.qualcomm.com (hu-zmckevit-lv.qualcomm.com [10.81.84.220])
	by NALASPPMTA03.qualcomm.com (PPS) with ESMTPS id 69TKUD9D2780768
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
	Thu, 29 Oct 2026 20:30:14 +0000 (GMT)
X-Received: by hu-devc-lv-u24-a.qualcomm.com (Postfix, from userid 4696302)
	id CC21122A85; Thu, 29 Oct 2026 13:30:13 -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-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Proofpoint-Reinject: loops=2 maxloops=12
X-QCInternal: smtphost
X-QCInternal: smtphost
X-Proofpoint-ORIG-GUID: rIOgIKG7ivi_7Ywg7B2TbNtlZ2ckagrH
X-Proofpoint-GUID: rIOgIKG7ivi_7Ywg7B2TbNtlZ2ckagrH
X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA4MCBTYWx0ZWRfX9vNzxuI7iuJp
 nFjkjwnfO6wx8I+5SUv2fmeK300fbXWkZ2zMjSnZ92ELJYAWV0Kcpj03ssEzLNIaOL4L5PkZoko
 2idE5GHB7+JPgjfqnvo0Vy5WMnVIRzI=
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA4MCBTYWx0ZWRfXyU3oXZibil58
 y6jBqve+tHZ7bLrvNv/LHgGk05VDnQ75Fhtgn9kugbWPMi30NYdA5emex9dfHS4fbhjhmhOpOJT
 eFA3aY9+CQUOe5tZ7zAZGVdFune8sDPCiDkvuFcfgfgAlieIx0nFyA8xs5kxmM6ajhfuJ+ezwQi
 YYIFZGuhxo6yzBtGs5c7zO/yIrmAmCvtNE+QpscxOU67z0OVAmksH0Ggfxtm0GtW94NiYkeElXB
 Shs8FZR+JJ62rmqGzMhOsDdwcoh0hLBO3uMPSCkdOCMfOBN6EsDRijIroB3wfGrnBFV04vtZE+4
 cPnWZOoYmkjbZtblSHOnBI97k2fUOymlBpwhFWhm2MquwEZmbUl63u/uR6hLZVsFQdxADgXaqiA
 QsEgyjaAhvML0GKjEFH8fiN8W34f49ZWchuPTgoQJpcZXcq9uYMSglsPqyeE431csWT7fbSOw5Q
 Hh9/s/N9NX/x08qLC9Q==
X-Authority-Analysis: v=2.4 cv=I6/w19gg c=1 sm=1 tr=0 ts=6ae3acd7 cx=c_pps
 a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17
 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22
 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8
 a=KPAaMepPZ1nUKEOFJYwA:9
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49
 definitions=2026-10-29_06,2026-10-21_02,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015
 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0
 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290080