diff options
author | Sujaritha Sundaresan <sujaritha.sundaresan@intel.com> | 2023-12-08 00:11:52 -0500 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:45:28 -0500 |
commit | 1c8e9019033728093c04608f44c6e87fec6822e1 (patch) | |
tree | 9a69b18f23301dd516263cc56d96f2cd50739ef1 /drivers/gpu/drm/xe/xe_gt_freq.c | |
parent | bef52b5c7a1904fc6e1bdda4a0e6dc460f562856 (diff) | |
download | lwn-1c8e9019033728093c04608f44c6e87fec6822e1.tar.gz lwn-1c8e9019033728093c04608f44c6e87fec6822e1.zip |
drm/xe: Add frequency throttle reasons sysfs attributes
Add throttle reasons sysfs attributes under a separate directory.
/device/tile<n>/gt<n>/freq0/throttle
|- reason_pl1
|- reason_pl2
|- reason_pl4
|- reason_prochot
|- reason_ratl
|- reason_vr_tdc
|- reason_vr_thermalert
|- status
v2: Remove unnecessary headers and clean-up action (Riana)
Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_freq.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_gt_freq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_freq.c b/drivers/gpu/drm/xe/xe_gt_freq.c index 2c3830d0e9e5..08eabcafe7bc 100644 --- a/drivers/gpu/drm/xe/xe_gt_freq.c +++ b/drivers/gpu/drm/xe/xe_gt_freq.c @@ -13,6 +13,7 @@ #include "xe_device_types.h" #include "xe_gt_sysfs.h" +#include "xe_gt_throttle_sysfs.h" #include "xe_guc_pc.h" /** @@ -213,4 +214,6 @@ void xe_gt_freq_init(struct xe_gt *gt) if (err) drm_warn(&xe->drm, "failed to add freq attrs to %s, err: %d\n", kobject_name(gt->freq), err); + + xe_gt_throttle_sysfs_init(gt); } |