From owner-freebsd-stable@freebsd.org Thu Dec 6 13:57:50 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CEBB132E73F for ; Thu, 6 Dec 2018 13:57:50 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-ua1-x936.google.com (mail-ua1-x936.google.com [IPv6:2607:f8b0:4864:20::936]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B3106D05F for ; Thu, 6 Dec 2018 13:57:49 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-ua1-x936.google.com with SMTP id v24so165732uap.13 for ; Thu, 06 Dec 2018 05:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fnCiZXnubgKwnnkLrFqtadN7M+bnydjXyvVWT9KE/Yo=; b=GCAUtJxONzch+AgF0mDfMWWQJiiL/VCLlh9TzTTGt5tveh2S2PkZyWbnHBMBvWkclV q06AaWOvAUZztxl4GdMBi4tv3QpHvCX7v2nvL5YC7dw6gBZG3RsCW1SME366pFyJTA94 PTCHN6eC+LWR53XlUf/RW3RgO23VFQ/TO7+1ykyxkruTb2yC8VcQISfxx1X0vYc2/bmo A7176oIcZRAwyyvriRb+SoqvX1SA0o08sA5WSOAPvQ9QqdIAx91Xb8v52KZYdvM5Qjjw uv8NTNiy+q9bicm0Eyl0YDvjjiGMmENjYNmjFtxo15b1rVIPo5S0kjFXu2SAU+sea1fi 3EIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fnCiZXnubgKwnnkLrFqtadN7M+bnydjXyvVWT9KE/Yo=; b=FfOUGK6NI3+6Yk30v/FnxENmQtVH/qD17aARG4faq/IMKPflmk/DfakBlNGEMdv5Fy vktc02ReOzIsoDQ29M6lbX1ui/F+bjamDcFayEuAK/zpOMbAblsVe2mtXw3QkknwHrTx 2mQ1d5u/VNjBiwzPuympx1reLgLwAU//g8ZOvHHESvFId0NeD6q2kNzbkJdvD3nFdb8o 1/iXPNGNkMbelKexsDo+BBMZcbV9Ym2yIPVD8vSAFGqzcbcCAJsIdsERjMsg/i6ta55F NYZePlBCfioZzPf/JBoD0hF5smRrtv7Q1Pq5NCtdF2+zqQzVvoRLc+Bev234d9zstXzQ y7pw== X-Gm-Message-State: AA+aEWZOfxsivgwAxGpjGMUkeYkJgPEtNewNL0ugFWIA76328I1rsfWx oLSCSiF6jQY45Kjoh8v1Zngo8wc1di12RgeZCA+79Q== X-Google-Smtp-Source: AFSGD/XAuHXNEb6+e5bnlTw98Dq+1DdOcusp77q/j5AAppNZM0/e27Ukk+Ezt/tEkHFS7owuNAINM4j+BkUOTSCROb4= X-Received: by 2002:a9f:24a7:: with SMTP id 36mr12547829uar.41.1544104668372; Thu, 06 Dec 2018 05:57:48 -0800 (PST) MIME-Version: 1.0 References: <5C092989.6000007@grosbein.net> In-Reply-To: <5C092989.6000007@grosbein.net> From: Aleksandr Rybalko Date: Thu, 6 Dec 2018 15:57:36 +0200 Message-ID: Subject: Re: vt(4)-related hang of 11.2 To: Eugene Grosbein Cc: FreeBSD-STABLE Mailing List , ed@freebsd.org, Ed Maste X-Rspamd-Queue-Id: 2B3106D05F X-Spamd-Result: default: False [-3.80 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.990,0]; R_DKIM_ALLOW(-0.20)[ddteam-net.20150623.gappssmtp.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[ddteam.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ddteam-net.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,aspmx2.googlemail.com,aspmx3.googlemail.com,aspmx5.googlemail.com,alt2.aspmx.l.google.com,aspmx4.googlemail.com]; RCVD_IN_DNSWL_NONE(0.00)[6.3.9.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.91)[-0.910,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.59)[ipnet: 2607:f8b0::/32(-1.53), asn: 15169(-1.31), country: US(-0.09)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 13:57:50 -0000 Hi, Eugene! In most cases it's just wrong info passed from UEFI firmware about FB. try to hardcode FrameBuffer params into vt_efb driver, to know exatly. Thanks. =D1=87=D1=82, 6 =D0=B3=D1=80=D1=83=D0=B4. 2018 =D0=BE 15:52 Eugene Grosbein= =D0=BF=D0=B8=D1=88=D0=B5: > Hi! > > I ran across several systems based on AMI Aptio CRB CLBTM210 equiped with > Intel J1900 processor > that hang early at boot in the moment of kernel initialisation unless > forced to use syscons(4) console driver > instead of default vt(4). Here is screen photo of one of such systems in > such dead state > started with vt(4), boot_verbose and verbose_loading enabled: > > http://www.grosbein.net/freebsd/11hang.jpg > > It boots and works just fine with syscons. The system in question is > 11.2-STABLE/amd64 r341225. > > One of such boxes is ready to produce additional debug output, if needed, > test patches etc. > for about a week, then it will go in production to some remote site. > > It processes nextboot.conf as expected even if started with vt(4), if thi= s > matters. > > Here is its kernel config file: > > include GENERIC > ident Base11 > options IPDIVERT > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_VERBOSE_LIMIT=3D100 > options IPFIREWALL_DEFAULT_TO_ACCEPT > device enc > #EOF > > According to kern.conftxt, it has options VESA and > > device vt > device vt_vga > device vt_efifb > > Its dmesg.boot and pciconf output follow (started with syscons): > > Copyright (c) 1992-2018 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.2-STABLE #0 r341225: Thu Nov 29 21:47:09 MSK 2018 > az@base11.zonov.ru:/data/obj/data/src/sys/Base11 amd64 > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLV= M > 6.0.1) > CPU: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz (2000.05-MHz K8-class CPU) > Origin=3D"GenuineIntel" Id=3D0x30678 Family=3D0x6 Model=3D0x37 Step= ping=3D8 > > Features=3D0xbfebfbff > > Features2=3D0x41d8e3bf > AMD Features=3D0x28100800 > AMD Features2=3D0x101 > Structured Extended Features=3D0x2282 > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics > real memory =3D 4294967296 (4096 MB) > avail memory =3D 3962818560 (3779 MB) > Event timer "LAPIC" quality 600 > ACPI APIC Table: > WARNING: L1 data cache covers less APIC IDs than a core > 0 < 1 > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) > Security policy loaded: TrustedBSD MAC/portacl (mac_portacl) > Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 128/32 > (20171214/tbfadt-748) > WARNING: Bogus Interrupt Trigger Mode. Assume CONFORMS. > WARNING: Bogus Interrupt Polarity. Assume CONFORMS > ioapic0 irqs 0-86 on motherboard > SMP: AP CPU #3 Launched! > SMP: AP CPU #2 Launched! > SMP: AP CPU #1 Launched! > Timecounter "TSC" frequency 2000054736 Hz quality 1000 > random: entropy device external interface > kbd0 at kbdmux0 > netmap: loaded module > random: registering fast source Intel Secure Key RNG > random: fast provider: "Intel Secure Key RNG" > nexus0 > cryptosoft0: on motherboard > acpi0: on motherboard > acpi0: Power Button (fixed) > unknown: I/O range not supported > cpu0: on acpi0 > cpu1: on acpi0 > cpu2: on acpi0 > cpu3: on acpi0 > atrtc0: port 0x70-0x77 on acpi0 > atrtc0: Warning: Couldn't map I/O. > atrtc0: registered as a time-of-day clock, resolution 1.000000s > Event timer "RTC" frequency 32768 Hz quality 0 > hpet0: iomem 0xfed00000-0xfed003ff irq 8 on > acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 950 > Event timer "HPET" frequency 14318180 Hz quality 450 > Event timer "HPET1" frequency 14318180 Hz quality 440 > Event timer "HPET2" frequency 14318180 Hz quality 440 > attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pcib0: _OSC returned error 0x10 > pci0: on pcib0 > vgapci0: port 0xf080-0xf087 mem > 0xd0000000-0xd03fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 > vgapci0: Boot video device > ahci0: port > 0xf070-0xf077,0xf060-0xf063,0xf050-0xf057,0xf040-0xf043,0xf020-0xf03f mem > 0xd0a16000-0xd0a167ff irq 19 at device 19.0 on pci0 > ahci0: AHCI v1.30 with 2 3Gbps ports, Port Multiplier not supported > ahcich0: at channel 0 on ahci0 > xhci0: mem 0xd0a00000-0xd0a0ffff irq > 20 at device 20.0 on pci0 > xhci0: 32 bytes context size, 64-bit DMA > xhci0: Port routing mask set to 0xffffffff > usbus0 on xhci0 > usbus0: 5.0Gbps Super Speed USB v3.0 > pci0: at device 26.0 (no driver attached) > hdac0: mem 0xd0a10000-0xd0a13fff irq 22 a= t > device 27.0 on pci0 > pcib1: irq 16 at device 28.0 on pci0 > pcib1: [GIANT-LOCKED] > pci1: on pcib1 > igb0: port > 0xe000-0xe01f mem 0xd0900000-0xd091ffff,0xd0920000-0xd0923fff irq 16 at > device 0.0 on pci1 > igb0: Using MSIX interrupts with 3 vectors > igb0: Ethernet address: 40:62:31:02:18:41 > igb0: Bound queue 0 to cpu 0 > igb0: Bound queue 1 to cpu 1 > igb0: netmap queues/slots: TX 2/4096, RX 2/4096 > pcib2: irq 17 at device 28.1 on pci0 > pcib2: [GIANT-LOCKED] > pci2: on pcib2 > igb1: port > 0xd000-0xd01f mem 0xd0800000-0xd081ffff,0xd0820000-0xd0823fff irq 17 at > device 0.0 on pci2 > igb1: Using MSIX interrupts with 3 vectors > igb1: Ethernet address: 40:62:31:02:18:42 > igb1: Bound queue 0 to cpu 2 > igb1: Bound queue 1 to cpu 3 > igb1: netmap queues/slots: TX 2/4096, RX 2/4096 > pcib3: irq 18 at device 28.2 on pci0 > pcib3: [GIANT-LOCKED] > pci3: on pcib3 > igb2: port > 0xc000-0xc01f mem 0xd0700000-0xd071ffff,0xd0720000-0xd0723fff irq 18 at > device 0.0 on pci3 > igb2: Using MSIX interrupts with 3 vectors > igb2: Ethernet address: 40:62:31:02:18:43 > igb2: Bound queue 0 to cpu 0 > igb2: Bound queue 1 to cpu 1 > igb2: netmap queues/slots: TX 2/4096, RX 2/4096 > pcib4: irq 19 at device 28.3 on pci0 > pcib4: [GIANT-LOCKED] > pci4: on pcib4 > igb3: port > 0xb000-0xb01f mem 0xd0600000-0xd061ffff,0xd0620000-0xd0623fff irq 19 at > device 0.0 on pci4 > igb3: Using MSIX interrupts with 3 vectors > igb3: Ethernet address: 40:62:31:02:18:44 > igb3: Bound queue 0 to cpu 2 > igb3: Bound queue 1 to cpu 3 > igb3: netmap queues/slots: TX 2/4096, RX 2/4096 > isab0: at device 31.0 on pci0 > isa0: on isab0 > acpi_button0: on acpi0 > acpi_button1: on acpi0 > acpi_tz0: on acpi0 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=3D0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ppc0: cannot reserve I/O port range > est0: on cpu0 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 7c000000183e > device_attach: est0 attach returned 6 > est1: on cpu1 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 7c000000183e > device_attach: est1 attach returned 6 > est2: on cpu2 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 7c000000183e > device_attach: est2 attach returned 6 > est3: on cpu3 > est: CPU supports Enhanced Speedstep, but is not recognized. > est: cpu_vendor GenuineIntel, msr 7c000000183e > device_attach: est3 attach returned 6 > Timecounters tick every 1.000 msec > ipfw2 (+ipv6) initialized, divert enabled, nat loadable, default to > accept, logging disabled > DUMMYNET 0 with IPv6 initialized (100409) > load_dn_sched dn_sched FIFO loaded > load_dn_sched dn_sched QFQ loaded > load_dn_sched dn_sched RR loaded > load_dn_sched dn_sched WF2Q+ loaded > load_dn_sched dn_sched PRIO loaded > load_dn_sched dn_sched FQ_CODEL loaded > load_dn_sched dn_sched FQ_PIE loaded > load_dn_aqm dn_aqm CODEL loaded > load_dn_aqm dn_aqm PIE loaded > hdacc0: at cad 2 on hdac0 > hdaa0: at nid 1 on hdacc0 > pcm0: at nid 4 on hdaa0 > ugen0.1: <0x8086 XHCI root HUB> at usbus0 > uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 > ada0: ACS-3 ATA SATA 3.x device > ada0: Serial Number WD-WXB1A186TS37 > ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 476940MB (976773168 512 byte sectors) > ada0: quirks=3D0x1<4K> > Trying to mount root from ufs:/dev/ufs/root [rw]... > Root mount waiting for: GMIRROR usbus0 > uhub0: 7 ports with 7 removable, self powered > Root mount waiting for: GMIRROR usbus0 > ugen0.2: at usbus0 > uhub1 on uhub0 > uhub1: on > usbus0 > uhub1: 4 ports with 4 removable, self powered > Root mount waiting for: GMIRROR usbus0 > ugen0.3: at usbus0 > ukbd0 on uhub1 > ukbd0: on usbus0 > kbd1 at ukbd0 > Root mount waiting for: GMIRROR > GEOM_MIRROR: Force device gm0 start due to timeout. > GEOM_MIRROR: Device mirror/gm0 launched (1/2). > mountroot: waiting for device /dev/ufs/root... > WARNING: / was not properly dismounted > random: unblocking device. > lo0: link state changed to UP > uhid0 on uhub1 > uhid0: on usbus0 > > > Output of pciconf -lvvv: > > hostb0@pci0:0:0:0: class=3D0x060000 card=3D0x0f318086 chip=3D0x0f008= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor Z36xxx/Z37xxx Series SoC Transaction > Register' > class =3D bridge > subclass =3D HOST-PCI > vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x0f318086 chip=3D0x0f318= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor Z36xxx/Z37xxx Series Graphics & Displa= y' > class =3D display > subclass =3D VGA > ahci0@pci0:0:19:0: class=3D0x010601 card=3D0x0f238086 chip=3D0x0f238= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor E3800 Series SATA AHCI Controller' > class =3D mass storage > subclass =3D SATA > xhci0@pci0:0:20:0: class=3D0x0c0330 card=3D0x0f358086 chip=3D0x0f358= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series US= B > xHCI' > class =3D serial bus > subclass =3D USB > none0@pci0:0:26:0: class=3D0x108000 card=3D0x0f188086 chip=3D0x0f188= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor Z36xxx/Z37xxx Series Trusted Execution > Engine' > class =3D encrypt/decrypt > hdac0@pci0:0:27:0: class=3D0x040300 card=3D0x0f048086 chip=3D0x0f048= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor Z36xxx/Z37xxx Series High Definition > Audio Controller' > class =3D multimedia > subclass =3D HDA > pcib1@pci0:0:28:0: class=3D0x060400 card=3D0x0f488086 chip=3D0x0f488= 086 > rev=3D0x0e hdr=3D0x01 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor E3800 Series PCI Express Root Port 1' > class =3D bridge > subclass =3D PCI-PCI > pcib2@pci0:0:28:1: class=3D0x060400 card=3D0x0f4a8086 chip=3D0x0f4a8= 086 > rev=3D0x0e hdr=3D0x01 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor E3800 Series PCI Express Root Port 2' > class =3D bridge > subclass =3D PCI-PCI > pcib3@pci0:0:28:2: class=3D0x060400 card=3D0x0f4c8086 chip=3D0x0f4c8= 086 > rev=3D0x0e hdr=3D0x01 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor E3800 Series PCI Express Root Port 3' > class =3D bridge > subclass =3D PCI-PCI > pcib4@pci0:0:28:3: class=3D0x060400 card=3D0x0f4e8086 chip=3D0x0f4e8= 086 > rev=3D0x0e hdr=3D0x01 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor E3800 Series PCI Express Root Port 4' > class =3D bridge > subclass =3D PCI-PCI > isab0@pci0:0:31:0: class=3D0x060100 card=3D0x0f1c8086 chip=3D0x0f1c8= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor Z36xxx/Z37xxx Series Power Control Uni= t' > class =3D bridge > subclass =3D PCI-ISA > none1@pci0:0:31:3: class=3D0x0c0500 card=3D0x0f128086 chip=3D0x0f128= 086 > rev=3D0x0e hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Atom Processor E3800 Series SMBus Controller' > class =3D serial bus > subclass =3D SMBus > igb0@pci0:1:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x15398= 086 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I211 Gigabit Network Connection' > class =3D network > subclass =3D ethernet > igb1@pci0:2:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x15398= 086 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I211 Gigabit Network Connection' > class =3D network > subclass =3D ethernet > igb2@pci0:3:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x15398= 086 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I211 Gigabit Network Connection' > class =3D network > subclass =3D ethernet > igb3@pci0:4:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x15398= 086 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I211 Gigabit Network Connection' > class =3D network > subclass =3D ethernet > > Eugene Grosbein > --=20 WBW ------- Rybalko Aleksandr