Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (2h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 12:12:42 UTC Now

2019-02-17 13:46:03 UTC MAIN commitmail json YAML

VM_MAXUSER_ADDRESS can be undefined when compiling module/coredump;
it varies between machines for evbppc (and possibly evbppc64).

(rin)

2019-02-17 13:21:55 UTC MAIN commitmail json YAML

Set WARNS=3 to appease sign-compare warnings for mips, mips64, and sparc.

(rin)

2019-02-17 12:24:17 UTC MAIN commitmail json YAML

2019-02-17 09:33:19 UTC MAIN commitmail json YAML

2019-02-17 09:29:35 UTC MAIN commitmail json YAML

Add new ATF t_ptrace_wait* vfork(2) tests

Add traceme_vfork_signalmasked_crash and traceme_vfork_signalignored_crash
tests for crash signals (SIGTRAP, SIGSEGV, SIGILL, SIGFPE, SIGBUS).

These new scenario assert that signal masked/ignored are delivered to
vfork(2)ed child.

All tests pass.

(kamil)

2019-02-17 07:34:44 UTC MAIN commitmail json YAML

Add missing export of atomic_or_64 (since rev1.1).

(isaki)

2019-02-17 06:22:58 UTC MAIN commitmail json YAML

various updates for reality.

- arm64, powerpc switched
- arm, hppa, sh3 is ready to switch
- vax dynamic binaries have a problem

(mrg)

2019-02-17 05:32:35 UTC MAIN commitmail json YAML

2019-02-17 05:29:09 UTC MAIN commitmail json YAML

2019-02-17 05:21:49 UTC MAIN commitmail json YAML

Remove redundant test from ATF t_ptrace_wait*

signal3 duplicates traceme_signalmasked_crash(SIGSEGV)

(kamil)

2019-02-17 05:06:16 UTC MAIN commitmail json YAML

PR/53984: Partial revert of modify lapic_calibrate_timer() in lapic.c r1.69.

(nonaka)

2019-02-17 04:57:09 UTC MAIN commitmail json YAML

Add additional assert in traceme_signalignored_crash t_ptrace_wait* tests

Check whether sigignore is not reset on a trapsignal under a debugger.
The expected behavior is to not reset it. A side effect of resetting
signal mask is noticable especially with a software/hardware breakpoint
that changes state of a process.

Mark these tests as failing.

(kamil)

2019-02-17 04:19:39 UTC MAIN commitmail json YAML

Add additional assert in traceme_signalmasked_crash t_ptrace_wait* tests

Check whether signal mask is not reset on a trapsignal under a debugger.
The expected behavior is to not reset it. A side effect of resetting
signal mask is noticable especially with a software/hardware breakpoint
that changes state of a process.

Mark these tests as failing.

(kamil)

2019-02-17 04:17:52 UTC MAIN commitmail json YAML

Fix assertion failures triggered by usbdi.c,v 1.182, when devices
are detached.

This is because xfers of USBD_NOT_STARTED can be removed from queue
in an invisible way to host controller drivers.

Discussed on tech-kern.

(rin)

2019-02-17 04:17:31 UTC MAIN commitmail json YAML

Fix system freeze when USB NICs with multiple outstanding transfers
are detached from xhci(4) or ehci(4), that enable up_serialise for
bulk transfers.

The cause of problem is that usbd_ar_pipe() waits xfers of
USBD_NOT_STARTED to be removed, although underlying upm_abort
functions do not remove such queues, as reported by "sc dying".

Therefore, remove xfers of USBD_NOT_STARTED when pipe is closed.

Patch provided by Nick Hudson.

(rin)

2019-02-17 04:06:01 UTC MAIN commitmail json YAML

Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.

(rin)

2019-02-17 03:57:31 UTC MAIN commitmail json YAML

Turn on DIAGNOSTIC by default for modules in HEAD.

Make us sure that it should be commented out for release branches in
a similar manner to kernel configuration files.

Discussed on tech-kern.

(rin)

2019-02-17 00:24:25 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libgcc/arch/m68000/defs.mk@1.13 / diff / nxr@1.13
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/config.h@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/lib/libgomp/arch/alpha/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/arm/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/armeb/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/earm/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/earmeb/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/gcc/lib/libgomp/arch/earmhf/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgomp/arch/earmhfeb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgomp/arch/earmv4/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgomp/arch/earmv4eb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgomp/arch/earmv6/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/earmv6eb/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/earmv6hf/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/earmv6hfeb/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/earmv7/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/earmv7eb/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/earmv7hf/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/earmv7hfeb/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/hppa/config.h@1.7 / diff / nxr@1.7
      :
(more 82 files)
regen mknative with symver no longer disabled.

(mrg)

2019-02-17 00:22:53 UTC MAIN commitmail json YAML

don't pass --disable-symver to mknative configure.  this turns off
the checking for gcc 4.6 and some exception handling routines which
we need on several platforms.

this should fix missing symbol issues seen on current-users.

(mrg)

2019-02-17 00:05:11 UTC MAIN commitmail json YAML

apply -std=gnu++98 to some more files.

state that some hard coded stuff here should be pulled out with mknative.

(mrg)

2019-02-16 23:28:57 UTC MAIN commitmail json YAML

Fix cut & paste error in comment

(tron)

2019-02-16 19:09:07 UTC MAIN commitmail json YAML

Typo in member variable name

(martin)

2019-02-16 18:57:21 UTC MAIN commitmail json YAML

Document return values from menu items opt_action functions, add a
new variant: -1 when functions have fundamentally changed the menu
definition on the fly and the processing functions needs to restart
without looking at the old state (or stale cached pointers).

(martin)

2019-02-16 17:56:57 UTC MAIN commitmail json YAML

PR bin/53986 from Christian Weisgerber

Skip forward to tomorrow to run a command earlier in the current
hour than now (as well as during an earlier hour of the day).

(kre)

2019-02-16 16:20:50 UTC MAIN commitmail json YAML

Fix HDMI output; only install cursor_set/cursor_move funcs if hardware cursor is available.

(jmcneill)

2019-02-16 12:58:14 UTC MAIN commitmail json YAML

Ah no, adapt previous, on AMD RAX is in the VMCB.

(maxv)

2019-02-16 12:40:31 UTC MAIN commitmail json YAML

Improve the FPU detection: hide XSAVES because we're not allowing it, and
don't set CPUID2_OSXSAVE if the guest didn't first set CR4_OSXSAVE.

With these changes in place, I can boot Windows 10 on NVMM.

(maxv)

2019-02-16 12:05:30 UTC MAIN commitmail json YAML

Handle MSR_MISC_ENABLE on NVMM-Intel (Intel-specific).

(maxv)

2019-02-16 07:41:13 UTC MAIN commitmail json YAML

make(1): minor grammar fixes in BUGS section

(gutteridge)

2019-02-16 07:00:56 UTC MAIN commitmail json YAML

Mark up NULL with Dv.

(wiz)

2019-02-16 06:51:05 UTC MAIN commitmail json YAML

Two minor fixes.
- 0 -> NULL.
- avoid K&R and sync with reality.

(isaki)

2019-02-16 06:50:14 UTC MAIN commitmail json YAML

Two minor fixes.
- Add missing AUDIO_PERROR (since 1996!)
- Sort AUDIO_GETFD.

(isaki)

2019-02-15 23:20:35 UTC MAIN commitmail json YAML

2019-02-15 22:49:24 UTC MAIN commitmail json YAML

nvpair_remove_nvlist_array: revert part of the rev 1.4 change (it was applied
by mistake because the libnv upsteam code on Github has deviated from FreeBSD,
i.e. it has a different nvlist_set_array_next() logic).

(rmind)

2019-02-15 20:48:57 UTC MAIN commitmail json YAML

Avoid UB in OsdHardware.c

UBSan: Undefined Behavior in src/sys/dev/acpi/acpica/OsdHardware.c:265:17,
left shift of 255 by 24 places cannot be represented in type 'int'

This file isn't part of upstream acpica so just fix it locally.

Reported and initial patch by <Akul Pillai>

(kamil)

2019-02-15 18:57:15 UTC MAIN commitmail json YAML

Fix reporting EOF via kevent and add a test case

Fix the kernel pty driver to report closed slave via master's kevent
EVFILT_READ.  This behavior matches the behavior for pipes, is
consistent with how FreeBSD implements it and is relied upon by LLDB's
main loop implementation.

Includes feedback by kre and kamil (from tech-kern), commit approved
by kamil.

(mgorny)

2019-02-15 16:42:27 UTC MAIN commitmail json YAML

Remove the PSE check in the 32bit-PAE MMU. Setting CR4.PAE automatically
enables PSE regardless of whether CR4.PSE is set or not, so we should just
ignore it.

With this in place I can boot Windows 8.1 on NVMM.

(maxv)

2019-02-15 16:37:54 UTC MAIN commitmail json YAML

2019-02-15 16:36:33 UTC MAIN commitmail json YAML

Add /* FALLTHROUGH */ for DEBUG kernel.

(hannken)

2019-02-15 14:13:32 UTC MAIN commitmail json YAML

This really was a missing break.

Spotted by Rin Okuyama.

(rjs)

2019-02-15 13:17:05 UTC MAIN commitmail json YAML

Initialize the guest TSC to zero at VCPU creation time, and handle guest
writes to MSR_TSC at run time.

This is imprecise, because the hardware does not provide a way to preserve
the TSC during #VMEXITs, but that's fine enough.

(maxv)

2019-02-15 08:54:02 UTC MAIN commitmail json YAML

2019-02-15 05:06:38 UTC MAIN commitmail json YAML

Add new ATF tests traceme_signal{ignored,masked}_crash* in t_ptrace_wait*

New tests verify that crashes (from trap signals) are delivered to tracer
regardless of the signal masking or signal ignoring option enabled in the
traced child.

All tests pass.

In close future these tests will obtain additional asserts.

(kamil)

2019-02-15 04:11:39 UTC MAIN commitmail json YAML

Add new ATF tests traceme_raisesignal_ignored in t_ptrace_wait*

Verify that ignoring (with SIG_IGN) in tracee
does not stop tracer from catching this raised signal.

Cover crash signals and already covered ones in other tests.

All tests pass.

(kamil)

2019-02-14 21:47:52 UTC MAIN commitmail json YAML

2019-02-14 20:42:41 UTC MAIN commitmail json YAML

2019-02-14 20:19:51 UTC MAIN commitmail json YAML

add breaks for done() since it might not be __dead.

(christos)

2019-02-14 20:09:40 UTC MAIN commitmail json YAML

sun4v: add debug printout for ALIGN trap

(palle)

2019-02-14 20:09:12 UTC MAIN commitmail json YAML

PR/53981: Jonathan Perkins: history_list should null-terminate

(christos)

2019-02-14 17:08:54 UTC MAIN commitmail json YAML

done is not always done (it returns, it is not dead)

(christos)

2019-02-14 14:40:08 UTC MAIN commitmail json YAML

libpthread isn't used

(prlw1)

2019-02-14 14:30:20 UTC MAIN commitmail json YAML

Harmonize the handling of the CPL between AMD and Intel.

AMD has a separate guest CPL field, because on AMD, the SYSCALL/SYSRET
instructions do not force SS.DPL to predefined values. On Intel they do,
so the CPL on Intel is just the guest's SS.DPL value.

Even though technically possible on AMD, there is no sane reason for a
guest kernel to set a non-three SS.DPL, doing that would mess up several
common segmentation practices and wouldn't be compatible with Intel.

So, force the Intel behavior on AMD, by always setting SS.DPL<=>CPL.
Remove the now unused CPL field from nvmm_x64_state::misc[]. This actually
increases performance on AMD: to detect interrupt windows the virtualizer
has to modify some fields of misc[], and because CPL was there, we had to
flush the SEG set of the VMCB cache. Now there is no flush necessary.

While here remove the CPL check for XSETBV on Intel, contrary to AMD
Intel checks the CPL before the intercept, so if we receive an XSETBV
VMEXIT, we are certain that it was executed at CPL=0 in the guest. By the
way my check was wrong in the first place, it was reading SS.RPL instead
of SS.DPL.

(maxv)

2019-02-14 13:27:59 UTC MAIN commitmail json YAML

DEBUG mode only change.  When pretty-printing a word from a parse
tree, don't display a CTLESC which is there only to protect a CTL*
char (a data char that happens to have the same value).  No actual
CTL* chars are printed as data, so no escaping is needed to protect
data which just happens to look the same.  Dropping this avoids the
possibility of confusion/ambiguity in what the word actually contains.

NFC for any normal shell build (very little of this file gets compiled there)

(kre)

2019-02-14 12:49:28 UTC MAIN commitmail json YAML

Sort, and add a couple obsolete files for binutils=231.

(wiz)

2019-02-14 12:22:06 UTC MAIN commitmail json YAML

remove the hack to remove .eh_frame -- gcc7 is fixed it seems.

(mrg)

2019-02-14 11:15:24 UTC MAIN commitmail json YAML

Add the "specialvar" built-in command.  Discussed (well, mentioned
anway) on tech-userlevel with no adverse response.

This allows the magic of vars like HOSTNAME SECONDS, ToD (etc) to be
restored should it be lost - perhaps by having a var of the same name
imported from the environment (which needs to remove the magic in case
a set of scripts are using the env to pass data, and the var name chosen
happens to be one of our magic ones).

No change to SMALL shells (or smaller) - none of the magic vars (except
LINENO, which is exempt from all of this) exist in those, hence such a
shell has no need for this command either.

(kre)

2019-02-14 10:36:33 UTC MAIN commitmail json YAML

2019-02-14 10:29:58 UTC MAIN commitmail json YAML

put joerg's varasm.c patch back with additional upstream fixes.  now
crtbegin.o has a read-only .eh_frame, and libstdc++ builds.

2017-09-01  Joerg Sonnenberger  <joerg@bec.de>
            Jeff Law  <law@redhat.com>

        * varasm.c (bss_initializer_p): Do not put constants into .bss
        (categorize_decl_for_section): Handle bss_initializer_p returning
        false when DECL_INITIAL is NULL.

2017-11-27  Jakub Jelinek  <jakub@redhat.com>

        PR target/83100
        * varasm.c (bss_initializer_p): Return true for DECL_COMMON
        TREE_READONLY decls.

2018-02-09  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/84237
        * output.h (bss_initializer_p): Add NAMED argument, defaulted to false.
        * varasm.c (bss_initializer_p): Add NAMED argument, if true, ignore
        TREE_READONLY bit.
        (get_variable_section): For decls in named .bss* sections pass true as
        second argument to bss_initializer_p.

(mrg)

2019-02-14 09:37:32 UTC MAIN commitmail json YAML

On AMD, the segments have a simple "present" bit. On Intel however there
is an extra "unusable" bit, which has a twisted meaning. We can't just
ignore this bit, because when unset, the CPU performs extra checks on the
other attributes, which may cause VMENTRY to fail and the guest to be
killed.

Typically, on Qemu, some guests like Windows XP trigger two consecutive
getstate+setstate calls, and while processing them, we end up wrongfully
removing the "unusable" bits that were previously set.

Fix that by forcing "unusable = !present". Each hypervisor I could check
does something different, but this seems to be the least problematic
solution for now.

While here, the fields of vmx_guest_segs are VMX indexes, so they should
be uint64_t (no functional change).

(maxv)

2019-02-14 08:18:26 UTC MAIN commitmail json YAML

2019-02-14 07:12:40 UTC MAIN commitmail json YAML

Fix NLAPIC, NISA and NIOAPIC related conditional compile errors.

This will allow us to now compile an amd64 kernel without PCI.

No functional changes.

(cherry)

2019-02-14 06:59:25 UTC MAIN commitmail json YAML

Snag the final bits of PV only code to conditionally compile under
-DXENPV

This completes the bifurcation.

The next step is to add -DXENPVHVM code.

(cherry)

2019-02-14 06:47:32 UTC MAIN commitmail json YAML

Replace signal2 in t_ptrace_wait* with new tests

Add new tests traceme_raisesignal_masked[1-8].

New tests to verify that masking (with SIG_BLOCK) signal in tracee
stops tracer from catching this raised signal. Masked crash signals are
invisible to tracer as well.

All tests pass.

(kamil)

2019-02-14 05:38:45 UTC MAIN commitmail json YAML

Add new regression scenarios for crash signals in t_ptrace_wait*

Verify correct behavior of crash signals (SIGTRAP, SIGBUS, SIGILL, SIGFPE,
SIGSEGV) in existing test scenarios:
- traceme_raise
- traceme_sendsignal_handle
- traceme_sendsignal_masked
- traceme_sendsignal_ignored
- traceme_sendsignal_simple
- traceme_vfork_raise

These tests verify signals out of the context of CPU trap. These new tests
will help to retain expected behavior in future changes in semantics of
the trapsignals in the kernel.

(kamil)

2019-02-14 04:34:37 UTC MAIN commitmail json YAML

Sort in alphebetical order a bit.

(msaitoh)

2019-02-14 04:13:40 UTC MAIN commitmail json YAML

Add KSZ8081 support from FreeBSD.

(msaitoh)

2019-02-14 03:33:55 UTC MAIN commitmail json YAML

separate RNDIS definitions from urndis(4) for use with Hyper-V NetVSC.

(nonaka)

2019-02-14 03:26:11 UTC MAIN commitmail json YAML

2019-02-14 03:25:47 UTC MAIN commitmail json YAML

Add Tundra (now IDT) TSI381 and PEB383 from OpenBSD.

(msaitoh)

2019-02-13 21:40:50 UTC MAIN commitmail json YAML

Delete a no-longer-used #define that referred to a struct field that
no longer exists.  Also correct a couple of typos in comments.    NFC.

(kre)

2019-02-13 20:48:56 UTC MAIN commitmail json YAML

while we're still figuring out the gcc7 vs .eh_frame issue, apply
the don't remove eh_frame hack to mips as well.  hpcmips testbed
is also failing currently:

[  3.1238738] panic: init died (signal 6, exit 12)

(mrg)

2019-02-13 18:31:11 UTC MAIN commitmail json YAML

sun50i_h6_ccu: add PCIe clocks

(jakllsch)

2019-02-13 18:18:38 UTC MAIN commitmail json YAML

sun50i_h6_ccu: add "pll_cpux"

Currently intended for display of existing clock rate via the sysctl
tree, and not yet for DVFS.

(jakllsch)

2019-02-13 18:04:35 UTC MAIN commitmail json YAML

Silent UB alignment issues in acpica under kUBSan

Pass -DACPI_MISALIGNMENT_NOT_SUPPORTED under kUBSan enabled. This option
is dedicated for alignment sensitive CPUs in acpica. It was originally
designed for Itanium CPUs, but nowadays it's wanted for aarch64 as well.

Define it in acpica code under kUBSan in order to pacify Undefined Behavior
reports on all ports (in particular x86). The number of reports is now
halved with this patch applied. The remaining alignment alarms in acpica
will be addressed in future.

Patch contributed by <Akul Pillai>

(kamil)

2019-02-13 17:17:02 UTC MAIN commitmail json YAML

Fix kUBSan build with GCC7

Add missing __unreachable() and FALLTHROUGH keywords.

Reported by <Akul Pillai>

(kamil)

2019-02-13 16:06:28 UTC MAIN commitmail json YAML

Note Intel support.

(maxv)

2019-02-13 16:03:16 UTC MAIN commitmail json YAML

Add Intel-VMX support in NVMM. This allows us to run hardware-accelerated
VMs on Intel CPUs. Overall this implementation is fast and reliable, I am
able to run NetBSD VMs with many VCPUs on a quad-core Intel i5.

NVMM-Intel applies several optimizations already present in NVMM-AMD, and
has a code structure similar to it. No change was needed in the NVMM MI
frontend, or in libnvmm.

Some differences exist against AMD:

- On Intel the ASID space is big, so we don't fall back to a shared ASID
  when there are more VCPUs executing than available ASIDs in the host,
  contrary to AMD. There are enough ASIDs for the maximum number of VCPUs
  supported by NVMM.

- On Intel there are two TLBs we need to take care of, one for the host
  (EPT) and one for the guest (VPID). Changes in EPT paging flush the
  host TLB, changes to the guest mode flush the guest TLB.

- On Intel there is no easy way to set/fetch the VTPR, so we intercept
  reads/writes to CR8 and maintain a software TPR, that we give to the
  virtualizer as if it was the effective TPR in the guest.

- On Intel, because of SVS, the host CR4 and LSTAR are not static, so
  we're forced to save them on each VMENTRY.

- There is extra Intel weirdness we need to take care of, for example the
  reserved bits in CR0 and CR4 when accesses trap.

While this implementation is functional and can already run many OSes, we
likely have a problem on 32bit-PAE guests, because they require special
care on Intel CPUs, and currently we don't handle that correctly; such
guests may misbehave for now (without altering the host stability). I
expect to fix that soon.

(maxv)

2019-02-13 14:55:29 UTC MAIN commitmail json YAML

Align the kASan message style with kUBSan

Print messages with initial 'ASan', simiarly to kUBSan printing 'UBSan'.

(kamil)

2019-02-13 11:40:41 UTC MAIN commitmail json YAML

Bump date for previous.

(wiz)

2019-02-13 10:55:13 UTC MAIN commitmail json YAML

Drop support for software interrupts. I had initially added that to cover
the three event types available on AMD, but Intel has seven of them, all
with weird and twisted meanings, and they require extra parameters.

Software interrupts should not be used anyway.

(maxv)

2019-02-13 09:57:46 UTC MAIN commitmail json YAML

Conditionally compile a conditionally used variable.

(cherry)

2019-02-13 08:46:40 UTC MAIN commitmail json YAML

Fix DIAGNOSTIC build; replace FreeBSD-specific function with ours.

(rin)

2019-02-13 08:42:26 UTC MAIN commitmail json YAML

Add ICS1893C support from FreeBSD.

(msaitoh)

2019-02-13 08:41:43 UTC MAIN commitmail json YAML

Add CS8204, CS8244 VSC8211 and VSC8601 support from {Free,Open}BSD.

(msaitoh)

2019-02-13 08:40:14 UTC MAIN commitmail json YAML

2019-02-13 08:39:55 UTC MAIN commitmail json YAML

Change CS8244's OUI from xxCICADA to CICADA. I don't know whether this
change is correct or not...

(msaitoh)

2019-02-13 08:38:25 UTC MAIN commitmail json YAML

Add the EPT pmap code, used by Intel-VMX.

The idea is that under NVMM, we don't want to implement the hypervisor page
tables manually in NVMM directly, because we want pageable guests; that is,
we want to allow UVM to unmap guest pages when the host comes under
pressure.

Contrary to AMD-SVM, Intel-VMX uses a different set of PTE bits from
native, and this has three important consequences:

- We can't use the native PTE bits, so each time we want to modify the
  page tables, we need to know whether we're dealing with a native pmap
  or an EPT pmap. This is accomplished with callbacks, that handle
  everything PTE-related.

- There is no recursive slot possible, so we can't use pmap_map_ptes().
  Rather, we walk down the EPT trees via the direct map, and that's
  actually a lot simpler (and probably faster too...).

- The kernel is never mapped in an EPT pmap. An EPT pmap cannot be loaded
  on the host. This has two sub-consequences: at creation time we must
  zero out all of the top-level PTEs, and at destruction time we force
  the page out of the pool cache and into the pool, to ensure that a next
  allocation will invoke pmap_pdp_ctor() to create a native pmap and not
  recycle some stale EPT entries.

To create an EPT pmap, the caller must invoke pmap_ept_transform() on a
newly-allocated native pmap. And that's about it, from then on the EPT
callbacks will be invoked, and the pmap can be destroyed via the usual
pmap_destroy(). The TLB shootdown callback is not initialized however,
it is the responsibility of the hypervisor (NVMM) to set it.

There are some twisted cases that we need to handle. For example if
pmap_is_referenced() is called on a physical page that is entered both by
a native pmap and by an EPT pmap, we take the Accessed bits from the
two pmaps using different PTE sets in each case, and combine them into a
generic PP_ATTRS_U flag (that does not depend on the pmap type).

Given that the EPT layout is a 4-Level tree with the same address space as
native x86_64, we allow ourselves to use a few native macros in EPT, such
as pmap_pa2pte(), rather than re-defining them with "ept" in the name.

Even though this EPT code is rather complex, it is not too intrusive: just
a few callbacks in a few pmap functions, predicted-false to give priority
to native. So this comes with no messy #ifdef or performance cost.

(maxv)

2019-02-13 07:55:33 UTC MAIN commitmail json YAML

Bump pmax install ramdisk size by another 100k, as 3500k is no longer
enough with GCC 7.

(gson)

2019-02-13 07:04:13 UTC MAIN commitmail json YAML

Micro optimization: the STAR/LSTAR/CSTAR/SFMASK MSRs are static, so rather
than saving them on each VMENTRY, save them only once, at VCPU creation
time.

(maxv)

2019-02-13 06:52:43 UTC MAIN commitmail json YAML

2019-02-13 06:32:45 UTC MAIN commitmail json YAML

Reorder the GPRs to match the CPU encoding, simplifies things on Intel.

(maxv)

2019-02-13 06:15:51 UTC MAIN commitmail json YAML

Catchup with struct intrstub; unification.

This should fix dom0 build breakage.

(cherry)

2019-02-13 05:36:59 UTC MAIN commitmail json YAML

Rig the hypercall callback page such that when the kernel happens to
run without a XEN domain loader having previously overwritten the
hypercall page with its hypercall trampoline machine code, we still
get to detect its presence by calling the xen_version hypercall stub.

We use this hack to detect the presence or absence of the hypervisor,
without relying on the MSR support on HVM domains.

This works as an added sanity check that the hypercall page
registration has indeed succeeded in HVM mode.

(cherry)

2019-02-13 05:28:50 UTC MAIN commitmail json YAML

Missed the crucial header file in previous commit.

struct intrstub; is now uniform across native and XEN

This should fix the XEN builds.

(cherry)

2019-02-13 05:01:58 UTC MAIN commitmail json YAML

In preparation for debut-ing PVHVM mode:

- Make the struct intrstub uniform across native and XEN.
- Introduce vector callback entrypoints for PVHVM mode.

(cherry)

2019-02-13 04:35:58 UTC MAIN commitmail json YAML

2019-02-13 04:35:28 UTC MAIN commitmail json YAML

- Sort by model number.
- Add missing white space.

(msaitoh)

2019-02-13 04:15:01 UTC MAIN commitmail json YAML

From FreeBSD:
- Add Broadcom BCM540[24], BCM5424, BCM5466 and BCM54[78]8.
- Add ICS1893C.
- Add Micrel KSZ8081 and KSZ9031.

(msaitoh)

2019-02-13 04:02:11 UTC MAIN commitmail json YAML

Sort by model number.

(msaitoh)

2019-02-13 03:54:53 UTC MAIN commitmail json YAML

2019-02-13 03:54:16 UTC MAIN commitmail json YAML

- Add Tridium, Data Track Technology, Netas, Ralink Technology,
  Sunplus Technology and ADMtek's OUI.
- Sort by OUI.

(msaitoh)

2019-02-13 03:44:55 UTC MAIN commitmail json YAML

From OpenBSD:
- Add ASIX OUI.
- Add VIA OUI and devices.
- Add Vitesse OUI and devices.
From FreeBSD:
- Add BROADCOM4.

(msaitoh)

2019-02-13 01:16:30 UTC MAIN commitmail json YAML

cleanup unused stuff now that we execute directly and not in a separate task.

(christos)

2019-02-12 21:41:39 UTC MAIN commitmail json YAML

Document options to select alternate GPIO modes.

(mlelstv)

2019-02-12 21:35:35 UTC MAIN commitmail json YAML

Rename signal1 to signal_mask_unrelated in t_ptrace_wait*

No functional change intended.

(kamil)

2019-02-12 18:32:15 UTC MAIN commitmail json YAML

2019-02-12 16:13:23 UTC MAIN commitmail json YAML

2019-02-12 16:11:11 UTC MAIN commitmail json YAML

2019-02-12 14:54:59 UTC MAIN commitmail json YAML

Optimize: the hardware does not clear the TLB flush command after a
VMENTRY, so clear it ourselves, to avoid uselessly flushing the guest
TLB. While here also fix the processing of EFER-induced flushes, they
shouldn't be delayed.

(maxv)

2019-02-12 14:50:21 UTC MAIN commitmail json YAML

Optimize: fetch only 5 bytes instead of 15, the instruction can have only
up to five prefixes.

(maxv)

2019-02-12 14:40:38 UTC MAIN commitmail json YAML

2019-02-12 14:31:45 UTC MAIN commitmail json YAML

Fix build with DIAGNOSTIC:
ASSERT() is enabled ifdef DEBUG, not DIAGNOSTIC.

(rin)

2019-02-12 14:17:45 UTC MAIN commitmail json YAML

Do not set p->up_serialise twice in usbd_setup_pipe_flags().
No functional changes.

(rin)

2019-02-12 13:49:13 UTC MAIN commitmail json YAML

Fix, but disable the commented SUN compatibility in st.c to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.
It can now be enabled with options ST_SUNCOMPAT.

(kardel)

2019-02-12 13:43:40 UTC MAIN commitmail json YAML

Fix PR kern/53949:

Fix inconsistent/incomplete file mark handling to conform again
to mtio(4) at close(2) time. This was necessary as the PREVENT/ALLOW
bracket was reduced from a whole mount session to cover only the
open(2)/close(2) time on ~2002-03-22. The rationale was to allow
robots and humans to change the media during a mount session.

Unfortunately this lead to file marks being written to potentially other
media at the beginning on drives that used the two file marks as EOM
pattern. In order for that to happen the media had to be removed after
data and at most one file mark had been written before removal.

The mount error message has been clarified and a warning about
potential data/file mark lossage on UNIT ATTENTION
during an active mount session with unfinished file marks has been
added.

While there, fix, but disable the commented SUN compatibility to write
final file marks by opening and immediately closing the device
in O_WRONLY mode. That code has not been working since around 1998.
It can now be enabled with options ST_SUNCOMPAT.

Additionally debug output coverage has been extended.

(kardel)

2019-02-12 12:52:49 UTC MAIN commitmail json YAML

libnv: Free the data array for NV_TYPE_DESCRIPTOR_ARRAY case.
Obtained from FreeBSD rev 343987 by oshogbo@.

(rmind)

2019-02-12 12:49:23 UTC MAIN commitmail json YAML

libnv: fix multiple memory leaks.

- nvpair_create_stringv: free the temporary string; this fix affects
  nvlist_add_stringf() and nvlist_add_stringv().

- nvpair_remove_nvlist_array (NV_TYPE_NVLIST_ARRAY case): free the chain
  of nvpairs (as resetting it prevents nvlist_destroy() from freeing it).
  Note: freeing the chain in nvlist_destroy() is not sufficient, because
  it would still leak through nvlist_take_nvlist_array().  This affects
  all nvlist_*_nvlist_array() users.

Found by clang/gcc ASAN.  These fixes have been contributed to the
upstream (FreeBSD) repository.

(rmind)

2019-02-12 10:16:58 UTC MAIN commitmail json YAML

hack alert time:

on sparc and sparc64, don't remove .eh_frame section.  it leads
to failure as something is referenced, and objcopy ends up
emitting a broken binary that can't be run -- it attempts to
load at va=0, beyond having missing referenced data.

also, on sparc64 also don't remove .note.netbsd.mcmodel.

the former should be revised when we can avoid it.

(mrg)

2019-02-12 09:28:51 UTC netbsd-8 commitmail json YAML

2019-02-12 09:27:17 UTC netbsd-8 commitmail json YAML

Actually pull up rev 1.139 (as claimed, but not done in previous),
requested by msaitoh in ticket #1187:

Fix bitstring format of Intel CPUID Architectural Performance Monitoring
Fn0000000a %ebx.

(martin)

2019-02-12 08:04:53 UTC MAIN commitmail json YAML

Move xen event related code which interfaces with the NetBSD interrupt
subsystem into a separate namespace where it can co-exist with the
native equivalent in PVHVM mode.

On PV, we alias and export the native symbols - this means that
although the namespace is different, the semantics must be identical.

Eg: xen_intr_establish_xname() vs. intr_establish_xname().

The specific functions we need in PVHVM are:

- spllower, xen_spllower (for native as well as XEN event spl
  despatch/defer)
- xen_disable_intr()/xen_enable_intr() ,
  x86_disable_intr()/x86_enable_intr()
- xen_read_psl()/xen_write_psl(),
  x86_read_psl()/x86_write_psl()
- intr_establish() et. al, xen_intr_establish() et. al.

This gives us the ability to manage Paravirtualised drivers such as
xbd(4) as well as fully emulated ones such as wd(4)., for eg

(cherry)

2019-02-12 07:58:26 UTC MAIN commitmail json YAML

conditionally include XENPV specific code.

This explicitly excludes PV only functionality that would be wrong to
attempt to use in other modes, for eg: p2m table management.

(cherry)

2019-02-12 07:16:56 UTC MAIN commitmail json YAML

compat_sunos depends upon compat_09.  fixes:

[  1.8785495] WARNING: module error: built-in module compat_sunos can't find builtin dependency `compat_09'
[  1.8785495] WARNING: module error: built-in module compat_sunos prerequisite compat_09 failed, error 2

(mrg)

2019-02-12 07:15:58 UTC MAIN commitmail json YAML

add commented QUOTA2 line.

(mrg)

2019-02-12 06:00:05 UTC MAIN commitmail json YAML

Refactor lwp_create1 and lwp_exit1 into trace_thread* in ptrace(2) tests

New tests:
- trace_thread1
- trace_thread2
- trace_thread3
- trace_thread4

These tests verify _lwp_create(2) and _lwp_exit(2) events. They are
currently skipped as not reliable.

(kamil)

2019-02-12 03:13:50 UTC MAIN commitmail json YAML

Fix typo: Parameters are seperated by ','.

(cherry)

2019-02-12 02:38:56 UTC MAIN commitmail json YAML

Instead of queuing to a separate task, handle the fdwatch events inline.
Fixes locking. We could simplify the code a lot more now.

(christos)

2019-02-12 01:32:08 UTC MAIN commitmail json YAML

cvs.1 & cvs.texinfo: add information about the "update" command's "-t"
flag to cvs.texinfo, so the installed man and info documentation match
here. This makes cvs.1 auto-generable from cvs.texinfo again, which I
plan to leverage with further additions later.

(gutteridge)

2019-02-11 20:40:18 UTC MAIN commitmail json YAML

Fix a few off by one (in both directions) in previous, pointed out by mrg.
Avoid open coding snprintf return value checking and introduce a
helper functions that always ensures string termination instead,
suggested by christos.

(martin)

2019-02-11 20:03:28 UTC MAIN commitmail json YAML

Remove unconditional truncation - it confuses gcc

(martin)

2019-02-11 19:58:23 UTC MAIN commitmail json YAML

Two more gcc 7 warnings when compiling wiht optimization on, one to go.

(martin)

2019-02-11 19:45:54 UTC MAIN commitmail json YAML

add parens around defines with expressions that could expand poorly
depending on the usage.

(mrg)

2019-02-11 19:15:38 UTC MAIN commitmail json YAML

Make sure we properly truncate snprintf() results when the target buffer
is too small, in a way that appeases gcc 7 warnings.

(martin)

2019-02-11 18:50:15 UTC MAIN commitmail json YAML

Detect and report running in a XEN hvm container.

This allows the lapic code to apply its x2apic probe logic while
running in a XEN hvm container.

(cherry)

2019-02-11 17:49:37 UTC MAIN commitmail json YAML

-Wno-format-truncation is only needed when using GCC

(tnn)

2019-02-11 17:28:52 UTC MAIN commitmail json YAML

Remove redundant conditional IDT_VEC() entries.

(cherry)

2019-02-11 14:59:33 UTC MAIN commitmail json YAML

We reorganise definitions for XEN source support as follows:

XEN - common sources required for baseline XEN support.
XENPV - sources required for support of XEN in PV mode.
XENPVHVM - sources required for support for XEN in HVM mode.
XENPVH - sources required for support for XEN in PVH mode.

(cherry)

2019-02-11 13:45:33 UTC netbsd-8 commitmail json YAML

2019-02-11 13:44:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1189):

sys/dev/pci/if_wm.c: revision 1.622
sys/dev/pci/if_wm.c: revision 1.624
sys/dev/pci/if_wm.c: revision 1.625

We now have IFM_2500_KX and IFM_1000_KX, so use them.

-

I21[01]'s RAL size is not 15 but 16(== 82575's value). Same as other OSes.

-

Fix a bug that WOL didn't work on some chips since if_wm.c rev. 1.610.

Set WUC_APME bit older than PCH. Will fixes PR kern/53945 reported by kardel@.
Tested with my own 82574 card.

(martin)

2019-02-11 13:38:19 UTC netbsd-8 commitmail json YAML

2019-02-11 13:34:09 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1188):

sys/dev/pci/pcidevs: revision 1.1360
sys/dev/pci/pcidevs: revision 1.1361
sys/dev/pci/pcidevs: revision 1.1362
sys/dev/pci/pcidevs: revision 1.1357
sys/dev/pci/pcidevs: revision 1.1359

Add yet another Intel Core QuickPath Generic Non-Core Register.

Add some RADEON devices. Mainly taken from OpenBSD.

Add AMD Family 17h devices from OpenBSD.

From OpenBSD:
- Add NetXen's vendor ID and devices.
- Add Sun Neptune.

- Add Some Freescale MPC834x devices from OpenBSD.

- Add Intel I210 SGMII Flash-less device from the spec update document.

(martin)

2019-02-11 13:23:03 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1187):

usr.sbin/cpuctl/arch/i386.c: revision 1.92
sys/arch/x86/include/specialreg.h: revision 1.138

Add new CPUID flags WAITPKG, CLDEMOTE, MOVDIRI, MOVDIR64B and
IA32_CORE_CAPABILITIES from the latest Intel SDM.

Add Ice Lake and Tremont from the latest Intel SDM.

Fix bitstring format of Intel CPUID Architectural Performance Monitoring
Fn0000000a %ebx.

(martin)

2019-02-11 11:12:58 UTC MAIN commitmail json YAML

Fix previous, pr_size includes the KASAN redzone. Repurpose pr_reqsize and
use it for PR_ZERO, it holds the size requested by the user with no padding
or redzone added, and only these bytes should be zeroed.

(maxv)

2019-02-11 07:51:46 UTC MAIN commitmail json YAML

retry timed out IPIs, complain and dump timing info into dmesg
ok martin@

(macallan)

2019-02-11 07:07:37 UTC MAIN commitmail json YAML

Increase the max guest ram from 4GB to 128GB.

(maxv)

2019-02-11 05:59:00 UTC MAIN commitmail json YAML

Rename the siginfo4 test in ATF t_ptrace_wait*

The siginfo group of ptrace(2) tests has been replaced with new individual
tests or merged into existing ones. This is the last siginfo* test that
has been renamed.

New name: traceme_exec.

(kamil)

2019-02-11 05:51:20 UTC MAIN commitmail json YAML

Merge siginfo6 into other PT_STEP tests in t_ptrace_wait*

(kamil)

2019-02-11 04:20:06 UTC MAIN commitmail json YAML

Drop siginfo5 from ATF tests in t_ptrace_wait*

siginfo5 duplicates older tests verifying PTRACE_FORK.

(kamil)

2019-02-11 04:13:28 UTC MAIN commitmail json YAML

Initial refactoring of siginfo* tests in t_ptrace_wait*

Drop test siginfo1 as duplicated with earlier tests.

Rework and rename siginfo2 and siginfo3 into a single test body.

New tests:
- siginfo_set_unmodified (replaces siginfo2)
- siginfo_set_faked (replaces siginfo3)

All new tests pass.

(kamil)

2019-02-10 22:36:27 UTC MAIN commitmail json YAML

cvs.1 & cvs.texinfo: add missing sections documenting the "add" and
"remove" commands. These were never present upstream on the branch
NetBSD imported, but were subsequently added on other branches (against
upstream's HEAD: cvs.1: r. 1.53 & cvs.texinfo: r. 1.697).

XXX While cvs.texinfo is supposed to be used to auto-generate cvs.1,
that isn't safe at present, because content has been added direct to
cvs.1 in NetBSD's tree.

(gutteridge)

2019-02-10 19:30:28 UTC MAIN commitmail json YAML

2019-02-10 19:23:55 UTC MAIN commitmail json YAML

move the deallocation of the protocol-specific softc into its own detach hook,
so that calls to kmem_alloc() and kmem_free() would agree on the size

fixes panic on umass detach reported by Tom Ivar Helbekkmo on current-users@

(jdolecek)

2019-02-10 19:21:52 UTC MAIN commitmail json YAML

Remove a function prototype which was added to <histedit.h> in 2005.
I think we can trust it to be stable by now, and doin't need the dup.

(kre)

2019-02-10 17:15:45 UTC MAIN commitmail json YAML

2019-02-10 17:13:33 UTC MAIN commitmail json YAML

2019-02-10 13:41:35 UTC netbsd-8 commitmail json YAML

2019-02-10 13:40:41 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1186):

lib/libperfuse/perfuse.c: revision 1.41
lib/libperfuse/perfuse_priv.h: revision 1.37
lib/libperfuse/ops.c: revision 1.85
lib/libperfuse/ops.c: revision 1.86
lib/libperfuse/debug.c: revision 1.13

Use reclaim2 to fix reclaim/lookup race conditions

The PUFFS reclaim operation had a race condition with lookups: we could
be asked to lookup a node, then to reclaim it before lookup completion.

At lookup completion, we would then create a leaked node.

Enter the PUFFS reclaim2 operation, which features a nlookup argument.

That let us count how many lookups are pending and avoid the above
described scenario. It also makes the codes simplier.

-

Fix directory filehandle usage with libufse. Fix lookup count
libfuse does not use filehandle the same way for directories and other
objects. As a result, filehandles obtained by OPENDIR should not be
sent on non-directory related operations like READ/WRITE/GETATTR...

While there, fix the lookup count sent to the FORGET operation, which
led to leaked nodes.

(martin)

2019-02-10 11:10:34 UTC MAIN commitmail json YAML

Catchup hypercall interfaces for HYPERVISOR_sched_op which use
arguments to __XEN_INTERFACE_VERSION__ >= 0x00030201

We've been using the sched_op_compat API with sched_op arguments.

fixes PR port-xen/53965

(cherry)

2019-02-10 10:35:51 UTC MAIN commitmail json YAML

Make "gpt migrate" work for disks with FAT32 and NTFS partitions

(martin)

2019-02-10 09:54:39 UTC MAIN commitmail json YAML

provide a test function, avoids crashing tests with SIGSEGV.

(mlelstv)

2019-02-10 08:39:48 UTC MAIN commitmail json YAML

Add some more interrupt source names

(skrll)

2019-02-10 07:57:22 UTC MAIN commitmail json YAML

2019-02-10 07:56:21 UTC MAIN commitmail json YAML

remove stuff provided by netbsd-stdint.h.

(mrg)

2019-02-10 07:55:57 UTC MAIN commitmail json YAML

riscv wants netbsd-stdint.h's CHAR_FAST8=1 and SHORT_FAST16=1.

(mrg)

2019-02-10 07:28:06 UTC MAIN commitmail json YAML

2019-02-10 05:01:59 UTC MAIN commitmail json YAML

mark pf.c, radeon_cs.c and via_dmablit.c for no fall thru error.

this was already done in the various modules, but not in the main
kernel.

(mrg)

2019-02-10 04:03:03 UTC MAIN commitmail json YAML

openssl/store.h is installed by openssl 1.1, don't obsolete it every build.

(mrg)

2019-02-10 02:13:45 UTC MAIN commitmail json YAML

2019-02-10 02:04:06 UTC MAIN commitmail json YAML

Add initial pthread(3) tests in ATF t_prace_wait* tests

There were tested few scenarios with native _lwp_create(2) functions, using
this interface is not needed and it's easier to manage tests with
high-level pthread(3) API.

Rewrite original lwpinfo1 and lwpinfo2 tests into 8 new tests:
- traceme_lwpinfo0 (0 spawned additional threads)
- traceme_lwpinfo1 (1 spawned additional thread)
- traceme_lwpinfo2 (2 spawned additional threads)
- traceme_lwpinfo3 (3 spawned additional threads)
- attach_lwpinfo0 (0 spawned additional threads)
- attach_lwpinfo1 (1 spawned additional thread)
- attach_lwpinfo2 (2 spawned additional threads)
- attach_lwpinfo3 (3 spawned additional threads)

These tests verify primarily the PT_LWPINFO interface.

Build the t_ptrace_wait* tests with -pthread.

All tests pass.

(kamil)

2019-02-09 23:26:35 UTC MAIN commitmail json YAML

run this through sort -u.  removes a few duplicates and fixes order.

(mrg)

2019-02-09 23:10:42 UTC MAIN commitmail json YAML

Add infinite_thread() for ptrace(2) ATF tests

infinite_thread() is designed to be spawned as a pthread(3) function.

It will be used soon in new tests.

(kamil)

2019-02-09 23:03:01 UTC MAIN commitmail json YAML

use HAVE_FPREGS not HAVE_FPGPREGS and move some register_t inside proper #define.  fixes ia64 build. ok <kamil>

(scole)

2019-02-09 21:43:23 UTC MAIN commitmail json YAML

2019-02-09 21:05:49 UTC MAIN commitmail json YAML

Use GCC 7 on riscv, it is not supported on 6.

(maya)

2019-02-09 21:03:24 UTC MAIN commitmail json YAML

2019-02-09 21:00:41 UTC MAIN commitmail json YAML

s/TARGET_HARD_FLOAT_ABI/TARGET_HARD_FLOAT, the latter has the
benefit of existing. Inspired by mips/netbsd.h.

remove some redefinitions. There are still a few left, but these ones
seem to match.

(maya)

2019-02-09 20:57:17 UTC MAIN commitmail json YAML

We also need t-riscv (for riscv-builtins.o)

(maya)

2019-02-09 19:40:32 UTC MAIN commitmail json YAML

2019-02-09 16:00:42 UTC MAIN commitmail json YAML

2019-02-09 14:43:40 UTC netbsd-8 commitmail json YAML

2019-02-09 14:43:08 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #1185):

lib/libossaudio/ossaudio.c: revision 1.35
sys/compat/ossaudio/ossaudio.c: revision 1.71

Revert a wrong SNDCTL_DSP_GETOSPACE part of rev1.33.
- 'fragments' is the number of full free blocks and should not be
  negative value.
- 'bytes' should not be rounded down.

It makes mpv work correctly (fixes a second half of kern/53028).
Reviewed by mlelstv@

-

Revert a wrong OSS_SNDCTL_DSP_GETOSPACE part of rev1.70.
- 'fragments' is the number of full free blocks and should not be
  negative value.
- 'bytes' should not be rounded down.

(martin)

2019-02-09 11:30:13 UTC MAIN commitmail json YAML

- expand the comment about what netbsd32_machdep.h should provide.
- add missing NETBSD32_POINTER_TYPE
- add static inline functions to convert pointers to/from 32 bit,
  inclusing an overflow check for NETBSD32PTR32PLUS().

(mrg)

2019-02-09 11:27:06 UTC MAIN commitmail json YAML

on tomatillo unload the map before flushing the iommu, instead of
the reverse.  from opensolaris.

(mrg)

2019-02-09 09:50:31 UTC MAIN commitmail json YAML

Add a check that the file descriptor mentioned in a N> or N< type
redirect operator is within range of what the code tree node can
hold.  Currently this is a no-op change (the new error can never
occur) as the code already checks that N is in range for an int
(and errors if not) and the field in the node in which we store N
is also an int, so we cannot overflow - but fd's do not really need
to be that big (the max a typical kernel supports is < 10000) so
this just adds validation in case it ever happens that we decide we
can save some node size (ie: sh memory) by making that field smaller.

Note this is parse time error detection, and has no bearing upon
the execution time error that will occur if a script attempts to use
an fd that exceeds the process's max fd limit.

NFCI (for now anyway.)

(kre)

2019-02-09 09:38:11 UTC MAIN commitmail json YAML

DTRT when dynamically generated variables return "unset" instead of
a value.  There are none which do that at the minute, so this is a NFCI
change, which is just making the code correct even though nothing
currently triggers any bugs.

(kre)

2019-02-09 09:34:43 UTC MAIN commitmail json YAML

DEBUG mode change only.  Add one extra trace point.  NFC for normal builds.

(kre)

2019-02-09 09:33:21 UTC MAIN commitmail json YAML

When an interactive shell exits due to an EOF on stdin, send a newline
to stderr (to follow the previous prompt) and cleanup more nicely.

(kre)

2019-02-09 09:31:33 UTC MAIN commitmail json YAML

In the unlikely event that restarting a job fails (the fg bg and various
%x commands) generate the most useful error message (from errno value)
rather than whichever happened last.

In posix mode, cause the "jobs" command to delete records of completed
jobs it reports on (as posix requires) as is done in interactive shells.
We don't (won't) do this in !posix mode, as the ability to throw in a
"jobs" command in a script to debug what is happening is too useful to
lose -- and any script that is relying on "jobs" instead of "wait" to
cleanup background processes (from the sh jobs table, sh always collects
zombies from the kernel) is absurd and not worth considering (besides
which I've never seen one).

(kre)

2019-02-09 09:20:47 UTC MAIN commitmail json YAML

KNF - white space changes, indent using tabs not spaces.  NFC.

(kre)

2019-02-09 09:17:59 UTC MAIN commitmail json YAML

DEBUG mode build changes - add extra trace output.

NFC for any normal shell build.

(kre)

2019-02-09 09:15:22 UTC MAIN commitmail json YAML

Delete extern decl for trap[] - hasn't been needed for a while now.

(kre)

2019-02-09 09:11:07 UTC MAIN commitmail json YAML

Allocate alias pointers for qsort() to use on the stack, rather than
directly via malloc() so they get cleaned up correctly on error/intr.

NFCI.

(kre)

2019-02-09 08:08:32 UTC MAIN commitmail json YAML

Add 8153, sort adapters.

(rin)

2019-02-09 08:07:13 UTC MAIN commitmail json YAML

Add Realtek RTL8201E and IC Plus IP101.

(rin)

2019-02-09 07:55:26 UTC MAIN commitmail json YAML

Elucidate chip family of supported adapters.

(rin)

2019-02-09 07:54:51 UTC MAIN commitmail json YAML

Add examples of supported adapters.

(rin)

2019-02-09 07:50:47 UTC MAIN commitmail json YAML

Print chip ID when attached.

(rin)

2019-02-09 07:48:39 UTC MAIN commitmail json YAML

Support RTL8152. Tested on ure(4) (RTL8152).

(rin)

2019-02-09 07:46:08 UTC MAIN commitmail json YAML

2019-02-09 07:45:34 UTC MAIN commitmail json YAML

Add RTL8201E from OpenBSD.

(rin)