Article View: linux.kernel.netdev
Article #1405[PATCH 1/3] drm/drm_ras: Remove admin-perm flag from list-nodes operation
From: Zack McKevitt
Date: Fri, 09 Oct 2026 17:31
Date: Fri, 09 Oct 2026 17:31
44 lines
10061 bytes
10061 bytes
Drivers may want to avoid requiring CAP_NET_ADMIN for subsequent
drm-ras operations. However, userspace must still be able to access
the list of RAS nodes to determine the node IDs. So, drop the
CAP_NET_ADMIN requirement for dumping RAS nodes so that drivers
with different permission requirements are still able to use the
interface.
This prepares the interface to be used for telemetry by the qaic
driver.
Signed-off-by: Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
---
Documentation/netlink/specs/drm_ras.yaml | 1 -
drivers/gpu/drm/drm_ras_nl.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/netlink/specs/drm_ras.yaml b/Documentation/netlink/specs/drm_ras.yaml
index 4c2ac9a1ba3f..a88fdab7a1c7 100644
--- a/Documentation/netlink/specs/drm_ras.yaml
+++ b/Documentation/netlink/specs/drm_ras.yaml
@@ -112,7 +112,6 @@ operations:
the node IDs. These IDs are required for all subsequent
operations on nodes, such as querying error counters.
attribute-set: node-attrs
- flags: [admin-perm]
dump:
reply:
attributes:
diff --git a/drivers/gpu/drm/drm_ras_nl.c b/drivers/gpu/drm/drm_ras_nl.c
index c9f5e0ceb3b5..ff0dc406c27c 100644
--- a/drivers/gpu/drm/drm_ras_nl.c
+++ b/drivers/gpu/drm/drm_ras_nl.c
@@ -46,7 +46,7 @@ static const struct genl_split_ops drm_ras_nl_ops[] = {
{
.cmd = DRM_RAS_CMD_LIST_NODES,
.dumpit = drm_ras_nl_list_nodes_dumpit,
- .flags = GENL_ADMIN_PERM | GENL_CMD_CAP_DUMP,
+ .flags = GENL_CMD_CAP_DUMP,
},
{
.cmd = DRM_RAS_CMD_GET_ERROR_COUNTER,
--
2.43.0
Technical Details
Message-ID:
<20261009173152.2436195-2-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-343842-linux-kernel-netdev=dewy.ruReferences:
<20261009173152.2436195-1-zachary.mckevitt@oss.qualcomm.com>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-343842-linux-kernel-netdev=dewy.ru
From: zachary.mckevitt@oss.qualcomm.com (Zack McKevitt)
Newsgroups: linux.kernel.netdev
Subject: [PATCH 1/3] drm/drm_ras: Remove admin-perm flag from list-nodes operation
Date: Fri, 9 Oct 2026 10:31:50 -0700
Organization: Usenet Network
Message-ID: <20261009173152.2436195-2-zachary.mckevitt@oss.qualcomm.com>
References: <20261009173152.2436195-1-zachary.mckevitt@oss.qualcomm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1158603"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ZzGQRt2Pi2w6GSGYx6HRl2wCjHU= sha256:UJm3zRot8v4Yv79SUHsobEFehNvmZpqcxOyWWBgWefQ=
sha1:XYlnIdQBv3NhfQX+bnBPK7+77IA= sha256:VXWTAmZ6OOICC+RioB2NwewfomCuMti8HHklCCtGBLU=
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 8211610F6C8; Fri, 9 Oct 2026 20:36:04 +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 rZRG6mAW_JZ3;
Fri, 9 Oct 2026 20:36:01 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-343842-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id B86AA10F73B; Fri, 9 Oct 2026 20:35:56 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 0D3DB31B12; Fri, 9 Oct 2026 17:35:55 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 45B863EB7E9;
Fri, 9 Oct 2026 17:35:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="SU9cqWEO"
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 128B53D1A82
for <netdev@vger.kernel.org>; Fri, 9 Oct 2026 17:35:52 +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=1791567354; cv=none; b=ZIAAQ3q2RwtJYiqU9un4pGyc2fOzTv5oF/QOfS9u7f+cEc4j36iejK+MIoByT2laPFh6Rr+m3rY1zC0PPyD8tuJv1W3rXi1UIbImKXsIR1DLFjKWp2FQWY/Qro3TZeZuNxkDQGpbVTYElSZGRVmI5rQF/RTo17x1hRqMdNzUGps=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791567354; c=relaxed/simple;
bh=gW/Td4Wa5cSM40tjMjOLPYFrT5jUvCsiVJ5ZLl1cjaI=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version; b=YqVfqTEBpigj293JWqRLtewqfwgxPrXA0lrLXJEz92L/Vr0iKF3QAzvHVUI1LwmgfNo8hiEXpKVrjsBqlaAzYdoa8nqD9qZ0/lqx4K90Q/QjEQIgTBAT6rzpXoO39t6lzob01os5hXVfPN7YIcAUnT/WrZCH6Q3ykyUr5tJyY+A=
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=SU9cqWEO; 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 (m0279864.ppops.net [127.0.0.1])
by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 699HZVuI1016047;
Fri, 9 Oct 2026 17:35:43 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
cc:content-transfer-encoding:date:from:in-reply-to:message-id
:mime-version:references:subject:to; s=qcppdkim1; bh=8ph89gh2mD/
bMPt6f2nHN70n+MOTT6spwmNgWcpdkG0=; b=SU9cqWEOzPcrQcT/dUW97hO6Zwj
50l/b4IuQA1tJqrsmOe52Nrx/OO6WRFKjH1/p3k7vwF1VuHUBlMRku43iD8GO/Ec
7F6MT+s03joDP0UU9Vuc+ZBEmRXhbhZEOS/8HEja4sFEaZ4EA9alXpJYihVf6FGs
GDoC3JQU2H8iEc4BgN61NNasf2qvkHpB5CiALbYgwl6dyQeeZoycmcMdV03oCJbx
dcFn/07QGXwe+F5KudNdxhlEGszyTPeLZzz5++Uhspzta0J0cCwpBjTHBRZsPcdU
HbkqEHu6bfLmgRAw/pUIdoiG1+hjNQWrzbOF3AZvtccDYBnK7uUkt6Z8AeA==
X-Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20])
by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h74t8800y-1
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 09 Oct 2026 17:35:43 +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 699HZAhq1107220;
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 NALASPPMTA03.qualcomm.com (PPS) with ESMTPS id 699HZ98f1107203
(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 BF71D2222F; 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-In-Reply-To: <20261009173152.2436195-1-zachary.mckevitt@oss.qualcomm.com>
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-ORIG-GUID: i0MkeIiNjuJJjc6ilVwxMm7jP5hqSrKx
X-Proofpoint-GUID: i0MkeIiNjuJJjc6ilVwxMm7jP5hqSrKx
X-Proofpoint-Spam-Info: AW1haW4tMjYxMDA5MDA3MCBTYWx0ZWRfX8mp7Gar8F3Ni
SwI2N1Z5SO0OC2ufdEsn0p3bkVXTqfgXiD7ZpQpxXjQHEIt+u5KXVwYiF2cZMrFAAzKRyodU0KG
dRo8xKVdHJIychUm+HoGreS4YwCvr8k=
X-Authority-Analysis: v=2.4 cv=JuNkP84C c=1 sm=1 tr=0 ts=6ac925ef cx=c_pps
a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17
a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22
a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=CU0-bA9xmp4BjaDge1wA:9
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDA5MDA3MCBTYWx0ZWRfX6LFgAmW++LBa
OshXmG51GGdF4bH5ua0BbzUKirgtRlEJJdaRtna0HEvuzzgpTJeQIWd95VRth4wTGxZ6j+gs3WY
dEUBx6+x0hXftCJBAPPPeNLkpxUEhi2V45fQw1dlhgiiP7rRqnypOwkzs8l9yoPt+z+TrykfKIw
igFWbttWtVlL0VfVGg2gl0frYBWqqzP0NS3DkDoSDpOm6OToLcqqJvDPh1X5GIviULJZzIKO4rl
vq52lOW0aFyDdwH05aWr8hYV2vp2mqHMsd+nrjXIreihUwwW4GU4Q0gMNyDEGUZx+NaRRPoECmS
tUOgDFiqI68TT1Tk/D2EnNvi6i4S9wpIRrldeh2tC1dgBx2kIeoMzjd29DIPQB1q+qYiXm9aYvT
ijLVmgOLnahP/JuIDMQyKJDsM8NG2Z5sqaC40m91FC8bWp1NH8L5Erzpp1GUW101UdqRlHD/sMT
OXycZjxXLBwFETvzCqg==
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
bulkscore=0 spamscore=0 priorityscore=1501 suspectscore=0 phishscore=0
impostorscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1011
classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610090070