Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2020 20:43:35 +0100
From:      Ottavio Caruso <ottavio2006-usenet2012@yahoo.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: [xpost,repost] VGA false positive in dmesg?
Message-ID:  <CAEJNuHzUd9P4%2BYOMYsu3KgDmQX-cGUFEMvaKfmOQvdCj0NCnxg@mail.gmail.com>
In-Reply-To: <20200804175951.GX2551@kib.kiev.ua>
References:  <rgb51b$10i4$1@ciao.gmane.io> <a2a4cd6a-1889-86f1-49e4-4be1fb0bb7fa@grosbein.net> <rgbdnd$546$1@ciao.gmane.io> <8aa25a20-58c7-f3d2-0826-3341c1acc134@grosbein.net> <rgbha1$2ua$1@ciao.gmane.io> <eb4f2167-e750-c699-147a-128ce5050dac@grosbein.net> <rgbp2u$11b5$1@ciao.gmane.io> <e4802317-b375-0014-7a3b-515dc6ab33ea@grosbein.net> <rgc37m$kvj$1@ciao.gmane.io> <20200804175951.GX2551@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 4 Aug 2020 at 18:59, Konstantin Belousov <kostikbel@gmail.com> wrote:
>
> On Tue, Aug 04, 2020 at 05:43:33PM +0100, Ottavio Caruso via freebsd-hackers wrote:
> > On 04/08/2020 16:46, Eugene Grosbein wrote:
> > > 04.08.2020 20:50, Ottavio Caruso via freebsd-hackers wrote:
> > >
> > > > On 04/08/2020 13:08, Eugene Grosbein wrote:
> > > > > 04.08.2020 18:37, Ottavio Caruso via freebsd-hackers wrote:
> > > > >
> > > > > > I'm a bit confused here. Do both ttyu0 and ttyv0 refer to the serial console? Do I need ttyv0? Is it safe to comment ttyv0 in /etc/ttys?
> > > > >
> > > > > Note that /etc/ttys serves multi-user mode only. For earlier stages, you may find useful
> > > > > to put these settings to /boot/loader.conf
> > > > >
> > > > > console="comconsole"
> > > > > comconsole_speed=115200
> > > > > comconsole_port="0x3f8"
> > > > > boot_multicons="NO"
> > > > >
> > > > > Check out conscontrol output after applying these.
> > > >
> > > >
> > > > That doesn't seem to work either:
> > >
> > > In fact, it works,
> >
> > Does it?
> In fact, why do you fight with the ghost VGA device ?  Does it break
> anything to you ?
>
> >
> >
> > > If ISA PNP VGA device is probed successfully, then qemu emulates it.
> >
> > But I don't understand how why it is probed successfully. the "-vga none"
> > option should remove any vga capability in the host.
> There is not much to probe for legacy ISA device.  As far as your hints
> file does not disable the attachment, system assumes that the device is
> present.
>
> Then there are framebuffer console drivers, vt and sc.  I do not want to
> confirm that by reading code, but I highly suspect that if vt(4) cannot
> attach, sc(4) would.  I remember that only vt(4) pays attention to the
> ACPI FADT flag NO_VGA, sc(4) does not.
>
> But the FADT reporting of missed ISA devices is usually buggy.
>
> > I have tried this
> > successfully on an OpenBSD guest and part-successfully on a NetBSD guest (I
> > had to comment all references to /usr/libexec/getty Pc). Why this is not the
> You tried what ?  How did you checked that OpenBSD and NetBSD did not claimed
> presence of VGA ?
>
> And again, what it changes ?

I get all of your points but they are irrelevant to my question: does
this vga device actually exist or is the kernel just spitting false
positives? What I want to achieve is secondary. If the qemu
documentation says that "-vga none" "disables vga", then we have a
problem somewhere.

Last minute edit: somebody pointed me out to this blob:
https://github.com/freebsd/freebsd/blob/1d6e4247415d264485ee94b59fdbc12e0c566fd0/sys/isa/vga_isa.c#L169

But I'm not really sure what to make of it.

-- 
Ottavio Caruso



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEJNuHzUd9P4%2BYOMYsu3KgDmQX-cGUFEMvaKfmOQvdCj0NCnxg>