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 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-10 01:16:43 UTC Now

2020-09-11 17:32:36 UTC MAIN commitmail json YAML

2020-09-11 16:37:48 UTC MAIN commitmail json YAML

make(1): split EvalComparison into smaller functions

(rillig)

2020-09-11 16:23:47 UTC MAIN commitmail json YAML

make(1): clean up code for evaluating conditions

(rillig)

2020-09-11 16:22:15 UTC MAIN commitmail json YAML

make(1): extract EvalNotEmpty from CondParser_Comparison

(rillig)

2020-09-11 15:33:28 UTC MAIN commitmail json YAML

2020-09-11 15:28:29 UTC MAIN commitmail json YAML

2020-09-11 15:22:13 UTC MAIN commitmail json YAML

inet: Add SIOCGNBRINFO to retrieve neighbor state about an address

(roy)

2020-09-11 15:21:49 UTC MAIN commitmail json YAML

Limit bootarm.efi expectation further.

Should fix iyonix, and zaurus builds.  Also probably fixes all oarm AKA
'arm' builds too.

(jakllsch)

2020-09-11 15:19:31 UTC MAIN commitmail json YAML

in: No need to set expire here anymore

(roy)

2020-09-11 15:19:04 UTC MAIN commitmail json YAML

2020-09-11 15:16:49 UTC MAIN commitmail json YAML

sysctl: Adjust man page for new ARP sysctl ND settings

(roy)

2020-09-11 15:16:00 UTC MAIN commitmail json YAML

ARP: Use ND rather than our own.

This brings the benefit of Neighbour Unreachability Detection which is
something ARP sorely lacks.

The new timings mirror those of IPv6 and are adjustable via sysctl(8).
Unlike IPv6 ND, these are global and not per interface.

(roy)

2020-09-11 15:08:25 UTC MAIN commitmail json YAML

tcp_input: Adjust for ND changes

(roy)

2020-09-11 15:03:33 UTC MAIN commitmail json YAML

inet6: Use generic Neighor Detection rather than IPv6 specific

No functional change intended.

(roy)

2020-09-11 15:01:27 UTC MAIN commitmail json YAML

if_llatbl.c: adjust for nd changes

(roy)

2020-09-11 14:59:22 UTC MAIN commitmail json YAML

Implement address agnostic Neighbor Detection.

This is heavily based on IPv6 Neighbor Detection and allows per protocol
timers which also facilitate Neighor Unreachability Detection.

(roy)

2020-09-11 14:29:00 UTC MAIN commitmail json YAML

pktqueue(9): Use percpu_create to allow early initialization.

Otherwise pktqueues can't be created before all CPUs are detected --
they will have a queue only for the primary CPU, not for others.

This will also be necessary if we want to add CPU hotplug (still need
some way to block hotplug during pktq_set_maxlen but it's a start).

(riastradh)

2020-09-11 14:06:00 UTC MAIN commitmail json YAML

2020-09-11 13:58:46 UTC MAIN commitmail json YAML

make(1): split CondParser_Comparison into 2 parts

(rillig)

2020-09-11 12:50:14 UTC MAIN commitmail json YAML

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.

(kim)

2020-09-11 12:20:01 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2020-09-11 12:01:59 UTC MAIN commitmail json YAML

Document update_motd_release and motd_release_tag

(kim)

2020-09-11 09:59:36 UTC MAIN commitmail json YAML

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.

(kim)

2020-09-11 09:08:47 UTC MAIN commitmail json YAML

PR/kern 55567

fix the data-only fast path. RCV.UP and SND.WL1 could be left behind
on long sequences of data only packets. pull them along to avoid relative
sequence wraps.

consistent with FreeBSD

addresses second failure mode of PR/kern 55567.

pullup to netbsd-8
pullup to netbsd-9

(kardel)

2020-09-11 09:01:41 UTC MAIN commitmail json YAML

__mips64 does not mean 64 bit address space.  also check _LP64.

(mrg)

2020-09-11 07:09:40 UTC MAIN commitmail json YAML

make(1): document CondParser_Comparison

(rillig)

2020-09-11 06:51:39 UTC MAIN commitmail json YAML

make(1): fix comment in test for the || operator in conditions

Thanks to wiz for discovering this.

(rillig)

2020-09-11 06:47:42 UTC MAIN commitmail json YAML

2020-09-11 06:40:26 UTC MAIN commitmail json YAML

2020-09-11 06:08:10 UTC MAIN commitmail json YAML

make(1): reorder parameters of condition parsing functions

First the subject, then the options, then the output parameters.

(rillig)

2020-09-11 05:37:40 UTC MAIN commitmail json YAML

make(1): add missing space in source code

(rillig)

2020-09-11 05:29:46 UTC MAIN commitmail json YAML

make(1): add rationale for evaluating expression after parse error

(rillig)

2020-09-11 05:24:14 UTC MAIN commitmail json YAML

Update table for alpha, m68000, m68k, and powerpc:

- alpha is running and no regression in ATF (tests in lib/libc/sys are
  skipped due to port-alpha/55652).

- m68000 is successfully built and running at a same level as before.

- m68k (amiga, mac68k, sun3) is running and no regression in a tiny
  subset of ATF (kernel, lib/libc/{gen,sys}).

- macppc (oea) and evbppc (booke, ibm4xx) are running and no regression
  in ATF.

(rin)

2020-09-11 05:14:21 UTC MAIN commitmail json YAML

make(1): fix line numbers from test result of the previous commit

(rillig)

2020-09-11 05:12:08 UTC MAIN commitmail json YAML

make(1): add test for evaluation of condition after parse error

(rillig)

2020-09-11 05:03:20 UTC MAIN commitmail json YAML

make(1): reduce code size in CondParser_Eval

(rillig)

2020-09-11 04:57:15 UTC MAIN commitmail json YAML

make(1): use consistent naming scheme for condition parsing functions

(rillig)

2020-09-11 04:40:26 UTC MAIN commitmail json YAML

make(1): rename CondGetString to CondParser_String

This describes the function's effect more accurately.  The verb "get" is
not commonly associated to having side effects.

(rillig)

2020-09-11 04:36:12 UTC MAIN commitmail json YAML

make(1): rename GNodeSuff.gn to gnp

It was confusing to have a field called "gn" that was not a pointer to a
GNode, but a double-pointer to GNode instead.

(rillig)

2020-09-11 04:32:39 UTC MAIN commitmail json YAML

make(1): replace *a->b with a->b[0]

This allows the code to be read strictly from left to right.  In most
places this style was already used.

(rillig)

2020-09-11 04:22:23 UTC MAIN commitmail json YAML

make(1): replace *par->p with par->p[0]

It's a few characters more code than before but can be read strictly
from left to right, which was not possible before.

(rillig)

2020-09-11 04:18:45 UTC MAIN commitmail json YAML

make(1): rename CondParser.condExpr to p

The prefix "cond" was needed when this struct field was a global
variable.  The main name "expr" was not precise enough since this code is
about parsing a condition, not an expression.

During parsing, this variable does not contain the whole expression but
a pointer to the remaining part of the condition, therefore the name
"expr" had been confusing.

(rillig)

2020-09-11 04:07:44 UTC MAIN commitmail json YAML

make(1): rename CondLexer to CondParser

The name CondLexer was wrong since this type is about parsing conditions
that can be arbitrarily nested.

(rillig)

2020-09-11 03:54:14 UTC MAIN commitmail json YAML

Fix shift tyop in a comment.

(simonb)

2020-09-11 01:45:53 UTC MAIN commitmail json YAML

Add prototypes of internal_sigdelset() and internal_clone()

Cherry-pick the missing change from:

commit 983d7ddd0b278b45d815cbac9197205b39c4860a
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Thu Jul 11 06:22:35 2019 +0000

    Add NetBSD LSan support

    Summary:
    Combine few relatively small changes into one:

    - implement internal_ptrace() and internal_clone() for NetBSD
    - add support for stoptheworld based on the ptrace(2) API
    - define COMPILER_RT_HAS_LSAN for NetBSD
    - enable tests for NetBSD/amd64

    Inspired by the original implementation by Christos Zoulas in netbsd/src for GCC.

    The implementation is in theory CPU independent through well defined macros
    across all NetBSD ports, however only the x86_64 version was tested.

    Reviewers: mgorny, dvyukov, vitalybuka, joerg, jfb

    Reviewed By: vitalybuka

    Subscribers: dexonsmith, jfb, srhines, kubamracek, llvm-commits, christos

    Tags: #llvm

    Differential Revision: https://reviews.llvm.org/D64057

    llvm-svn: 365735

(kamil)

2020-09-11 01:08:36 UTC MAIN commitmail json YAML

Add getauxval() compat for NetBSD

Cherry-pick and adapt:

commit 02519fc7a6f8c528f67975a9f78ce64dabf402b4
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Thu Sep 12 18:57:58 2019 +0000

    Add getauxval() compat for NetBSD

    Summary:
    getauxval() is not available on NetBSD and there is no a direct equivalent.

    Add a function that implements the same semantics with NetBSD internals.

    Reorder the GetPageSize() functions to prefer the sysctl approach for NetBSD.
    It no longer makes a difference which approach is better. Avoid changing
    conditional code path.

    Reviewers: vitalybuka, dvyukov, mgorny, joerg

    Reviewed By: vitalybuka

    Subscribers: llvm-commits, #sanitizers

    Tags: #sanitizers, #llvm

    Differential Revision: https://reviews.llvm.org/D67329

    llvm-svn: 371758

(kamil)

2020-09-11 01:07:53 UTC MAIN commitmail json YAML

Use sysctl to implement GetPageSize()

Cherry-pick code chunk from newer LLVM compiler-rt.

(kamil)

2020-09-11 01:07:27 UTC MAIN commitmail json YAML

Enable SANITIZER_CAN_USE_PREINIT_ARRAY on NetBSD

Cherry-pick:

commit 3a189bac9bb111c9a59339015ab0d4e2fed735f4
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Thu Dec 19 03:21:46 2019 +0100

    [compiler-rt] Enable SANITIZER_CAN_USE_PREINIT_ARRAY on NetBSD

    .preinit_array is supported since 9.0.

(kamil)

2020-09-11 01:07:00 UTC MAIN commitmail json YAML

Adapt stop-the-world for ptrace changes in NetBSD-9.99.30

Cherry-pick and adapt:

commit fc356dcc11c10003ff22acff667b0a9f5e6c1e0f
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Tue Dec 24 20:33:54 2019 +0100

    [compiler-rt] Adapt stop-the-world for ptrace changes in NetBSD-9.99.30

    Handle PT_LWPNEXT for newer kernels and keep PT_LWPINFO for older ones.

(kamil)

2020-09-11 01:05:28 UTC MAIN commitmail json YAML

Add NetBSD LSan support

Cherry-pick and adapt:

commit 983d7ddd0b278b45d815cbac9197205b39c4860a
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Thu Jul 11 06:22:35 2019 +0000

    Add NetBSD LSan support

    Summary:
    Combine few relatively small changes into one:

    - implement internal_ptrace() and internal_clone() for NetBSD
    - add support for stoptheworld based on the ptrace(2) API
    - define COMPILER_RT_HAS_LSAN for NetBSD
    - enable tests for NetBSD/amd64

    Inspired by the original implementation by Christos Zoulas in netbsd/src for GCC.

    The implementation is in theory CPU independent through well defined macros
    across all NetBSD ports, however only the x86_64 version was tested.

    Reviewers: mgorny, dvyukov, vitalybuka, joerg, jfb

    Reviewed By: vitalybuka

    Subscribers: dexonsmith, jfb, srhines, kubamracek, llvm-commits, christos

    Tags: #llvm

    Differential Revision: https://reviews.llvm.org/D64057

    llvm-svn: 365735

(kamil)

2020-09-11 01:04:34 UTC MAIN commitmail json YAML

Stop tracking atexit/__cxa_atexit/pthread_atfork allocations in LSan/NetBSD

Cherry-pick and adapt:

commit 8827047551570b7ed7088765c3de2a8cce6823b8
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Sat Sep 21 07:30:42 2019 +0000

    Stop tracking atexit/__cxa_atexit/pthread_atfork allocations in LSan/NetBSD

    Summary:
    The atexit(3) and __cxa_atexit() calls allocate internally memory and free on exit,
    after executing all callback. This causes false positives as DoLeakCheck() is called
    from the atexit handler. In the LSan/ASan tests there are strict checks triggering
    false positives here.

    Intercept all atexit(3) and __cxa_atexit() calls and disable LSan when calling the
    real functions.

    Stop tracing allocations in pthread_atfork(3) funtions, as there are performed
    internal allocations that are not freed for the time of running StopTheWorld()
    code. This avoids false-positives.

    The same changes have to be replicated in the ASan and LSan runtime.

    Non-NetBSD OSs are not tested and this code is restricted to NetBSD only.

    Reviewers: dvyukov, joerg, mgorny, vitalybuka, eugenis

    Reviewed By: vitalybuka

    Subscribers: jfb, llvm-commits, #sanitizers

    Tags: #sanitizers, #llvm

    Differential Revision: https://reviews.llvm.org/D67331

    llvm-svn: 372459

(kamil)

2020-09-11 01:03:31 UTC MAIN commitmail json YAML

Add __lsan::ScopedInterceptorDisabler for strerror(3)

Cherry-pick and adapt:

commit 1b58389428ed07a7322ba9c2bcaeec99807f9457
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Sat Sep 21 07:45:02 2019 +0000

    Add __lsan::ScopedInterceptorDisabler for strerror(3)

    Summary:
    strerror(3) on NetBSD uses internally TSD with a destructor that is never
    fired for exit(3). It's correctly called for pthread_exit(3) scenarios.

    This is a case when a leak on exit(3) is expected, unavoidable and harmless.

    Reviewers: joerg, vitalybuka, dvyukov, mgorny

    Reviewed By: vitalybuka

    Subscribers: dmgreen, kristof.beyls, jfb, llvm-commits, #sanitizers

    Tags: #sanitizers, #llvm

    Differential Revision: https://reviews.llvm.org/D67337

    llvm-svn: 372461

(kamil)

2020-09-11 01:01:14 UTC MAIN commitmail json YAML

2020-09-10 23:37:55 UTC MAIN commitmail json YAML

make(1): reduce code size in CondGetString

The pattern is now the usual "test the character, then increment the
pointer", throughout the whole function.

(rillig)

2020-09-10 23:27:27 UTC MAIN commitmail json YAML

make(1): skip redundant condExpr-- in CondGetString

(rillig)

2020-09-10 22:51:11 UTC MAIN commitmail json YAML

Replace a pipe into tr to normalise a var name (convert '.' or '-'
into '_' to meet sh variable name rules) into a shell string processing
loop.

On my test system, this reduces the total elapsed time for the bin/sh ATF
tests from about 109 secs to about 102 (user cpu from 24.5 to 21, sys cpu
from 34 to 30) and the usr.bin/make tests elapsed time from 42.5 to 40
secs (user from a bit over 15 to a bit over 13, and sys from 16+ to 13+).
(Recorded on an AMD64 domU).

These probably exaggerate the effect, as there are a bunch of quite small
tests, which means the ATF overhead (which this change affects) is a greater
proportion of the total test time than for some other tests where most of
the time is spent actually testing.

But I am fairly confident that there will be at least some improvement.

This could be further improved by removing the cmdsub invocation method,
and instead passing the name of a variable containing the string to
normalise (with the result returned in that same var) - but that would
mean altering all the callers as well.  Some other time maybe.

(kre)

2020-09-10 22:47:22 UTC MAIN commitmail json YAML

make(1): reduce code size for parsing the || or && operators

On x86_64, accessing [0] generates less code than [1].

(rillig)

2020-09-10 22:44:08 UTC MAIN commitmail json YAML

2020-09-10 22:38:58 UTC MAIN commitmail json YAML

2020-09-10 21:40:50 UTC MAIN commitmail json YAML

2020-09-10 21:22:08 UTC MAIN commitmail json YAML

make(1): add test for .MAKEFLAGS

(rillig)

2020-09-10 17:40:34 UTC MAIN commitmail json YAML

2020-09-10 17:33:17 UTC MAIN commitmail json YAML

Replace use of tr to translate '-' in test names into '_' to satisfy ATF
requirements (correct sh variable/function name syntax).  Use a sh
loop instead, and save one fork() one vfork() and one exec of tr for
each test case (many of which don't need anything done to them at all).

This might partially mitigate PR misc/55595

(kre)

2020-09-10 17:26:38 UTC MAIN commitmail json YAML

2020-09-10 15:17:23 UTC MAIN commitmail json YAML

fix earmv7hfeb set list for bootarm.efi

Do this by explicitly marking all the non-earmv7hf* arm archs as not wanted,
because the set lists processor doesn't have a better way to be told.

(jakllsch)

2020-09-10 14:30:15 UTC MAIN commitmail json YAML

bootaa64: explicitly set GNUEFIARCH and LIBGNUEFI_ARCH to aarch64

(jakllsch)

2020-09-10 14:10:47 UTC MAIN commitmail json YAML

2020-09-10 14:04:45 UTC MAIN commitmail json YAML

2020-09-10 12:53:06 UTC MAIN commitmail json YAML

Avoid using internal RTLD/libpthread/libc symbol in sanitizers

Cherry-pick and adapt:

commit 0da15ff318480f30bbc90b9e8ecb9bb9431c7fd3
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Fri Jan 3 02:35:33 2020 +0100

    [compiler-rt] [netbsd] Switch to syscall for ThreadSelfTlsTcb()

    This change avoids using internal, namespaced per-CPU calls that
    are not a stable interface to read the TSL base value.

(kamil)

2020-09-10 11:31:04 UTC MAIN commitmail json YAML

aes neon: Gather mc_forward/backward so we can load 256 bits at once.

(riastradh)

2020-09-10 11:30:28 UTC MAIN commitmail json YAML

aes neon: Hoist dsbd/dsbe address calculation out of loop.

(riastradh)

2020-09-10 11:30:08 UTC MAIN commitmail json YAML

aes neon: Tweak register usage.

- Call r12 by its usual name, ip.
- No need for r7 or r11=fp at the moment.

(riastradh)

2020-09-10 11:29:43 UTC MAIN commitmail json YAML

aes neon: Write vtbl with {qN} rather than {d(2N)-d(2N+1)}.

Cosmetic; no functional change.

(riastradh)

2020-09-10 11:29:02 UTC MAIN commitmail json YAML

aes neon: Issue 256-bit loads rather than pairs of 128-bit loads.

Not sure why I didn't realize you could do this before!

Saves some temporary registers that can now be allocated to shave off
a few cycles.

(riastradh)

2020-09-10 06:02:30 UTC MAIN commitmail json YAML

switch sparc to binutils 2.34.  tested on an ss20.

(mrg)

2020-09-10 04:56:00 UTC MAIN commitmail json YAML

2020-09-10 04:36:24 UTC MAIN commitmail json YAML

Tiny cosmetic fix for previous. No functional changes.

(rin)

2020-09-10 04:31:55 UTC MAIN commitmail json YAML

Real fix for pmap_procwr(), attempted in revs 1.85 and 1.87:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/pmap.c#rev1.85
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/pmap.c#rev1.87

ibm4xx has VIPT icache and operations in pmap_procwr() should be done with
DMMU enabled (write back dcache into memory and invalidate icache).

When p == curproc, this is trivial. However, p != curproc needs a special
care; we cannot rely upon TLB miss handler in user context. Therefore,
extract pa and operate against it.

Note that va below VM_MIN_KERNEL_ADDRESS (== 2GB at the moment) is reserved
for direct mapping.

Tested by gdb with WIP software single stepping for ibm4xx.

(rin)

2020-09-10 03:32:46 UTC MAIN commitmail json YAML

Introduce PMAP_TLBDEBUG option for ibm4xx: clear only TLBHI[V] bit when
TLB entry is invalidated, instead of clearing entire TLBHI register.

(rin)

2020-09-10 03:23:55 UTC MAIN commitmail json YAML

pmap_kenter_pa: Remove comment which says ``Have to remove any existing
mapping first.'' Contrary to this comment, pmap_kremove(9) has never
been called there since rev 1.1, and we don't for other ports also.

(rin)

2020-09-10 03:20:08 UTC MAIN commitmail json YAML

Fix a possible deadlock in iavf(4)

(yamaguchi)

2020-09-10 03:02:36 UTC MAIN commitmail json YAML

Introduce PV_VA() macro to extract va from pv->pv_va by clearing
PV_WIRED flag, and use it where appropriate.

There should be no functional changes. Only for safety in future.

(rin)

2020-09-10 02:45:28 UTC MAIN commitmail json YAML

Fix build with UVMHIST; stop passing string literal to UVMHIST_LOG(),
and also cast pointer arguments into uintptr_t.

(rin)

2020-09-10 02:34:13 UTC MAIN commitmail json YAML

Turn off -mpltseq for kernel modules on powerpc for GCC >= 9.

Otherwise, object files compiled with -mlongcall contain relocation types
referring PLT, which our in-kernel linker cannot handle.

This ends up with failure in kernel module load with
``kobj_reloc: unexpected relocation type 31'' (31 == R_PPC_PLT16_HA here).

See descriptions for -mlongcall in gcc(1) of GCC9 for more details.

(rin)

2020-09-10 02:12:57 UTC MAIN commitmail json YAML

Cast pointer arguments of UVMHIST_CALLARGS() into uintptr_t.

Appease GCC9 -Wpointer-to-int-cast on ILP32 environments.

(rin)

2020-09-10 02:06:25 UTC MAIN commitmail json YAML

Build in debug symbols.

(rin)

2020-09-10 02:03:44 UTC MAIN commitmail json YAML

Fix tracedump() for sun3 and sun2 by adding __noinline attribute.

It unwinds stack frame by using address of its first argument, which
does not, of course, work if inline-expanded.

(rin)

2020-09-10 01:53:22 UTC MAIN commitmail json YAML

Unconditionally install kernel headers for iSCSI as required by
sanitizer shipped with GCC9.

Fix build release with HAVE_GCC=9 for sun2, where MKISCSI=no by default.

(rin)

2020-09-09 20:04:10 UTC MAIN commitmail json YAML

PR/55648: Kyle Evans: Minor warnings in compilation of libexecinfo test2

(christos)

2020-09-09 16:46:06 UTC MAIN commitmail json YAML

Workarounds for amazon's Xen 4.2 version, still present on some instances:
- It doens't provides an xencons, so allow HVM_PARAM_CONSOLE_PFN to fail
- the xen clock is not fully functionnal, so don't try to use it if
  HVM_PARAM_CONSOLE_PFN failed.
- it doesn't have XEN_HVM_CPUID_VCPU_ID_PRESENT so fall back to ci_acpiid
  as ci_vcpuid in this case.

It also doesn't support the per-CPU event callback; so fix the fallback
to global vector (don't try to register more per-cpu vector)
Should fix port-amd64/55543

(bouyer)

2020-09-09 16:30:00 UTC MAIN commitmail json YAML

2020-09-09 14:49:27 UTC MAIN commitmail json YAML

Re-do previous aarch64eb strlen fix more simply and correctly.

(jakllsch)

2020-09-09 14:38:41 UTC MAIN commitmail json YAML

Register getrandom.0

Fixes MKCATPAGES=yes build.

(kamil)

2020-09-09 13:25:48 UTC MAIN commitmail json YAML

Look for the string "amazon" in a few different sysctl nodes. There doesn't
seem to be a single spot to check that works with both XenPVHVM and KVM
instances.

(jmcneill)

2020-09-09 12:06:02 UTC MAIN commitmail json YAML

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.

(jmcneill)

2020-09-09 09:52:16 UTC MAIN commitmail json YAML

2020-09-09 09:49:16 UTC MAIN commitmail json YAML

add build rules for G_CPP17_SOURCES sources, and fix their build.

(mrg)

2020-09-09 09:17:14 UTC MAIN commitmail json YAML

Disable reverse DNS lookups in ping to avoid spurious test failures
due to unresponsive DNS servers.

(gson)

2020-09-09 09:10:52 UTC MAIN commitmail json YAML

2020-09-09 08:22:05 UTC MAIN commitmail json YAML

2020-09-09 07:27:55 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libgcc/arch/m68000/defs.mk@1.18 / diff / nxr@1.18
src/external/gpl3/gcc/lib/libgomp/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libiberty/defs.mk@1.27 / diff / nxr@1.27
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/defs.mk@1.11 / diff / nxr@1.11
src/external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/arm/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/defs.mk@1.15 / diff / nxr@1.15
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/defs.mk@1.16 / diff / nxr@1.16
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/defs.mk@1.15 / diff / nxr@1.15
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/defs.mk@1.14 / diff / nxr@1.14
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/defs.mk@1.14 / diff / nxr@1.14
      :
(more 56 files)
mknative-gcc for everything except arm64be:  includes fixes

(mrg)

2020-09-09 07:23:47 UTC MAIN commitmail json YAML

install new libstdc++ pstl headers.  remove some dead makefile
code and consolidate some of the header installation.

(mrg)

2020-09-09 07:12:04 UTC MAIN commitmail json YAML

more consolidation and properly condition all variables like previously.

(mrg)

2020-09-09 06:50:33 UTC MAIN commitmail json YAML

2020-09-09 05:23:26 UTC MAIN commitmail json YAML

2020-09-09 05:16:01 UTC MAIN commitmail json YAML

2020-09-09 04:52:32 UTC MAIN commitmail json YAML

consolidate a bunch of libstdc++ variable collection.

(mrg)

2020-09-09 00:56:17 UTC MAIN commitmail json YAML

Added the explain about locking order in iavf(4)

(yamaguchi)

2020-09-09 00:35:36 UTC MAIN commitmail json YAML

fix bad conditional in iavf_parse_modprop()

found by clang

(jakllsch)

2020-09-08 23:58:09 UTC MAIN commitmail json YAML

aesarmv8: Reallocate registers to shave off unnecessary MOV.

(riastradh)

2020-09-08 23:57:43 UTC MAIN commitmail json YAML

aesarmv8: Issue two 4-register ld/st, not four 2-register ld/st.

(riastradh)

2020-09-08 23:57:13 UTC MAIN commitmail json YAML

aesarmv8: Adapt aes_armv8_64.S to big-endian.

Patch mainly from (and tested by) jakllsch@ with minor tweaks by me.

(riastradh)

2020-09-08 22:48:24 UTC MAIN commitmail json YAML

aes(9): Fix edge case in bitsliced SSE2 AES-CBC decryption.

Make sure self-tests exercise this edge case.

Discovered by confusion over code inspection of jak's adaptation of
aes_armv8_64.S for big-endian.

(riastradh)

2020-09-08 21:41:37 UTC MAIN commitmail json YAML

alpha: Use load-acquire/store-release.

Omit needless membar in pmap_kenter_pa while here -- caller must
ensure pmap_kenter_pa on one CPU happens before use of the VA on
another CPU anyway, so there is no benefit to a membar here.

ok thorpej@

(riastradh)

2020-09-08 19:17:24 UTC MAIN commitmail json YAML

oops, pull out the value of pstl_headers.

(mrg)

2020-09-08 19:11:30 UTC MAIN commitmail json YAML

distrib/sets/fmt-list: add no-action mode

This is useful for finding parse errors only.  Inspired by some entries
that are obsolete and have more than the "obsolete" flag.  There are
only few of these entries though, and they don't seem worth fixing.

(rillig)

2020-09-08 19:06:49 UTC MAIN commitmail json YAML

lists/man/mi: remove extraneous space

(rillig)

2020-09-08 18:51:23 UTC MAIN commitmail json YAML

make(1): clean up comments in cond.c

(rillig)

2020-09-08 18:10:34 UTC MAIN commitmail json YAML

make(1): add CondLexer_SkipWhitespace

(rillig)

2020-09-08 18:06:27 UTC MAIN commitmail json YAML

make(1): rename CondLexer.condPushBack to curr

This variable has some context information from the struct now,
therefore its name can be shorter.

(rillig)

2020-09-08 17:55:23 UTC MAIN commitmail json YAML

make(1): group the condition parsing state into a struct

Instead of having 3 global variables, the struct clearly communicates
that the 3 variables belong together. During debugging, it's easy to
just "p *lex" instead of remembering the names of the 3 former global
variables.

Converting the global variables into a local variable makes it
immediately clear that the functions in this file operate on this
struct.  Keeping the global variables in mind is more difficult.  Having
a local variable also gets rid of the 3 sv_* variables in
Cond_EvalExpression, which were also a sign that these "global
variables" were not that global at all.

This commit only contains the minimal code changes for converting the
variables into a local struct.  It was tempting to add functions like
CondLexer_SkipWhitespace, but this is better left for a follow-up
commit.

(rillig)

2020-09-08 17:39:04 UTC MAIN commitmail json YAML

Enable __BUS_SPACE_HAS_STREAM_METHODS in std.generic64

These are needed for virtio_pci on aarch64eb.

(jakllsch)

2020-09-08 17:35:27 UTC MAIN commitmail json YAML

Acknowledge clang warning for NEON cipher code on aarch64eb

We've already made the nonportable vector initializations portable; the
code works on aarch64eb.

(jakllsch)

2020-09-08 17:30:44 UTC MAIN commitmail json YAML

2020-09-08 17:30:10 UTC MAIN commitmail json YAML

Improve BINDANY formatting.

(wiz)

2020-09-08 17:29:20 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2020-09-08 17:29:10 UTC MAIN commitmail json YAML

2020-09-08 17:20:11 UTC MAIN commitmail json YAML

Disable EFI runtime support for BE kernels

(jmcneill)

2020-09-08 17:17:32 UTC MAIN commitmail json YAML

2020-09-08 17:02:18 UTC MAIN commitmail json YAML

workqueue: Lift unnecessary restriction on workqueue_wait.

Allow multiple concurrent waits at a time, and allow enqueueing work
at the same time (as long as it's not the work we're waiting for).
This way multiple users can use a shared global workqueue and safely
wait for individual work items concurrently, while the workqueue is
still in use for other items (e.g., wg(4) peers).

This has the side effect of taking away a diagnostic measure, but I
think allowing the diagnostic's false positives instead of rejecting
them is worth it.  We could cheaply add it back with some false
negatives if it's important.

(riastradh)

2020-09-08 17:02:03 UTC MAIN commitmail json YAML

nvmm-x86: avoid hogging behavior observed recently

When the FPU code got rewritten in NetBSD, the dependency on IPL_HIGH was
eliminated, and I took _vcpu_guest_fpu_enter() out of the VCPU loop since
there was no need to be in the splhigh window.

Later, the code was switched to use the kernel FPU API, API that works at
IPL_VM, not at IPL_NONE.

These two changes mean that the whole VCPU loop is now executing at IPL_VM,
which is not desired, because it introduces a delay in interrupt processing
on the host in certain cases.

Fix this by putting _vcpu_guest_fpu_enter() back inside the VCPU loop.

(maxv)

2020-09-08 17:00:07 UTC MAIN commitmail json YAML

nvmm-x86-vmx: improve the handling of CR0

- CR0_ET is hard-wired to 1 in the cpu, so force CR0_ET to 1 in the
  shadow.
- Clarify.

(maxv)

2020-09-08 16:58:38 UTC MAIN commitmail json YAML

2020-09-08 16:56:29 UTC MAIN commitmail json YAML

2020-09-08 16:39:58 UTC MAIN commitmail json YAML

wg: Drop wgp_lock while waiting for endpoint psref to drain.

- This is safe because wgp_endpoint_changing locks out any attempts
  to change the endpoint until the draining is complete.

- This is necessary to avoid a deadlock where the handshake thread
  holds a psref and awaits mutex_enter(wgp->wgp_lock).

XXX The same deadlock may occur in wg_destroy_session.  Not clear
that it's safe to just release wgp_lock there; may need to create a
new session state, say WGS_STATE_DRAINING, while we wait for
psref_target_destroy.  But this needs a little more thought; a new
state may not be necessary, and would be nice to avoid if not
necessary.

(riastradh)

2020-09-08 16:39:36 UTC MAIN commitmail json YAML

2020-09-08 16:34:43 UTC MAIN commitmail json YAML

Be explicit about building for little endian. This allows efiboot to be
built with the aarch64eb toolchain.

(jmcneill)

2020-09-08 16:10:53 UTC MAIN commitmail json YAML

Ooops, overlooked one MOUNTCRITLOCAL reference in the rename to
CRITLOCALMOUNTED.

(martin)

2020-09-08 16:00:35 UTC MAIN commitmail json YAML

ipi: Split up initialization into two parts.

First part runs early so ipi_register can be used in module
initialization, e.g. via pktqueue_create; second part runs after CPUs
have been detected.

(riastradh)

2020-09-08 15:36:37 UTC MAIN commitmail json YAML

Be explicit about building for little endian. This allows efiboot to be
built with the armv7be toolchain.

(jmcneill)

2020-09-08 14:57:32 UTC MAIN commitmail json YAML

2020-09-08 14:55:44 UTC MAIN commitmail json YAML

2020-09-08 14:53:11 UTC MAIN commitmail json YAML

2020-09-08 14:51:43 UTC MAIN commitmail json YAML

make(1): in CondGetString, replace repeated Buf_Add with Buf_AddStr

(rillig)

2020-09-08 14:17:04 UTC MAIN commitmail json YAML

2020-09-08 14:13:50 UTC MAIN commitmail json YAML

Add tests for IP_BINDANY, IPV6_BINDANY

(christos)

2020-09-08 14:12:57 UTC MAIN commitmail json YAML

2020-09-08 13:28:51 UTC MAIN commitmail json YAML

iaq_datalen is 16-bit, always use htole16

fixes build failure on big endian

(jakllsch)

2020-09-08 13:01:47 UTC MAIN commitmail json YAML

Restore libgomp, liblsan, and libstdc++ as GCC-only

(adam)

2020-09-08 12:54:36 UTC MAIN commitmail json YAML

Sort - no functional change

(martin)

2020-09-08 12:52:44 UTC MAIN commitmail json YAML

Adjust for MOUNTCRITLOCAL -> CRITLOCALMOUNTED rename

(martin)

2020-09-08 12:52:18 UTC MAIN commitmail json YAML

2020-09-08 12:45:03 UTC MAIN commitmail json YAML

Make it work with empty /var

(martin)

2020-09-08 10:30:17 UTC MAIN commitmail json YAML

A few bus_dmatag_subregion fixes

- return EOPNOTSUPP if min_addr isn't less than max_addr
- fix the subset check to ensure that all the ranges in the parent tag are
  within the {min,max}_addr range.  If so we can just continue to use the
  parent tag.
- when building the new ranges read the parent tag range rather than un-
  initialised memory.
- remove the max_addr != 0xffffffff check - the overflow should be handled
  by the unsigned arithmetic for arm32.
- add a KASSERT
- add comments

(skrll)

2020-09-08 10:07:35 UTC MAIN commitmail json YAML

Remove empty line. End sentence with dot. Avoid unnecessary linebreak.

(wiz)

2020-09-08 10:05:48 UTC MAIN commitmail json YAML

2020-09-08 06:13:53 UTC MAIN commitmail json YAML

2020-09-08 06:11:32 UTC MAIN commitmail json YAML

disable these tests unless ATF_SBIN_IFCONFIG_WIFI_ENABLE=yes is
in the environment.  they change wifi configuration, restart
wpa_supplicant and hostapd, and, on broken wifi chipsets, may
hang the test run.

(mrg)

2020-09-08 05:33:05 UTC MAIN commitmail json YAML

make(1): add test for wildcards in dependency declarations

(rillig)

2020-09-08 05:26:22 UTC MAIN commitmail json YAML

make(1): fix off-by-one error in SuffExpandChildren

In suff.c r1.144 from yesterday, in the line "cp += nested_p - cp", I
accidentally removed the "- 1".  Since these "- 1" lines lead to slow
execution, each branch now increments the pointer separately by the
actually needed amount.

Fixing this bug posed way more new questions than it answered, and it
revealed an inconsistency in the parser about how characters are to be
escaped, and missing details in the documentation of Var_Parse, as well
as a parse error that unexpectedly doesn't stop make from continuing.

(rillig)

2020-09-08 00:51:29 UTC MAIN commitmail json YAML

don't warn about array bounds for dodgy diagnostic code.
fixes gcc9 builds.

(mrg)

2020-09-07 23:47:02 UTC MAIN commitmail json YAML

ia64 works, sun3 (m68k?) works, powerpc works, note powerpc64 issue,
evbarmv7-eb dtb issue, prep overflow issue, note that almost all
platform builds are now working for m68k/mips/ppc.

(mrg)

2020-09-07 23:41:38 UTC MAIN commitmail json YAML

move the __packed attribute from struct frame::F_t into the single
unaligned member inside.  CTASSERT() the size is unchanged.

with this, sun3 and GCC 9 appears to work.

(mrg)

2020-09-07 22:22:17 UTC MAIN commitmail json YAML

2020-09-07 22:21:55 UTC MAIN commitmail json YAML

use the generic ppc64 LINK_GCC_C_SEQUENCE_SPEC.

(mrg)

2020-09-07 19:48:09 UTC MAIN commitmail json YAML

make(1): document that nested braces work as expected now

(rillig)

2020-09-07 19:46:45 UTC MAIN commitmail json YAML

Fix `build.sh tools -j1` compilation, where bfd.h wasn't generated early
enough.

(dogcow)

2020-09-07 19:37:21 UTC MAIN commitmail json YAML

Simplify to avoid packed struct alignment issue.

(christos)

2020-09-07 19:17:36 UTC MAIN commitmail json YAML

2020-09-07 19:05:41 UTC MAIN commitmail json YAML

Disable an init-list-lifetime warning from gcc-9.

(christos)

2020-09-07 19:04:27 UTC MAIN commitmail json YAML

Comment out index out of bounds debugging code.

(christos)

2020-09-07 18:49:15 UTC MAIN commitmail json YAML

make(1): explain why each test is run in a sub-make

(rillig)

2020-09-07 18:43:59 UTC MAIN commitmail json YAML

make(1): use consistent spelling for postprocessing

(rillig)

2020-09-07 18:40:32 UTC MAIN commitmail json YAML

2020-09-07 18:37:21 UTC MAIN commitmail json YAML

change cksum prototype to const void *, and check alignment via assertion.

(christos)

2020-09-07 18:37:09 UTC MAIN commitmail json YAML

make(1): with -dp, print name of the function instead of its address

This makes the output a bit more reproducible.  There are still the file
descriptors, which may differ between different runs, but at least the
nextbuf function is printed using a symbolic name instead of a meaningless address.
Besides loadedfile_nextbuf, the only other function is ForIterate.

(rillig)

2020-09-07 18:29:48 UTC MAIN commitmail json YAML

Oops. revert my previous commit. AArch64 instructions are always LE.

(ryo)

2020-09-07 18:06:13 UTC MAIN commitmail json YAML

Fix vgetq_lane_u32 for aarch64eb with GCC

Fixes NEON AES on aarch64eb

(jakllsch)

2020-09-07 18:05:17 UTC MAIN commitmail json YAML

Use a working macro to detect big endian aarch64.

Fixes aarch64eb NEON ChaCha.

(jakllsch)

2020-09-07 15:20:53 UTC MAIN commitmail json YAML

Limit the number of visuals to 64K

(christos)

2020-09-07 13:19:20 UTC MAIN commitmail json YAML

2020-09-07 10:45:23 UTC MAIN commitmail json YAML

in ar5008_set_viterbi_mask() be sure to initialise m[0].

(mrg)

2020-09-07 10:44:52 UTC MAIN commitmail json YAML

apply some GCC_NO_ADDR_OF_PACKED_MEMBER.

(mrg)

2020-09-07 10:42:58 UTC MAIN commitmail json YAML

more updates:
- more arm stuff builds
- 32 bit mips builds and kernels run
- mips64el builds
- powerpc (walnut) kernels run

(mrg)

2020-09-07 10:19:03 UTC MAIN commitmail json YAML

switch mips to binutils 2.34.

(mrg)

2020-09-07 09:14:54 UTC MAIN commitmail json YAML

Fix race between ixgbe_msix_admin() and ixgbe_handle_admin(), pointed out by ozaki-r@n.o.

The race is caused by the following.
CPU#A processes workqueue, CPU#B processes admin interrupt.
    (0) one of CPUs already calls ixgbe_schedule_admin_tasklet()
        such as ixgbe_handle_timer()
    (1) CPU#A: read adapter->task_requests
    (2) CPU#B: set adapter->task_requests
    (3) CPU#B: read(and try to set) adapter->admin_pending
              but adapter->admin_pending is set, so does not
              call workqueue_enqueue()
    (4) CPU#A: clear adapter->admin_pending
that is, the tasks set by (2) is not processed as missfire workqueue by (3).

(knakahara)

2020-09-07 09:14:48 UTC MAIN commitmail json YAML

bump ramdisk image size to match build size.

(mrg)

2020-09-07 09:09:40 UTC MAIN commitmail json YAML

asan_interceptors.cc needs -O1 for mipsel/mipseb.

(mrg)

2020-09-07 09:05:11 UTC MAIN commitmail json YAML

bump image size for pmax64 builds.

(mrg)

2020-09-07 07:48:23 UTC MAIN commitmail json YAML

define __HAVE___LWP_GETPRIVATE_FAST

(mrg)

2020-09-07 07:44:53 UTC MAIN commitmail json YAML

i can't confirm or deny that GCC 9 is wrong about parity_valid[]
having uninitialised members, but since setting up reconstruct
isn't a hot path, just zero init the whole thing to be sure.

(mrg)

2020-09-07 07:43:36 UTC MAIN commitmail json YAML

various updates:
- most builds are working
- arm64, amd64, sparc, evbmips64-eb, and armv7hf-el are known to be
  stable and work
- mips64-el needs new binutils, in testing
- vax, sh3*, riscv64 and mipse[lb] builds are broken in various ways

(mrg)

2020-09-07 07:15:26 UTC MAIN commitmail json YAML

make(1): migrate SuffExpandChildren to Var_ParsePP

(rillig)

2020-09-07 07:10:56 UTC MAIN commitmail json YAML

make(1): migrate to Var_ParsePP in Var_Parse and Var_Subst

(rillig)

2020-09-07 07:10:43 UTC MAIN commitmail json YAML

avoid returning stack garbage on platforms that don't have either
__lwp_gettcb_fast() or __lwp_getprivate_fast().

(mrg)

2020-09-07 07:08:35 UTC MAIN commitmail json YAML

-march=armv3m option is obsolete.  remove it from commented kernel
configurations (we haven't supported those machines lately anyway),
and, for GCC >= 9, from the one caller.

(mrg)

2020-09-07 07:07:32 UTC MAIN commitmail json YAML

don't error array-bounds and packed-member issues with GCC 9.

(mrg)

2020-09-07 07:04:30 UTC MAIN commitmail json YAML

make(1): migrate ApplyModifiers to Var_ParsePP

(rillig)

2020-09-07 06:58:02 UTC MAIN commitmail json YAML

make(1): migrate Var_Parse to Var_ParsePP in ParseDoDependency

(rillig)

2020-09-07 06:51:05 UTC MAIN commitmail json YAML

make(1): migrate Var_Parse to Var_ParsePP in archive handling

(rillig)