[PATCH 05/12] drm/i915: Suspend the framebuffer console during driver shutdown
Hogander, Jouni
jouni.hogander at intel.com
Mon Jan 8 07:51:08 UTC 2024
On Thu, 2024-01-04 at 10:30 +0200, Imre Deak wrote:
> Suspend the FB console during driver shutdown the same way this is
> done
> during system resume. This should prevent any HPD event to trigger a
> new
> FB probe/modeset cycle happening in parallel with the display HW
> disable/uninitialize steps.
>
> A preceding FB HPD event handling may be still pending, resulting in
> a
> probe/modeset like the above, these will be prevented by a later
> change
> in this patchset.
>
> Signed-off-by: Imre Deak <imre.deak at intel.com>
Reviewed-by: Jouni Högander <jouni.hogander at intel.com>
> ---
> drivers/gpu/drm/i915/i915_driver.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_driver.c
> b/drivers/gpu/drm/i915/i915_driver.c
> index be86596a8904d..9269b485137ce 100644
> --- a/drivers/gpu/drm/i915/i915_driver.c
> +++ b/drivers/gpu/drm/i915/i915_driver.c
> @@ -1003,6 +1003,7 @@ void i915_driver_shutdown(struct
> drm_i915_private *i915)
> intel_runtime_pm_disable(&i915->runtime_pm);
> intel_power_domains_disable(i915);
>
> + intel_fbdev_set_suspend(&i915->drm, FBINFO_STATE_SUSPENDED,
> true);
> if (HAS_DISPLAY(i915)) {
> drm_kms_helper_poll_disable(&i915->drm);
>
More information about the Intel-gfx
mailing list