diff options
author | Andi Shyti <andi.shyti@linux.intel.com> | 2022-03-19 02:39:34 +0300 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2022-03-21 11:37:39 +0300 |
commit | b770bcfae9ad816cd9efce6b0fff4dab47084578 (patch) | |
tree | 27266d3e0b84899ddfd02b7337ec289f8754d226 /drivers/gpu/drm/i915/i915_sysfs.h | |
parent | bec68cc9ea42d853f00da347793cefe49575a574 (diff) | |
download | linux-b770bcfae9ad816cd9efce6b0fff4dab47084578.tar.xz |
drm/i915/gt: create per-tile sysfs interface
Now that we have tiles we want each of them to have its own
interface. A directory "gt/" is created under "cardN/" that will
contain as many diroctories as the tiles.
In the coming patches tile related interfaces will be added. For
now the sysfs gt structure simply has an id interface related
to the current tile count.
The directory structure will follow this scheme:
/sys/.../card0
└── gt
├── gt0
│ └── id
:
:
└─- gtN
└── id
This new set of interfaces will be a basic tool for system
managers and administrators when using i915.
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220318233938.149744-5-andi.shyti@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_sysfs.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_sysfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_sysfs.h b/drivers/gpu/drm/i915/i915_sysfs.h index 41afd4366416..243a17741e3f 100644 --- a/drivers/gpu/drm/i915/i915_sysfs.h +++ b/drivers/gpu/drm/i915/i915_sysfs.h @@ -6,8 +6,11 @@ #ifndef __I915_SYSFS_H__ #define __I915_SYSFS_H__ +struct device; struct drm_i915_private; +struct drm_i915_private *kdev_minor_to_i915(struct device *kdev); + void i915_setup_sysfs(struct drm_i915_private *i915); void i915_teardown_sysfs(struct drm_i915_private *i915); |