]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: Rename xe_gt_idle_sysfs to xe_gt_idle
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Sat, 18 Nov 2023 02:06:16 +0000 (18:06 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:08 +0000 (11:45 -0500)
Prep this file to contain C6 toggling as well instead
of just sysfs related stuff.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt_idle.c [moved from drivers/gpu/drm/xe/xe_gt_idle_sysfs.c with 98% similarity]
drivers/gpu/drm/xe/xe_gt_idle.h [moved from drivers/gpu/drm/xe/xe_gt_idle_sysfs.h with 52% similarity]
drivers/gpu/drm/xe/xe_gt_idle_types.h [moved from drivers/gpu/drm/xe/xe_gt_idle_sysfs_types.h with 100% similarity]
drivers/gpu/drm/xe/xe_gt_types.h

index 161e8ead9114b140f47c475b27900940d97f0d4a..b8ad42fcbea2a67d9a6d6a1ddacda644ea7e9e8e 100644 (file)
@@ -72,7 +72,7 @@ xe-y += xe_bb.o \
        xe_gt.o \
        xe_gt_clock.o \
        xe_gt_debugfs.o \
-       xe_gt_idle_sysfs.o \
+       xe_gt_idle.o \
        xe_gt_mcr.o \
        xe_gt_pagefault.o \
        xe_gt_sysfs.o \
index 00193b02a7e54f59f99c36a5736efa3efe6f932b..8a6fb9641cd698ec2cfd6d6ff067002d808c0cc4 100644 (file)
@@ -23,7 +23,7 @@
 #include "xe_ggtt.h"
 #include "xe_gsc.h"
 #include "xe_gt_clock.h"
-#include "xe_gt_idle_sysfs.h"
+#include "xe_gt_idle.h"
 #include "xe_gt_mcr.h"
 #include "xe_gt_pagefault.h"
 #include "xe_gt_printk.h"
similarity index 98%
rename from drivers/gpu/drm/xe/xe_gt_idle_sysfs.c
rename to drivers/gpu/drm/xe/xe_gt_idle.c
index 8df9840811cdafc1acd15c9225603f5a93a0b442..e5b7e5d38e76c29ef977725cb6d8b48a14eb89ee 100644 (file)
@@ -7,14 +7,14 @@
 
 #include "xe_device.h"
 #include "xe_gt.h"
-#include "xe_gt_idle_sysfs.h"
+#include "xe_gt_idle.h"
 #include "xe_gt_sysfs.h"
 #include "xe_guc_pc.h"
 
 /**
  * DOC: Xe GT Idle
  *
- * Provides sysfs entries for idle properties of GT
+ * Contains functions that init GT idle features like C6
  *
  * device/gt#/gtidle/name - name of the state
  * device/gt#/gtidle/idle_residency_ms - Provides residency of the idle state in ms
similarity index 52%
rename from drivers/gpu/drm/xe/xe_gt_idle_sysfs.h
rename to drivers/gpu/drm/xe/xe_gt_idle.h
index b0973f96c7abe05d7dfeb8b486526971d9874796..9b36bf7db3a7559c39b523124375539eadb3e2f9 100644 (file)
@@ -3,11 +3,11 @@
  * Copyright © 2023 Intel Corporation
  */
 
-#ifndef _XE_GT_IDLE_SYSFS_H_
-#define _XE_GT_IDLE_SYSFS_H_
+#ifndef _XE_GT_IDLE_H_
+#define _XE_GT_IDLE_H_
 
-#include "xe_gt_idle_sysfs_types.h"
+#include "xe_gt_idle_types.h"
 
 void xe_gt_idle_sysfs_init(struct xe_gt_idle *gtidle);
 
-#endif /* _XE_GT_IDLE_SYSFS_H_ */
+#endif /* _XE_GT_IDLE_H_ */
index d3f2793684e2df6b1214e5745da0298589a49314..a96ee7d028aa06506f437764ec4ec998255d5af4 100644 (file)
@@ -7,7 +7,7 @@
 #define _XE_GT_TYPES_H_
 
 #include "xe_force_wake_types.h"
-#include "xe_gt_idle_sysfs_types.h"
+#include "xe_gt_idle_types.h"
 #include "xe_hw_engine_types.h"
 #include "xe_hw_fence_types.h"
 #include "xe_reg_sr_types.h"