Commit Graph

275850 Commits

Author SHA1 Message Date
jdolecek
93217591a2 align buffers used for I/O to DEV_BSIZE so it's executed more optimally
when run for xbd(4) raw (character) device
2020-04-17 09:42:27 +00:00
jdolecek
4a168442c5 align buffers used for I/O to DEV_BSIZE so it's executed more optimally
when run for xbd(4) device
2020-04-17 09:33:37 +00:00
skrll
0f5fd65dd1 Use UVMHIST_CALLARGS 2020-04-17 08:17:06 +00:00
isaki
620dca1eae Improve diagnostic messages. 2020-04-17 07:48:35 +00:00
knakahara
0a27bcec22 Fix typo in a comment. 2020-04-17 03:15:50 +00:00
msaitoh
bc17e21c69 No functional change:
- modify comment
 - whitespace fix
2020-04-17 02:21:25 +00:00
rin
72d26a2dda Revert previous for now:
http://mail-index.netbsd.org/source-changes/2020/04/16/msg116278.html

The reasoning turned out to be wrong; __KERNEL_RCSID() in header files
does *not* overwrite RCSID in main source files. The real problem is that
it inserts its RCSID into *every* object files. However, it can be still
useful even if heavily duplicated.
2020-04-16 23:29:52 +00:00
christos
b526449a3e fix tense (Nelson Beebe) 2020-04-16 22:13:51 +00:00
rin
b104014c7e Discard __HAVE_UNLOCKED_PMAP for 4xx; 4xx is uniprocessor architecture,
and everything gets more than 10 times slower by __HAVE_UNLOCKED_PMAP.

Note that we support three supervisor-level architectures for powerpc:
oea, booke, and 4xx. We have three different implementations of pmap as
a result. Whereas oea and booke support multiprocessor, 4xx does not.
2020-04-16 22:11:12 +00:00
rin
364b1f4e0a Stop using __KERNEL_RCSID() in header files; it confuses ident(1) by
overwriting RCSID in main source files.

XXX
The first argument of __KERNEL_RCSID() is neglected for ELF. If we wish
to have RCSID of header files in kernel binary, we need something like
__FBSDID() macro in FreeBSD.
2020-04-16 21:56:41 +00:00
ad
255fce3c16 With the right timing, V->P operations could change stuff behind the back of
callers working in the opposite direction - fix it.  Tested by skrll@.
2020-04-16 21:20:43 +00:00
pgoyette
2a14d5b775 Put the spaces back (they're part of the config(1) syntax) but quote
them to avoid formatting errors
2020-04-16 18:56:04 +00:00
pgoyette
0be19164f9 Remove extraneous spaces 2020-04-16 18:51:47 +00:00
msaitoh
e09fd2144a Add Comet Lake support. 2020-04-16 18:32:29 +00:00
msaitoh
dee23d31ea Regen. 2020-04-16 18:21:12 +00:00
msaitoh
44a5dd67f8 - Add some Intel UHD Graphics devices. Mainly taken from OpenBSD.
- Add Comet Lake devices.
- Modify description of Intel 0x591e from HD Graphics to UHD Graphics.
- Add Western Digital WD Blue SN550 NVMe SSD
2020-04-16 18:20:46 +00:00
nat
a7c4415c1f Correct rx packet count for 8192EU. Tested OK. 2020-04-16 17:18:27 +00:00
jdolecek
95a32cf57f if backend supports it, use indirect segment for I/O requests over 32KB
there is some overhead for backend without persistent mappings
(backend needs to map the extra indirect segment page), but this
makes it possible to queue more I/O if using 64KB block size

tested on NetBSD/amd64 DomU against Linux/amd64 Dom0
2020-04-16 16:38:43 +00:00
jdolecek
b223522d70 update padding within 'struct blkif_request_indirect' to be binary
compatible with Linux/i386 - they changed padding so that there is no
structure layout difference between i386 and amd64; there is no change
for amd64 due to implicit padding

since Linux seems to be the only xen blkback implementation supporting
indirect segments, follow that rather than public xen includes; note
their blkif_x86_32_request_indirect handling expect this layout,
particularly padding for i386 before indirect_grefs[]
2020-04-16 15:58:13 +00:00
christos
bc4edbe0b5 Restore --copy-dt-needed as default. There is too much fallout in pkgsrc
mainly from -lcurses needing -lterminfo.
2020-04-16 15:47:19 +00:00
joerg
11954c74b6 Introduce intermediate locking for fork, so that the dynamic linker is
in a consistent state. This most importantly avoids races between dlopen
and friends and fork, potentially resulting in dead locks in the child
when it itself tries to acquire locks.
2020-04-16 14:39:58 +00:00
skrll
4422eacfa3 To allow concurrent page faults on the same set of pages lock the PV
lists.  From ad@ and fixed up by me.

Remove __HAVE_UNLOCKED_PMAP
2020-04-16 09:51:56 +00:00
jdolecek
faedabf30e when checking for physio request check for B_PHYS in b_flags rather
than an internal field, so this works when the original buf is
wrapped by another one by e.g. dk(4)

fixes misfired assert when doing newfs on a wedge, reported by Manuel Bouyer
2020-04-16 09:51:40 +00:00
skrll
a8880e614e Fix cur{lwp,cpu} and other bits for MODULES 2020-04-16 09:28:52 +00:00
skrll
a49279e708 Shave off 3 instructions per trap 2020-04-16 08:59:16 +00:00
ryo
f4bd953bb4 add the case of kdb_trap(-1) called from pic_ipi_ddb().
it depended on the update timing of 'db_recover'.
2020-04-16 08:03:30 +00:00
wiz
b541d0f520 Sort SEE ALSO. 2020-04-16 07:23:58 +00:00
skrll
07e87d542d Don't KASSERT there's an FPU present. QEMU doesn't have one... 2020-04-16 05:44:43 +00:00
skrll
d4355f9c83 More KNF 2020-04-16 05:22:59 +00:00
msaitoh
7f2d01cb3a No functional change:
- Rename ci_cpuid_level to ci_max_cpuid and ci_cpuid_extlevel to
   ci_max_ext_cpuid to match x86/include/cpu.h though cpuctl/arch/i386.c added
   them first.
 - Sort some entries.
 - Add comment.
2020-04-16 01:52:34 +00:00
christos
649d42183a need more || 2020-04-15 23:10:27 +00:00
christos
851d50d82c fix backslash 2020-04-15 23:09:28 +00:00
christos
92970ed163 Switch sha3 to the assembly version (fix the build) 2020-04-15 21:29:28 +00:00
christos
0a84c4d611 switch ppc to the new binutils 2020-04-15 21:28:08 +00:00
kim
aae8c85b3e Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA 2020-04-15 20:31:57 +00:00
jmcneill
07e82c3df9 Use 64-bit DMA if available 2020-04-15 19:26:51 +00:00
maxv
d8df46ec95 Drop the todo and qualify the accesses. 2020-04-15 17:28:26 +00:00
maxv
ce985f886b Introduce POOL_NOCACHE, simple option to cancel pool_caches and go directly
to the pool layer. It is taken out of POOL_QUARANTINE.

Advertise POOL_NOCACHE for kMSan rather than POOL_QUARANTINE. With kMSan
we are only interested in the no-caching effect, not the quarantine. This
reduces memory pressure on kMSan kernels.
2020-04-15 17:16:22 +00:00
maxv
29bc5ad925 Use large pages for the kASan shadow, same as kMSan. 2020-04-15 17:00:07 +00:00
nia
87706eec7d ossaudio: If the user's channel count is rejected, use the hardware count 2020-04-15 16:39:06 +00:00
maxv
7354445c97 Use large pages for the kMSan shadows. This greatly improves performance,
and slightly reduces memory consumption.
2020-04-15 16:28:28 +00:00
roy
b6ae27bc57 privsep: Redirect to /dev/null unless test or quiet and not debug
Keeps the rtsol like behaviour the same.

Fixes PR bin/55170
2020-04-15 15:55:24 +00:00
roy
09220fdb89 dhcpcd: Don't open a control socket in test mode
Fixes PR bin/55170
2020-04-15 15:54:18 +00:00
skrll
134268cc06 Convert PMAPDEBUG to UVMHIST 2020-04-15 15:50:15 +00:00
nia
0eb796bf71 ossaudio: Make SNDCTL_DSP_SETFMT conform with OSSv4.
The OSSv4 spec says we shouldn't really error if an invalid format is
chosen by an application. Things are especially likely to be confused
if we return MULAW, since in OSSv4 terms that means that's the native
hardware format. Instead, set and return the current hardware format
if an invalid format is chosen.

For the 24-bit sample formats, note that the NetBSD kernel currently
can't handle them in its default configuration, and will return an error
code if you attempt to use them. So, if an applicaton requests 24-bit PCM,
promote it to 32-bit PCM. According to the spec, this is valid and
applications should be checking the return value anyway.

In the Linux compat layer, we just use S16LE as a fallback. The OSSv3
headers that are still being shipped with Linux don't contain definitions
for fancier formats and we can reasonably expect all applications to
support S16LE.
2020-04-15 15:25:33 +00:00
skrll
318a86979c Spaces to tabs 2020-04-15 15:22:37 +00:00
nia
6476938d92 ossaudio: Make SNDCTL_DSP_SPEED more robust when using invalid rates.
From the perspective of reading the OSSv4 specification, NetBSD's
behaviour when an invalid sample rate is set makes no sense at all:
AUDIO_SETINFO simply returns an error code, and then we immediately
fall through to getting the sample rate, which is still set to the
legacy default of 8000 Hz.

Instead, what OSS applications generally expect is that they will be
able to receive the actual hardware sample rate. This is very, very
unlikely to be 8000 Hz on a modern machine.

No functional change when setting a sample rate between the supported
rates of 1000 and 192000 Hz. When a rate outside this range is requested,
the hardware rate is returned (on modern hardware, generally always 48000
Hz or a multiple of 48000 Hz).
2020-04-15 14:54:34 +00:00
rin
7058cb63d8 When boot up with auto-boot? == true, some systems do not provide stdout
if the normal output is screen.

Open screen explicitly as stdout in this case, both for ofwboot and kernel,
which fixes problems with auto-boot? == true for Mac mini G4:

- messages from ofwboot do not appear
- kernel freeze during early boot stage

Taken from OpenBSD:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/macppc/macppc/ofw_machdep.c#rev1.3
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/macppc/stand/Locore.c#rev1.3

XXX
pullup to netbsd-9 and -8
2020-04-15 13:33:13 +00:00
jdolecek
1018214947 remove MAXPHYS override, xbd(4) was changed to work with 64k transfers 2020-04-15 10:21:00 +00:00
jdolecek
c2ea501358 make xbd(4) accept 64k (aka regular MAXPHYS) I/O, use two linked requests
for this, so that it does not require MAXPHYS override in kernel config
any more

this is useful even if we get indirect segment support one day,
for compatibility with Dom0's not supporting it, like currently NetBSD
2020-04-15 10:16:47 +00:00