diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-12-10 13:50:52 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-12-11 09:16:16 +0300 |
commit | fbacb15ea814e7badb57ebc4015d6542290d0ff8 (patch) | |
tree | b2ab0284990894dcbef7d8e3cc0baac432b3e2c6 /drivers/gpu/drm/i915/display/intel_vdsc.h | |
parent | deaaff49198d04c197a95bceac95efc8534f6c04 (diff) | |
download | linux-fbacb15ea814e7badb57ebc4015d6542290d0ff8.tar.xz |
drm/i915/dsc: add basic hardware state readout support
Add basic hardware state readout for DSC, and check the most relevant
details in the state checker.
v2:
- check for DSC power before reading its state
- check if source supports DSC at all
As a side effect, this should also get the power domains for the enabled
DSC on takeover, and subsequently disable DSC if it's not needed.
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/3fb018cf9bd9a4c275aab389b6ec0f2a4e938bb9.1575974743.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_vdsc.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_vdsc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_vdsc.h b/drivers/gpu/drm/i915/display/intel_vdsc.h index 88c6c17903c1..e56a3254c214 100644 --- a/drivers/gpu/drm/i915/display/intel_vdsc.h +++ b/drivers/gpu/drm/i915/display/intel_vdsc.h @@ -18,6 +18,8 @@ void intel_dsc_enable(struct intel_encoder *encoder, void intel_dsc_disable(const struct intel_crtc_state *crtc_state); int intel_dsc_compute_params(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config); +void intel_dsc_get_config(struct intel_encoder *encoder, + struct intel_crtc_state *crtc_state); enum intel_display_power_domain intel_dsc_power_domain(const struct intel_crtc_state *crtc_state); |