From: "Manszewski, Christoph" <christoph.manszewski@intel.com>
To: Dominik Grzegorzek <dominik.grzegorzek@intel.com>,
igt-dev@lists.freedesktop.org
Cc: andrzej.hajda@intel.com
Subject: Re: [PATCH i-g-t 3/4] lib/xe_eudebug: Use xe_engine_class_short_string
Date: Thu, 12 Dec 2024 17:38:56 +0100 [thread overview]
Message-ID: <37710097-0a2a-4a90-86e7-84d8dda2bcc7@intel.com> (raw)
In-Reply-To: <20241211114044.210562-3-dominik.grzegorzek@intel.com>
Hi Dominik,
On 11.12.2024 12:40, Dominik Grzegorzek wrote:
> Replace local function returning class short name by library function
> defined in xe_query.h.
>
> Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Reviewed-by: Christoph Manszewski <christoph.manszewski@intel.com>
Thanks,
Christoph
> ---
> lib/xe/xe_eudebug.c | 15 ++-------------
> 1 file changed, 2 insertions(+), 13 deletions(-)
>
> diff --git a/lib/xe/xe_eudebug.c b/lib/xe/xe_eudebug.c
> index f2483028f..24062e399 100644
> --- a/lib/xe/xe_eudebug.c
> +++ b/lib/xe/xe_eudebug.c
> @@ -16,6 +16,7 @@
> #include "intel_pat.h"
> #include "xe_eudebug.h"
> #include "xe_ioctl.h"
> +#include "xe/xe_query.h"
>
> struct event_trigger {
> xe_eudebug_trigger_fn fn;
> @@ -124,18 +125,6 @@ static const char *flags_to_str(unsigned int flags)
> return "flags unknown";
> }
>
> -static const char *eu_engine_class_to_str(uint16_t engine_class)
> -{
> - switch (engine_class) {
> - case DRM_XE_ENGINE_CLASS_COMPUTE:
> - return "ccs";
> - case DRM_XE_ENGINE_CLASS_RENDER:
> - return "rcs";
> - default:
> - return "unsupported class";
> - }
> -}
> -
> static const char *event_members_to_str(struct drm_xe_eudebug_event *e, char *buf)
> {
> switch (e->type) {
> @@ -176,7 +165,7 @@ static const char *event_members_to_str(struct drm_xe_eudebug_event *e, char *bu
>
> for (i = 0; i < ee->num_placements; i++)
> l += sprintf(buf + l, "%s%d pad%d, ",
> - eu_engine_class_to_str(instances[i].engine_class),
> + xe_engine_class_short_string(instances[i].engine_class),
> instances[i].engine_instance, instances[i].pad);
> buf[l - 2] = ']';
>
next prev parent reply other threads:[~2024-12-12 16:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 11:40 [PATCH i-g-t 1/4] lib/xe_eudebug: Use igt_container_of instead of (void *) casting Dominik Grzegorzek
2024-12-11 11:40 ` [PATCH i-g-t 2/4] lib: Export xe_engine_class_to_str function Dominik Grzegorzek
2024-12-12 16:36 ` Manszewski, Christoph
2024-12-11 11:40 ` [PATCH i-g-t 3/4] lib/xe_eudebug: Use xe_engine_class_short_string Dominik Grzegorzek
2024-12-12 16:38 ` Manszewski, Christoph [this message]
2024-12-11 11:40 ` [PATCH i-g-t 4/4] lib/xe_query: Fix switch indentation Dominik Grzegorzek
2024-12-12 16:40 ` Manszewski, Christoph
2024-12-11 14:16 ` ✗ i915.CI.BAT: failure for series starting with [i-g-t,1/4] lib/xe_eudebug: Use igt_container_of instead of (void *) casting Patchwork
2024-12-11 14:21 ` ✓ Xe.CI.BAT: success " Patchwork
2024-12-11 16:11 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-12 16:30 ` [PATCH i-g-t 1/4] " Manszewski, Christoph
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=37710097-0a2a-4a90-86e7-84d8dda2bcc7@intel.com \
--to=christoph.manszewski@intel.com \
--cc=andrzej.hajda@intel.com \
--cc=dominik.grzegorzek@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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