mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 15:02:40 -04:00
drm/i915/icl: track dbuf slice-2 status
This patch adds support to start tracking status of DBUF slices. This is foundation to introduce support for enabling/disabling second DBUF slice dynamically for ICL. Changes Since V1: - use kernel type u8 over uint8_t Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com> Reviewed-by: James Ausmus <james.ausmus@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180426142517.16643-2-mahesh1.kumar@intel.com
This commit is contained in:
committed by
Rodrigo Vivi
parent
077ef1f09c
commit
74bd8004e4
@@ -2656,6 +2656,8 @@ static void icl_dbuf_enable(struct drm_i915_private *dev_priv)
|
||||
if (!(I915_READ(DBUF_CTL_S1) & DBUF_POWER_STATE) ||
|
||||
!(I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
|
||||
DRM_ERROR("DBuf power enable timeout\n");
|
||||
else
|
||||
dev_priv->wm.skl_hw.ddb.enabled_slices = 2;
|
||||
}
|
||||
|
||||
static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
|
||||
@@ -2669,6 +2671,8 @@ static void icl_dbuf_disable(struct drm_i915_private *dev_priv)
|
||||
if ((I915_READ(DBUF_CTL_S1) & DBUF_POWER_STATE) ||
|
||||
(I915_READ(DBUF_CTL_S2) & DBUF_POWER_STATE))
|
||||
DRM_ERROR("DBuf power disable timeout!\n");
|
||||
else
|
||||
dev_priv->wm.skl_hw.ddb.enabled_slices = 0;
|
||||
}
|
||||
|
||||
static void icl_mbus_init(struct drm_i915_private *dev_priv)
|
||||
|
||||
Reference in New Issue
Block a user