]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add i915_lpsp_capability debugfs
authorAnshuman Gupta <anshuman.gupta@intel.com>
Wed, 15 Apr 2020 17:05:53 +0000 (22:35 +0530)
committerUma Shankar <uma.shankar@intel.com>
Fri, 17 Apr 2020 07:42:03 +0000 (13:12 +0530)
commit1545b249f82b3f0b1cd1d878102a2b5e155262f6
tree9abc96927745c39d3e1c1bd19c0e0deee16228dd
parent5aa6443b9cf33b6cb0f724ec6384c8a3e965df6e
drm/i915: Add i915_lpsp_capability debugfs

New i915_pm_lpsp igt solution approach relies on connector specific
debugfs attribute i915_lpsp_capability, it exposes whether an output is
capable of driving lpsp.

v2:
- CI fixup.
v3:
- register i915_lpsp_info only for supported connector. [Jani]
- use intel_display_power_well_is_enabled() instead of looking
  inside power_well count. [Jani]
- fixes the lpsp capable conditional logic. [Jani]
- combined the lpsp capable and enable info. [Jani]
v4:
- Separate out connector based debugfs i915_lpsp_capability
  lpsp enable status would be exposes by different entry. [Animesh]
v5:
- Add Platform Gen condition to add i915_lpsp_capability
  and some cosmetic nitpick changes. [Animesh]

Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415170555.15531-3-anshuman.gupta@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c