Index | Thread | Search

From:
Vitaliy Makkoveev <mvs@openbsd.org>
Subject:
Re: Alder Lake ghosting after wscons screen burner (derived from "Re: Intel GPU, ghosting after zzz or ZZZ")
To:
Walter Alejandro Iglesias <wai@roquesor.com>
Cc:
Jonathan Gray <jsg@jsg.id.au>, tech@openbsd.org
Date:
Wed, 27 May 2026 20:51:29 +0300

Download raw body.

Thread
On Wed, May 27, 2026 at 07:27:47PM +0200, Walter Alejandro Iglesias wrote:
> 
> I found a function defined in ../drm/drm_fb_helper.c,
> drm_fb_helper_restore_fbdev_mode_unlocked() which restores the entire
> fbdev display mode (including size).
> 

Thanks, this diff completely fixes my issue. ok mvs@

> Index: i915_driver.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/drm/i915/i915_driver.c,v
> diff -u -p -u -p -r1.30 i915_driver.c
> --- i915_driver.c	30 Apr 2026 04:33:06 -0000	1.30
> +++ i915_driver.c	27 May 2026 13:32:34 -0000
> @@ -2154,8 +2154,14 @@ inteldrm_burner_cb(void *arg1)
>  	struct drm_i915_private *dev_priv = arg1;
>  	struct drm_device *dev = &dev_priv->drm;
>  	struct drm_fb_helper *helper = dev->fb_helper;
> +	struct rasops_info *ri = &dev_priv->ro;
>  
>  	drm_fb_helper_blank(dev_priv->burner_fblank, helper->info);
> +
> +	if (dev_priv->burner_fblank == FB_BLANK_UNBLANK) {
> +		drm_fb_helper_restore_fbdev_mode_unlocked(helper);
> +		rasops_show_screen(ri, ri->ri_active, 0, NULL, NULL);
> +	}
>  }
>  
>  int
> 
> 
> -- 
> Walter
>