drm/i915/display/cnl+: Handle fused off DSC

DSC could be fused off, so not all GEN10+ platforms will support it.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: default avatarRamalingam C <ramalingam.c@intel.com>
Reviewed-by: default avatarManasi Navare <manasi.d.navare@intel.com>
Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191026001323.216052-5-jose.souza@intel.com
parent ee595888
...@@ -1888,6 +1888,9 @@ static bool intel_dp_source_supports_dsc(struct intel_dp *intel_dp, ...@@ -1888,6 +1888,9 @@ static bool intel_dp_source_supports_dsc(struct intel_dp *intel_dp,
{ {
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
if (!INTEL_INFO(dev_priv)->display.has_dsc)
return false;
/* On TGL, DSC is supported on all Pipes */ /* On TGL, DSC is supported on all Pipes */
if (INTEL_GEN(dev_priv) >= 12) if (INTEL_GEN(dev_priv) >= 12)
return true; return true;
......
...@@ -737,6 +737,7 @@ static const struct intel_device_info intel_coffeelake_gt3_info = { ...@@ -737,6 +737,7 @@ static const struct intel_device_info intel_coffeelake_gt3_info = {
GEN9_FEATURES, \ GEN9_FEATURES, \
GEN(10), \ GEN(10), \
.ddb_size = 1024, \ .ddb_size = 1024, \
.display.has_dsc = 1, \
.has_coherent_ggtt = false, \ .has_coherent_ggtt = false, \
GLK_COLORS GLK_COLORS
......
...@@ -7755,6 +7755,7 @@ enum { ...@@ -7755,6 +7755,7 @@ enum {
#define SKL_DFSM_PIPE_B_DISABLE (1 << 21) #define SKL_DFSM_PIPE_B_DISABLE (1 << 21)
#define SKL_DFSM_PIPE_C_DISABLE (1 << 28) #define SKL_DFSM_PIPE_C_DISABLE (1 << 28)
#define TGL_DFSM_PIPE_D_DISABLE (1 << 22) #define TGL_DFSM_PIPE_D_DISABLE (1 << 22)
#define CNL_DFSM_DISPLAY_DSC_DISABLE (1 << 7)
#define SKL_DSSM _MMIO(0x51004) #define SKL_DSSM _MMIO(0x51004)
#define CNL_DSSM_CDCLK_PLL_REFCLK_24MHz (1 << 31) #define CNL_DSSM_CDCLK_PLL_REFCLK_24MHz (1 << 31)
......
...@@ -990,6 +990,10 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) ...@@ -990,6 +990,10 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv)
if (INTEL_GEN(dev_priv) >= 11 && (dfsm & ICL_DFSM_DMC_DISABLE)) if (INTEL_GEN(dev_priv) >= 11 && (dfsm & ICL_DFSM_DMC_DISABLE))
info->display.has_csr = 0; info->display.has_csr = 0;
if (INTEL_GEN(dev_priv) >= 10 &&
(dfsm & CNL_DFSM_DISPLAY_DSC_DISABLE))
info->display.has_dsc = 0;
} }
/* Initialize slice/subslice/EU info */ /* Initialize slice/subslice/EU info */
......
...@@ -137,6 +137,7 @@ enum intel_ppgtt_type { ...@@ -137,6 +137,7 @@ enum intel_ppgtt_type {
func(has_ddi); \ func(has_ddi); \
func(has_dp_mst); \ func(has_dp_mst); \
func(has_dsb); \ func(has_dsb); \
func(has_dsc); \
func(has_fbc); \ func(has_fbc); \
func(has_gmch); \ func(has_gmch); \
func(has_hdcp); \ func(has_hdcp); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment