From owner-freebsd-hackers@freebsd.org Tue Aug 4 10:36:37 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CF0F23B77B3 for ; Tue, 4 Aug 2020 10:36:37 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane-mx.org) Received: from ciao.gmane.io (static.214.254.202.116.clients.your-server.de [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BLWQD6FNRz4BgT for ; Tue, 4 Aug 2020 10:36:36 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane-mx.org) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1k2uJ8-0001Ud-If for freebsd-hackers@freebsd.org; Tue, 04 Aug 2020 12:36:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ottavio Caruso Subject: Re: [xpost,repost] VGA false positive in dmesg? Date: Tue, 4 Aug 2020 11:36:29 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.1.0 In-Reply-To: Content-Language: en-GB X-Rspamd-Queue-Id: 4BLWQD6FNRz4BgT X-Spamd-Bar: +++++++ X-Spamd-Result: default: False [7.87 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.21)[0.206]; GREYLIST(0.00)[pass,meta]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.53)[-0.534]; HFILTER_HOSTNAME_5(3.00)[static.214.254.202.116.clients.your-server.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-0.81)[-0.807]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_REJECT(2.00)[yahoo.com : SPF not aligned (relaxed), No valid DKIM,reject]; FORGED_SENDER(0.30)[ottavio2006-usenet2012@yahoo.com,freebsd-hackers@m.gmane-mx.org]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; FROM_NEQ_ENVFROM(0.00)[ottavio2006-usenet2012@yahoo.com,freebsd-hackers@m.gmane-mx.org]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; RCVD_COUNT_TWO(0.00)[2] X-Spam: Yes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2020 10:36:37 -0000 On 04/08/2020 11:00, Eugene Grosbein wrote: > 04.08.2020 15:08, Ottavio Caruso via freebsd-hackers wrote: >> Hi, >> >> [originally mailed to freebsd-questions, but I didn't get any feedback over there] >> >> I've launched a FreeBSD 12.1 instance in qemu (pay attention to "-vga >> none"). Host is Linux: >> >> qemu-system-x86_64 \ >> -drive if=virtio,file=/home/oc/VM/img/freebsd.image,index=0,media=disk \ >> -M q35,accel=kvm -m 250M -cpu host -smp $(nproc) \ >> -nic user,hostfwd=tcp:127.0.0.1:5554-:22,model=virtio-net-pci \ >> -daemonize -display none -vga none \ >> -serial mon:telnet:127.0.0.1:6664,server,nowait \ >> >> In the guest: >> >> oc@FreeBSD:~ % pciconf -vl >> hostb0@pci0:0:0:0: class=0x060000 card=0x11001af4 chip=0x29c08086 >> rev=0x00 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82G33/G31/P35/P31 Express DRAM Controller' >> class = bridge >> subclass = HOST-PCI >> virtio_pci0@pci0:0:1:0: class=0x020000 card=0x00011af4 chip=0x10001af4 >> rev=0x00 hdr=0x00 >> vendor = 'Red Hat, Inc.' >> device = 'Virtio network device' >> class = network >> subclass = ethernet >> virtio_pci1@pci0:0:2:0: class=0x010000 card=0x00021af4 chip=0x10011af4 >> rev=0x00 hdr=0x00 >> vendor = 'Red Hat, Inc.' >> device = 'Virtio block device' >> class = mass storage >> subclass = SCSI >> virtio_pci2@pci0:0:3:0: class=0x010000 card=0x00021af4 chip=0x10011af4 >> rev=0x00 hdr=0x00 >> vendor = 'Red Hat, Inc.' >> device = 'Virtio block device' >> class = mass storage >> subclass = SCSI >> isab0@pci0:0:31:0: class=0x060100 card=0x11001af4 chip=0x29188086 >> rev=0x02 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82801IB (ICH9) LPC Interface Controller' >> class = bridge >> subclass = PCI-ISA >> ahci0@pci0:0:31:2: class=0x010601 card=0x11001af4 chip=0x29228086 >> rev=0x02 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller >> [AHCI mode]' >> class = mass storage >> subclass = SATA >> none0@pci0:0:31:3: class=0x0c0500 card=0x11001af4 chip=0x29308086 >> rev=0x02 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82801I (ICH9 Family) SMBus Controller' >> class = serial bus >> subclass = SMBus >> >> However, in dmesg: >> >> oc@FreeBSD:~ % dmesg | grep -i vga >> VT(vga): text 80x25 >> vtvga0: on motherboard >> vga0: at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff >> pnpid PNP0900 on isa0 >> >> I don't know how to interpret this output. > > pciconf deals with PCI/PCI-E only but your guest detects ISA VGA device. > Compare with real VGA hardware: > > VT(vga): resolution 640x480 > vtvga0: on motherboard > vgapci0: port 0xb000-0xb0ff mem 0xd0000000-0xdfffffff,0xfc3f0000-0xfc3fffff,0xfc200000-0xfc2fffff irq 18 at device 5.0 on pci1 > vgapci0: Boot video device > > >> I don't think it's a qemu issue, because I've done the same with NetBSD and OpenBSD guests and >> there's no trace of vga in their dmesg. > > Maybe your guest has hw.vga.acpi_ignore_no_vga=1 in the kernel environment > or some other non-default "hw.vga" knobs, check it out with kenv(1) No,I haven't got either of them set up. . > > You can also try adding to /boot/loader.conf: > > hint.vtvga.0.disabled=1 This doesn't seem to work: oc@FreeBSD:~ % cat /boot/loader.conf hint.vtvga.0.disabled=1 oc@FreeBSD:~ % dmesg | grep -i vga VT(vga): text 80x25 vtvga0: on motherboard vga0: at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff pnpid PNP0900 on isa0 VT(vga): text 80x25 vga0: at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff pnpid PNP0900 on isa0 -- Ottavio Caruso