All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sebastian Brzezinka" <sebastian.brzezinka@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: <igt-dev@lists.freedesktop.org>,
	Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Subject: Re: [PATCH i-g-t 2/9] tools/drm_ras: Add a DRM RAS netlink tool
Date: Thu, 26 Nov 2026 14:45:24 +0100	[thread overview]
Message-ID: <DN56S4GLP6GS.1SCLSVJK44OY5@intel.com> (raw)
In-Reply-To: <xq56jebalb3klsplxs4vswsoorh4ccqyceb73ihdwxwe34nh5k@uvqnne6aiduc>

Hi Kamil, Rodrigo,

On Thu Nov 26, 2026 at 2:20 PM CET, Kamil Konieczny wrote:
> Hi Rodrigo,
> On 2026-11-24 at 16:35:33 -0500, Rodrigo Vivi wrote:
>> List the drm-ras nodes, and show the error counters of a given node:
>> 
>>   # drm_ras
>>   0	0000:03:00.0	correctable-errors	error-counter
>>   1	0000:03:00.0	uncorrectable-errors	error-counter
>>   # drm_ras -n 0
>>   1	core-compute	0
>>   2	soc-internal	0
>> 
>> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> ---
>>  tools/drm_ras.c   | 106 ++++++++++++++++++++++++++++++++++++++++++++++
>>  tools/meson.build |   7 +++
>>  2 files changed, 113 insertions(+)
>>  create mode 100644 tools/drm_ras.c
>> 
>> diff --git a/tools/drm_ras.c b/tools/drm_ras.c
>> new file mode 100644
>> index 000000000..0af1ca919
>> --- /dev/null
>> +++ b/tools/drm_ras.c
>> @@ -0,0 +1,106 @@
>> +// SPDX-License-Identifier: MIT
>> +/*
>> + * Copyright © 2026 Intel Corporation
>> + */
>> +
>> +#include <errno.h>
>> +#include <getopt.h>
>
> Add
> #include <stdbool.h>
>
>> +#include <stdio.h>
>> +#include <stdlib.h>
>> +#include <string.h>
>> +
>> +#include "drmtest.h"
>
> Can it be dropped in favor of tools stubs?
> Looks like macro ARRAY_SIZE should be moved to some non-test header.
>
> +cc Sebastian Brzezinka <sebastian.brzezinka@intel.com>
>
Agreed on all points.

For now a local ARRAY_SIZE definition is the better option, so drmtest.h
can go. I'll find a proper shared place for ARRAY_SIZE and clean it
up later.

-- 
Best regards,
Sebastian


  reply	other threads:[~2026-11-26 13:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 21:35 [PATCH i-g-t 1/9] lib/igt_drm_ras_nl: Add node and error counter listing Rodrigo Vivi
2026-11-24 21:35 ` [PATCH i-g-t 2/9] tools/drm_ras: Add a DRM RAS netlink tool Rodrigo Vivi
2026-11-26 13:20   ` Kamil Konieczny
2026-11-26 13:45     ` Sebastian Brzezinka [this message]
2026-11-24 21:35 ` [PATCH i-g-t 3/9] drm-uapi/drm_ras: Sync with kernel c95c93b6e26c Rodrigo Vivi
2026-11-25 21:07   ` Zack McKevitt
2026-11-25 21:58   ` Zack McKevitt
2026-11-24 21:35 ` [PATCH i-g-t 4/9] lib/igt_drm_ras_nl: Add telemetry helpers Rodrigo Vivi
2026-11-25 23:29   ` Zack McKevitt
2026-11-24 21:35 ` [PATCH i-g-t 5/9] tools/drm_ras: Show and set telemetry fields Rodrigo Vivi
2026-11-25 21:35   ` Zack McKevitt
2026-11-24 21:35 ` [PATCH i-g-t 6/9] drm-uapi/drm_ras: Sync with kernel for retired pages Rodrigo Vivi
2026-11-24 21:35 ` [PATCH i-g-t 7/9] lib/igt_drm_ras_nl: Add retired pages helpers Rodrigo Vivi
2026-11-24 21:35 ` [PATCH i-g-t 8/9] tools/drm_ras: Show retired pages Rodrigo Vivi
2026-11-24 21:35 ` [PATCH i-g-t 9/9] tests/intel/xe_drm_ras: Test " Rodrigo Vivi
2026-11-25 20:23 ` ✓ i915.CI.BAT: success for series starting with [i-g-t,1/9] lib/igt_drm_ras_nl: Add node and error counter listing Patchwork
2026-11-25 20:29 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-26  4:00 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-27  1:48 ` ✓ i915.CI.Full: success " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-11-26 18:05 [PATCH i-g-t 1/9] " Rodrigo Vivi
2026-11-26 18:05 ` [PATCH i-g-t 2/9] tools/drm_ras: Add a DRM RAS netlink tool Rodrigo Vivi
2026-11-27 17:59 [PATCH i-g-t 1/9] lib/igt_drm_ras_nl: Add node and error counter listing Rodrigo Vivi
2026-11-27 17:59 ` [PATCH i-g-t 2/9] tools/drm_ras: Add a DRM RAS netlink tool Rodrigo Vivi
2026-11-27 18:11 [PATCH i-g-t 1/9] lib/igt_drm_ras_nl: Add node and error counter listing Rodrigo Vivi
2026-11-27 18:11 ` [PATCH i-g-t 2/9] tools/drm_ras: Add a DRM RAS netlink tool Rodrigo Vivi

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=DN56S4GLP6GS.1SCLSVJK44OY5@intel.com \
    --to=sebastian.brzezinka@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=rodrigo.vivi@intel.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.