mbox series

[V2,0/2] Add crtc i915_pipe debugfs file

Message ID 20230318041704.2714520-1-bhanuprakash.modem@intel.com (mailing list archive)
Headers show
Series Add crtc i915_pipe debugfs file | expand

Message

Modem, Bhanuprakash March 18, 2023, 4:17 a.m. UTC
The pipe may differ from crtc index if pipes are fused off. For testing
purposes, IGT needs to know the pipe.

There's already a I915_GET_PIPE_FROM_CRTC_ID IOCTL for this. However,
the upcoming Xe driver won't have that IOCTL, and going forward, we'll
want a unified interface for testing i915 and Xe, as they share the
display code. Thus add the debugfs for i915 display.

Test-with: 20230317165044.2616573-1-bhanuprakash.modem@intel.com

Jani Nikula (2):
  drm/i915/debugfs: switch crtc debugfs to struct intel_crtc
  drm/i915/debugfs: add crtc i915_pipe debugfs file

 drivers/gpu/drm/i915/display/intel_crtc.c     |  2 +-
 .../drm/i915/display/intel_display_debugfs.c  | 35 +++++++++++++------
 .../drm/i915/display/intel_display_debugfs.h  |  6 ++--
 3 files changed, 29 insertions(+), 14 deletions(-)

--
2.40.0