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 (1h)  netbsd-10 (16d)  netbsd-9 (16d)  netbsd-8 (21d) 

2024-06-02 02:19:49 UTC Now

2016-12-16 08:30:20 UTC MAIN commitmail json YAML

Remove extra newline in debug printfs. ixgbe's *DEBUGOUT* macros automatically
add newline.

(msaitoh)

2016-12-16 08:24:41 UTC MAIN commitmail json YAML

The rx_bytes event counter is cleared when if_init() is called, but not for
rx_packets. It's inconsistent. It makes rx_packets is bigger than rx_bytes.
IMHO, it's not required to clear them. At least the above comment says
"/* Setup our descriptor indices */". It's not descriptor indice...

(msaitoh)

2016-12-16 06:29:11 UTC MAIN commitmail json YAML

Remove needless goto's. No functional changes.

(rin)

2016-12-16 04:45:04 UTC MAIN commitmail json YAML

2016-12-16 04:27:03 UTC MAIN commitmail json YAML

2016-12-16 03:59:31 UTC MAIN commitmail json YAML

Fix comments. No functional changes.

(rin)

2016-12-16 03:49:45 UTC MAIN commitmail json YAML

Add a test case that deletes auto-configured addresses

(ozaki-r)

2016-12-16 03:14:23 UTC MAIN commitmail json YAML

Improve stability of the tests

- Do ifconfig -w 10 after ifconfig up
- Accept /1d0h0m..s/ in addition to /23h59m..s/ for expiration time
- Prevent new RA messages from coming after flushing entries

The changes should fix flapping of test results on babylon5.

(ozaki-r)

2016-12-16 01:42:04 UTC MAIN commitmail json YAML

add bit definitions for dither and alpha blending registers

(macallan)

2016-12-15 22:01:57 UTC MAIN commitmail json YAML

In the n == VAUDIOCHANS case we need to call mutex_exit() before
returning.

Perhaps this will address PR kern/51721

(pgoyette)

2016-12-15 20:04:36 UTC MAIN commitmail json YAML

Simplify #ifdefs so this compiles on architectures that do not support
watchpoints.

(martin)

2016-12-15 17:21:21 UTC MAIN commitmail json YAML

allow suspend with uftdi(4). it works fine.

(maya)

2016-12-15 15:03:17 UTC MAIN commitmail json YAML

ptrace(2): Document PT_GETVECREGS and PT_SETVECREGS (ppc ports specific)

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 14:49:46 UTC MAIN commitmail json YAML

ptrace(2): Document PT_GETXMMREGS and PT_SETXMMREGS (i386 port specific)

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 13:06:08 UTC MAIN commitmail json YAML

ptrace(2): Remove dead text, some of it commented in this file for years

For example PT_READ_U/PT_WRITE_U has been removed by <mycroft> in 19950126.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 12:56:52 UTC MAIN commitmail json YAML

2016-12-15 12:51:02 UTC MAIN commitmail json YAML

ptrace(2): Add hardware assisted breakpoint/watchpoint API:
          PT_READ_WATCHPOINT, PT_WRITE_WATCHPOINT and PT_COUNT_WATCHPOINTS

(kamil)

2016-12-15 12:42:38 UTC MAIN commitmail json YAML

Update TODO.ptrace with recent changes

Hardware assisted breakpoint/watchpoint API has been merged with current.

Add note about pthread_dbg(3) API needed to be refactored and limited to
querying POSIX thread private data fields.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 12:20:39 UTC MAIN commitmail json YAML

Welcome to NetBSD 7.99.50!

New ptrace(2) calls for hardware assisted watchpoints/breakpoints:
- PT_COUNT_WATCHPOINTS,
- PT_READ_WATCHPOINT,
- PT_WRITE_WATCHPOINT.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 12:15:20 UTC MAIN commitmail json YAML

Add ATF tests for hardware assisted watchpoints on amd64

Addedd tests:
- watchpoint_count
- watchpoint_read
- watchpoint_write_unmodified
- watchpoint_trap_code[0123]
- watchpoint_trap_data_write[0123]
- watchpoint_trap_data_rw[0123]

These code will be reused later for i386 and moved to a common place like
tests/kernel/arch/x86.

These tests are x86 specific only. The same API but different private
ptrace_watchpoint MD part has to be used on other ports.

All tests pass on amd64.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 12:10:02 UTC MAIN commitmail json YAML

2016-12-15 12:04:18 UTC MAIN commitmail json YAML

Add support for hardware assisted watchpoints/breakpoints API in ptrace(2)

Add new ptrace(2) calls:
- PT_COUNT_WATCHPOINTS - count the number of available hardware watchpoints
- PT_READ_WATCHPOINT  - read struct ptrace_watchpoint from the kernel state
- PT_WRITE_WATCHPOINT  - write new struct ptrace_watchpoint state, this
                          includes enabling and disabling watchpoints

The ptrace_watchpoint structure contains MI and MD parts:

typedef struct ptrace_watchpoint {
int pw_index; /* HW Watchpoint ID (count from 0) */
lwpid_t pw_lwpid; /* LWP described */
struct mdpw pw_md; /* MD fields */
} ptrace_watchpoint_t;

For example amd64 defines MD as follows:
struct mdpw {
void *md_address;
int md_condition;
int md_length;
};

These calls are protected with the __HAVE_PTRACE_WATCHPOINTS guard.

Tested on amd64, initial support added for i386 and XEN.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 11:32:03 UTC MAIN commitmail json YAML

Fix build without DDB.

(rin)

2016-12-15 10:01:16 UTC MAIN commitmail json YAML

Skip the initial GP load in function prologue when inserting a breakpoint.

GNU ld for alpha is so clever that the redundant GP load in function
entrypoint is skipped. we must therefore skip initial GP loads; otherwise
breakpoints in function entrypoints can also be skipped.

Reported to upstream (Bug 20969):
  https://sourceware.org/bugzilla/show_bug.cgi?id=20969

ok martin

(rin)

2016-12-15 09:39:24 UTC MAIN commitmail json YAML

Bump for move of bpf_mtap and if_ipackets++

Welcome to 7.99.49

(ozaki-r)

2016-12-15 09:35:25 UTC MAIN commitmail json YAML

Annotate bpf_mtap still running in Rx hardware interrupt with "XXX not in softint"

(ozaki-r)

2016-12-15 09:33:25 UTC MAIN commitmail json YAML

Move bpf_mtap in Tx hardware intrrupt to if_start

The intention of the change is to prevent bpf_mtap from running in
hardware interrupt context. if_start is a usual place to do bpf_mtap
on Tx.

Proposed on tech-kern and tech-net

(ozaki-r)

2016-12-15 09:28:07 UTC MAIN commitmail json YAML

Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net

(ozaki-r)

2016-12-15 09:17:26 UTC MAIN commitmail json YAML

2016-12-15 08:57:24 UTC MAIN commitmail json YAML

Prepare t_ptrace_wait.h for hardware watchpoints API

Add new symbol ATF_TP_ADD_TC_HAVE_PTRACE_WATCHPOINTS() to be protected with
the __HAVE_PTRACE_WATCHPOINTS guard.

XXX:
    Mark check_happy() with __attribute__((optimize("O0"))).
    Disabled optimization is required to make tests for hardware assisted
    traps in .text functional.

    Tested with GCC 5.4 on NetBSD 7.99.47 amd64

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 07:47:08 UTC MAIN commitmail json YAML

Add new entries to TODO.ptrace

- add support for detecting equivalent events to PTRACE_O_TRACEEXEC,
  PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXIT from Linux
- exect(3) rething or remove -- maybe PT_TRACE_ME + PTRACE_O_TRACEEXEC?

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-15 07:08:27 UTC MAIN commitmail json YAML

Restore the obsolete entries for spkr_synth, and mark the new spkr
module as not-obsolete.

(pgoyette)

2016-12-15 06:55:55 UTC MAIN commitmail json YAML

Add the module glue to the common spkr code.

(pgoyette)

2016-12-15 06:50:37 UTC MAIN commitmail json YAML

Update for the new "universal" spkr module.

Note that entries in the md.i386 and md.amd64 lists are actually deleted
(rather than being marked "obsolete" as directed in the comments).  This
is OK, since there is now a new module in the mi list to replace them.

(pgoyette)

2016-12-15 06:48:14 UTC MAIN commitmail json YAML

Create a single combined module for spkr_pcppi and spkr_audio, and
build it for all architectures.

By doing this, we can handle pcppi, audio, or both attachments with
non-built-in modules.

XXX Still to do: the module currently cannot be unloaded, and the
XXX spkr device(s) currently cannot be detached.  (Really, two
XXX sides of the same problem.)

(pgoyette)

2016-12-15 04:49:15 UTC MAIN commitmail json YAML

handle proxy authentication correctly.

(nonaka)

2016-12-15 04:38:04 UTC MAIN commitmail json YAML

2016-12-15 04:37:01 UTC MAIN commitmail json YAML

2016-12-15 04:36:07 UTC MAIN commitmail json YAML

name attachment after parent per existing convention.

(christos)

2016-12-15 04:01:09 UTC MAIN commitmail json YAML

Add SCTP to ALL configs to keep it buildable anyway

(ozaki-r)

2016-12-15 03:54:15 UTC MAIN commitmail json YAML

Restore nd6.h inclusion to resolve implicit dependency

(ozaki-r)

2016-12-15 03:24:43 UTC MAIN commitmail json YAML

Note desire to have a way to selectively build modules (and include them
from the modules/mi sets-list) based on "attributes" rather than having
to enumerate individual architectures on which to build and include.

(pgoyette)

2016-12-15 02:43:56 UTC MAIN commitmail json YAML

Fix that cleanup doesn't run when DEBUG=false

(ozaki-r)

2016-12-14 22:30:42 UTC MAIN commitmail json YAML

2016-12-14 22:21:13 UTC MAIN commitmail json YAML

Tidy up and make it look like the other drivers.

(christos)

2016-12-14 21:52:43 UTC MAIN commitmail json YAML

correct spkr softc.

(christos)

2016-12-14 21:49:33 UTC MAIN commitmail json YAML

2016-12-14 20:34:17 UTC MAIN commitmail json YAML

no more constant pitch, now we can use all video memory

(macallan)

2016-12-14 19:29:31 UTC MAIN commitmail json YAML

The t_clock_subr test doesn't require rump.

(rjs)

2016-12-14 18:50:56 UTC MAIN commitmail json YAML

remove local lwp_eprio() definition that broke the clang build.

(mrg)

2016-12-14 16:51:44 UTC MAIN commitmail json YAML

2016-12-14 16:46:31 UTC MAIN commitmail json YAML

use host blits for image uploads on pm2

(macallan)

2016-12-14 16:05:34 UTC MAIN commitmail json YAML

Add "define ia64Architecture" for ia64 case; probably more changes needed later.

(scole)

2016-12-14 16:03:19 UTC MAIN commitmail json YAML

Make ia64 considered 64bit for the _XSERVER64 define so a release with x11 will at least build.

(scole)

2016-12-14 15:49:35 UTC MAIN commitmail json YAML

Change the freelists to lrulists, all vnodes are always on one
of the lists.  Speeds up namei on cached vnodes by ~3 percent.

Merge "vrele_thread" into "vdrain_thread" so we have one thread
working on the lrulists.  Adapt vfs_drainvnodes() to always wait
for a complete cycle of vdrain_thread().

(hannken)

2016-12-14 15:48:55 UTC MAIN commitmail json YAML

Move vnode members "v_freelisthd" and "v_freelist" from "struct vnode"
to "struct vnode_impl" and rename to "vi_lrulisthd" and "vi_lrulist".

No functional change intended.

Welcome to 7.99.48

(hannken)

2016-12-14 15:46:57 UTC MAIN commitmail json YAML

Remove the "target" argment from vfs_drainvnodes() as it is
always equal to "desiredvnodes" and move its definition
from sys/vnode.h to sys/vnode_impl.h.

Extend vfs_drainvnodes() to also wait for deferred vrele to flush
and replace the call to vrele_flush() with a call to vfs_drainvnodes().

(hannken)

2016-12-14 15:24:06 UTC MAIN commitmail json YAML

Add a HISTORY section
Move information about exit status to EXIT STATUS section
Add more xrefs

ok wiz@

(abhinav)

2016-12-14 15:11:29 UTC MAIN commitmail json YAML

Don't hold softc lock when calling ucom_read

PR/51714: uftdi (on xhci): mutex_vector_enter: locking against myself

(skrll)

2016-12-14 14:01:10 UTC MAIN commitmail json YAML

Comment out spkr at audio, as audio is commented out too

(martin)

2016-12-14 14:00:17 UTC MAIN commitmail json YAML

Comment out spkr at pcppi, as pcppi is commented out too.

(martin)

2016-12-14 13:04:42 UTC MAIN commitmail json YAML

Simplify (and no need for sub-shells).
Same functionality, same method, simpler exposition.

(kre)

2016-12-14 12:59:52 UTC MAIN commitmail json YAML

2016-12-14 11:19:15 UTC MAIN commitmail json YAML

fix race of gif_softc->gif_ro when we send multiple flows over gif on NET_MPSAFE enabled kernel.

make gif_softc->gif_ro percpu as well as ipforward_rt to resolve this race.
and add future TODO comment for etherip(4).

(knakahara)

2016-12-14 10:46:12 UTC MAIN commitmail json YAML

Fix ip[46]csum-tx doesn't work other than TCP and UDP.

(msaitoh)

2016-12-14 07:37:26 UTC MAIN commitmail json YAML

Add tests for flushing prefix and default router entries

(ozaki-r)

2016-12-14 06:33:01 UTC MAIN commitmail json YAML

Reduce return points

No functional change intended.

(ozaki-r)

2016-12-14 06:26:04 UTC MAIN commitmail json YAML

Update TODO.ptrace

Add new entries:
- add support for PT_STEP, PT_GETREGS, PT_SETREGS, PT_GETFPREGS,
  PT_SETFPREGS in all ports
- integrate all ptrace(2) features in gdb
- add ptrace(2) NetBSD support in LLDB

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-14 06:19:59 UTC MAIN commitmail json YAML

Define -D_KERNTYPES in CPPFLAGS unconditionally to fix MKRUMP=no build

Reported by Robert Swindells

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-14 04:13:50 UTC MAIN commitmail json YAML

Use macro to iterate on the nd_prefix list

(ozaki-r)

2016-12-14 04:05:11 UTC MAIN commitmail json YAML

2016-12-14 03:30:30 UTC MAIN commitmail json YAML

add wait_for_disconnected to run_test() as well as run_test6().

Before commited MP-safe patch, IPv4 test can run in time without
wait_for_disconnected. Currently, wait_for_disconnected is required
because of locking overhead.

(knakahara)

2016-12-14 02:50:42 UTC MAIN commitmail json YAML

Rename dump because it's used in net_common.sh

(ozaki-r)

2016-12-13 22:54:24 UTC MAIN commitmail json YAML

More changes for creds, mutex, etc.

(pgoyette)

2016-12-13 22:52:46 UTC MAIN commitmail json YAML

2016-12-13 22:49:02 UTC MAIN commitmail json YAML

Disable duplicate typedef

(pgoyette)

2016-12-13 22:41:46 UTC MAIN commitmail json YAML

2016-12-13 22:31:51 UTC MAIN commitmail json YAML

2016-12-13 22:17:33 UTC MAIN commitmail json YAML

2016-12-13 21:58:17 UTC MAIN commitmail json YAML

2016-12-13 21:50:32 UTC MAIN commitmail json YAML

2016-12-13 21:44:01 UTC MAIN commitmail json YAML

One more option for the opt_ file.

(pgoyette)

2016-12-13 20:50:13 UTC MAIN commitmail json YAML

fix format warning.

(christos)

2016-12-13 20:42:21 UTC MAIN commitmail json YAML

2016-12-13 20:20:34 UTC MAIN commitmail json YAML

2016-12-13 20:18:32 UTC MAIN commitmail json YAML

back to passing device

(christos)

2016-12-13 20:18:06 UTC MAIN commitmail json YAML

back to passing device_t

(christos)

2016-12-13 19:03:49 UTC MAIN commitmail json YAML

ping is not a reliable means of testing if connectivity to download sets
actually works, so remove it.
Hopefully fixes PR kern/51531.

(roy)

2016-12-13 18:00:10 UTC MAIN commitmail json YAML

2016-12-13 17:12:51 UTC MAIN commitmail json YAML

Add rescan for audio children.

(christos)

2016-12-13 13:09:00 UTC MAIN commitmail json YAML

Remove dbregs* in arch/amd64/t_ptrace_wait*

CPU Debug Registers won't be exposed as is to userland.

Hardware Watchpoints will be exported to userland dedicated interface
through the ptrace(2) interface.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 13:04:18 UTC MAIN commitmail json YAML

Add regs1 in arch/amd64/t_ptrace_wait*

regs1:
    Call PT_GETREGS and iterate over General Purpose registers

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 12:59:46 UTC MAIN commitmail json YAML

Define in CPPFLAGS symbol _KERNTYPES in order to get PRIxREGISTER

This type will be used in t_ptrace_wait* for the printf(3) function.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 12:25:05 UTC MAIN commitmail json YAML

Remove dbregs[12] from t_ptrace_wait{,3,4,6,id,pid}

CPU Debug Registers won't be exposed as is to userland.

Hardware Watchpoints will be exported to userland dedicated interface
through the ptrace(2) interface.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 11:01:10 UTC MAIN commitmail json YAML

options(4): Remove KSTACK_CHECK_DR0.

(kamil)

2016-12-13 11:00:20 UTC MAIN commitmail json YAML

Bump date for previous.

(wiz)

2016-12-13 10:55:40 UTC MAIN commitmail json YAML

KSTACK_CHECK_DR0 is no longer available

It used to detect stackoverflow on the i386 port.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 10:54:27 UTC MAIN commitmail json YAML

Torn down KSTACK_CHECK_DR0, i386-only feature to detect stack overflow

This feature was intended to detect stack overflow with CPU Debug Registers
(x86). It was never ported to other ports, neither amd64 and should be
adapted for SMP...

Currently there might be better ways to detect stack overflows like page
mapping protection. Since the number of Debug Registers is restricted
(4 on x86), torn it down completely.

This interface introduced helper functions for Debug Registers, they will
be replaced with the new <x86/dbregs.h> interface.

KSTACK_CHECK_DR0 was disabled by default and won't affect ordinary users.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 10:21:33 UTC MAIN commitmail json YAML

Switch x86 CPU Debug Register types from vaddr_t to register_t

This is more opaque and appropriate type, as vaddr_t is meant to be used
for vitual address value. Not all DR on x86 are used to represent virtual
address (DR6 and DR7 are definitely not).

No functional change intended.

Change suggested by <christos>

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 10:01:44 UTC MAIN commitmail json YAML

- Change to use 2500Base-KX correctly on C2000(I354). It worked, but the
output of ifconfig and if_baudrate was not good. Tested by nils@:
  - The STATUS_TBIMODE bit in the STATUS register is deleted since 82575,
    so check for 82575 and newer first and then check for old devices.
  - Check the 2P5_SKU and 2P5_SKU_OVER bit for KX.
  - Set IFM_2500_SX instead of IFM_1000_SX for 2.5G.
- Check SERDES's speed directly from the PCS layer (PCS_LSTS register) for old
  devices.
- Style fix.

(msaitoh)

2016-12-13 09:51:34 UTC MAIN commitmail json YAML

Add a bit for Mobile IPv6.

(rjs)

2016-12-13 09:44:35 UTC MAIN commitmail json YAML

Add initial TODO list for the ptrace(2) (and procfs) interface.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-13 08:29:03 UTC MAIN commitmail json YAML

2016-12-13 02:05:48 UTC MAIN commitmail json YAML

Constify ifp of if_is_deactivated

(ozaki-r)

2016-12-13 00:35:11 UTC MAIN commitmail json YAML

MP-safe pppoe(4).

Nearly all parts is implemented by Shoichi YAMAGUCHI<s-yamaguchi@IIJ>, thanks.

(knakahara)

2016-12-12 21:56:00 UTC MAIN commitmail json YAML

Bump for drm2 da_fb_linebytes

Welcome to 7.99.47

(maya)

2016-12-12 20:41:49 UTC MAIN commitmail json YAML

wtf tfw

Courtesy of i3enedek.

(riastradh)

2016-12-12 20:35:36 UTC MAIN commitmail json YAML

Handle functions that use the offset from either kinfo_proc2/kinfo_lwp properly.

(christos)

2016-12-12 19:45:56 UTC MAIN commitmail json YAML

add da_fb_linebytes to drmfb_attach_args and use it to pass linebytes
from nouveau code to drmfb. keep the same linebytes logic for i915.

nvidia hardware needs 256 byte alignment, so aligning to just 64 was
not enough.

fixes broken console with a width of 1440px (PR kern/51181)
ok riastradh

(maya)

2016-12-12 19:15:15 UTC MAIN commitmail json YAML

2016-12-12 17:03:41 UTC MAIN commitmail json YAML

Clean-up (remove redundant declarations, concentrate checks).

(flxd)

2016-12-12 16:47:06 UTC MAIN commitmail json YAML

Followling an advice in a linux forum, don't update LCR1/LCR2.
With this change this CH340 usb/serial based device:
https://www.olimex.com/Products/Breadboarding/BB-CH340T/open-source-hardware
(the chip is written H340T)
works as expected. As I'm not sure if this is needed for older device,
make this change for sc_version 0x30 or newer only.
While there, match USB_PRODUCT_WINCHIPHEAD2_CH341_2 too.

(bouyer)

2016-12-12 16:43:14 UTC MAIN commitmail json YAML

Regen for USB_PRODUCT_WINCHIPHEAD2_CH341_2

(bouyer)

2016-12-12 16:41:08 UTC MAIN commitmail json YAML

Rename "CH341 serial/parallel" to "CH341 USB-Serial Bridge", and
add a second device id for this chip.
From FreeBSD.

(bouyer)

2016-12-12 16:30:03 UTC MAIN commitmail json YAML

2016-12-12 15:58:45 UTC MAIN commitmail json YAML

2016-12-12 13:31:13 UTC MAIN commitmail json YAML

2016-12-12 13:13:12 UTC MAIN commitmail json YAML

Add missing files in distribution file lists to fix evbarm64-aarch64 build

Add ./usr/libdata/ldscripts/aarch64elf{,b}.xd{,c,w}

Tested with MKLLVM=yes and HAVE_LLVM=yes.

(kamil)

2016-12-12 11:49:27 UTC MAIN commitmail json YAML

Update audio man page with regard to audio changes.
OK wiz@

(nat)

2016-12-12 10:46:39 UTC MAIN commitmail json YAML

Mark bell_thread as static and dead.

(joerg)

2016-12-12 10:34:55 UTC MAIN commitmail json YAML

sig_atomic_t does not include volatile. Prevent static analysis from
understanding that the test function is dead.

(joerg)

2016-12-12 10:13:00 UTC MAIN commitmail json YAML

Improve wording. Fix typo. Remove superfluous Pp.

(wiz)

2016-12-12 10:10:06 UTC MAIN commitmail json YAML

New sentence, new line.
Sort SEE ALSO.

(wiz)

2016-12-12 10:09:52 UTC MAIN commitmail json YAML

2016-12-12 10:07:48 UTC MAIN commitmail json YAML

2016-12-12 09:56:59 UTC MAIN commitmail json YAML

fix accidentally if_pppoe atf failure depends on cpu workload.

advised by s-yamaguchi@IIJ, thanks.

(knakahara)

2016-12-12 04:20:31 UTC MAIN commitmail json YAML

fix placement of lint comment

(christos)

2016-12-12 03:59:24 UTC MAIN commitmail json YAML

Bump for MP-safe routing table

Welcome to 7.99.46

(ozaki-r)

2016-12-12 03:55:58 UTC MAIN commitmail json YAML

Make the routing table and rtcaches MP-safe

See the following descriptions for details.

Proposed on tech-kern and tech-net

Overview
--------

We protect the routing table with a rwock and protect
rtcaches with another rwlock. Each rtentry is protected
from being freed or updated via reference counting and psref.

Global rwlocks
--------------

There are two rwlocks; one for the routing table (rt_lock) and
the other for rtcaches (rtcache_lock). rtcache_lock covers
all existing rtcaches; there may have room for optimizations
(future work).

The locking order is rtcache_lock first and rt_lock is next.

rtentry references
------------------

References to an rtentry is managed with reference counting
and psref. Either of the two mechanisms is used depending on
where a rtentry is obtained. Reference counting is used when
we obtain a rtentry from the routing table directly via
rtalloc1 and rtrequest{,1} while psref is used when we obtain
a rtentry from a rtcache via rtcache_* APIs. In both cases,
a caller can sleep/block with holding an obtained rtentry.

The reasons why we use two different mechanisms are (i) only
using reference counting hurts the performance due to atomic
instructions (rtcache case) (ii) ease of implementation;
applying psref to APIs such rtaloc1 and rtrequest{,1} requires
additional works (adding a local variable and an argument).

We will finally migrate to use only psref but we can do it
when we have a lockless routing table alternative.

Reference counting for rtentry
------------------------------

rt_refcnt now doesn't count permanent references such as for
rt_timers and rtcaches, instead it is used only for temporal
references when obtaining a rtentry via rtalloc1 and rtrequest{,1}.
We can do so because destroying a rtentry always involves
removing references of rt_timers and rtcaches to the rtentry
and we don't need to track such references. This also makes
it easy to wait for readers to release references on deleting
or updating a rtentry, i.e., we can simply wait until the
reference counter is 0 or 1. (If there are permanent references
the counter can be arbitrary.)

rt_ref increments a reference counter of a rtentry and rt_unref
decrements it. rt_ref is called inside APIs (rtalloc1 and
rtrequest{,1} so users don't need to care about it while
users must call rt_unref to an obtained rtentry after using it.

rtfree is removed and we use rt_unref and rt_free instead.
rt_unref now just decrements the counter of a given rtentry
and rt_free just tries to destroy a given rtentry.

See the next section for destructions of rtentries by rt_free.

Destructions of rtentries
-------------------------

We destroy a rtentry only when we call rtrequst{,1}(RTM_DELETE);
the original implementation can destroy in any rtfree where it's
the last reference. If we use reference counting or psref, it's
easy to understand if the place that a rtentry is destroyed is
fixed.

rt_free waits for references to a given rtentry to be released
before actually destroying the rtentry. rt_free uses a condition
variable (cv_wait) (and psref_target_destroy for psref) to wait.

Unfortunately rtrequst{,1}(RTM_DELETE) can be called in softint
that we cannot use cv_wait. In that case, we have to defer the
destruction to a workqueue.

rtentry#rt_cv, rtentry#rt_psref and global variables
(see rt_free_global) are added to conduct the procedure.

Updates of rtentries
--------------------

One difficulty to use refcnt/psref instead of rwlock for rtentry
is updates of rtentries. We need an additional mechanism to
prevent readers from seeing inconsistency of a rtentry being
updated.

We introduce RTF_UPDATING flag to rtentries that are updating.
While the flag is set to a rtentry, users cannot acquire the
rtentry. By doing so, we avoid users to see inconsistent
rtentries.

There are two options when a user tries to acquire a rtentry
with the RTF_UPDATING flag; if a user runs in softint context
the user fails to acquire a rtentry (NULL is returned).
Otherwise a user waits until the update completes by waiting
on cv.

The procedure of a updater is simpler to destruction of
a rtentry. Wait on cv (and psref) and after all readers left,
proceed with the update.

Global variables (see rt_update_global) are added to conduct
the procedure.

Currently we apply the mechanism to only RTM_CHANGE in
rtsock.c. We would have to apply other codes. See
"Known issues" section.

psref for rtentry
-----------------

When we obtain a rtentry from a rtcache via rtcache_* APIs,
psref is used to reference to the rtentry.

rtcache_ref acquires a reference to a rtentry with psref
and rtcache_unref releases the reference after using it.
rtcache_ref is called inside rtcache_* APIs and users don't
need to take care of it while users must call rtcache_unref
to release the reference.

struct psref and int bound that is needed for psref is
embedded into struct route. By doing so we don't need to
add local variables and additional argument to APIs.

However this adds another constraint to psref other than
reference counting one's; holding a reference of an rtentry
via a rtcache is allowed by just one caller at the same time.
So we must not acquire a rtentry via a rtcache twice and
avoid a recursive use of a rtcache. And also a rtcache must
be arranged to be used by a LWP/softint at the same time
somehow. For IP forwarding case, we have per-CPU rtcaches
used in softint so the constraint is guaranteed. For a h
rtcache of a PCB case, the constraint is guaranteed by the
solock of each PCB. Any other cases (pf, ipf, stf and ipsec)
are currently guaranteed by only the existence of the global
locks (softnet_lock and/or KERNEL_LOCK). If we've found the
cases that we cannot guarantee the constraint, we would need
to introduce other rtcache APIs that use simple reference
counting.

psref of rtcache is created with IPL_SOFTNET and so rtcache
shouldn't used at an IPL higher than IPL_SOFTNET.

Note that rtcache_free is used to invalidate a given rtcache.
We don't need another care by my change; just keep them as
they are.

Performance impact
------------------

When NET_MPSAFE is disabled the performance drop is 3% while
when it's enabled the drop is increased to 11%. The difference
comes from that currently we don't take any global locks and
don't use psref if NET_MPSAFE is disabled.

We can optimize the performance of the case of NET_MPSAFE
on by reducing lookups of rtcache that uses psref;
currently we do two lookups but we should be able to trim
one of two. This is a future work.

Known issues
------------

There are two known issues to be solved; one is that
a caller of rtrequest(RTM_ADD) may change rtentry (see rtinit).
We need to prevent new references during the update. Or
we may be able to remove the code (perhaps, need more
investigations).

The other is rtredirect that updates a rtentry. We need
to apply our update mechanism, however it's not easy because
rtredirect is called in softint and we cannot apply our
mechanism simply. One solution is to defer rtredirect to
a workqueue but it requires some code restructuring.

(ozaki-r)

2016-12-12 03:14:02 UTC MAIN commitmail json YAML

Introduce macros for the prefix list

No functional change.

(ozaki-r)

2016-12-12 03:13:14 UTC MAIN commitmail json YAML

Introduce macros for the default router list

No functional change.

(ozaki-r)

2016-12-12 02:51:24 UTC MAIN commitmail json YAML

Make kernels w/o ACPICA compile.  (Same "fix" as Martin made to i386...)
cvs: ----------------------------------------------------------------------

(pgoyette)

2016-12-11 22:38:50 UTC MAIN commitmail json YAML

Make kernels w/o ACPICA compile.

(martin)

2016-12-11 21:25:23 UTC MAIN commitmail json YAML

Improve debug information.

(blymn)

2016-12-11 20:40:41 UTC MAIN commitmail json YAML

there was a bug fix in july.  call this 20160720.

(mrg)

2016-12-11 16:25:54 UTC MAIN commitmail json YAML

catch up with sd changes.

(christos)

2016-12-11 15:47:06 UTC MAIN commitmail json YAML

PR/51706: Amir Plivatsky: Fix memory leak

(christos)

2016-12-11 15:43:48 UTC MAIN commitmail json YAML

Add libprop for static linking

(christos)

2016-12-11 15:01:37 UTC MAIN commitmail json YAML

Fix some bugs introduced by the nick-nhusb merge and related to the
Tx Interrupt pipe transfer handling

While I'm here make some other changes moving towards MPification

PR/51151: athn panic on attach
PR/51458: usb athn panic

(skrll)

2016-12-11 12:51:09 UTC MAIN commitmail json YAML

Note scsictl(8) getrealloc and setrealloc commands.

(flxd)

2016-12-11 10:28:00 UTC MAIN commitmail json YAML

Improve a panic message with a bit details

(martin)

2016-12-11 08:40:10 UTC MAIN commitmail json YAML

2016-12-11 08:31:53 UTC MAIN commitmail json YAML

Kenter local_apic_va to a fake physical page, because our x86
implementation expects this va to be valid even if no lapic is present;
which probably is a bug in itself, but let's just reproduce the old
behavior and rehide that bug.

(maxv)

2016-12-11 08:30:39 UTC MAIN commitmail json YAML

2016-12-11 08:09:29 UTC MAIN commitmail json YAML

Update test output to reflect audio changes.

(nat)

2016-12-11 08:06:39 UTC MAIN commitmail json YAML

2016-12-11 08:04:17 UTC MAIN commitmail json YAML

Fix athn async stuff - the wakeup call should have been converted to
cv_broadcast.

While here remove unnecessary splusb usage.

(skrll)

2016-12-11 07:38:50 UTC MAIN commitmail json YAML

2016-12-11 07:37:53 UTC MAIN commitmail json YAML

Move default interface things from nd6_rtr.c to nd6.c

(ozaki-r)

2016-12-11 07:36:55 UTC MAIN commitmail json YAML

2016-12-11 07:36:30 UTC MAIN commitmail json YAML

PR 50613: Onno van der Linden: unpausing audio(4) causes already written
          data to be dropped.
Applied patch prepared by Onno.

(nat)

2016-12-11 07:36:20 UTC MAIN commitmail json YAML

Remove function declarations that have no actual definition

(ozaki-r)

2016-12-11 07:35:42 UTC MAIN commitmail json YAML

Correct sanity checks of icmp6_redirect_output

- rt->rt_ifp is always non-NULL
- Checking RTF_UP here is just racy and meaningless
- The arguments should be non-NULL (at least for now)

(ozaki-r)

2016-12-11 07:34:14 UTC MAIN commitmail json YAML

Remove unnecessary forward struct declarations

(ozaki-r)

2016-12-11 06:37:49 UTC MAIN commitmail json YAML

complete the transition to binutils-2.27

(christos)

2016-12-11 06:30:11 UTC MAIN commitmail json YAML

one more vaudiospeaker remove

(christos)

2016-12-11 05:27:00 UTC MAIN commitmail json YAML

Ensure variables are initialized.  Fixes error due to -Wmaybe-unitialized.

(nat)

2016-12-11 03:40:57 UTC MAIN commitmail json YAML

aarch64 builds work with binutils 2.27.  switch it.  hppa builds,
just needs a run time test if someone wants.  then we're done!

(mrg)

2016-12-11 03:38:09 UTC MAIN commitmail json YAML

Skip t_exect test because it makes test machines to hang

exect(NULL,NULL,NULL) generates 15859 times SIGTRAP on amd64
Currently exect(3) is misdesigned -- see PR port-amd64/51700 and it
needs to be redone from scratch.

This test affects amd64 releng machines causing tests to hang or
fail. As there is little point to test interface that is still not,
designed and implemented and implemented and is breaking tests - skip it
unconditionally for all ports.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-11 02:38:54 UTC MAIN commitmail json YAML

switch mips (32 bit) and arm to binutils 2.27.  hppa and aarch64 left.

(mrg)

2016-12-11 02:13:35 UTC MAIN commitmail json YAML

2016-12-11 01:53:44 UTC MAIN commitmail json YAML

src/external/gpl3/binutils/lib/libbfd/arch/aarch64/bfd.h@1.3 / diff / nxr@1.3
src/external/gpl3/binutils/lib/libbfd/arch/aarch64/bfdver.h@1.4 / diff / nxr@1.4
src/external/gpl3/binutils/lib/libbfd/arch/aarch64/config.h@1.4 / diff / nxr@1.4
src/external/gpl3/binutils/lib/libbfd/arch/mipseb/bfd.h@1.9 / diff / nxr@1.9
src/external/gpl3/binutils/lib/libbfd/arch/mipseb/bfdver.h@1.12 / diff / nxr@1.12
src/external/gpl3/binutils/lib/libbfd/arch/mipseb/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/binutils/lib/libbfd/arch/mipseb/defs.mk@1.6 / diff / nxr@1.6
src/external/gpl3/binutils/lib/libbfd/arch/mipsel/bfd.h@1.9 / diff / nxr@1.9
src/external/gpl3/binutils/lib/libbfd/arch/mipsel/bfdver.h@1.12 / diff / nxr@1.12
src/external/gpl3/binutils/lib/libbfd/arch/mipsel/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/binutils/lib/libbfd/arch/mipsel/defs.mk@1.6 / diff / nxr@1.6
src/external/gpl3/binutils/lib/libopcodes/arch/aarch64/config.h@1.4 / diff / nxr@1.4
src/external/gpl3/binutils/lib/libopcodes/arch/mipseb/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/binutils/lib/libopcodes/arch/mipsel/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/binutils/usr.bin/common/arch/aarch64/config.h@1.4 / diff / nxr@1.4
src/external/gpl3/binutils/usr.bin/common/arch/aarch64/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/binutils/usr.bin/common/arch/mipseb/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/binutils/usr.bin/common/arch/mipseb/defs.mk@1.10 / diff / nxr@1.10
src/external/gpl3/binutils/usr.bin/common/arch/mipsel/config.h@1.8 / diff / nxr@1.8
src/external/gpl3/binutils/usr.bin/common/arch/mipsel/defs.mk@1.10 / diff / nxr@1.10
      :
(more 9 files)
regen binutils mknative files for binutils 2.27 on mipsel, mipseb and aarch64.

(mrg)

2016-12-11 01:44:32 UTC MAIN commitmail json YAML

add a bunch of stuff i've done since netbsd-7.  fix a few entries.

(mrg)

2016-12-11 00:56:34 UTC MAIN commitmail json YAML

2016-12-11 00:34:39 UTC MAIN commitmail json YAML

Add aes-xts to cgdconfig(8).

(alnsn)

2016-12-11 00:28:45 UTC MAIN commitmail json YAML

2016-12-11 00:25:32 UTC MAIN commitmail json YAML

Added aes-xts to cgd(4).

(alnsn)

2016-12-11 00:24:48 UTC MAIN commitmail json YAML

Document AES-XTS in cgd(4).

(alnsn)

2016-12-11 00:23:44 UTC MAIN commitmail json YAML

AES XTS unit tests should now pass.

(alnsn)

2016-12-11 00:23:04 UTC MAIN commitmail json YAML

Welcome to 7.99.45.

cgd(4): struct cryptfuncs gets a new cf_cipher_prep member.

(alnsn)

2016-12-11 00:20:49 UTC MAIN commitmail json YAML

2016-12-10 23:40:03 UTC MAIN commitmail json YAML

revert binutils check polarity.  now we know that only these are
not updated to binutils 2.27: aarch64*, *arm*, hppa, mipse[lb]

(mrg)

2016-12-10 23:21:02 UTC MAIN commitmail json YAML

note that crash/sparc is unstable

(mrg)

2016-12-10 23:19:26 UTC MAIN commitmail json YAML

switch ppc* to binutils 2.27.

(mrg)

2016-12-10 23:12:40 UTC MAIN commitmail json YAML

Back in 1993 ${MACHINE} was a unique way to define objdirs for
every platform. Thus setting OBJMACHINE, allowed one to keep
in-tree objdirs with multiple builds. With the advent of evb*, this
has become impossible until now. Introduce OBJMACHINE_ARCH that
adds ${MACHINE_ARCH} to the objdir so that we have unique objdirs
per build again. Until we restructure things to that this is not
necessary, it is the simplest fix.

(christos)

2016-12-10 23:03:27 UTC MAIN commitmail json YAML

raidframe: use existing routines to print an error and panic.

fixes the i386 ALL build with clang which complained about the
format string not being a string literal, and lets us get rid of
rf_panicbuf.

note: kern_assert is not KASSERT. it should panic as long as the
string is not NULL.

No functional change intended.

(maya)

2016-12-10 23:03:26 UTC MAIN commitmail json YAML

2016-12-10 22:57:41 UTC MAIN commitmail json YAML

2016-12-10 22:37:12 UTC MAIN commitmail json YAML

remove VAUDIOSPEAKER, needs to be done differently.

(christos)

2016-12-10 22:36:28 UTC MAIN commitmail json YAML

remove VAUDIOSPEAKER, needs to be done differently.

(christos)

2016-12-10 22:09:50 UTC MAIN commitmail json YAML

2016-12-10 22:09:18 UTC MAIN commitmail json YAML

Fix the direction; ipf/pf seem to be wrong...

(christos)

2016-12-10 22:08:13 UTC MAIN commitmail json YAML

2016-12-10 21:33:53 UTC MAIN commitmail json YAML

2016-12-10 21:19:15 UTC MAIN commitmail json YAML

Add exect stub so "build.sh distribution" will compile

(scole)

2016-12-10 21:17:12 UTC MAIN commitmail json YAML

2016-12-10 21:04:12 UTC MAIN commitmail json YAML

2016-12-10 20:02:07 UTC MAIN commitmail json YAML

Remove outdated note in the PT_DUMPCORE call of the ptrace(2) man-page

Currently the PT_DUMPCORE call requires process to be stopped, therefore it
no longer need to warn about stoped tracee to generate consistent data.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-10 19:28:19 UTC MAIN commitmail json YAML

glint_drv.so.1.debug is not obsolete with XOrg server 1.18 any more

(martin)

2016-12-10 19:07:22 UTC MAIN commitmail json YAML

update for v18 conn list; more error checks

(christos)

2016-12-10 19:05:46 UTC MAIN commitmail json YAML

Welcome to version 18:
- Connection state keys are not stored and loaded using the logical key
  contents.
- connection finder key is stored in a map that contains the key and the
  direction.

(christos)

2016-12-10 19:02:18 UTC MAIN commitmail json YAML

Add missing extcalls array. This is currently a no-op, but this is what
userland does too. Allows npfctl save; npfctl load to work again.

(christos)

2016-12-10 17:41:44 UTC MAIN commitmail json YAML

Be explicit about precedence of operators
Appeases clang when building an ALL kernel

(maya)

2016-12-10 17:31:33 UTC MAIN commitmail json YAML

Avoid crashes in calcwater when audioattach did not fully complete

(martin)

2016-12-10 17:01:09 UTC MAIN commitmail json YAML

fix AUDIO_DEBUG build (it builds, it boots, it plays music)

typos (vhan to vchan), sc->sc_mode[n] to vc->sc_mode, etc.

(maya)

2016-12-10 16:08:04 UTC MAIN commitmail json YAML

remove redundant null check
allocating with KM_SLEEP can't fail

(maya)

2016-12-10 14:13:29 UTC MAIN commitmail json YAML

Fix typo; ".Lx" should be ".Nx"

(rin)

2016-12-10 14:06:44 UTC MAIN commitmail json YAML

Fix comment. We do not use the a.out format anymore...

(rin)

2016-12-10 14:03:34 UTC MAIN commitmail json YAML

Clear STRIPFLAG after include bsd.own.mk; it can be modified by mk.conf via
bsd.own.mk.

(rin)

2016-12-10 13:55:56 UTC MAIN commitmail json YAML

s/LIButil/LIBUTIL/ in DPADD

(rin)