public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Riana Tauro <riana.tauro@intel.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: <intel-xe@lists.freedesktop.org>,
	<dri-devel@lists.freedesktop.org>,
	<aravind.iddamsetty@linux.intel.com>, <anshuman.gupta@intel.com>,
	<rodrigo.vivi@intel.com>, <joonas.lahtinen@linux.intel.com>,
	<simona.vetter@ffwll.ch>, <airlied@gmail.com>,
	<pratik.bari@intel.com>, <joshua.santosh.ranjan@intel.com>,
	<ashwin.kumar.kulkarni@intel.com>, <shubham.kumar@intel.com>,
	<ravi.kishore.koppuravuri@intel.com>, <raag.jadav@intel.com>,
	Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>,
	Lijo Lazar <lijo.lazar@amd.com>,
	Hawking Zhang <Hawking.Zhang@amd.com>,
	"David S. Miller" <davem@davemloft.net>,
	Paolo Abeni <pabeni@redhat.com>,
	Eric Dumazet <edumazet@google.com>, <netdev@vger.kernel.org>
Subject: Re: [PATCH v7 1/5] drm/ras: Introduce the DRM RAS infrastructure over generic netlink
Date: Thu, 19 Feb 2026 20:47:48 +0530	[thread overview]
Message-ID: <e11e8358-7a49-499a-b508-869da5b05031@intel.com> (raw)
In-Reply-To: <20260218175607.711ffd2c@kernel.org>

Hi Jakub

On 2/19/2026 7:26 AM, Jakub Kicinski wrote:
> On Wed, 18 Feb 2026 17:49:03 +0530 Riana Tauro wrote:
>> +    -
>> +      name: get-error-counters
>> +      doc: >-
>> +           Retrieve the full list of error counters for a given node.
>> +           The response include the id, the name, and even the current
>> +           value of each counter.
>> +      attribute-set: error-counter-attrs
>> +      flags: [admin-perm]
>> +      dump:
>> +        request:
>> +          attributes:
>> +            - node-id
>> +        reply:
>> +          attributes:
>> +            - error-id
>> +            - error-name
>> +            - error-value
>> +    -
>> +      name: query-error-counter
>> +      doc: >-
>> +           Query the information of a specific error counter for a given node.
>> +           Users must provide the node ID and the error counter ID.
>> +           The response contains the id, the name, and the current value
>> +           of the counter.
>> +      attribute-set: error-counter-attrs
>> +      flags: [admin-perm]
>> +      do:
>> +        request:
>> +          attributes:
>> +            - node-id
>> +            - error-id
>> +        reply:
>> +          attributes:
>> +            - error-id
>> +            - error-name
>> +            - error-value
> 
> The get-error-counters vs query-error-counter is sort of asking to be a
> do and dump of the same op doesn't it? The return messages are the same,
> one returns a single counter, the other one (filtered to given node-id)
> dump of counters. Not a big deal, but from Netlink perspective having
> these as do / dump of the same op would be more natural.

Yeah they have the same responses. I looked at the other yaml files and 
yeah it would be cleaner to use the same op to make it more consistent.

Thank you for the suggestion. I will add the change in the next rev.

> 
> On top of that please definitely make sure that the code is generated
> with the latest tooling from Linus's tree! We tweaked the output a
> little, it shouldn't happen again but running regen with this commit
> gives me a dirty tree with a bunch of:

I did generate it for initial revisions, but then kept the same files in
the latest revisions since there were no changes. Sorry will regenerate 
and send it.

> 
> diff --git a/include/uapi/drm/drm_ras.h b/include/uapi/drm/drm_ras.h
> index 3415ba345ac8..31f0180c1035 100644
> --- a/include/uapi/drm/drm_ras.h
> +++ b/include/uapi/drm/drm_ras.h
> @@ -2,6 +2,7 @@
>   /* Do not edit directly, auto-generated from: */
>   /*     Documentation/netlink/specs/drm_ras.yaml */
>   /* YNL-GEN uapi header */
> +/* To regenerate run: tools/net/ynl/ynl-regen.sh */
>   
>   #ifndef _UAPI_LINUX_DRM_RAS_H
>   #define _UAPI_LINUX_DRM_RAS_H
> 
> 
> Last but not least:
> 
> $ yamllint Documentation/netlink/specs/drm_ras.yaml
> Documentation/netlink/specs/drm_ras.yaml
>    59:14     error    too many spaces after colon  (colons)

Will fix this

Thank you
Riana

> 


      reply	other threads:[~2026-02-19 15:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260218121904.157295-7-riana.tauro@intel.com>
2026-02-18 12:19 ` [PATCH v7 1/5] drm/ras: Introduce the DRM RAS infrastructure over generic netlink Riana Tauro
2026-02-18 19:22   ` Rodrigo Vivi
2026-02-19  1:56   ` Jakub Kicinski
2026-02-19 15:17     ` Riana Tauro [this message]

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=e11e8358-7a49-499a-b508-869da5b05031@intel.com \
    --to=riana.tauro@intel.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=airlied@gmail.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@linux.intel.com \
    --cc=ashwin.kumar.kulkarni@intel.com \
    --cc=davem@davemloft.net \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=edumazet@google.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=joshua.santosh.ranjan@intel.com \
    --cc=kuba@kernel.org \
    --cc=lijo.lazar@amd.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pratik.bari@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=ravi.kishore.koppuravuri@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=shubham.kumar@intel.com \
    --cc=simona.vetter@ffwll.ch \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox