daily CVS update output

2021-02-07 Thread NetBSD source update


Updating src tree:
P src/doc/CHANGES
P src/external/mit/xorg/server/xorg-server/hw/netbsd/x68k/Makefile
P src/lib/libc/stdio/fread.c
P src/lib/libc/sys/kill.2
P src/lib/libc/sys/poll.2
P src/lib/libcurses/curses_screen.3
P src/sys/arch/aarch64/include/locore.h
P src/sys/arch/arm/arm32/bus_dma.c
P src/sys/arch/arm/cortex/gicv3.c
P src/sys/arch/arm/include/cpufunc.h
P src/sys/arch/arm/ofw/openfirm.c
P src/sys/arch/arm/pic/pic.c
P src/sys/arch/evbmips/conf/ADM5120
P src/sys/arch/evbmips/conf/ADM5120-NB
P src/sys/arch/evbmips/conf/ADM5120-USB
P src/sys/arch/evbmips/conf/ALCHEMY
P src/sys/arch/evbmips/conf/MIPSSIM
P src/sys/arch/x68k/dev/ms.c
P src/sys/arch/x68k/x68k/machdep.c
P src/sys/dev/pci/virtio.c
P src/sys/dev/pci/xhci_pci.c
P src/tests/lib/libcurses/testframe.txt
U src/tests/lib/libcurses/check_files/addchstr2.chk
P src/tests/lib/libcurses/director/director.c
P src/tests/lib/libcurses/director/returns.h
P src/tests/lib/libcurses/director/testlang_conf.l
P src/tests/lib/libcurses/director/testlang_parse.y
P src/tests/lib/libcurses/tests/addch
P src/tests/lib/libcurses/tests/innstr
P src/tests/lib/libcurses/tests/keyname
P src/usr.bin/make/unit-tests/var-op-sunsh.mk

Updating xsrc tree:
U xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/mouseEmu3btn.c
U xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/mouseEmu3btn.h
P xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68k.h
P xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68kMouse.c


Killing core files:



Updating release-8 src tree (netbsd-8):
U doc/CHANGES-8.3
P lib/libc/arch/mips/sys/cerror.S
P sys/conf/param.c
P sys/kern/init_main.c
P sys/sys/param.h
P usr.sbin/isibootd/isibootd.c

Updating release-8 xsrc tree (netbsd-8):



Updating release-9 src tree (netbsd-9):
U doc/CHANGES-9.2
P lib/libc/arch/mips/sys/cerror.S
P lib/libc/stdio/fread.c
P sys/kern/kern_event.c
P usr.sbin/isibootd/isibootd.c

Updating release-9 xsrc tree (netbsd-9):




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  39497105 Feb  8 03:11 ls-lRA.gz


Re: xhci driver crashes FreeBSD bhyve hypervisor

2021-02-07 Thread Chavdar Ivanov
You don't need to recompile anything; when you boot the cd-rom (in
UEFI mode, so you have VNC connection I presume), switch quickly to
the VNC screen from the menu option and hit '3' to get into the boot
prompt; then type 'boot -c', on the uc> prompt enter 'disable xhci'
and then 'quit'. After you finish the installation, mount again the
root partition on /targetroot and edit the boot.cfg file, placing
'userconf=disable xhci' close to the end.

I just installed a -current system under TrueNAS 12.0 - on my own
homegrown TrueNAS server. Works reasonably well.


On Sun, 7 Feb 2021 at 20:30, Darrin B. Jewell  wrote:
>
>
> As I recently reported in this forum, I have obtained a FreeBSD based
> NAS system from https://www.truenas.com/truenas-mini/
>
> This system provides the bhyve hypervisor for running virtual
> machines and I recently attempted to boot NetBSD 9.1 on it.
> Unfortunately, the xhci driver appears to crash the hypervisor.
>
>  pid 6925 (bhyve), jid 0, uid 0: exited on signal 11
>
> I've included the virtual netbsd system console below
> when I booted the NetBSD-9.1-amd64.iso cdrom image from the
> default distribution.
>
> Recompiling and removing the xhci driver avoids this crash
> and allows NetBSD to function in this environment.
>
> I'll report here any further details if I get the time to
> debug this crash.
>
> Darrin
>
> [   1.000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 
> 2004, 2005,
> [   1.000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 
> 2015, 2016, 2017,
> [   1.000] 2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights 
> reserved.
> [   1.000] Copyright (c) 1982, 1986, 1989, 1991, 1993
> [   1.000] The Regents of the University of California.  All rights 
> reserved.
>
> [   1.000] NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020
> [   1.000]  
> mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> [   1.000] total memory = 16383 MB
> [   1.000] avail memory = 15883 MB
> [   1.000] WARNING: module error: module `cd9660' pushed by boot loader 
> already exists
> [   1.000] cpu_rng: RDSEED
> [   1.000] running cgd selftest aes-xts-256 aes-xts-512 done
> [   1.030] efi: systbl at pa bfb7cf18
> [   1.030] mainbus0 (root)
> [   1.030] ACPI: RSDP 0xBFB88014 24 (v02 BHYVE )
> [   1.030] ACPI: XSDT 0xBFB870E8 4C (v01 BHYVE  BVFACP   
> 0001  0113)
> [   1.030] ACPI: FACP 0xBFB86000 F4 (v04 BHYVE  BVFACP   
> 0001 BHYV 0001)
> [   1.030] ACPI: DSDT 0xBEA98000 00191A (v02 BHYVE  BVDSDT   
> 0001 INTL 20200430)
> [   1.030] ACPI: FACS 0xBFB8C000 40
> [   1.030] ACPI: HPET 0xBFB85000 38 (v01 BHYVE  BVHPET   
> 0001 BHYV 0001)
> [   1.030] ACPI: APIC 0xBFB84000 82 (v01 BHYVE  BVMADT   
> 0001 BHYV 0001)
> [   1.030] ACPI: MCFG 0xBFB83000 3C (v01 BHYVE  BVMCFG   
> 0001 BHYV 0001)
> [   1.030] ACPI: SPCR 0xBFB82000 50 (v01 BHYVE  BVSPCR   
> 0001 BHYV 0001)
> [   1.030] ACPI: 1 ACPI AML tables successfully acquired and loaded
> [   1.030] ioapic0 at mainbus0 apid 8
> [   1.030] cpu0 at mainbus0 apid 0
> [   1.030] cpu0: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu0: package 0, core 0, smt 0
> [   1.030] cpu1 at mainbus0 apid 1
> [   1.030] cpu1: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu1: package 0, core 1, smt 0
> [   1.030] cpu2 at mainbus0 apid 2
> [   1.030] cpu2: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu2: package 0, core 2, smt 0
> [   1.030] cpu3 at mainbus0 apid 3
> [   1.030] cpu3: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu3: package 0, core 3, smt 0
> [   1.030] cpu4 at mainbus0 apid 4
> [   1.030] cpu4: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu4: package 0, core 4, smt 0
> [   1.030] cpu5 at mainbus0 apid 5
> [   1.030] cpu5: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu5: package 0, core 5, smt 0
> [   1.030] cpu6 at mainbus0 apid 6
> [   1.030] cpu6: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu6: package 0, core 6, smt 0
> [   1.030] cpu7 at mainbus0 apid 7
> [   1.030] cpu7: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
> [   1.030] cpu7: package 0, core 7, smt 0
> [   1.030] acpi0 at mainbus0: Intel ACPICA 20190405
> [   1.030] acpi0: fixed power button present
> [   1.0361919] hpet0 at acpi0: high precision event timer (mem 
> 0xfed0-0xfed00400)
> [   1.0400841] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
> [   1.0400841] pckbc2 at acpi0 (MOU, PNP0F03) (aux port): irq 12
> [   1.0400841] SIO (PNP0C02) at acpi0 not configured
> [   1.0400841] COM1 (PNP0501) at acpi0 no

Automated report: NetBSD-current/i386 test failure

2021-02-07 Thread NetBSD Test Fixture
This is an automatically generated notice of a new failure of the
NetBSD test suite.

The newly failing test case is:

lib/libcurses/t_curses:mvwin

The above test failed in each of the last 4 test runs, and passed in
at least 26 consecutive runs before that.

The following commits were made between the last successful test and
the failed test:

2021.02.07.17.23.29 rillig 
src/tests/lib/libcurses/director/testlang_parse.y,v 1.25
2021.02.07.17.26.15 rillig 
src/tests/lib/libcurses/director/testlang_parse.y,v 1.26
2021.02.07.17.32.55 rillig 
src/tests/lib/libcurses/director/testlang_conf.l,v 1.12
2021.02.07.17.32.55 rillig 
src/tests/lib/libcurses/director/testlang_parse.y,v 1.27
2021.02.07.17.50.16 rillig 
src/tests/lib/libcurses/director/testlang_parse.y,v 1.28

Logs can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2021.02.html#2021.02.07.17.50.16


Re: xhci driver crashes FreeBSD bhyve hypervisor

2021-02-07 Thread Christos Zoulas
In article ,
Darrin B. Jewell  wrote:
>
>As I recently reported in this forum, I have obtained a FreeBSD based
>NAS system from https://www.truenas.com/truenas-mini/
>
>This system provides the bhyve hypervisor for running virtual
>machines and I recently attempted to boot NetBSD 9.1 on it.
>Unfortunately, the xhci driver appears to crash the hypervisor.
>
> pid 6925 (bhyve), jid 0, uid 0: exited on signal 11
>
>I've included the virtual netbsd system console below
>when I booted the NetBSD-9.1-amd64.iso cdrom image from the
>default distribution.
>
>Recompiling and removing the xhci driver avoids this crash
>and allows NetBSD to function in this environment.
>
>I'll report here any further details if I get the time to
>debug this crash.

A segv on the hypervisor is the hypervisor's fault. I would report it to them.

christos



xhci driver crashes FreeBSD bhyve hypervisor

2021-02-07 Thread Darrin B. Jewell


As I recently reported in this forum, I have obtained a FreeBSD based
NAS system from https://www.truenas.com/truenas-mini/

This system provides the bhyve hypervisor for running virtual
machines and I recently attempted to boot NetBSD 9.1 on it.
Unfortunately, the xhci driver appears to crash the hypervisor.

 pid 6925 (bhyve), jid 0, uid 0: exited on signal 11

I've included the virtual netbsd system console below
when I booted the NetBSD-9.1-amd64.iso cdrom image from the
default distribution.

Recompiling and removing the xhci driver avoids this crash
and allows NetBSD to function in this environment.

I'll report here any further details if I get the time to
debug this crash.

Darrin

[   1.000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 
2004, 2005,
[   1.000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 
2016, 2017,
[   1.000] 2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights 
reserved.
[   1.000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.000] The Regents of the University of California.  All rights 
reserved.

[   1.000] NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020
[   1.000]  
mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
[   1.000] total memory = 16383 MB
[   1.000] avail memory = 15883 MB
[   1.000] WARNING: module error: module `cd9660' pushed by boot loader 
already exists
[   1.000] cpu_rng: RDSEED
[   1.000] running cgd selftest aes-xts-256 aes-xts-512 done
[   1.030] efi: systbl at pa bfb7cf18
[   1.030] mainbus0 (root)
[   1.030] ACPI: RSDP 0xBFB88014 24 (v02 BHYVE )
[   1.030] ACPI: XSDT 0xBFB870E8 4C (v01 BHYVE  BVFACP   
0001  0113)
[   1.030] ACPI: FACP 0xBFB86000 F4 (v04 BHYVE  BVFACP   
0001 BHYV 0001)
[   1.030] ACPI: DSDT 0xBEA98000 00191A (v02 BHYVE  BVDSDT   
0001 INTL 20200430)
[   1.030] ACPI: FACS 0xBFB8C000 40
[   1.030] ACPI: HPET 0xBFB85000 38 (v01 BHYVE  BVHPET   
0001 BHYV 0001)
[   1.030] ACPI: APIC 0xBFB84000 82 (v01 BHYVE  BVMADT   
0001 BHYV 0001)
[   1.030] ACPI: MCFG 0xBFB83000 3C (v01 BHYVE  BVMCFG   
0001 BHYV 0001)
[   1.030] ACPI: SPCR 0xBFB82000 50 (v01 BHYVE  BVSPCR   
0001 BHYV 0001)
[   1.030] ACPI: 1 ACPI AML tables successfully acquired and loaded
[   1.030] ioapic0 at mainbus0 apid 8
[   1.030] cpu0 at mainbus0 apid 0
[   1.030] cpu0: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu0: package 0, core 0, smt 0
[   1.030] cpu1 at mainbus0 apid 1
[   1.030] cpu1: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu1: package 0, core 1, smt 0
[   1.030] cpu2 at mainbus0 apid 2
[   1.030] cpu2: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu2: package 0, core 2, smt 0
[   1.030] cpu3 at mainbus0 apid 3
[   1.030] cpu3: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu3: package 0, core 3, smt 0
[   1.030] cpu4 at mainbus0 apid 4
[   1.030] cpu4: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu4: package 0, core 4, smt 0
[   1.030] cpu5 at mainbus0 apid 5
[   1.030] cpu5: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu5: package 0, core 5, smt 0
[   1.030] cpu6 at mainbus0 apid 6
[   1.030] cpu6: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu6: package 0, core 6, smt 0
[   1.030] cpu7 at mainbus0 apid 7
[   1.030] cpu7: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu7: package 0, core 7, smt 0
[   1.030] acpi0 at mainbus0: Intel ACPICA 20190405
[   1.030] acpi0: fixed power button present
[   1.0361919] hpet0 at acpi0: high precision event timer (mem 
0xfed0-0xfed00400)
[   1.0400841] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
[   1.0400841] pckbc2 at acpi0 (MOU, PNP0F03) (aux port): irq 12
[   1.0400841] SIO (PNP0C02) at acpi0 not configured
[   1.0400841] COM1 (PNP0501) at acpi0 not configured
[   1.0400841] COM2 (PNP0501) at acpi0 not configured
[   1.0400841] attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43 irq 0
[   1.0400841] pckbd0 at pckbc1 (kbd slot)
[   1.0400841] pckbc1: using irq 1 for kbd slot
[   1.0400841] wskbd0 at pckbd0 mux 1
[   1.0400841] pms0 at pckbc1 (aux slot)
[   1.0400841] pckbc1: using irq 12 for aux slot
[   1.0400841] wsmouse0 at pms0 mux 0
[   1.0400841] pci0 at mainbus0 bus 0: configuration mode 1
[   1.0400841] pchb0 at pci0 dev 0 function 0: vendor 1275 product 1275 (rev. 
0x00)
[   1.0400841] ahcisata0 at pci0 dev 2 function 0: vendor 8086 product 2821 
(rev. 0x00)
[   1.0400841] ahcisata0: AHCI revision 1.30, 6 ports, 32 slots, CAP 
0xff30ff25
[   1.0400841] ahcisata1 at pci0 dev 3 function 0: vendor 8086 product 2821 
(rev. 0x00)
[

usb xhci interrupt failure on TrueNAS Mini X+

2021-02-07 Thread Darrin B. Jewell


I recently obtained a TrueNAS Mini X+ system from
  https://www.truenas.com/truenas-mini/
which comes installed with a FreeBSD based NAS configuration.
This includes a supermicro A2SDi-H-TF motherboard.

I attempted to boot NetBSD on it and discovered that
usb devices do not enumerate, giving this error for
each device:
   uhub1: device problem, disabling port 1
   uhub1: device problem, disabling port 3

Attaching release 9.1 INSTALL boot log below, but this
also occurs with -current recently compiled.

After investigation, I discovered that interrupts
were not getting delivered to the xhci driver.
I then reimplemented XHCI_DISABLE_MSI in sys/dev/pci/xhci_pci.c
and was able to get usb devices to work.

Anyone have ideas on why the default configuration fails?
I'm able to provide experimentation or additional debug logs. 

Darrin

[   1.000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 
2004, 2005,
[   1.000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 
2016, 2017,
[   1.000] 2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights 
reserved.
[   1.000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.000] The Regents of the University of California.  All rights 
reserved.

[   1.000] NetBSD 9.1 (INSTALL) #0: Sun Oct 18 19:24:30 UTC 2020
[   1.000]
mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/INSTALL
[   1.000] total memory = 65497 MB
[   1.000] avail memory = 63571 MB
[   1.000] cpu_rng: RDSEED
[   1.000] running cgd selftest aes-xts-256 aes-xts-512 done
[   1.030] mainbus0 (root)
[   1.030] ACPI: RSDP 0x000F05B0 24 (v02 SUPERM)
[   1.030] ACPI: XSDT 0x7E1FD098 AC (v01 SUPERM SMCI--MB 
01072009 AMI  00010013)
[   1.030] ACPI: FACP 0x7E201A20 000114 (v06 SUPERM SMCI--MB 
01072009 AMI  00010013)
[   1.030] ACPI: DSDT 0x7E1FD1D8 004848 (v02 SUPERM SMCI--MB 
01072009 INTL 20061109)
[   1.030] ACPI: FACS 0x7E268080 40
[   1.030] ACPI: FPDT 0x7E201B38 44 (v01 SUPERM SMCI--MB 
01072009 AMI  00010013)
[   1.030] ACPI: FIDT 0x7E201B80 9C (v01 SUPERM SMCI--MB 
01072009 AMI  00010013)
[   1.030] ACPI: SPMI 0x7E201C20 41 (v05 SUPERM SMCI--MB 
 AMI. )
[   1.030] ACPI: MCFG 0x7E201C68 3C (v01 SUPERM SMCI--MB 
01072009 MSFT 0097)
[   1.030] ACPI: WDAT 0x7E201CA8 0001AC (v01 SUPERM SMCI--MB 
01072009 MSFT 00010013)
[   1.030] ACPI: APIC 0x7E201E58 98 (v04 INTEL  TIANO
0001 MSFT )
[   1.030] ACPI: BDAT 0x7E201EF0 30 (v01 
  )
[   1.030] ACPI: HPET 0x7E201F20 38 (v01 SUPERM SMCI--MB 
0001 MSFT 0113)
[   1.030] ACPI: UEFI 0x7E201F58 42 (v01 SUPERM SMCI--MB 
0002  0113)
[   1.030] ACPI: SSDT 0x7E201FA0 001901 (v02 PmRef  CpuPm
3000 INTL 20061109)
[   1.030] ACPI: DMAR 0x7E2038A8 70 (v01 INTEL  BDW  
0001 INTL 0001)
[   1.030] ACPI: HEST 0x7E203918 A8 (v01 INTEL  VND  
0001 INTL 0001)
[   1.030] ACPI: BERT 0x7E2039C0 30 (v01 INTEL  VND  
0001 INTL 0001)
[   1.030] ACPI: ERST 0x7E2039F0 000230 (v01 INTEL  VND  
0001 INTL 0001)
[   1.030] ACPI: EINJ 0x7E203C20 000150 (v01 INTEL  VND  
0001 INTL 0001)
[   1.030] ACPI: WSMT 0x7E203D70 28 (v01 u?  
01072009 AMI  00010013)
[   1.030] ACPI: 2 ACPI AML tables successfully acquired and loaded
[   1.030] ioapic0 at mainbus0 apid 2
[   1.030] cpu0 at mainbus0 apid 0
[   1.030] cpu0: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu0: package 0, core 0, smt 0
[   1.030] cpu1 at mainbus0 apid 4
[   1.030] cpu1: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu1: package 0, core 2, smt 0
[   1.030] cpu2 at mainbus0 apid 8
[   1.030] cpu2: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu2: package 0, core 4, smt 0
[   1.030] cpu3 at mainbus0 apid 12
[   1.030] cpu3: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu3: package 0, core 6, smt 0
[   1.030] cpu4 at mainbus0 apid 16
[   1.030] cpu4: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu4: package 0, core 8, smt 0
[   1.030] cpu5 at mainbus0 apid 20
[   1.030] cpu5: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu5: package 0, core 10, smt 0
[   1.030] cpu6 at mainbus0 apid 24
[   1.030] cpu6: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu6: package 0, core 12, smt 0
[   1.030] cpu7 at mainbus0 apid 28
[   1.030] cpu7: Intel(R) Atom(TM) CPU C3758 @ 2.20GHz, id 0x506f1
[   1.030] cpu7: package 0, core 14, smt 0
[   1.030] acpi0 at ma