[Intel-xe] [PATCH v4 0/2] Add gtidle properties

Riana Tauro riana.tauro at intel.com
Fri Jun 23 05:24:29 UTC 2023


      Add gtidle sysfs interface under device/../gt#/
Currently there are three properties name, idle_status and
idle_residency

These display both media and render c state properties according
to gt

The new sysfs structure will have the below layout

/sys/bus/.../bdf
             ├── gt0
             │   └── gtidle
             │       ├── idle_residency_ms
             │       ├── idle_status [gt-c6, gt-c0]
             │       └── name [gt#-rc, gt#-mc]
             ├── gtN
             │   └── gtidle
             │       ├── idle_residency_ms
             │       ├── idle_status
             │       └── name

Test-with: 20230609094457.3355182-1-riana.tauro at intel.com

Rev2: address review comments
Rev3: updated patch 2 
Rev4: Rebase
Rev5: remove extra lines

Badal Nilawar (1):
  drm/xe/mtl: Add support to get C6 residency/status of MTL

Riana Tauro (1):
  drm/xe: add a new sysfs directory for gtidle properties

 drivers/gpu/drm/xe/Makefile                 |   1 +
 drivers/gpu/drm/xe/regs/xe_gt_regs.h        |  11 +-
 drivers/gpu/drm/xe/xe_gt.c                  |   3 +
 drivers/gpu/drm/xe/xe_gt_idle_sysfs.c       | 168 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_idle_sysfs.h       |  13 ++
 drivers/gpu/drm/xe/xe_gt_idle_sysfs_types.h |  38 +++++
 drivers/gpu/drm/xe/xe_gt_types.h            |   4 +
 drivers/gpu/drm/xe/xe_guc_pc.c              |  82 +++++-----
 drivers/gpu/drm/xe/xe_guc_pc.h              |   3 +
 9 files changed, 284 insertions(+), 39 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_gt_idle_sysfs.c
 create mode 100644 drivers/gpu/drm/xe/xe_gt_idle_sysfs.h
 create mode 100644 drivers/gpu/drm/xe/xe_gt_idle_sysfs_types.h

-- 
2.40.0



More information about the Intel-xe mailing list