Commit Graph

5361 Commits

Author SHA1 Message Date
martin 65696e46ef Pull up following revision(s) (requested by riastradh in ticket #1604):
etc/ssh/Makefile: revision 1.4
	usr.bin/mail/Makefile: revision 1.41
	external/ibm-public/postfix/etc/Makefile: revision 1.2
	etc/bluetooth/Makefile: revision 1.6
	crypto/external/bsd/openssh/bin/Makefile: revision 1.5
	etc/root/Makefile: revision 1.5
	etc/iscsi/Makefile: revision 1.4

/root: Install .cshrc and .profile links with the same mode.

Previously we would:

1. Install /root/.cshrc and /root/.profile with mode FILESMODE=644 as
   requested in src/etc/root/Makefile and as echoed in
   /etc/mtree/special.
2. Create hard links at /.cshrc and /.profile through CONFIGLINKS.
3. Because LINKSMODE was unset and defaults to NOBINMODE=444, change
   the mode to 444.

This scenario is confusing, and mtree objects to it, which is bad for
warning fatigue in a security-relevant mechanism.  (There are also
several other files mtree objects to out of the box -- we should fix
those too.)

With this change we install the links with the same mode as the
original files, in agreement with the mtree.  The files, .cshrc and
.profile, are intended to be editable configuration files, so 644
makes sense while 444 makes no sense and gets in the way of editors
like vi.

Discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2022/08/29/msg013498.html

etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

/etc/ssh: Install ssh_known_hosts with mode 644.
Makes it agree with the mtree and more convenient for admin to edit.
2023-02-22 19:30:50 +00:00
martin 2200024291 Pull up following revision(s) (requested by tsutsui in ticket #1586):
etc/etc.next68k/MAKEDEV.conf: revision 1.6

Remove obsolete bpf entries not neceerary for clonified bpf(4).
Fixes "MAKEDEV: bpf8: unknown device" errors.
2023-02-06 16:54:53 +00:00
martin 3b3ac5ed27 Backout previous pullup from ticket #1377:
etc/rc.d/npf_boot: revision 1.5
	etc/rc.d/pf_boot: revision 1.8
2021-11-26 18:04:09 +00:00
martin cf5138654a Pull up following revision(s) (requested by sborrill in ticket #1377):
etc/rc.d/npf_boot: revision 1.5
	etc/rc.d/pf_boot: revision 1.8

Load rc configuration based on rcvar, not name, so that correct settings
in /etc/rc.conf.d are loaded.

Usually this does not matter as rcvar and name are set to the same value.

For pf_boot and npf_boot, rcvar is set to pf and npf respectively.

Prior to the change, if:
rc.conf contains nfp=YES
rc.conf.d/npf does not exist
Then:
/etc/rc.d/npf_boot rcvar
outputs:
$npf=YES

If:
rc.conf contains npf=NO (or is not set)
rc.conf.d/npf contains npf=YES
Then:
/etc/rc.d/npf_boot rcvar
outputs:
$npf=NO

This means that in the latter case, at boot time the npfctl start command
is never run and the firewall is not operational.
2021-11-26 16:50:18 +00:00
martin 54d6dcbd50 Pull up following revision(s) (requested by tsutsui in ticket #1323):
sys/arch/hp300/dev/rd.c: revision 1.109
	sys/arch/hp300/stand/Makefile.buildboot: revision 1.37
	sys/arch/hp300/stand/common/ct.c: revision 1.8
	sys/arch/hp300/dev/hpibvar.h: revision 1.22
	sys/arch/hp300/dev/ct.c: revision 1.62
	sys/arch/hp300/dev/hpibvar.h: revision 1.23
	sys/arch/hp300/dev/ct.c: revision 1.63
	sys/arch/hp300/dev/hpibvar.h: revision 1.24
	sys/arch/hp300/dev/mt.c: revision 1.55
	sys/arch/hp300/dev/rdreg.h: revision 1.14
	sys/arch/hp300/dev/hpib.c: revision 1.43 (via patch)
	sys/arch/hp300/dev/rdreg.h: revision 1.15
	sys/arch/hp300/dev/rdreg.h: revision 1.16
	sys/arch/hp300/dev/rdreg.h: revision 1.17
	etc/etc.hp300/MAKEDEV.conf: revision 1.15
	sys/arch/hp300/stand/common/hpibvar.h: revision 1.6
	sys/arch/hp300/stand/common/rd.c: revision 1.11
	sys/arch/hp300/dev/ctreg.h: revision 1.11
	sys/arch/hp300/dev/rdvar.h: revision 1.24
	sys/arch/hp300/dev/rdvar.h: revision 1.25
	sys/arch/hp300/dev/rdvar.h: revision 1.26
	sys/arch/hp300/dev/rd.c: revision 1.103
	sys/arch/hp300/dev/rd.c: revision 1.104
	sys/arch/hp300/dev/rd.c: revision 1.105
	sys/arch/hp300/dev/rd.c: revision 1.106
	sys/arch/hp300/dev/rd.c: revision 1.107
	sys/arch/hp300/dev/rd.c: revision 1.108

Consistently use #define<tab> here.

Consistently use #define<tab> as rdreg.h.

No need to bother to use aprint_debug(9) inside #ifdef DEBUG block.

Pull HP-IB probe fixes from OpenBSD/hp300.
https://marc.info/?l=openbsd-cvs&m=113217630426615&w=2

Overhaul the way HP-IB devices are probed. We will now do an exhaustive
probe of the (slave, punit) tuple space, since this is the only way we
can get a dual disk or dual tape enclosure to attach two devices of the
same kind.

This allows using multiple rd(4) disk images on the same slave emulated
by HPDisk (and probably the real 9122D with dual floppy disk drives).

Thanks to Miod Vallat for suggesting this fix.

Move attach messages from common rdident() to explicit rdattach().

Cleanup duplicated CS/80 indentify structures.  From OpenBSD.
https://marc.info/?l=openbsd-cvs&m=113227249626888&w=2

Define the CS/80 identify structure only once and correctly, instead of
duplicating it in every CS/80 driver and using an hardcoded number for
its size.
No functional change.
https://marc.info/?l=openbsd-cvs&m=113273001020159&w=2

Pick HP-IB describe structures changes from main kernel code here as well.

Add support of multiple rd(4) disks on all punits for HPDisk.

Special thanks to Anders Gustafsson, the author of "HPDisk"
(GPIB disk emulator) http://www.dalton.ax/hpdisk/
for providing bare boards and improving firmwares for NetBSD/hp300.

Specify -fno-unwind-tables to shrink binaries.

Before:
   text    data     bss     dec     hex filename
  77902    4328  137120  219350   358d6 uboot

After:
   text    data     bss     dec     hex filename
  64186    4328  137120  205634   32342 uboot

Create rd3 device nodes, for HPDisk.

Add Device and drive info of 2202A, 7908A, 7911A, and 7941A.

Geometries and description info are taken from hpdrive.ini.sample
in HPDrive.  Briefly tested on HPDisk.

Print rd(4) capacity and geometry info as sd(4) and wd(4) do.

Before:
rd0 at hpibbus1 slave 0 punit 0: 7937H
rd0: 698 cylinders, 13 heads, 1116102 blocks, 512 bytes/block

After:
rd0 at hpibbus1 slave 0 punit 0: 7937H
rd0: 544 MB, 698 cyl, 13 head, 123 sec, 512 bytes/block x 1116102 blocks
2021-07-14 18:04:04 +00:00
martin 5a7433ed44 Pull up following revision(s) (requested by rin in ticket #1269):
etc/etc.mac68k/ttys: revision 1.21

Turn on constty instead of ttyE0 as done for majority of other ports
in order to make both framebuffer and serial consoles happy.

Also, change TERM from vt220 to vt100 for console and constty
in accordance with other ports.
2021-05-08 10:27:47 +00:00
martin c2650cc168 Pull up following revision(s) (requested by sborrill in ticket #1230):
etc/rc.d/mountall: revision 1.15

Need to explicitly load value of zfs variable as zfs=YES may be set in
/etc/rc.conf.d/zfs, not /etc/rc.conf.
2021-03-09 16:01:24 +00:00
snj ea8d55b3b0 Pull up following revision(s) (requested by martin in ticket #1164):
etc/rc.d/ntpdate: revision 1.21

Adjust to "pool" usage in our standard ntp.conf, pointed out
by Connor McLaughlan.
2020-12-28 16:00:19 +00:00
martin 2433122302 Pull up following revision(s) (requested by kim in ticket #1102):
etc/ntp.conf: revision 1.21
	etc/ntp.conf: revision 1.22

Use "pool" for the pool.ntp.org servers. Add some new hints.
- Use the "pool" keyword for obtaining servers from ntp.pool.org.
  - Add "tos minclock" and "tos maxclock" to limit the number of servers.
  - Add "restrict source" to apply appropriate restrictions to servers.
    (Specifically "nopeer" cannot be applied to "pool" servers.)
  - A single "pool" entry suffices -- using "2.netbsd.pool.ntp.org" so
    that we get both IPv4 and IPv6 addresses. (No addresses are returned
    for just "netbsd.pool.ntp.org.")
- Add a comment about "tinker panic 0" -- useful for VMs and laptops.
- Add a comment about "discard minimum" -- useful for some SNTP clients.
- Add an explanation for the "limited" restriction keyword.
- Unify whitespace and comment formatting.

Add iburst to peer and server.
2020-10-08 16:53:57 +00:00
martin 92edc5b6e7 Pull up following revision(s) (requested by kim in ticket #1080):
etc/rc.d/motd: revision 1.10
	etc/rc.d/motd: revision 1.11
	share/man/man5/rc.conf.5: revision 1.186
	share/man/man5/rc.conf.5: revision 1.187
	etc/defaults/rc.conf: revision 1.159

Add optional release info in /etc/motd

My personal preferencese for /etc/rc.conf:

    update_motd_release=YES
    motd_release_tag='Binaries: '

This provides an explanation to users about the second version in motd.

Document update_motd_release and motd_release_tag

New sentence, new line.

Make a ": " suffix a fixed part of the release info tag

This results in correct updates to /etc/motd even when the value of
motd_release_tag is changed (a likely event).

Add safe quoting to outputting the read kernel version.

Thanks to kre@ for the feedback.
2020-09-13 12:11:07 +00:00
martin 6d95e38c0b Pull up following revision(s) (requested by tsutsui in ticket #1048):
etc/etc.news68k/MAKEDEV.conf: revision 1.4

Add missed bpf(4) node for dhcpcd(8) in INSTALL floppies.

Should be pulled up to netbsd-9.
2020-08-13 14:53:44 +00:00
martin 81b6fee4c5 Pull up following revision(s) (requested by nia in ticket #1046):
etc/etc.i386/MAKEDEV.conf: revision 1.32
	etc/etc.amd64/MAKEDEV.conf: revision 1.31

Create 8 /dev/ldX by default, as with other disk drivers and ports
2020-08-13 14:40:44 +00:00
martin 80bd499c1b Pull up following revision(s) (requested by nia in ticket #1002):
sys/dev/wscons/wsksymdef.h: revision 1.68
	sys/dev/wscons/wsksymdef.h: revision 1.69
	sys/dev/pckbport/wskbdmap_mfii.c: revision 1.28
	sys/dev/pckbport/wskbdmap_mfii.c: revision 1.29
	sys/dev/hid/hidkbdmap.c: revision 1.10
	share/man/man4/pckbd.4: revision 1.23
	share/man/man4/wskbd.4: revision 1.18
	share/man/man4/wskbd.4: revision 1.19
	share/man/man4/pckbd.4: revision 1.25
	sys/dev/wscons/wsksymdef.h: revision 1.70
	sys/dev/wscons/wsksymdef.h: revision 1.71
	sys/dev/pckbport/wskbdmap_mfii.c: revision 1.30
	sys/dev/wscons/wsksymdef.h: revision 1.72
	sys/dev/pckbport/wskbdmap_mfii.c: revision 1.31
	sys/dev/wscons/wsksymdef.h: revision 1.73
	sys/dev/pckbport/wskbdmap_mfii.c: revision 1.32
	sys/dev/pckbport/wskbdmap_mfii.c: revision 1.33
	sys/dev/hid/hidkbdmap.c: revision 1.4
	sbin/wsconsctl/wsconsctl.8: revision 1.30
	sys/dev/hid/hidkbdmap.c: revision 1.5
	etc/wscons.conf: revision 1.20
	sys/dev/hid/hidkbdmap.c: revision 1.6
	etc/wscons.conf: revision 1.21
	sys/dev/hid/hidkbdmap.c: revision 1.7
	sys/dev/hid/hidkbdmap.c: revision 1.8
	sys/dev/hid/hidkbdmap.c: revision 1.9

Add support for the Brazilian keyboard layout to pckbd and ukbd.

This is significantly different from the European Portugese layout,
and was pieced together from Wikipedia, X11 layout files, and to
some extent with trial and error.

Thanks to lun-4 for helping test this.

PR kern/44570
Update lists of keyboard layouts to add Turkish and Brazilian

Bring br.nodead closer to X11

Add Estonian layout as a variation of Swedish for ukbd and pckbd

Add KB_TR for uhid keyboards (it was PS/2 only, this seems wrong)

Add Icelandic keyboard layout to ukbd/pckbd.

Add keyboard layout for Latin American Spanish to ukbd/pckbd

Canadian French keyboard layout for ukbd/pckbd

Clarify that KB_TR is the "Q" layout - there's two standards for Turkish.

Move description of keyboard layouts to wskbd.4, add newer layouts

Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.
wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.

wskbd.4: Add KB_LA

Point readers at wskbd.4
2020-07-13 14:22:47 +00:00
martin c88b92d6d8 Pull up following revision(s) (requested by kim in ticket #974):
etc/mtree/special: revision 1.170

Fix /private/tmp mode to match etc/rc.d/perusertmp
2020-06-30 18:22:48 +00:00
martin b88460a98d Pull up following revision(s) (requested by rin in ticket #966):
etc/rc.d/postfix: revision 1.19

little bit verbose for slow machines
2020-06-20 16:41:57 +00:00
martin f3a1b6b02e Pull up following revision(s) (requested by tsutsui in ticket #962):
sys/arch/cobalt/conf/majors.cobalt: revision 1.34
	etc/MAKEDEV.awk: revision 1.29
	etc/etc.cobalt/MAKEDEV.conf: revision 1.18
	etc/etc.cobalt/MAKEDEV.conf: revision 1.19

panel -> lcdpanel

Part of PR port-cobalt/55009

When reading in the MD MAKEDEV.conf, perform block / char major
substitutions that may be present in that file.
PR port-cobalt/55009

Create a compatibility symlink panel0 -> lcdpanel0
PR port-cobalt/55009

Fix leading 8 spaces to a tab.
2020-06-20 16:19:43 +00:00
martin 3bcfc111ed Pull up following revision(s) (requested by riastradh in ticket #882):
etc/rc.d/random_seed: revision 1.9

Don't delete the random seed before issuing `rndctl -S'.
`rndctl -S' can replace the file just fine, and deleting it ahead of
time adds a window during which we can lose the seed altogether if
the system is interrupted by a crash or power outage.

XXX pullup
2020-05-02 16:24:11 +00:00
martin 23bccc516c Pull up following revision(s) (requested by kim in ticket #838):
share/man/man5/ifconfig.if.5: revision 1.20
	etc/rc.d/network: revision 1.78 (plus patch)
	usr.sbin/rtsold/rtsold.8: revision 1.42

Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA

Sort SEE ALSO.
Update date
2020-04-22 17:55:16 +00:00
martin f056916f3a Pull up following revision(s) (requested by kim in ticket #812):
etc/crontab: revision 1.16

Fix skipped daily in Eastern Europe
- Move /etc/daily from 03:15 -> 04:15
- Move /etc/weekly from 04:30 -> 05:30 (to keep the spacing)

This should prevent problems during daylight savings changeover (which
is usually between 01:00 -> 04:00, depending upon the region) where the
cronjobs may be executed twice, or never at all...

This expands on the previous fix in revision 1.13 from 1997.
2020-04-02 19:11:36 +00:00
sborrill fc42ac2974 Pull up the following revisions(s) (requested by christos in ticket #806):
etc/named.conf:	revision 1.8

Stop using obsolete dnssec-lookaside (implies use of dlv.isc.org, which
no longer serves any useful purpose).
2020-03-27 08:43:42 +00:00
martin c21c528b5e Pull up following revision(s) (requested by is in ticket #801):
etc/etc.amiga/Makefile.inc: revision 1.30
	etc/etc.amiga/Makefile.inc: revision 1.31
	etc/etc.amiga/Makefile.inc: revision 1.29

Provide the (small) miniroot uncompressed, so that it can be used from
an AmigaOS without additional software to install NetBSD.

Closes PR port-amiga/45443

 -

provide both miniroot.fs (for people wanting to install NetBSD without
more 3rdparty software than what's provided on our ISO) and .fs.tz (for
people downloading over slow links).

 -

Fix build; add -f flag to "rm miniroot.fs" in case of its absence.
2020-03-23 10:03:28 +00:00
martin 2d99049ad5 Pull up following revision(s) (requested by riastradh in ticket #783):
etc/MAKEDEV.tmpl: revision 1.216

Create /dev/ipmi0 in `MAKEDEV all'.

Works on my machine with sysutils/ipmitool if the latter is built
with CONFIGURE_ARGS+= --enable-intf-open.
2020-03-19 19:08:31 +00:00
martin f22f59d249 Pull up following revision(s) (requested by riastradh in ticket #743):
etc/rc.d/random_seed: revision 1.8

Allow random seed on zfs.
2020-03-01 11:53:09 +00:00
martin cb6e126da0 Pull up following revision(s) (requested by riastradh in ticket #725):
etc/rc.d/mountall: revision 1.12
	external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c: revision 1.59
	external/cddl/osnet/sys/kern/misc.c: revision 1.8
	external/cddl/osnet/dist/uts/common/fs/zfs/spa_history.c: revision 1.5
	external/cddl/osnet/dist/uts/common/fs/zfs/spa_history.c: revision 1.6
	external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c: revision 1.60
	external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c: revision 1.61

Define VOP_STRATEGY on zfs device nodes too.
Fixes eternal hangs in attempts to do I/O on device nodes on zfs.
XXX pullup

Teach zfs spec nodes to VOP_BWRITE too.
Fixes hang on writing to, e.g., ffs mounted on a device node that
lives on zfs.
XXX pullup

Teach device nodes on zfs to handle fsync by calling spec_fsync too.
If zfs=YES, unconditioally do zfs mount/unmount -a.

If you set zfs=YES, presumably you positively want the automatic rc.d
actions, so if there's no /sbin/zfs or if zfs can't find pools with
/etc/zfs/zpool.cache, presumably you would like feedback about that
in rc.log.

Report the OS name and release appropriately for NetBSD.
We are not OpenSolaris or uts!

Mark previous #ifdef __NetBSD__, per request from hannken.
2020-02-25 20:03:12 +00:00
martin 2579821063 Pull up following revision(s) (requested by kim in ticket #676):
etc/rc.d/ipsec: revision 1.16

Skip inet6 addresses that begin with fe80: (not just exact match).
2020-01-31 11:21:42 +00:00
martin 1899c7a49f Pull up following revision(s) (requested by kim in ticket #675):
etc/rc.d/autounmountd: revision 1.3
	etc/rc.d/ip6addrctl: revision 1.4

Add NetBSD ID
2020-01-31 11:19:58 +00:00
martin 4b0eed18a1 Pull up following revision(s) (requested by sevan in ticket #539):
etc/rc.d/zfs: revision 1.4
	etc/rc.d/zfs: revision 1.5

We don't need to require the presence of /etc/zfs/zpool.cache to unmount &
unload the module, just like for the start target.

This script just makes sure that the ZFS module loads and unloads, mountall
script takes care of mounting filesystems.

Don't try to unmount all file systems before unloading the ZFS module, leave
that to the operator in preperation or the mountall script to take care
of. Module will of course fail to unload then if file systems are still
mounted.
2019-12-11 14:13:40 +00:00
martin 52d3571e77 Pull up following revision(s) (requested by jmcneill in ticket #516):
etc/rc.d/zfs: revision 1.2
	etc/rc.d/zfs: revision 1.3

Attempt to load the zfs module even if /etc/zfs/zpool.cache is absent. The
module needs to be loaded to create a pool in the first place, and
autoloading won't work after the fact won't work at securelevel=1.

Add missing rcvar=$name
2019-12-08 14:42:01 +00:00
martin 51b681bfe9 Pull up following revision(s) (requested by jmcneill in ticket #491):
sys/arch/evbarm/conf/BEAGLEBOARD_INSTALL: file removal
	sys/arch/arm/ti/ti_dpll_clock.c: revision 1.2
	sys/arch/arm/ti/ti_sysc.c: revision 1.1
	sys/arch/arm/ti/ti_rng.c: revision 1.1
	sys/arch/arm/ti/ti_rng.c: revision 1.2
	sys/dev/i2c/tps65950.c: file removal
	sys/arch/evbarm/conf/std.ti: file removal
	sys/dev/i2c/files.i2c: revision 1.101
	sys/dev/i2c/files.i2c: revision 1.102
	sys/dev/i2c/at24cxx.c: revision 1.32
	sys/dev/i2c/files.i2c: revision 1.103
	sys/dev/i2c/twl4030.c: revision 1.1
	sys/dev/i2c/files.i2c: revision 1.104
	sys/dev/i2c/twl4030.c: revision 1.2
	sys/dev/i2c/twl4030.c: revision 1.3
	sys/arch/arm/ti/ti_com.c: revision 1.6
	sys/arch/arm/ti/ti_com.c: revision 1.7
	sys/arch/arm/ti/ti_com.c: revision 1.8
	sys/dev/fdt/cpufreq_dt.c: revision 1.11
	sys/arch/arm/ti/ti_iic.c: revision 1.1
	sys/dev/fdt/cpufreq_dt.c: revision 1.12
	sys/arch/arm/ti/ti_usb.c: revision 1.1
	sys/arch/arm/ti/ti_iic.c: revision 1.2
	sys/dev/fdt/cpufreq_dt.c: revision 1.13
	sys/arch/arm/ti/ti_iic.c: revision 1.3
	sys/arch/arm/ti/ti_iic.c: revision 1.4
	sys/arch/evbarm/conf/files.ti: file removal
	sys/arch/evbarm/conf/BEAGLEBOARDXM: file removal
	sys/arch/arm/dts/omap3-n900.dts: revision 1.1
	sys/arch/arm/ti/ti_edma.h: revision 1.1
	sys/arch/evbarm/conf/OVERO_INSTALL: file removal
	sys/arch/arm/ti/ti_usbtll.c: revision 1.1
	sys/arch/arm/ti/files.ti: revision 1.5
	etc/etc.evbarm/Makefile.inc: revision 1.108
	sys/arch/arm/ti/files.ti: revision 1.6
	sys/dev/i2c/tps65217pmic.c: revision 1.13
	etc/etc.evbarm/Makefile.inc: revision 1.109
	sys/arch/arm/ti/files.ti: revision 1.7
	sys/dev/i2c/tps65217pmic.c: revision 1.14
	sys/arch/arm/ti/files.ti: revision 1.8
	sys/arch/arm/ti/files.ti: revision 1.9
	sys/dev/fdt/usbnopphy.c: revision 1.1
	sys/arch/evbarm/conf/GENERIC: revision 1.55
	sys/arch/evbarm/conf/GENERIC: revision 1.56
	sys/arch/evbarm/conf/GENERIC: revision 1.57
	sys/arch/evbarm/conf/GENERIC: revision 1.58
	sys/arch/evbarm/conf/GENERIC: revision 1.59
	sys/arch/evbarm/conf/BEAGLEBONE: file removal
	sys/arch/arm/ti/omap2_gpmcreg.h: revision 1.1
	sys/arch/arm/ti/ti_otgreg.h: revision 1.1
	sys/arch/arm/ti/ti_tptc.c: revision 1.1
	sys/arch/evbarm/conf/IGEPV2: file removal
	sys/arch/arm/ti/am3_prcm.c: revision 1.10
	sys/dev/i2c/tda19988.c: revision 1.1
	sys/arch/evbarm/conf/OVERO: file removal
	sys/dev/i2c/tda19988.c: revision 1.2
	sys/dev/i2c/tda19988.c: revision 1.3
	sys/arch/arm/ti/omap3_dss.c: revision 1.1
	sys/arch/evbarm/conf/BEAGLEBONE_INSTALL: file removal
	sys/arch/arm/ti/ti_omapintc.c: revision 1.2
	etc/etc.evbarm/Makefile.inc: revision 1.112
	etc/etc.evbarm/Makefile.inc: revision 1.113
	sys/arch/arm/ti/ti_div_clock.c: revision 1.1
	etc/etc.evbarm/Makefile.inc: revision 1.114
	sys/arch/evbarm/conf/N900: revision 1.32
	sys/arch/evbarm/conf/N900: revision 1.33
	distrib/utils/embedded/conf/armv7.conf: revision 1.36
	sys/arch/evbarm/conf/GENERIC: revision 1.60
	distrib/utils/embedded/conf/armv7.conf: revision 1.37
	sys/arch/arm/ti/omap2_nand.c: revision 1.1
	sys/arch/evbarm/conf/GENERIC: revision 1.61
	sys/arch/arm/ti/omap2_nand.c: revision 1.2
	sys/arch/evbarm/conf/GENERIC: revision 1.62
	distrib/utils/embedded/conf/armv7.conf: revision 1.39
	sys/arch/evbarm/conf/GENERIC: revision 1.63
	sys/arch/arm/ti/ti_fb.c: revision 1.1
	sys/arch/evbarm/conf/GENERIC: revision 1.64
	sys/arch/evbarm/conf/GENERIC: revision 1.65
	sys/arch/evbarm/conf/GENERIC: revision 1.66
	sys/arch/evbarm/conf/GENERIC: revision 1.67
	sys/arch/arm/ti/ti_platform.c: revision 1.7
	sys/arch/arm/ti/ti_platform.c: revision 1.8
	sys/arch/arm/ti/am3_prcm.c: revision 1.2
	sys/arch/arm/ti/ti_platform.c: revision 1.9
	sys/arch/arm/ti/am3_prcm.c: revision 1.3
	sys/arch/arm/ti/am3_prcm.c: revision 1.4
	sys/arch/arm/ti/am3_prcm.c: revision 1.5
	sys/arch/arm/ti/am3_prcm.c: revision 1.6
	sys/arch/arm/ti/am3_prcm.c: revision 1.7
	sys/arch/evbarm/conf/DEVKIT8000: file removal
	sys/arch/arm/ti/am3_prcm.c: revision 1.8
	sys/arch/arm/ti/am3_prcm.c: revision 1.9
	sys/dev/fdt/syscon.c: revision 1.4
	sys/arch/arm/ti/files.ti: revision 1.10
	sys/arch/arm/ti/ti_mux_clock.c: revision 1.1
	sys/arch/arm/ti/ti_sdhc.c: revision 1.1
	sys/arch/arm/ti/files.ti: revision 1.11
	sys/arch/arm/ti/if_cpswreg.h: revision 1.1
	sys/arch/arm/ti/ti_sdhc.c: revision 1.2
	sys/arch/arm/ti/files.ti: revision 1.12
	sys/arch/arm/ti/ti_sdhc.c: revision 1.3
	sys/arch/arm/ti/files.ti: revision 1.13
	sys/arch/arm/ti/files.ti: revision 1.14
	sys/arch/arm/ti/files.ti: revision 1.15
	sys/arch/arm/ti/files.ti: revision 1.16
	sys/arch/arm/ti/omap3_cm.c: revision 1.1
	sys/arch/arm/ti/files.ti: revision 1.17
	sys/arch/arm/ti/omap3_cm.c: revision 1.2
	sys/arch/arm/ti/files.ti: revision 1.18
	sys/arch/arm/ti/omap3_cm.c: revision 1.3
	sys/arch/arm/ti/files.ti: revision 1.19
	sys/arch/arm/ti/omap3_cm.c: revision 1.4
	sys/arch/arm/ti/ti_motg.c: revision 1.1
	sys/arch/arm/ti/ti_rngreg.h: revision 1.1
	sys/arch/arm/ti/ti_sdhcreg.h: revision 1.1
	sys/arch/arm/dts/omap3-beagle-xm.dts: revision 1.1
	sys/arch/arm/ti/am3_platform.c: revision 1.1
	sys/arch/arm/ti/ti_sdhcreg.h: revision 1.2
	sys/arch/arm/ti/ti_lcdc.h: revision 1.1
	sys/arch/evbarm/conf/BEAGLEBOARDXM_INSTALL: file removal
	sys/arch/evbarm/conf/README.evbarm: revision 1.22
	sys/arch/evbarm/conf/README.evbarm: revision 1.23
	sys/arch/arm/ti/ti_platform.c: file removal
	sys/arch/evbarm/conf/README.evbarm: revision 1.24
	sys/arch/arm/ti/ti_omaptimer.c: revision 1.2
	sys/arch/arm/ti/ti_prcm.c: revision 1.2
	sys/arch/evbarm/conf/README.evbarm: revision 1.25
	sys/arch/arm/ti/ti_omaptimer.c: revision 1.3
	sys/arch/arm/ti/ti_prcm.c: revision 1.3
	sys/arch/evbarm/conf/README.evbarm: revision 1.26
	sys/arch/arm/ti/ti_omaptimer.c: revision 1.4
	sys/arch/evbarm/conf/README.evbarm: revision 1.27
	sys/arch/arm/ti/ti_ehci.c: revision 1.1
	sys/arch/arm/ti/files.ti: revision 1.20
	sys/arch/arm/ti/ti_cpufreq.c: revision 1.1
	sys/arch/arm/ti/ti_cpufreq.c: revision 1.2
	sys/arch/arm/fdt/smsh_fdt.c: revision 1.2
	sys/arch/arm/ti/omap3_dssreg.h: revision 1.1
	sys/arch/evbarm/conf/OVERO: revision 1.56
	sys/arch/evbarm/conf/TI: file removal
	sys/arch/arm/dts/omap3-beagle.dts: revision 1.1
	sys/dev/fdt/fdtvar.h: revision 1.55
	sys/dev/fdt/fdtvar.h: revision 1.56
	distrib/utils/embedded/files/armv7_boot_nonefi.cmd: revision 1.2
	sys/dev/fdt/fdt_phy.c: revision 1.6
	sys/arch/arm/ti/ti_iicreg.h: revision 1.1
	sys/arch/arm/ti/ti_lcdc.c: revision 1.1
	sys/arch/arm/ti/ti_gpio.c: revision 1.1
	sys/arch/arm/ti/ti_iicreg.h: revision 1.2
	sys/arch/arm/ti/ti_lcdc.c: revision 1.2
	sys/dev/fdt/files.fdt: revision 1.46
	sys/arch/arm/ti/ti_gpio.c: revision 1.2
	sys/arch/arm/ti/ti_iicreg.h: revision 1.3
	sys/arch/arm/ti/ti_lcdc.c: revision 1.3
	sys/dev/fdt/files.fdt: revision 1.47
	sys/arch/arm/ti/ti_gpio.c: revision 1.3
	sys/dev/fdt/pinctrl_single.c: revision 1.1
	sys/arch/evbarm/conf/files.generic: revision 1.9
	sys/arch/arm/ti/ti_gpmc.c: revision 1.1
	sys/arch/arm/ti/ti_lcdcreg.h: revision 1.1
	sys/arch/evbarm/conf/BEAGLEBOARD: file removal
	sys/arch/arm/ti/omap3_prm.c: revision 1.1
	sys/arch/arm/ti/ti_platform.h: file removal
	sys/arch/arm/ti/omap3_platform.c: revision 1.1
	sys/arch/arm/ti/ti_prcm.h: revision 1.2
	sys/arch/arm/ti/omap3_platform.c: revision 1.2
	sys/arch/arm/ti/ti_prcm.h: revision 1.3
	sys/arch/arm/ti/ti_prcm.h: revision 1.4
	sys/dev/fdt/fdt_clock.c: revision 1.9
	sys/arch/arm/ti/ti_edma.c: revision 1.1
	sys/arch/arm/ti/ti_otg.c: revision 1.1
	distrib/utils/embedded/files/armv7_boot.cmd: revision 1.15
	sys/arch/arm/ti/if_cpsw.c: revision 1.7
	sys/arch/evbarm/conf/std.igepv2: file removal
	sys/arch/arm/ti/if_cpsw.c: revision 1.8
	sys/arch/arm/ti/ti_dpll_clock.c: revision 1.1

Adapt ti fdt glue to support GENERIC kernel.

Do not search 64-bit directories for dts files

Fix am33xx_platform_early_putchar for pre-MMU output

Add bus driver for TI sysc interconncet.

Make com work again

Add EDMA TPCC and TPTC drivers.

Add driver for one-register-per-pin type pinctrl devices.

Add MMCHS support.

Add USB support.

Disable autoidle

Place devmap above KERNEL_IO_VBASE

Use Timer2 for timecounter, and enable hw module.

Add support for TI AM335x

Add atmel,24c256 compat data

Add I2C support.

Add tiiic, tps65217pmic

Add FDT support

Fix early putchar, add reset func

No support for tegra210 in armv7 kernel

Switch to GENERIC kernels only.

Get mac address from DT

Skip nodes with an "opp-suspend" property and fix tables that have disabled
nodes in the middle.

enumerate devices under child "clocks" node

Add support for platform specific opp table filters.

Add fdtbus_clock_count to count the number of clock references on a given node

enumerate devices under child "clocks" node

Add AM335x DVFS support.

Enable TI AM335x DVFS support

Add support for GPIO controller.

Add tigpio

Unhook BEAGLEBONE kernel from the build
Remove BEAGLEBONE kernel config (AM335x SoC is supported by GENERIC now).

Add support for hardware RNG.

Add tirng

Add explicit FDT_OPP for operating-points-v2 so the link set won't be empty

Rename SOC_TI_AM335X to SOC_AM33XX and rename ti_platform.c to
am3_platform.c

Set stdout-path on TI OMAP3 BeagleBoard

Add support for TI OMAP3.

Add OMAP3 support.

Move a lot of *.dtb files to a dtb/ subdirectory on the FAT partition.
Mkimage (eroneously) creates a FAT16 partition (despite the configuration
asking for FAT32), and that has a root directory size limit.
Idea from Jared.

Skip xref if it is 0

Add generic USB PHY driver

Add driver for TI TWL4030 Power Management IC

Use the hwmod clk to get the timer rate and explicitly enable the
timecounter timer.

Add OMAP3 USB support.

Add twl, usbnopphy, tiusb, tiusbtll

Move omap3 dtb files to /boot/dtb

Remove BEAGLEBOARD kernel from list of kernels to build
Remove BEAGLEBOARD kernel (supported by GENERIC now)

Fix PRM_RSTCTRL_RST_DPLL3 definition, now reset works.

Remove DEVKIT8000 kernel (GENERIC should work now)
Remove DPLL5 init ported from old omap code, it is not required

Set the stdout-path on xM like Ti OMAP3 BeagleBoard

Remove BEAGLEBOARDXM from the build
Remove BEAGLEBOARDXM kernel (supported by GENERIC now)

Handle different register layout on OMAP3

Add omapfb to FDT-ized TI port.

Use dss as console on Nokia N900.

Enable IRQ status bits for omap3 type and set speed properly

Add RTC support

Remove tps65950pm (hardware now supported by twl4030.c)

Add NAND flash support.

Add tigpmc, omapnand

Attach tiusb before the default pass since it adds a bus to reduce kernel output
Replace tps65950pm with twl (the former has been removed)

Fix non-FDT build

Cleanup and remove dependency on arch/arm/omap

Add support for GPIO interrupts and fix reading the state of output pins.
Match smsc,lan9115 and honour local-mac-address/mac-address properties

Only one instance of twl(4) is needed
Remove OVERO from build, and commented out N900 kernel config
OMAP3 SoC and all peripherals in the OVERO kernel are now supported by
GENERIC.

Remove commented out IGEPV2 entry

OMAP3 SoC and all peripherals in the IGEPV2 kernel are now supported by
GENERIC.

No longer used.

Also match ti,omap2-onenand

Defer power monitor polling to the sysmon taskq thread to avoid i2c transactions in intr context

Add driver for NXP TDA19988 HDMI encoder

Add support for AM335x display controller (LCDC).

Add tdahdmi, tilcdc, tifb

Test DRM_MODE_* flags, not VID_*

Comment out mode fixup (not needed it seems)

Use 297MHz for display clock

Select closest rate to desired pixel clock

Speed up mode setting a bit and turn off the display while changing modes
2019-11-27 13:46:44 +00:00
bouyer 59a4f95bd4 Pull up following revision(s) (requested by martin in ticket #462):
share/mk/bsd.README: revision 1.397
	etc/Makefile.params: revision 1.21
Document NETBSD_OFFICIAL_RELEASE and add it to /etc/release - it is
important information when trying to reproduce a build.
2019-11-22 15:26:28 +00:00
martin dbd0f90d78 Pull up following revision(s) (requested by maya in ticket #435):
distrib/sets/maketars: revision 1.90
	usr.sbin/sysinst/arch/playstation2/md.h: revision 1.2
	usr.sbin/sysinst/arch/sandpoint/md.h: revision 1.3
	usr.sbin/sysinst/arch/evbppc/md.h: revision 1.3
	usr.sbin/sysinst/arch/hpcarm/md.h: revision 1.3
	usr.sbin/sysinst/arch/mvme68k/md.h: revision 1.3
	distrib/sun3/MakeInstTape: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.33
	distrib/sets/lists/rescue/mi: revision 1.1
	distrib/sets/lists/base/rescue.sun2: file removal
	usr.sbin/sysinst/arch/zaurus/md.h: revision 1.3
	distrib/sets/lists/base/rescue.ad.m68k.shl: file removal
	distrib/sets/regpkgset: revision 1.13
	usr.sbin/sysinst/arch/i386/md.h: revision 1.7
	distrib/sets/lists/base/rescue.sparc: file removal
	distrib/notes/mvme68k/xfer: revision 1.19
	distrib/sets/sets.subr: revision 1.187
	distrib/common/bootimage/Makefile.bootimage: revision 1.22
	usr.sbin/sysinst/msg.mi.de: revision 1.16
	usr.sbin/sysinst/arch/atari/md.h: revision 1.3
	rescue/Makefile: revision 1.38
	distrib/sets/lists/base/rescue.macppc: file removal
	usr.sbin/sysinst/arch/arc/md.h: revision 1.4
	distrib/miniroot/install.sub: revision 1.49
	usr.sbin/sysinst/arch/acorn32/md.h: revision 1.3
	usr.sbin/sysinst/arch/x68k/md.h: revision 1.3
	usr.sbin/sysinst/arch/hpcmips/md.h: revision 1.3
	usr.sbin/sysinst/arch/bebox/md.h: revision 1.3
	usr.sbin/sysinst/arch/hpcsh/md.h: revision 1.2
	distrib/sets/lists/base/rescue.shark: file removal
	usr.sbin/sysinst/arch/emips/md.h: revision 1.5
	distrib/utils/embedded/mkimage: revision 1.70
	usr.sbin/sysinst/arch/shark/md.h: revision 1.3
	usr.sbin/sysinst/arch/pmax/md.h: revision 1.4
	usr.sbin/sysinst/arch/amiga/md.h: revision 1.4
	usr.sbin/sysinst/arch/hp300/md.h: revision 1.5
	rescue/list.ldconfig: file removal
	distrib/sets/lists/base/rescue.ad.m68k: file removal
	usr.sbin/sysinst/arch/prep/md.h: revision 1.4
	usr.sbin/sysinst/arch/cats/md.h: revision 1.4
	usr.sbin/sysinst/arch/amd64/md.h: revision 1.7
	usr.sbin/sysinst/msg.mi.es: revision 1.17
	usr.sbin/sysinst/msg.mi.fr: revision 1.20
	usr.sbin/sysinst/msg.mi.pl: revision 1.23
	distrib/sets/lists/base/rescue.i386: file removal
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.3
	distrib/sets/lists/base/rescue.vax: file removal
	distrib/amd64/uefi-installimage/Makefile.bootimage: revision 1.12
	usr.sbin/sysinst/arch/evbmips/md.h: revision 1.3
	distrib/sets/lists/base/rescue.mi: file removal
	distrib/sets/README: revision 1.14
	usr.sbin/sysinst/arch/sgimips/md.h: revision 1.4
	distrib/sets/lists/base/rescue.sparc64: file removal
	distrib/sets/lists/base/rescue.mi: revision 1.45
	distrib/sets/lists/base/rescue.mi: revision 1.46
	usr.sbin/sysinst/arch/ofppc/md.h: revision 1.4
	usr.sbin/sysinst/arch/cobalt/md.h: revision 1.4
	distrib/sets/lists/base/rescue.ad.arm: file removal
	distrib/sets/lists/base/rescue.mac68k: file removal
	usr.sbin/sysinst/defs.h: revision 1.45
	usr.sbin/sysinst/arch/landisk/md.h: revision 1.2
	distrib/notes/atari/xfer: revision 1.17
	etc/Makefile: revision 1.441
	usr.sbin/sysinst/msg.mi.en: revision 1.22
	distrib/sun2/MakeInstTape: revision 1.2

Remove ldconfig from /rescue, and mark it MI obsolete.
- ldconfig in netbsd refers to a.out binaries only. We've been ELF-only
  since NetBSD 2.0 or so, and having it in /rescue served little purpose
  even before that, as /rescue is standalone.
- Using MI obsolete to avoid the need for MD set lists where ldconfig
  is the sole entry

Mark /rescue/edlabel as MI-obsolete, so we can remove all remaining MD
rescue set list files.

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-11-17 07:04:33 +00:00
martin 799801cc20 Pull up following revision(s) (requested by maxv in ticket #405):
usr.sbin/nvmmctl/nvmmctl.8: revision 1.2
	lib/libnvmm/libnvmm.3: revision 1.24
	sys/dev/nvmm/nvmm.h: revision 1.11
	lib/libnvmm/libnvmm.3: revision 1.25
	sys/dev/nvmm/x86/nvmm_x86.h: revision 1.16
	sys/dev/nvmm/nvmm.h: revision 1.12
	sys/dev/nvmm/x86/nvmm_x86.h: revision 1.17
	tests/lib/libnvmm/h_mem_assist.c: revision 1.12
	sys/dev/nvmm/x86/nvmm_x86.h: revision 1.18
	share/mk/bsd.hostprog.mk: revision 1.82
	lib/libnvmm/libnvmm.c: revision 1.15
	distrib/sets/lists/base/md.amd64: revision 1.281
	tests/lib/libnvmm/h_mem_assist.c: revision 1.13
	lib/libnvmm/libnvmm.c: revision 1.16
	tests/lib/libnvmm/h_mem_assist.c: revision 1.14
	lib/libnvmm/libnvmm_x86.c: revision 1.32
	lib/libnvmm/libnvmm.c: revision 1.17
	tests/lib/libnvmm/h_mem_assist.c: revision 1.15
	lib/libnvmm/libnvmm_x86.c: revision 1.33
	lib/libnvmm/libnvmm.c: revision 1.18
	usr.sbin/nvmmctl/Makefile: revision 1.1
	tests/lib/libnvmm/h_mem_assist_asm.S: revision 1.7
	tests/lib/libnvmm/h_mem_assist.c: revision 1.16
	lib/libnvmm/libnvmm_x86.c: revision 1.34
	usr.sbin/nvmmctl/Makefile: revision 1.2
	tests/lib/libnvmm/h_mem_assist_asm.S: revision 1.8
	tests/lib/libnvmm/h_mem_assist.c: revision 1.17
	sys/dev/nvmm/nvmm_internal.h: revision 1.13
	lib/libnvmm/libnvmm_x86.c: revision 1.35
	lib/libnvmm/libnvmm_x86.c: revision 1.36
	usr.sbin/postinstall/postinstall.in: revision 1.8
	lib/libnvmm/libnvmm_x86.c: revision 1.37
	lib/libnvmm/libnvmm_x86.c: revision 1.38
	lib/libnvmm/libnvmm_x86.c: revision 1.39
	usr.sbin/Makefile: revision 1.282
	lib/libnvmm/nvmm.h: revision 1.13
	lib/libnvmm/nvmm.h: revision 1.14
	lib/libnvmm/nvmm.h: revision 1.15
	sys/dev/nvmm/nvmm.c: revision 1.23
	lib/libnvmm/nvmm.h: revision 1.16
	sys/dev/nvmm/nvmm.c: revision 1.24
	lib/libnvmm/nvmm.h: revision 1.17
	sys/dev/nvmm/nvmm.c: revision 1.25
	tests/lib/libnvmm/h_io_assist.c: revision 1.9
	etc/MAKEDEV.tmpl: revision 1.209
	tests/lib/libnvmm/h_io_assist.c: revision 1.10
	tests/lib/libnvmm/h_io_assist.c: revision 1.11
	etc/group: revision 1.35
	distrib/sets/lists/man/mi: revision 1.1660
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.40
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.41
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.42
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.43
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.44
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.51
	sys/dev/nvmm/nvmm_ioctl.h: revision 1.8
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.52
	sys/dev/nvmm/nvmm_ioctl.h: revision 1.9
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.53
	usr.sbin/nvmmctl/nvmmctl.c: revision 1.1
	lib/libnvmm/libnvmm.3: revision 1.20
	distrib/sets/lists/debug/md.amd64: revision 1.106
	lib/libnvmm/libnvmm.3: revision 1.21
	lib/libnvmm/libnvmm.3: revision 1.22
	usr.sbin/nvmmctl/nvmmctl.8: revision 1.1
	lib/libnvmm/libnvmm.3: revision 1.23

Fix incorrect parsing: the R/M field uses a special GPR map when the
address size is 16 bits, regardless of the actual operating mode. With
this special map there can be two registers referenced at once, and
also disp16-only.
Implement this special behavior, and add associated tests. While here
simplify a few things.
With this in place, the Windows 95 installer initializes correctly.
Part of PR/54611.
add missing initializer
Implement XCHG, add associated tests, and add comments to explain. With
this in place the Windows 95 installer completes successfuly.
Part of PR/54611.
Improve nvmm_vcpu_dump().
Put back 'default', because llvm apparently doesn't realize that all cases
are covered in the switch.
Miscellaneous changes in NVMM, to address several inconsistencies and
issues in the libnvmm API.
 - Rename NVMM_CAPABILITY_VERSION to NVMM_KERN_VERSION, and check it in
   libnvmm. Introduce NVMM_USER_VERSION, for future use.
 - In libnvmm, open "/dev/nvmm" as read-only and with O_CLOEXEC. This is to
   avoid sharing the VMs with the children if the process forks. In the
   NVMM driver, force O_CLOEXEC on open().
 - Rename the following things for consistency:
       nvmm_exit*              -> nvmm_vcpu_exit*
       nvmm_event*             -> nvmm_vcpu_event*
       NVMM_EXIT_*             -> NVMM_VCPU_EXIT_*
       NVMM_EVENT_INTERRUPT_HW -> NVMM_VCPU_EVENT_INTR
       NVMM_EVENT_EXCEPTION    -> NVMM_VCPU_EVENT_EXCP
   Delete NVMM_EVENT_INTERRUPT_SW, unused already.
 - Slightly reorganize the MI/MD definitions, for internal clarity.
 - Split NVMM_VCPU_EXIT_MSR in two: NVMM_VCPU_EXIT_{RD,WR}MSR. Also provide
   separate u.rdmsr and u.wrmsr fields. This is more consistent with the
   other exit reasons.
 - Change the types of several variables:
       event.type                  enum -> u_int
       event.vector                uint64_t -> uint8_t
       exit.u.*msr.msr:            uint64_t -> uint32_t
       exit.u.io.type:             enum -> bool
       exit.u.io.seg:              int -> int8_t
       cap.arch.mxcsr_mask:        uint64_t -> uint32_t
       cap.arch.conf_cpuid_maxops: uint64_t -> uint32_t
 - Delete NVMM_VCPU_EXIT_MWAIT_COND, it is AMD-only and confusing, and we
   already intercept 'monitor' so it is never armed.
 - Introduce vmx_exit_insn() for NVMM-Intel, similar to svm_exit_insn().
   The 'npc' field wasn't getting filled properly during certain VMEXITs.
 - Introduce nvmm_vcpu_configure(). Similar to nvmm_machine_configure(),
   but as its name indicates, the configuration is per-VCPU and not per-VM.
   Migrate and rename NVMM_MACH_CONF_X86_CPUID to NVMM_VCPU_CONF_CPUID.
   This becomes per-VCPU, which makes more sense than per-VM.
 - Extend the NVMM_VCPU_CONF_CPUID conf to allow triggering VMEXITs on
   specific leaves. Until now we could only mask the leaves. An uint32_t
   is added in the structure:
        uint32_t mask:1;
        uint32_t exit:1;
        uint32_t rsvd:30;
   The two first bits select the desired behavior on the leaf. Specifying
   zero on both resets the leaf to the default behavior. The new
   NVMM_VCPU_EXIT_CPUID exit reason is added.
Three changes in libnvmm:
 - Add 'mach' and 'vcpu' backpointers in the nvmm_io and nvmm_mem
   structures.
 - Rename 'nvmm_callbacks' to 'nvmm_assist_callbacks'.
 - Rename and migrate NVMM_MACH_CONF_CALLBACKS to NVMM_VCPU_CONF_CALLBACKS,
   it now becomes per-VCPU.
Update the libnvmm man page:
 - Sync the naming with reality.
 - Replace "relevant" by "desired" and "virtualizer" by "emulator", closer
   to what I meant.
 - Add a "VCPU Configuration" section.
 - Add a "Machine Ownership" section.
Add the "nvmm" group, and make nvmm_init() public. Sent to tech-kern@ a few
days ago.
Use the new PTE naming, and define CR3_FRAME_* separately. No functional
change.
Add a new VCPU conf option, that allows userland to request VMEXITs after a
TPR change. This is supported on all Intel CPUs, and not-too-old AMD CPUs.
The reason for wanting this option is that certain OSes (like Win10 64bit)
manage interrupt priority in hardware via CR8 directly, and for these OSes,
the emulator may want to sync its internal TPR state on each change.
Add two new fields in cap.arch, to report the conf capabilities. Report TPR
only on Intel for now, not AMD, because I don't have a recent AMD CPU on
which to test.
Mask CPUID leaf 0x0A on Intel, because we don't want the guest to try (and
fail) to probe the PMC MSRs. This avoids "Unexpected WRMSR" warnings in
qemu-nvmm.
Add PCID support in the guests. This speeds up most 64bit guests, because
since Meltdown, everybody uses PCID (including NetBSD).
Change the way root_owner works: consider the calling process as root_owner
not if it has root privileges, but if the /dev/nvmm device was opened with
write permissions. Introduce the undocumented nvmm_root_init() function to
achieve that.
The goal is to simplify the logic and have more granularity, eg if we want
a monitoring agent to access VMs but don't want to give this agent real
root access on the system.
A few changes:
 - Use smaller types in struct nvmm_capability.
 - Use smaller type for nvmm_io.port.
 - Switch exitstate to a compacted structure.
Add nram in struct nvmm_ctl_mach_info.
Add nvmmctl, with two commands for now.
Macro tidyness.
Sort SEE ALSO.
should be fork(2), noticed by wiz
Add debug entry for newly introduced nvmmctl utility.
Annotate a covering switch as such to avoid warnings about missing
returns.
Forgot to put nvmmctl in the "nvmm" group.
Add nvmm group.
2019-11-10 12:58:29 +00:00
martin 52cc832410 Pull up following revision(s) (requested by tsutsui in ticket #397):
etc/MAKEDEV.awk: revision 1.28

PR port-arm/54640: hack to work around conditional RAW_PART definition in
arm/include/disklabel.h.

Recognize this special case and skip lines between #ifndef RAW_PART and
the next #endif.
2019-11-04 14:35:57 +00:00
martin 86f26e47a5 Pull up following revision(s) (requested by abs in ticket #384):
etc/etc.evbmips/ttys: revision 1.7
	etc/etc.sparc64/ttys: revision 1.12
	etc/etc.shark/ttys: revision 1.9
	etc/etc.amiga/ttys: revision 1.25
	etc/etc.arc/ttys: revision 1.9
	etc/etc.sbmips/ttys: revision 1.6
	etc/etc.landisk/ttys: revision 1.4
	etc/etc.alpha/ttys: revision 1.13
	etc/etc.amigappc/ttys: revision 1.4
	etc/etc.mmeye/ttys: revision 1.8
	etc/etc.ia64/ttys: revision 1.2
	etc/etc.sandpoint/ttys: revision 1.8
	etc/etc.hp300/ttys: revision 1.17
	etc/etc.riscv/ttys: revision 1.2
	etc/etc.i386/ttys: revision 1.21
	etc/etc.aarch64/ttys: revision 1.2
	etc/etc.algor/ttys: revision 1.6
	etc/etc.sparc/ttys: revision 1.17
	etc/etc.mipsco/ttys: revision 1.7
	etc/etc.luna68k/ttys: revision 1.9
	etc/etc.iyonix/ttys: revision 1.5
	etc/etc.evbcf/ttys: revision 1.3
	etc/etc.netwinder/ttys: revision 1.9
	etc/etc.mvme68k/ttys: revision 1.10
	etc/etc.evbarm/ttys: revision 1.8
	etc/etc.evbsh3/ttys: revision 1.7
	etc/etc.pmax/ttys: revision 1.16
	etc/etc.hpcmips/ttys: revision 1.12
	etc/etc.vax/ttys: revision 1.10
	etc/etc.news68k/ttys: revision 1.10
	etc/etc.mvmeppc/ttys: revision 1.7
	etc/etc.hppa/ttys: revision 1.2
	etc/etc.next68k/ttys: revision 1.11
	etc/etc.ews4800mips/ttys: revision 1.3
	etc/etc.epoc32/ttys: revision 1.2
	etc/etc.emips/ttys: revision 1.2
	etc/etc.evbppc/ttys: revision 1.7
	etc/etc.sgimips/ttys: revision 1.11
	etc/etc.or1k/ttys: revision 1.2
	etc/etc.cesfic/ttys: revision 1.6
	etc/etc.amd64/ttys: revision 1.7
	etc/etc.playstation2/ttys: revision 1.7
	etc/etc.zaurus/ttys: revision 1.4
	etc/etc.newsmips/ttys: revision 1.10

Switch default console tty from /dev/console to /dev/constty

With this switch processes (such as xconsole) can open /dev/console
without breaking login on the text or serial console. This can be
trivially triggered by enabling xdm in rc.conf and hitting
Ctrl+Alt+F1 or equivalent once booted.

The changes:
- Add entry for /dev/console or /dev/constty if missing
- If a port's had /dev/console 'on' switch it off and enable /dev/constty
- If a port did not have /dev/console 'on', leave /dev/constty off

Some ports had /dev/console off and /dev/ttyE0 enabled, presumably to
avoid just this issue. It may make sense to adjust these also (but not
in this pass)

As discussed on current-users
2019-10-28 18:38:31 +00:00
martin 15733f4552 Pull up following revision(s) (requested by sevan in ticket #296):
etc/namedb/root.cache: revision 1.25

Update to 2019093001
2019-10-10 17:27:23 +00:00
martin 2f405e8e82 Pull up following revision(s) (requested by sevan in ticket #295):
etc/services: revision 1.102

sync with latest from IANA
2019-10-10 17:25:47 +00:00
martin b046ab7937 Pull up following revision(s) (requested by sevan in ticket #288):
etc/rc.d/npf_boot: revision 1.2
	etc/rc.d/pf_boot: revision 1.5

No need to empose the script to be runnable during boot time, it
prevents the
script from wroking if the system is booted into single user mode & then
moved onto multi-user mode.

Reported by <pgoyette> for NPF but the issue is there in PF too.
2019-10-06 11:13:35 +00:00
martin b954a278e1 Pull up following revision(s) (requested by brad in ticket #250):
external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.2
	external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.3
	external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.4
	external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.5
	distrib/sets/lists/man/mi: revision 1.1652
	distrib/sets/lists/man/mi: revision 1.1653
	distrib/sets/lists/etc/mi: revision 1.259
	etc/rc.d/mountall: revision 1.11
	external/cddl/osnet/sbin/zfs/Makefile: revision 1.5
	external/cddl/osnet/dist/cmd/zfs/zfs_main.c: revision 1.7
	etc/rc.d/Makefile: revision 1.105
	distrib/sets/lists/base/mi: revision 1.1217
	etc/rc.d/Makefile: revision 1.106
	etc/rc.d/zfs: revision 1.1
	etc/defaults/rc.conf: revision 1.152
	external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.1

Add support for legacy ZFS filesystems, specified by mountpoint=legacy
in the ZFS properties of the dataset and a simple man page for
mount_zfs.  With this, it is possible to put ZFS filesystems in
/etc/fstab as file system type zfs.

Add a rc.d script that kicks the module ZFS load mostly before
mountall runs simular to what LVM does.  This allows for any legacy
mounts to be specified in critical_local_filesystems and allows for
ZFS pools on top of cgd (probably among other things).  Introduce a
rc.conf variable called zfs which needs to be set to YES, in the usual
manor of things, to get zvols and ZFS dataset support rather then just
assume that 'zfs mount' does that in mountall.  Fix a problem in
mountall if ZFS is not compiled into the system.
mount_zfs.8: add xref to fstab(5)

Use more markup.

Include mount_zfs man pages only for MKZFS builds.

Moved zfs out of MKX11 block.

Fix build failure without X11.

Add a copyright to the man page and a bit of history.
Use Pa macro for path
new sentence, new line
2019-09-27 09:18:37 +00:00
martin 438ec0c2a4 Pull up following revision(s) (requested by thorpej in ticket #211):
etc/MAKEDEV.tmpl: revision 1.208

Create the character device for spiflash, in addition to the block device.

This is needed for getdiskrawname() to DTRT (for installboot(8)).
XXX pullup-9
2019-09-22 10:22:15 +00:00
martin e4b140375c Pull up following revision(s) (requested by kamil in ticket #60):
distrib/sets/lists/comp/mi: revision 1.2280
	external/bsd/Makefile: revision 1.64
	distrib/sets/lists/base/mi: revision 1.1210
	distrib/sets/lists/base/md.amd64: revision 1.278
	etc/mtree/NetBSD.dist.base: revision 1.202

Add LLVM sanitizers in the MKLLVM=yes build

Enable in all the supported variations for NetBSD/amd64:
 - Address Sanitizer
 - Thread Sanitizer
 - Memory Sanitizer
 - Undefined Behavior Sanitizer
 - SafeStack
 - libFuzzer
 - XRay

This change enables the features on amd64 for start.
2019-08-16 19:10:42 +00:00
martin a6636a7db5 Pull up following revision(s) (requested by nakayama in ticket #31):
etc/mtree/NetBSD.dist.base: revision 1.201

Change uname and gname to sync with etc/mtree/special.
It was missing in rev 1.195 changes.
2019-08-08 11:52:14 +00:00
martin 8e5ea76f79 Pull up following revision(s) (requested by nakayama in ticket #30):
etc/rc.d/autounmountd: revision 1.2
	etc/rc.d/ip6addrctl: revision 1.3
	etc/rc.d/automountd: revision 1.2
	etc/rc.d/automount: revision 1.2

Add $_rc_subr_loaded before ". /etc/rc.subr" for speedup and consistency.
2019-08-08 11:48:58 +00:00
martin b32bab0c83 Pull up following revision(s) (requested by hannken in ticket #26):
etc/Makefile: revision 1.439

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.
2019-08-07 10:18:13 +00:00
gdt e08f564969 MAKEDEV.tmpl: Create nodes for 16 USB hubs
As proposed on current-users, but with better formatting.
2019-07-29 17:53:20 +00:00
rin a4c04eec88 Build and install WSFB and WSFBSBC. 2019-07-26 11:38:21 +00:00
wiz 7cf3371d55 Move bcm43xx firmware back to /usr/libdata/firmware.
On popular request.
2019-07-24 06:53:42 +00:00
msaitoh 532016140e Fix typo in comment (s/partion/partition/). 2019-07-24 02:37:17 +00:00
wiz d3d2abdc28 Move bcm43xx to /libdata/firmware, where all the other firmwares live.
Deprecate /usr/libdata/firmware.
2019-07-22 14:47:51 +00:00
maya 4bc990b409 Create up to pci19.
We probably don't need more than one pci file, but the code needs to be
changed for it, which might introduce problems, and we're just before a
branch.

Not needed for evbarm because it uses devpubd by default.

Stopgap fix for PR xsrc/54388.
2019-07-21 11:14:18 +00:00
wiz c4e128da50 Install the nouveau gm206 firmware as used by my graphics card.
Also add the other gm20x nouveau firmwares to the source tree
to make it easier to add them for someone who can test them.

Installed if MKNOUVEAUFIRMWARE is set to 'yes'.
This defaults to no except on amd64 and i386 (like for radeon).
2019-07-20 19:09:21 +00:00