From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
Jani Nikula <jani.nikula@linux.intel.com>,
Alexander Usyskin <alexander.usyskin@intel.com>,
Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>,
Ashutosh Dixit <ashutosh.dixit@intel.com>
Subject: Re: [PATCH 4/4] drm/xe: Split xe_gt_stat.h
Date: Thu, 14 Nov 2024 12:39:57 -0500 [thread overview]
Message-ID: <ZzY17YU-YLGxh_Ia@intel.com> (raw)
In-Reply-To: <20241114152148.572447-5-lucas.demarchi@intel.com>
On Thu, Nov 14, 2024 at 07:21:48AM -0800, Lucas De Marchi wrote:
> Follow what's done for the other headers, with the types split into a
> separate header that can be included by other *_types.h headers.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_gt_stats.h | 8 ++------
> drivers/gpu/drm/xe/xe_gt_stats_types.h | 15 +++++++++++++++
> drivers/gpu/drm/xe/xe_gt_types.h | 2 +-
> 3 files changed, 18 insertions(+), 7 deletions(-)
> create mode 100644 drivers/gpu/drm/xe/xe_gt_stats_types.h
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_stats.h b/drivers/gpu/drm/xe/xe_gt_stats.h
> index 91d944f6c4e43..38325ef536176 100644
> --- a/drivers/gpu/drm/xe/xe_gt_stats.h
> +++ b/drivers/gpu/drm/xe/xe_gt_stats.h
> @@ -6,15 +6,11 @@
> #ifndef _XE_GT_STATS_H_
> #define _XE_GT_STATS_H_
>
> +#include "xe_gt_stats_types.h"
> +
> struct xe_gt;
> struct drm_printer;
>
> -enum xe_gt_stats_id {
> - XE_GT_STATS_ID_TLB_INVAL,
> - /* must be the last entry */
> - __XE_GT_STATS_NUM_IDS,
would deserve a doc while moving it here?
anyway,
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> -};
> -
> #ifdef CONFIG_DEBUG_FS
> int xe_gt_stats_print_info(struct xe_gt *gt, struct drm_printer *p);
> void xe_gt_stats_incr(struct xe_gt *gt, const enum xe_gt_stats_id id, int incr);
> diff --git a/drivers/gpu/drm/xe/xe_gt_stats_types.h b/drivers/gpu/drm/xe/xe_gt_stats_types.h
> new file mode 100644
> index 0000000000000..2fc055e39f273
> --- /dev/null
> +++ b/drivers/gpu/drm/xe/xe_gt_stats_types.h
> @@ -0,0 +1,15 @@
> +/* SPDX-License-Identifier: MIT */
> +/*
> + * Copyright © 2024 Intel Corporation
> + */
> +
> +#ifndef _XE_GT_STATS_TYPES_H_
> +#define _XE_GT_STATS_TYPES_H_
> +
> +enum xe_gt_stats_id {
> + XE_GT_STATS_ID_TLB_INVAL,
> + /* must be the last entry */
> + __XE_GT_STATS_NUM_IDS,
> +};
> +
> +#endif
> diff --git a/drivers/gpu/drm/xe/xe_gt_types.h b/drivers/gpu/drm/xe/xe_gt_types.h
> index 20901c01ba29a..6e66bf0e8b3f7 100644
> --- a/drivers/gpu/drm/xe/xe_gt_types.h
> +++ b/drivers/gpu/drm/xe/xe_gt_types.h
> @@ -11,7 +11,7 @@
> #include "xe_gt_idle_types.h"
> #include "xe_gt_sriov_pf_types.h"
> #include "xe_gt_sriov_vf_types.h"
> -#include "xe_gt_stats.h"
> +#include "xe_gt_stats_types.h"
> #include "xe_hw_engine_types.h"
> #include "xe_hw_fence_types.h"
> #include "xe_oa_types.h"
> --
> 2.47.0
>
next prev parent reply other threads:[~2024-11-14 17:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 15:21 [PATCH 0/4] drm/xe: Trivial header/flags cleanups Lucas De Marchi
2024-11-14 15:21 ` [PATCH 1/4] drm/xe: Sort again info flags Lucas De Marchi
2024-11-14 17:37 ` Rodrigo Vivi
2024-11-14 15:21 ` [PATCH 2/4] drm/xe: Include xe_oa_types.h Lucas De Marchi
2024-11-14 17:37 ` Rodrigo Vivi
2024-11-14 15:21 ` [PATCH 3/4] drm/xe: Drop HAS_HECI_* Lucas De Marchi
2024-11-14 17:38 ` Rodrigo Vivi
2024-11-14 15:21 ` [PATCH 4/4] drm/xe: Split xe_gt_stat.h Lucas De Marchi
2024-11-14 17:39 ` Rodrigo Vivi [this message]
2024-11-15 23:49 ` Lucas De Marchi
2024-11-14 15:51 ` ✓ CI.Patch_applied: success for drm/xe: Trivial header/flags cleanups Patchwork
2024-11-14 15:52 ` ✗ CI.checkpatch: warning " Patchwork
2024-11-14 15:53 ` ✓ CI.KUnit: success " Patchwork
2024-11-14 16:04 ` ✓ CI.Build: " Patchwork
2024-11-14 16:07 ` ✓ CI.Hooks: " Patchwork
2024-11-14 16:08 ` ✓ CI.checksparse: " Patchwork
2024-11-14 16:42 ` ✓ CI.BAT: " Patchwork
2024-11-15 8:24 ` ✗ CI.FULL: failure " Patchwork
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=ZzY17YU-YLGxh_Ia@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=alexander.usyskin@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=lucas.demarchi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox