mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
On some generations of the Intel GPU, disabling of the VGA Display
stops updating the vertical retrace indicator. The text mouse renderer in syscons is executing from the callout and spins waiting for the start of next frame. As result, after the X server finishes, since the VGA cannot be turned on, but syscons does not know about this, the clock swi spins forever. Hack around the problem by disabling wait for the retrace if KMS is activated. Diagnosed and tested by: Michiel Boland <boland37@xs4all.nl> Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
This commit is contained in:
parent
aec577b8d1
commit
1dc72d3681
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251961
@ -207,6 +207,8 @@ static void intel_fbdev_destroy(struct drm_device *dev,
|
||||
}
|
||||
}
|
||||
|
||||
extern int sc_txtmouse_no_retrace_wait;
|
||||
|
||||
int intel_fbdev_init(struct drm_device *dev)
|
||||
{
|
||||
struct intel_fbdev *ifbdev;
|
||||
@ -229,6 +231,7 @@ int intel_fbdev_init(struct drm_device *dev)
|
||||
|
||||
drm_fb_helper_single_add_all_connectors(&ifbdev->helper);
|
||||
drm_fb_helper_initial_config(&ifbdev->helper, 32);
|
||||
sc_txtmouse_no_retrace_wait = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -395,6 +395,8 @@ vga_txtblink(scr_stat *scp, int at, int flip)
|
||||
{
|
||||
}
|
||||
|
||||
int sc_txtmouse_no_retrace_wait;
|
||||
|
||||
#ifndef SC_NO_CUTPASTE
|
||||
|
||||
static void
|
||||
@ -445,7 +447,9 @@ draw_txtmouse(scr_stat *scp, int x, int y)
|
||||
#if 1
|
||||
/* wait for vertical retrace to avoid jitter on some videocards */
|
||||
crtc_addr = scp->sc->adp->va_crtc_addr;
|
||||
while (!(inb(crtc_addr + 6) & 0x08)) /* idle */ ;
|
||||
while (!sc_txtmouse_no_retrace_wait &&
|
||||
!(inb(crtc_addr + 6) & 0x08))
|
||||
/* idle */ ;
|
||||
#endif
|
||||
c = scp->sc->mouse_char;
|
||||
vidd_load_font(scp->sc->adp, 0, 32, 8, font_buf, c, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user