Re: How to determine if graphics is supported by radeondrm?

2021-03-25 Thread nia
as previously mentioned, the "radeon" DRM/KMS driver supports
only older AMD GPUs - mostly everything of the TeraScale family.

we do not yet have a working port of the "amdgpu" driver for
newer stuff in 9.x or -current.

until last year, I was happily using a Radeon HD 6570.
this is a GPU introduced in 2011 with TeraScale 2 and DisplayPort,
available in low-profile forms. I had trouble finding open source
software that would not run at 1080p.

several NetBSD developers like the Radeon HD 5450 because it is
fanless.

> Am I better off looking at iNtel stuff?

if you want a newer integrated GPU, yes, in 9.x we support everything up
to (including) Kaby Lake, which is hardware that debuted in 2016 and
was discontinued for desktop processors in 2020.

if you want a better CPU and are happy with an older external GPU,
i would not advise getting Intel stuff.

newer x86 hardware supports a generic unaccelerated full resolutoin
dumb UEFI framebuffer. llvmpipe (the software OpenGL driver) will be
chosen when this is in use.  llvmpipe is very good on CPUs with lots
of cores and threads, it is highly paralell.

hope this helps,
nia


a reminder: upgrade Xen in single-user mode, or with Xen disabled!

2021-03-25 Thread Greg A. Woods
So I just upgraded Xen to xenkernel413-4.13.2nb5, but without first
upgrading the Xen tools, as otherwise how would one safely shut down any
running domUs, etc.?  :-)

Once upgrading to xentools413-4.13.2nb4 I immediately got stuck:

# xl list
NameID   Mem VCPUs  State   Time(s)
[ 578.9865720] load: 0.27  cmd: xl 2027 [tstile] 0.00u 0.01s 0% 3080k

and I mean "really" stuck -- xl is unkillable (and unstoppable) in that
state!

At first I had grave misgivings that the old tstile deadlock was back,
but at the moment only dom0 is running

So thinking, h the old xenstored is started on boot and will
still be running and so I need to restart that from another xterm with
"/etc/rc.d/xencommons restart", and voila, that unstuck xl.

Probably xl shouldn't get stuck like that if it can't connect to
xenstored properly -- as I said it's unkillable in that state!

I then tried "/etc/rc.d/xenwatchdog restart" but it didn't restart (for
some reason I've yet to diagnose -- I had this happen once before -- it
seems to have trouble restarting sometimes, perhaps especially after
restarting xencommons).

That meant that a few moments later the Xen kernel decided dom0 was dead
and promptly (and I mean PROMPTLY) rebooted the machine -- kaboom!

(XEN) [2021-03-25 04:16:26.951] Watchdog timer fired for domain 0
(XEN) [2021-03-25 04:16:26.951] Hardware Dom0 shutdown: watchdog rebooting 
machine

At least on this next reboot all the right versions of the right bits
started!

--
Greg A. Woods 

Kelowna, BC +1 250 762-7675   RoboHack 
Planix, Inc.  Avoncote Farms 


pgpNLASee644w.pgp
Description: OpenPGP Digital Signature


Re: kern/54969 (Disk cache is no longer flushed on shutdown)

2021-03-25 Thread Greg A. Woods
So, the reason I jumped from what I thought was a relatively stable
point in the main -current branch to a more recent version was primarily
because of what I believe is a problem related to PR# 54969.

I had noticed long fscks on large filesystems following normal clean
reboots and got investigating.

Maybe what remains an issue here is just related to dm(4) partitions, as
only my /dev/mapper partition(s) have had problems recently.

Unfortunately though this is still happening with 9.99.81 (2021-03-10).
(and both with GENERIC and XEN3_DOM0)

In any case I would say this is the single most critical, serious, and
important, issue in current (and netbsd-9)!  It totally kills system
reliability (though maybe only if one is using LVM).

Just for evidence, I added a bunch more printfs to the kernel and rc.d
scripts (and '-v' flags to fsck, mount, etc.) to help me see for myself
better what exactly is going on.  This is the console after a truly
normal complete safe reboot using shutdown(8).

In this example all processes but the shutdown scripts should be dead.
The NFS mount on /more/work probably won't complete because I probably
started shutdown(8) without first doing "cd /" (and without doing "exec
shutdown"), and my CWD was probably on that NFS mount.  This could maybe
be fixed by having reboot/halt/powerdown kill its parent process first,
and perhaps also doing chdir("/") too.

There's no excuse I can find for /build not unmounting though, and
definitely no excuse for '/' not umounting either, though it later '/'
is forcefully unmounted, and on reboot '/' appears to be clean.  However
the forceful unmount of /build doesn't work, and it is NOT clean.

Note also that /build will sometimes unmount quickly and cleanly if it
hasn't been dirtied since the last boot, but it seems even creating one
file can leave it dirty on reboot.

Maybe what remains an issue here is just related to dm(4) partitions?


[Wed Mar 24 20:42:56 2021][ 715713.0781096] syncing disks... done
[Wed Mar 24 20:42:56 2021][ 715713.2081201] unmounted more.local:/vcs from 
/more/vcs, type nfs
[Wed Mar 24 20:42:56 2021][ 715713.2481211] unmount of /more/work 
(more.local:/work) failed with error 16
[Wed Mar 24 20:42:56 2021][ 715713.2581208] unmounted more.local:/home from 
/more/home, type nfs
[Wed Mar 24 20:42:56 2021][ 715713.2581208] unmounted more.local:/archive from 
/more/archive, type nfs
[Wed Mar 24 20:42:57 2021][ 715714.0781691] unmount of /build 
(/dev/mapper/scratch-build) failed with error 16
[Wed Mar 24 20:42:57 2021][ 715714.0781691] unmounted procfs from /proc, type 
procfs
[Wed Mar 24 20:42:57 2021][ 715714.0781691] unmounted ptyfs from /dev/pts, type 
ptyfs
[Wed Mar 24 20:42:57 2021][ 715714.0781691] unmounted kernfs from /kern, type 
kernfs
[Wed Mar 24 20:42:58 2021][ 715714.6782049] unmounted /dev/dk3 from /usr/pkg, 
type ffs
[Wed Mar 24 20:42:58 2021][ 715714.7282939] unmounted /dev/dk2 from /var, type 
ffs
[Wed Mar 24 20:42:58 2021][ 715714.8282434] unmount of / (/dev/dk0) failed with 
error 16
[Wed Mar 24 20:42:58 2021][ 715714.8282434] WARNING: some file systems would 
not unmount
[Wed Mar 24 20:42:58 2021][ 715714.8282434] unmount of /more/work 
(more.local:/work) failed with error 16
[Wed Mar 24 20:42:58 2021][ 715714.8282434] unmount of /build 
(/dev/mapper/scratch-build) failed with error 16
[Wed Mar 24 20:42:58 2021][ 715714.8282434] unmount of / (/dev/dk0) failed with 
error 16
[Wed Mar 24 20:42:58 2021][ 715714.8282434] WARNING: some file systems would 
not unmount
[Wed Mar 24 20:42:59 2021][ 715716.5383256] brgphy1: detached

[[ ... almost all the rest of devices detach ... ]]

[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of /more/work 
(more.local:/work) failed with error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of /build 
(/dev/mapper/scratch-build) failed with error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of / (/dev/dk0) failed with 
error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] WARNING: some file systems would 
not unmount
[Wed Mar 24 20:43:02 2021][ 715718.5284461] sd1: detached
[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of /more/work 
(more.local:/work) failed with error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of /build 
(/dev/mapper/scratch-build) failed with error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of / (/dev/dk0) failed with 
error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] WARNING: some file systems would 
not unmount
[Wed Mar 24 20:43:02 2021][ 715718.5284461] forcefully unmounting 
more.local:/work from /more/work...
[Wed Mar 24 20:43:02 2021][ 715718.5284461] forcefully unmounted 
more.local:/work from /more/work, type nfs
[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of /build 
(/dev/mapper/scratch-build) failed with error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] unmount of / (/dev/dk0) failed with 
error 16
[Wed Mar 24 20:43:02 2021][ 715718.5284461] WARNING: some file systems would 
not

daily CVS update output

2021-03-25 Thread NetBSD source update


Updating src tree:
P src/crypto/external/bsd/openssl/dist/CHANGES
P src/crypto/external/bsd/openssl/dist/NEWS
P src/crypto/external/bsd/openssl/dist/README
P src/crypto/external/bsd/openssl/dist/Configurations/unix-Makefile.tmpl
P src/crypto/external/bsd/openssl/dist/apps/s_cb.c
P src/crypto/external/bsd/openssl/dist/apps/s_time.c
P src/crypto/external/bsd/openssl/dist/crypto/o_time.c
P src/crypto/external/bsd/openssl/dist/crypto/asn1/asn1_par.c
P src/crypto/external/bsd/openssl/dist/crypto/asn1/bio_ndef.c
P src/crypto/external/bsd/openssl/dist/crypto/engine/eng_devcrypto.c
P src/crypto/external/bsd/openssl/dist/crypto/evp/evp_enc.c
P src/crypto/external/bsd/openssl/dist/crypto/modes/cbc128.c
P src/crypto/external/bsd/openssl/dist/crypto/modes/gcm128.c
P src/crypto/external/bsd/openssl/dist/crypto/rand/rand_lib.c
P src/crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ssl.c
P src/crypto/external/bsd/openssl/dist/crypto/x509/x509_vfy.c
P src/crypto/external/bsd/openssl/dist/fuzz/x509.c
P src/crypto/external/bsd/openssl/dist/include/openssl/opensslv.h
P src/crypto/external/bsd/openssl/dist/ssl/s3_lib.c
P src/crypto/external/bsd/openssl/dist/ssl/ssl_lib.c
P src/crypto/external/bsd/openssl/dist/ssl/statem/extensions.c
P src/crypto/external/bsd/openssl/dist/ssl/statem/extensions_clnt.c
P src/crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c
P src/crypto/external/bsd/openssl/dist/ssl/statem/statem_srvr.c
P src/crypto/external/bsd/openssl/dist/test/rsa_test.c
P src/crypto/external/bsd/openssl/dist/test/verify_extra_test.c
P src/crypto/external/bsd/openssl/dist/test/recipes/70-test_renegotiation.t
P src/crypto/external/bsd/openssl/dist/tools/c_rehash.in
P src/crypto/external/bsd/openssl/dist/util/perl/TLSProxy/Message.pm
P src/distrib/sets/lists/debug/module.md.amd64
P src/distrib/sets/lists/debug/module.md.i386
P src/distrib/sets/lists/debug/module.mi
P src/distrib/sets/lists/modules/md.amd64
P src/distrib/sets/lists/modules/md.i386
P src/distrib/sets/lists/modules/mi
P src/doc/3RDPARTY
P src/doc/CHANGES
P src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ioctl.c
P src/sys/arch/aarch64/aarch64/aarch64_machdep.c
P src/sys/arch/arm/omap/ti_iic.c
P src/sys/arch/sandpoint/conf/KUROBOX
P src/sys/arch/sandpoint/sandpoint/com_eumb.c
P src/sys/arch/sandpoint/stand/altboot/rge.c
P src/sys/dev/acpi/com_acpi.c
P src/sys/dev/ic/com.c
P src/sys/dev/ic/comvar.h
P src/sys/dev/pci/com_puc.c
P src/sys/modules/Makefile
P src/sys/net/pktqueue.c
P src/tests/usr.bin/xlint/lint1/msg_168.c
P src/tests/usr.bin/xlint/lint1/msg_168.exp
P src/usr.bin/audio/record/audiorecord.1
P src/usr.bin/xlint/lint1/cgram.y
P src/usr.bin/xlint/lint1/externs1.h
P src/usr.bin/xlint/lint1/init.c

Updating xsrc tree:
P xsrc/external/mit/xf86-video-nv/dist/src/nv_setup.c


Killing core files:




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  41393262 Mar 26 03:03 ls-lRA.gz