From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
Cc: <dri-devel@lists.freedesktop.org>, <netdev@vger.kernel.org>,
<riana.tauro@intel.com>, <aravind.iddamsetty@linux.intel.com>,
<raag.jadav@intel.com>, <simona.vetter@ffwll.ch>,
<airlied@gmail.com>, <kuba@kernel.org>, <ogabbay@kernel.org>,
<lizhi.hou@amd.com>, <karol.wachowski@linux.intel.com>,
<jeff.hugo@oss.qualcomm.com>, <carl.vanderlip@oss.qualcomm.com>,
<troy.hanson@oss.qualcomm.com>,
<youssef.abdulrahman@oss.qualcomm.com>
Subject: Re: [PATCH 1/3] drm/drm_ras: Remove admin-perm flag from list-nodes operation
Date: Wed, 14 Oct 2026 17:11:50 -0400 [thread overview]
Message-ID: <as_v_sj_D-1MyS9z@intel.com> (raw)
In-Reply-To: <20261009173152.2436195-2-zachary.mckevitt@oss.qualcomm.com>
On Fri, Oct 09, 2026 at 10:31:50AM -0700, Zack McKevitt wrote:
> 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>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.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
>
next prev parent reply other threads:[~2026-10-14 21:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 17:31 [PATCH 0/3] Extend drm_ras for qaic telemetry Zack McKevitt
2026-10-09 17:31 ` [PATCH 1/3] drm/drm_ras: Remove admin-perm flag from list-nodes operation Zack McKevitt
2026-10-10 17:36 ` sashiko-bot
2026-10-14 21:11 ` Rodrigo Vivi [this message]
2026-10-09 17:31 ` [PATCH 2/3] drm/drm_ras: Extend DRM RAS interface to include telemetry nodes Zack McKevitt
2026-10-10 17:36 ` sashiko-bot
2026-10-14 21:11 ` Rodrigo Vivi
2026-10-09 17:31 ` [PATCH 3/3] accel/qaic: Add callbacks for DRM RAS netlink telemetry Zack McKevitt
2026-10-10 17:36 ` sashiko-bot
2026-10-10 9:42 ` [syzbot ci] Re: Extend drm_ras for qaic telemetry syzbot ci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=as_v_sj_D-1MyS9z@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=airlied@gmail.com \
--cc=aravind.iddamsetty@linux.intel.com \
--cc=carl.vanderlip@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jeff.hugo@oss.qualcomm.com \
--cc=karol.wachowski@linux.intel.com \
--cc=kuba@kernel.org \
--cc=lizhi.hou@amd.com \
--cc=netdev@vger.kernel.org \
--cc=ogabbay@kernel.org \
--cc=raag.jadav@intel.com \
--cc=riana.tauro@intel.com \
--cc=simona.vetter@ffwll.ch \
--cc=troy.hanson@oss.qualcomm.com \
--cc=youssef.abdulrahman@oss.qualcomm.com \
--cc=zachary.mckevitt@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.