drm/i915/gt: Create per-gt debugfs files
authorAndi Shyti <andi.shyti@linux.intel.com>
Sat, 18 Mar 2023 20:36:14 +0000 (21:36 +0100)
committerAndi Shyti <andi.shyti@linux.intel.com>
Tue, 21 Mar 2023 09:09:31 +0000 (10:09 +0100)
commit70b5ffb393f3f1fbb00ac52c5288d233ae6e991e
treeba42bea1414167d3b055af95beff4be200f909ad
parent02abecdeebfcd3848b26b70778dd7f6eb0db65e1
drm/i915/gt: Create per-gt debugfs files

To support multi-GT configurations, we need to generate
independent debug files for each GT.

To achieve this create a separate directory for each GT under the
debugfs directory. For instance, in a system with two GTs, the
debugfs structure would look like this:

/sys/kernel/debug/dri
                  └── 0
                      ├── gt0
                      │   ├── drpc
                      │   ├── engines
                      │   ├── forcewake
                      │   ├── frequency
                      │   └── rps_boost
                      └── gt1
                      :   ├── drpc
                      :   ├── engines
                      :   ├── forcewake
                          ├── frequency
                          └── rps_boost

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230318203616.183765-2-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c
drivers/gpu/drm/i915/gt/uc/intel_guc.h
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
drivers/gpu/drm/i915/gt/uc/intel_uc_debugfs.c