drm/amd/display: PSR panel capability debugfs
authorMikita Lipski <mikita.lipski@amd.com>
Thu, 18 Nov 2021 13:34:41 +0000 (08:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:06:19 +0000 (16:06 -0500)
commit7238b42e1f4009cde5c67c2c5f9d35d472240ffa
treecb5ce25d62381e411014e14bf0d73a509cd69477
parentb995747511f6d9f6d6f55bd094e3a5adeb36b55b
drm/amd/display: PSR panel capability debugfs

[why]
Adding a debugfs to show PSR capability of the panel and the driver.
To use:
  cat /sys/kernel/debug/dri/0/eDP-X/psr_capability
Expected output:
 Sink support: no/yes
 Driver support: no/yes

[how]
Adding psr_capability to eDP connectors.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c