Commit Graph

266152 Commits

Author SHA1 Message Date
isaki 6291b1348d Use C99 style struct initializer to audio_hw_if. 2019-03-16 12:09:56 +00:00
rin 573f65ca08 Bump STACK_ALIGNBYTES to (16 - 1) to satisfy requirement by AMD64
System V ABI in kernel level. This is because

(1) for LLDB, we want to bypass libc/csu (and therefore manual stack
    alignment in _start), and

(2) rtld in glibc >= 2.23 for Linux/x86_64 requires it.

Fix SEGV for Linux/x86_64 binaries with glibc >= 2.23, reported as
PR port-amd64/54052.
2019-03-16 11:50:48 +00:00
isaki e7e32b7fa3 Make it compilable (remove unused variables). 2019-03-16 11:43:40 +00:00
skrll 6dcefd7ba6 Spell common correctly in comment. Spotted by jmcneill 2019-03-16 10:45:06 +00:00
skrll 0e79f501ab Style and whitespace. NFC. 2019-03-16 10:13:34 +00:00
skrll 07964189cc Flush the BP cache just before starting APs so that cache coherency starts
with a correct view.
2019-03-16 10:05:40 +00:00
maxv 6041275b4e Disable COMPAT_OSF1, will be removed. 2019-03-16 08:03:03 +00:00
isaki 6911c4423c Fix (probably) typo. SLINEAR_LE -> ULINEAR_LE. 2019-03-16 04:41:09 +00:00
isaki c38ee2672e Swap wrong ordered halt_input and halt_output (since rev1.1).
But I guess that it didn't lead a big impact.  Because hw_if->close
is called immediately after that in most cases.
2019-03-16 04:36:19 +00:00
isaki 3e362b6fc4 Remove duplicated option. 2019-03-16 04:31:25 +00:00
ryoon e386a026df Support more ALPS V2 devices
* The V2 devices found in Toshiba dynabook satellite B551/D and
  dynabook SS RX1/T8E.
2019-03-16 03:27:15 +00:00
macallan 022d35761d moar registers 2019-03-15 22:09:21 +00:00
jmcneill 6209bb0953 Fix SCF_RSP_R1B test 2019-03-15 11:45:17 +00:00
mrg d0e870f3ff properly mark libmesa_dri.so obsolete in mesa18 x86 builds. 2019-03-15 07:03:36 +00:00
mrg 8eb0252f3f libmesa_dri.so is obsolete in mesa18 for x86 as well. 2019-03-15 04:26:13 +00:00
msaitoh b4450baad9 Regen. 2019-03-15 04:00:29 +00:00
msaitoh c1f303d57c Add Davicom DM9161, DM9161[ABC] and DM9601. 2019-03-15 04:00:06 +00:00
mrg 6d8faf6803 remove INCLUDES.all setting and it's processing. already done elsewhere. 2019-03-15 03:10:25 +00:00
msaitoh b90dd737ea - Simplily. Suggested by knakahara.
- Modify comment. Per queue VLAN enable flags is on 82599 and later.
- Fix typo in comment.
2019-03-15 02:38:20 +00:00
thorpej 3a6fe30ac0 Use copyin(), not fusword(). 2019-03-14 23:49:38 +00:00
christos ff6fb25916 revert previous sshd hack (from Rin Okuyama) 2019-03-14 21:49:32 +00:00
christos 8743cf7a8d Grr, disable the "time goes backwards" test here since this breaks too
frequently. We need a real fix.
2019-03-14 21:10:33 +00:00
christos d61d396b30 unify rounding and range checking. 2019-03-14 21:09:03 +00:00
maxv b55a76c23b Optimize NVMM-Intel: keep the VMCS active on the host CPU, and lazy-switch
it on demand only when needed. This allows the CPU to use the cached
version of the guest state, rather than the in-memory copy of it. This is
much more performant.

A VMCS must be active on only one CPU, but one CPU can have several active
VMCSs at the same time.

We keep track of which CPU each VMCS is active on. When we want to execute
a VCPU, we determine whether its VMCS is loaded on another CPU, and if so
send an IPI to ask it to unbusy that VMCS. In most cases the VMCS is
already active on the current CPU, so we don't have to do anything and can
proceed with a fast VMRESUME.

We send IPIs with kpreemption enabled but with a bound LWP, because we
don't want to get context-switched to the CPU we just sent an IPI to.

Overall, with this in place, I see a ~15% performance increase in the
guests on NVMM-Intel.
2019-03-14 20:29:53 +00:00
palle d482c9c5e5 syscall debug - fix build when SYSCALL_DEBUG option is present in kernel config file 2019-03-14 19:51:49 +00:00
maxv f6489ec897 Move a KASSERT, applies to all branches. 2019-03-14 19:26:44 +00:00
maxv a9258ab0ee Reduce the mask of the VTPR, only the first four bits matter. 2019-03-14 19:15:26 +00:00
maxv 76ec799c21 Fail early if we're beyond the guest max ram. 2019-03-14 19:10:27 +00:00
kre 9ecf73718f Avoid a panic from the sequence
mlock(buf, 0);
	munlock(buf, 0);
	mlock(buf, page);
	munlock(buf, page);

where buf is page aligned, and page is actually anything > 0
(but not too big) which will get rounded up to the next multiple
of the page size.

In that sequence, it is possible that the 1st munlock() is optional.

Add a KASSERT() (or two) to detect the first effects of the problem
(without that, or in !DIAGNOSTIC kernels) the problem eventually
causes some kind of problem or other (most often still a panic.)

After this, mlock(anything, 0) (or munlock) validates "anything"
but is otherwise a no-op (regardless of the alignment of anything).

Also, don't treat mlock(buf, verybig) as equivalent to mlock(buf, 0)
which is (more or less) what we had been doing.

XXX pullup -8 (maybe -7 as well, need to check).
2019-03-14 19:10:04 +00:00
christos 453947c389 Sync with installed versions. 2019-03-14 18:59:37 +00:00
christos c4b4fd3f4b Remove __clang___ hacks for noreturn, reduce footprint when we don't compile
with JEMALLOC_PROF. More to do here.
2019-03-14 18:56:12 +00:00
thorpej 9565cd57f0 G/C "MAPPECOPY". It is the deadest of wood, and never actually worked in
NetBSD.
2019-03-14 16:59:09 +00:00
mlelstv 5ca1f5a8c5 print little-endian header fields correctly. 2019-03-14 10:26:10 +00:00
jmcneill 20d09fd3a5 U-Boot fails to boot a compressed kernel_noload image, so stop emitting
them.
2019-03-14 10:22:43 +00:00
ozaki-r 0a0af5b639 carp: don't skip pserialize_read_enter and ifa_release 2019-03-14 07:05:07 +00:00
knakahara d97e48c284 Fix ipsecif(4) memory leak in some ioctl cases. 2019-03-14 03:52:40 +00:00
rin 441ba19f0d Rename global variable "state" to "_cursesi_state".
Until now, if application happens to have a global variable of the same
name, it was overridden by curses routines. This is the scenario in
which aspell crashes when linked to our curses, reported in pkg/44005.

We need to wipe out global/static variables like "_cursesi_state" or
"wstate" for thread safety. But it would be a future task...

XXX pullup to netbsd-8 and netbsd-7
2019-03-14 00:36:06 +00:00
christos cf560a470f regen 2019-03-13 23:37:48 +00:00
thorpej 24ebd3554a In zx_cursor_color(), don't throw away the second half of the color
map data.
2019-03-13 22:30:01 +00:00
thorpej 42620a4a19 Fix an issue with FIOCSCURSOR FB_CUR_SETCMAP on zx described here:
http://mail-index.netbsd.org/port-sparc/2019/02/11/msg002134.html

by replacing the fubyte() calls with copyin() into temporary buffers.

The other issue in zx_cursor_color() mentioned in that message will
be addressed separately.
2019-03-13 22:12:46 +00:00
maxv 81bb5eefe5 style 2019-03-13 20:56:33 +00:00
jmcneill 453e3d1a35 Add support for Arasan SDHCI 5.1 2019-03-13 12:17:45 +00:00
jmcneill 16219c4edc Add vendor callback for post-bus clock ops and add SDHC_FLAG_STOP_WITH_TC flag 2019-03-13 12:16:49 +00:00
jmcneill f0d6546978 Fix aclk_emmc register offset, set RK_COMPOSITE_ROUND_DOWN for SD/EMMC clocks, and add a few more emmc clock nodes 2019-03-13 10:29:56 +00:00
jmcneill 0bae989ab7 Set drive strength and output tap delay 2019-03-13 10:28:37 +00:00
msaitoh 361a7fb35b Fix a bug that the VLAN HW tagging function is not correctly disabled when
all vlan is detached. Part of ixgbe.c rev. 1.177.
2019-03-13 10:08:02 +00:00
msaitoh d5ccfa8a1b - Fix a bug that the VLAN HW tagging function is not correctly disabled
when all vlan is detached.
- Fix a bug that VLAN HW tagging function is not correctly controlled on 82598.
- Control VLAN HW filter function correctly.
- Don't clear IXGBE_VLNCTRL_CFIEN bit When ETHERCAP_VLAN_HWFILTER is set.
  I think it's not required (and Linux doesn't do it). This change has no
  effect to NetBSD because ETHERCAP_VLAN_HWFILTER is not supported yet.
2019-03-13 10:02:13 +00:00
mrg c8b62c46e7 fix merge botch in previous. i *think* this is now right. it sure builds.. 2019-03-13 09:42:01 +00:00
mrg e54234363a regen for openssl 1.1.1b.
not 100% sure this is right but my build works now.  here's what i did:

   % cd crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc
   % make regen

after checking that the openssl generator calling code had not change
(but the relevant .pl file had.)
2019-03-13 09:23:59 +00:00
kre e5eb671065 Add a bunch of fprintf(stderr,...) diagnostics to try and help determine
what is going wrong which is causing this test to crash the kernel.
2019-03-13 08:50:12 +00:00