drm/xe: Add frequency throttle reasons sysfs attributes
authorSujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Fri, 8 Dec 2023 05:11:52 +0000 (00:11 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:28 +0000 (11:45 -0500)
commit1c8e9019033728093c04608f44c6e87fec6822e1
tree9a69b18f23301dd516263cc56d96f2cd50739ef1
parentbef52b5c7a1904fc6e1bdda4a0e6dc460f562856
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>
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_gt_freq.c
drivers/gpu/drm/xe/xe_gt_throttle_sysfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_throttle_sysfs.h [new file with mode: 0644]