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>, <rodrigo.vivi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
	<dri-devel@lists.freedesktop.org>,
	<aravind.iddamsetty@linux.intel.com>, <anshuman.gupta@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>,
	<anvesh.bakwad@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 v8 1/5] drm/ras: Introduce the DRM RAS infrastructure over generic netlink
Date: Wed, 25 Feb 2026 11:38:53 +0530	[thread overview]
Message-ID: <686b63cc-2dfb-467b-a472-b6766b2c8dd2@intel.com> (raw)
In-Reply-To: <20260224162203.279f7b74@kernel.org>

Hi Jakub/Rodrigo

On 2/25/2026 5:52 AM, Jakub Kicinski wrote:
> On Mon, 23 Feb 2026 11:35:41 +0530 Riana Tauro wrote:
>> From: Rodrigo Vivi <rodrigo.vivi@intel.com>
>>
>> Introduces the DRM RAS infrastructure over generic netlink.
>>
>> The new interface allows drivers to expose RAS nodes and their
>> associated error counters to userspace in a structured and extensible
>> way. Each drm_ras node can register its own set of error counters, which
>> are then discoverable and queryable through netlink operations. This
>> lays the groundwork for reporting and managing hardware error states
>> in a unified manner across different DRM drivers.
> 
> Family itself LGTM.
> 
> I'm getting this diff when running regen:
> 

I hadn't run regen with -f. Yeah got the same diff

> diff --git a/drivers/gpu/drm/drm_ras_nl.c b/drivers/gpu/drm/drm_ras_nl.c
> index 4714a574a143..8bc85eab751f 100644
> --- a/drivers/gpu/drm/drm_ras_nl.c
> +++ b/drivers/gpu/drm/drm_ras_nl.c
> @@ -7,6 +7,8 @@
>   #include <net/netlink.h>
>   #include <net/genetlink.h>
>   
> +#include "drm_ras_nl.h"
> +
>   #include <uapi/drm/drm_ras.h>
>   #include <drm/drm_ras_nl.h>
>   

$ tools/net/ynl/pyynl/ynl_gen_c.py --spec \
  Documentation/netlink/specs/drm_ras.yaml --mode uapi --header \
  > include/uapi/drm/drm_ras.h

$ tools/net/ynl/pyynl/ynl_gen_c.py --spec \
  Documentation/netlink/specs/drm_ras.yaml --mode kernel --header \
  > drivers/gpu/drm/drm_ras_nl.h

$ tools/net/ynl/pyynl/ynl_gen_c.py --spec \
  Documentation/netlink/specs/drm_ras.yaml --mode kernel --source \
  > drivers/gpu/drm/drm_ras_nl.c


I used above commands to generate the initial files moving the 
drm_ras_nl.h from include/ to drm layer.

Even after that if i regen using tools/net/ynl/ynl-regen.sh -f
I see the above diff.

Am i using the commands wrong or missing something?

Thanks
Riana

> 
> Is there a reason why drm_ras_nl.h is in the global include/ path and
> not in drivers/gpu/drm/, directly? This header is meant to be used
> just between the generated C code (which is mostly structs at this
> point) and the C source implementing the family. We haven't had any
> use case which would require making it global so generator doesn't
> support that.
> 
> The source needs to be clean after regen, so we either need to move
> the header in this patch or I can send you a patch to add a new
> generator feature to override the header location. LMK.


  reply	other threads:[~2026-02-25  6:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260223060541.526397-7-riana.tauro@intel.com>
2026-02-23  6:05 ` [PATCH v8 1/5] drm/ras: Introduce the DRM RAS infrastructure over generic netlink Riana Tauro
2026-02-25  0:22   ` Jakub Kicinski
2026-02-25  6:08     ` Riana Tauro [this message]
2026-02-26  0:18       ` Jakub Kicinski
2026-02-26  9:47         ` Riana Tauro
2026-02-26 15:05           ` Jakub Kicinski
2026-02-28  6:44             ` Riana Tauro

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=686b63cc-2dfb-467b-a472-b6766b2c8dd2@intel.com \
    --to=riana.tauro@intel.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=airlied@gmail.com \
    --cc=anshuman.gupta@intel.com \
    --cc=anvesh.bakwad@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