[Intel-gfx] [PATCH 2/2] drm/i915/gt: Move power management debugfs files into gt

Chris Wilson chris at chris-wilson.co.uk
Mon Dec 9 22:47:31 UTC 2019


Quoting Andi Shyti (2019-12-09 22:35:56)
> +int intel_gt_pm_debugfs_register(struct intel_gt *gt)
> +{
> +       struct drm_minor *minor = gt->i915->drm.primary;
> +
> +       return drm_debugfs_create_files(i915_gt_pm_debugfs_list,
> +                                       ARRAY_SIZE(i915_gt_pm_debugfs_list),
> +                                       minor->debugfs_root, minor);

You missed a vital trick to pass the gt as our private. Hint don't use
drm_debugfs_create_files() per se.
-Chris


More information about the Intel-gfx mailing list