Move display IPC related member under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx> --- drivers/gpu/drm/i915/display/intel_display_core.h | 2 ++ drivers/gpu/drm/i915/display/skl_watermark.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_core.h b/drivers/gpu/drm/i915/display/intel_display_core.h index 9086a612365e..96cf994b0ad1 100644 --- a/drivers/gpu/drm/i915/display/intel_display_core.h +++ b/drivers/gpu/drm/i915/display/intel_display_core.h @@ -239,6 +239,8 @@ struct intel_wm { * crtc_state->wm.need_postvbl_update. */ struct mutex wm_mutex; + + bool ipc_enabled; }; struct intel_display { diff --git a/drivers/gpu/drm/i915/display/skl_watermark.c b/drivers/gpu/drm/i915/display/skl_watermark.c index fd9552f08422..ab7fc41d325a 100644 --- a/drivers/gpu/drm/i915/display/skl_watermark.c +++ b/drivers/gpu/drm/i915/display/skl_watermark.c @@ -3116,7 +3116,7 @@ void intel_wm_state_verify(struct intel_crtc *crtc, bool skl_watermark_ipc_enabled(struct drm_i915_private *i915) { - return i915->ipc_enabled; + return i915->display.wm.ipc_enabled; } void skl_watermark_ipc_update(struct drm_i915_private *i915) @@ -3156,7 +3156,7 @@ void skl_watermark_ipc_init(struct drm_i915_private *i915) if (!HAS_IPC(i915)) return; - i915->ipc_enabled = skl_watermark_ipc_can_enable(i915); + i915->display.wm.ipc_enabled = skl_watermark_ipc_can_enable(i915); skl_watermark_ipc_update(i915); } @@ -3500,7 +3500,7 @@ static ssize_t skl_watermark_ipc_status_write(struct file *file, if (!skl_watermark_ipc_enabled(i915) && enable) drm_info(&i915->drm, "Enabling IPC: WM will be proper only after next commit\n"); - i915->ipc_enabled = enable; + i915->display.wm.ipc_enabled = enable; skl_watermark_ipc_update(i915); } -- 2.34.1