Skip to content

Commit

Permalink
drm/xe: Split xe_gt_stat.h
Browse files Browse the repository at this point in the history
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.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241114152148.572447-5-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
  • Loading branch information
lucasdemarchi committed Nov 15, 2024
1 parent caf4ee1 commit 2d4993e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
8 changes: 2 additions & 6 deletions drivers/gpu/drm/xe/xe_gt_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

#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);
Expand Down
15 changes: 15 additions & 0 deletions drivers/gpu/drm/xe/xe_gt_stats_types.h
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion drivers/gpu/drm/xe/xe_gt_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2d4993e

Please sign in to comment.