[Intel-gfx] [PATCH] drm/i915: Disable outputs during unregister
Ville Syrjälä
ville.syrjala at linux.intel.com
Tue Dec 1 16:05:17 UTC 2020
On Fri, Nov 27, 2020 at 10:05:48PM +0000, Chris Wilson wrote:
> Switch off the scanout during driver unregister, so we can shutdown the
> HW immediately for unbind.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
> drivers/gpu/drm/i915/i915_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index 320856b665a1..62d188e5cb8d 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -738,6 +738,7 @@ static void i915_driver_unregister(struct drm_i915_private *dev_priv)
> * events.
> */
> drm_kms_helper_poll_fini(&dev_priv->drm);
> + drm_atomic_helper_shutdown(&dev_priv->drm);
Looks like we already have this in remove(). Is that too late?
>
> intel_gt_driver_unregister(&dev_priv->gt);
> acpi_video_unregister();
> --
> 2.20.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel
More information about the Intel-gfx
mailing list