From f01f548146155125ea076b3731ffe750210af60c Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Thu, 1 Sep 2022 15:11:47 +0000 Subject: [PATCH] WIP: drmfb: kick out vga harder --- sys/external/bsd/drm2/drm/drmfb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/external/bsd/drm2/drm/drmfb.c b/sys/external/bsd/drm2/drm/drmfb.c index b3887f10902c..7538fa1aafd7 100644 --- a/sys/external/bsd/drm2/drm/drmfb.c +++ b/sys/external/bsd/drm2/drm/drmfb.c @@ -119,6 +119,13 @@ drmfb_attach(struct drmfb_softc *sc, const struct drmfb_attach_args *da) if (prop_dictionary_get_bool(pdict, "is_console", &is_console)) { what_was_cons = CONS_NONE; prop_dictionary_set_bool(dict, "is_console", is_console); + if ((da->da_params->dp_is_vga_console != NULL) && + (*da->da_params->dp_is_vga_console)(dev)) { + what_was_cons = CONS_VGA; + vga_cndetach(); + if (da->da_params->dp_disable_vga) + (*da->da_params->dp_disable_vga)(dev); + } } else { /* XXX Whattakludge! */ #if NVGA > 0