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

2024-05-10 11:18:12 UTC Now

2017-03-03 16:48:55 UTC MAIN commitmail json YAML

fix r1.492 bug, sorry

(knakahara)

2017-03-03 12:23:26 UTC MAIN commitmail json YAML

Since it is unlikely that any of this really wants to test whether
[v]fork() produces pid==1 (init) (if it were useful to test that, an
entirely different test would be appropriate) change the tests so
they check for [v]fork() failure, as probably intended, instead.

(kre)

2017-03-03 11:36:20 UTC MAIN commitmail json YAML

Improve wording and formatting.
New sentence, new line.
Fix typo.

(wiz)

2017-03-03 10:44:25 UTC MAIN commitmail json YAML

add WM_RX_PROCESS_LIMIT_DEFAULT and WM_RX_INTR_PROCESS_LIMIT_DEFAULT description

pointed out by pgoyette@n.o, thanks.

(knakahara)

2017-03-03 09:29:57 UTC MAIN commitmail json YAML

efiboot: fix efivar command.

(nonaka)

2017-03-03 07:57:49 UTC MAIN commitmail json YAML

implement AIM(Adaptive Interrupt Moderation), but not enable yet.

Currently, it causes performance degration if enabled.
More ITR calcuration tuning is required...

(knakahara)

2017-03-03 07:38:53 UTC MAIN commitmail json YAML

make kernel config option WM_RX_PROCESS_LIMIT_DEFAULT and WM_RX_INTR_PROCESS_LIMIT_DEFAULT

e.g. if
    - WM_RX_PROCESS_LIMIT_DEFAULT is set 0
    - WM_RX_INTR_PROCESS_LIMIT_DEFAULT is set -1 (means almost infinite)
that means wm(4) does not use polling mode.

(knakahara)

2017-03-03 07:34:04 UTC MAIN commitmail json YAML

Provide a more robust regexp for time formats of 1day-ish

(ozaki-r)

2017-03-03 07:32:36 UTC MAIN commitmail json YAML

implement polling mode for multiqueue. It can suppress performance degration at high load.

e.g. I354 IP forwarding throughput performance
    + before
      - 133Mbps forwarding performance at 200Mbps input load
      - 41Mbps forwarding performance at 800Mbps input load
    + after
      - 150Mbps forwarding performance at 200Mbps input load
      - 150Mbps forwarding performance at 800Mbps input load

(knakahara)

2017-03-03 07:13:06 UTC MAIN commitmail json YAML

2017-03-03 07:11:49 UTC MAIN commitmail json YAML

TODO.ptrace: Remove entry about addition of TRAP_SCE and TRAP_SCX

These siginfo(2) codes have been committed.

(kamil)

2017-03-03 07:03:11 UTC MAIN commitmail json YAML

Add new entry in TODO.ptrace about QPassSignals

Added:
  support QPassSignals (PT_SET_SIGPASS/PT_GET_SIGPASS) in the kernel, a way to
  stop routing a set of signals to tracer as they are uninteresting - GDB and
  LLDB expect this feature

(kamil)

2017-03-03 06:27:20 UTC MAIN commitmail json YAML

2017-03-03 04:37:05 UTC MAIN commitmail json YAML

Set PCI_INTR_MPSAFE, SOFTINT_MPSAFE, CALLOUT_MPSAFE and IFEF_START_MPSAFE
if NET_MPSAFE is defined.

(msaitoh)

2017-03-03 03:33:44 UTC MAIN commitmail json YAML

IFEF_START_MPSAFE flag should be set only if WM_MPSAFE defined. some refactor.

pointed out and suggested by msaitoh@n.o, thanks.

(knakahara)

2017-03-02 20:11:19 UTC MAIN commitmail json YAML

avoid using %s in UVMHIST.

(mrg)

2017-03-02 15:43:14 UTC MAIN commitmail json YAML

remove debugging abort that makes tests fail.

(christos)

2017-03-02 14:25:41 UTC MAIN commitmail json YAML

Add new entry in TODO.ptrace about PT_STEP with a signal

Added:
  GDB Remote Protocol expects a case with a step with a signal to be sent,
  this is currently unsupported on NetBSD

(kamil)

2017-03-02 10:41:27 UTC MAIN commitmail json YAML

Add an operation to test a mount for fstrans support and use it for
_fstrans_start(), fstrans_done(), fstrans_is_owner(), vfs_suspend()
and vfs_resume().

Test for fstrans support before ASSERT_SLEEPABLE().

(hannken)

2017-03-02 09:48:20 UTC MAIN commitmail json YAML

2017-03-02 09:16:46 UTC MAIN commitmail json YAML

Fix racy in6m_sol

Relook up the entry instead of reusing it, which makes locking simple.

(ozaki-r)

2017-03-02 08:03:23 UTC netbsd-7 commitmail json YAML

2017-03-02 07:46:02 UTC netbsd-7 commitmail json YAML

src/distrib/sets/lists/base/mi@1.1087.2.10 / diff / nxr@1.1087.2.10
src/doc/3RDPARTY@1.1145.2.37 / diff / nxr@1.1145.2.37
src/external/public-domain/tz/dist/Makefile@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7
src/external/public-domain/tz/dist/NEWS@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7
src/external/public-domain/tz/dist/TZDATA_VERSION@1.6.4.3 / diff / nxr@1.6.4.3
src/external/public-domain/tz/dist/Theory@1.1.1.1.2.8 / diff / nxr@1.1.1.1.2.8
src/external/public-domain/tz/dist/africa@1.1.1.1.4.5 / diff / nxr@1.1.1.1.4.5
src/external/public-domain/tz/dist/antarctica@1.1.1.1.4.5 / diff / nxr@1.1.1.1.4.5
src/external/public-domain/tz/dist/asia@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7
src/external/public-domain/tz/dist/australasia@1.1.1.1.4.6 / diff / nxr@1.1.1.1.4.6
src/external/public-domain/tz/dist/backward@1.1.1.1.4.6 / diff / nxr@1.1.1.1.4.6
src/external/public-domain/tz/dist/backzone@1.1.1.1.2.8 / diff / nxr@1.1.1.1.2.8
src/external/public-domain/tz/dist/europe@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7
src/external/public-domain/tz/dist/leap-seconds.list@1.1.1.1.4.5 / diff / nxr@1.1.1.1.4.5
src/external/public-domain/tz/dist/leapseconds@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7
src/external/public-domain/tz/dist/northamerica@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7
src/external/public-domain/tz/dist/southamerica@1.1.1.1.4.6 / diff / nxr@1.1.1.1.4.6
src/external/public-domain/tz/dist/version@1.1.1.3.4.3 / diff / nxr@1.1.1.3.4.3
src/external/public-domain/tz/dist/zone.tab@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7
src/external/public-domain/tz/dist/zone1970.tab@1.1.1.1.4.7 / diff / nxr@1.1.1.1.4.7

Pull up following revision(s) (requested by kre in ticket #1374):
doc/3RDPARTY: 1.1420 via patch
distrib/sets/lists/base/mi: 1.1155
external/public-domain/tz/dist/Makefile: up to 1.1.1.17
external/public-domain/tz/dist/NEWS: up to 1.1.1.17
external/public-domain/tz/dist/TZDATA_VERSION: up to 1.7
external/public-domain/tz/dist/Theory: up to 1.1.1.10
external/public-domain/tz/dist/africa: up to 1.1.1.10
external/public-domain/tz/dist/antarctica: up to 1.1.1.8
external/public-domain/tz/dist/asia: up to 1.1.1.16
external/public-domain/tz/dist/australasia: up to 1.1.1.11
external/public-domain/tz/dist/backward: up to 1.1.1.7
external/public-domain/tz/dist/backzone: up to 1.1.1.11
external/public-domain/tz/dist/europe: up to 1.1.1.17
external/public-domain/tz/dist/leap-seconds.list: up to 1.1.1.7
external/public-domain/tz/dist/leapseconds: up to 1.1.1.8
external/public-domain/tz/dist/northamerica: up to 1.1.1.15
external/public-domain/tz/dist/southamerica: up to 1.1.1.11
external/public-domain/tz/dist/version: up to 1.1.1.4
external/public-domain/tz/dist/zone.tab: up to 1.1.1.11
external/public-domain/tz/dist/zone1970.tab: up to 1.1.1.13
Update to tzdata2017a.

(snj)

2017-03-02 07:44:40 UTC netbsd-7-0 commitmail json YAML

2017-03-02 07:44:13 UTC netbsd-7-0 commitmail json YAML

src/distrib/sets/lists/base/mi@1.1087.2.7.2.3 / diff / nxr@1.1087.2.7.2.3
src/doc/3RDPARTY@1.1145.2.18.2.16 / diff / nxr@1.1145.2.18.2.16
src/external/public-domain/tz/dist/Makefile@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3
src/external/public-domain/tz/dist/NEWS@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3
src/external/public-domain/tz/dist/TZDATA_VERSION@1.6.2.3 / diff / nxr@1.6.2.3
src/external/public-domain/tz/dist/Theory@1.1.1.1.2.5.2.3 / diff / nxr@1.1.1.1.2.5.2.3
src/external/public-domain/tz/dist/africa@1.1.1.1.4.3.2.2 / diff / nxr@1.1.1.1.4.3.2.2
src/external/public-domain/tz/dist/antarctica@1.1.1.1.4.3.2.2 / diff / nxr@1.1.1.1.4.3.2.2
src/external/public-domain/tz/dist/asia@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3
src/external/public-domain/tz/dist/australasia@1.1.1.1.4.3.2.3 / diff / nxr@1.1.1.1.4.3.2.3
src/external/public-domain/tz/dist/backward@1.1.1.1.4.3.2.3 / diff / nxr@1.1.1.1.4.3.2.3
src/external/public-domain/tz/dist/backzone@1.1.1.1.2.5.2.3 / diff / nxr@1.1.1.1.2.5.2.3
src/external/public-domain/tz/dist/europe@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3
src/external/public-domain/tz/dist/leap-seconds.list@1.1.1.1.4.2.2.3 / diff / nxr@1.1.1.1.4.2.2.3
src/external/public-domain/tz/dist/leapseconds@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3
src/external/public-domain/tz/dist/northamerica@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3
src/external/public-domain/tz/dist/southamerica@1.1.1.1.4.4.2.2 / diff / nxr@1.1.1.1.4.4.2.2
src/external/public-domain/tz/dist/version@1.1.1.3.2.3 / diff / nxr@1.1.1.3.2.3
src/external/public-domain/tz/dist/zone.tab@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3
src/external/public-domain/tz/dist/zone1970.tab@1.1.1.1.4.4.2.3 / diff / nxr@1.1.1.1.4.4.2.3

Pull up following revision(s) (requested by kre in ticket #1374):
doc/3RDPARTY: 1.1420 via patch
distrib/sets/lists/base/mi: 1.1155
external/public-domain/tz/dist/Makefile: up to 1.1.1.17
external/public-domain/tz/dist/NEWS: up to 1.1.1.17
external/public-domain/tz/dist/TZDATA_VERSION: up to 1.7
external/public-domain/tz/dist/Theory: up to 1.1.1.10
external/public-domain/tz/dist/africa: up to 1.1.1.10
external/public-domain/tz/dist/antarctica: up to 1.1.1.8
external/public-domain/tz/dist/asia: up to 1.1.1.16
external/public-domain/tz/dist/australasia: up to 1.1.1.11
external/public-domain/tz/dist/backward: up to 1.1.1.7
external/public-domain/tz/dist/backzone: up to 1.1.1.11
external/public-domain/tz/dist/europe: up to 1.1.1.17
external/public-domain/tz/dist/leap-seconds.list: up to 1.1.1.7
external/public-domain/tz/dist/leapseconds: up to 1.1.1.8
external/public-domain/tz/dist/northamerica: up to 1.1.1.15
external/public-domain/tz/dist/southamerica: up to 1.1.1.11
external/public-domain/tz/dist/version: up to 1.1.1.4
external/public-domain/tz/dist/zone.tab: up to 1.1.1.11
external/public-domain/tz/dist/zone1970.tab: up to 1.1.1.13
Update to tzdata2017a.

(snj)

2017-03-02 05:35:01 UTC MAIN commitmail json YAML

Fix a problem that m_defrag() isn't called in if_transmit path. Now both
if_start and if_transmit do m_defrag() correctly. This change improves the
performance of TSO.

(msaitoh)

2017-03-02 05:31:04 UTC MAIN commitmail json YAML

Protect ia_allhosts by in_ifaddr_lock

(ozaki-r)

2017-03-02 05:29:31 UTC MAIN commitmail json YAML

Make sure imo_membership is protected by inp's lock (solock)

(ozaki-r)

2017-03-02 05:27:39 UTC MAIN commitmail json YAML

2017-03-02 05:26:24 UTC MAIN commitmail json YAML

Make sure im6o_memberships is protected by in6p's lock (solock)

(ozaki-r)

2017-03-02 05:24:23 UTC MAIN commitmail json YAML

Make usages of ifp MP-safe in some functions of IP multicast

(ozaki-r)

2017-03-02 04:33:56 UTC MAIN commitmail json YAML

Fix a bug that TSO doesn't work correctly. This bug was added in
ix_txrx.c rev. 1.17.

(msaitoh)

2017-03-02 04:31:52 UTC MAIN commitmail json YAML

2017-03-02 01:10:21 UTC MAIN commitmail json YAML

CardBus capitalization police

(snj)

2017-03-02 01:05:02 UTC MAIN commitmail json YAML

2017-03-02 00:43:40 UTC MAIN commitmail json YAML

2017-03-01 21:55:07 UTC MAIN commitmail json YAML

Make compile again without "options WAPBL".

From John D. Baker via current-users@, slightly modified by me.

(hannken)

2017-03-01 16:44:54 UTC MAIN commitmail json YAML

Set xscale_cache_clean_addr appropriately and re-arrange default KVA
layout to allow direct map for all boards.

OVERO/DUOVERO/PEPPER aren't tested.

PR/52010: Regression: Gumstix Verdex is hanging in enabling cache + KASSERT ram_size

(skrll)

2017-03-01 16:39:49 UTC MAIN commitmail json YAML

loadfile: in the mmap case ensures that the buffer ends with \n
do the same for the non-mmap case - avoids core dump.

(sjg)

2017-03-01 16:27:25 UTC MAIN commitmail json YAML

Fix compile... is this right?

(skrll)

2017-03-01 13:05:11 UTC MAIN commitmail json YAML

Improve appearance (a little) when read with nroff, rather than troff

(kre)

2017-03-01 11:54:53 UTC MAIN commitmail json YAML

Can't profile ras_atomic_cas_noupdate

(skrll)

2017-03-01 10:47:26 UTC MAIN commitmail json YAML

Protect genfs_getpages() against vnodes disappearing during a
forced mount update from read-write to read-only.

(hannken)

2017-03-01 10:46:43 UTC MAIN commitmail json YAML

Bring back read-write to read-only mount update for ffs.

(hannken)

2017-03-01 10:46:05 UTC MAIN commitmail json YAML

Add a diagnostic test for buffers written to a block device holding
a read-only mounted file system.

This will become a KASSERT in the near future.

(hannken)

2017-03-01 10:45:24 UTC MAIN commitmail json YAML

Suspend the mounted file system while updating.

(hannken)

2017-03-01 10:44:47 UTC MAIN commitmail json YAML

Change the protocol to update a mounted file system from read-write
to read-only and vice versa:

- Add an internal flag IMNT_WANTRDONLY.
- Set either IMNT_WANTRDWR or IMNT_WANTRDONLY if going from or to read-only.
- After successfull call to VFS_MOUNT() set or clear MNT_RDONLY.

Adapt tmpfs and rumpfs to the new protocol.  Other file systems will be
updated when they get the IMNT_CAN_RWTORO property.

Welcome to 7.99.64

(hannken)

2017-03-01 10:43:37 UTC MAIN commitmail json YAML

Must always lock the parent -> lock the child -> unlock the parent.

(hannken)

2017-03-01 10:42:46 UTC MAIN commitmail json YAML

2017-03-01 10:41:28 UTC MAIN commitmail json YAML

2017-03-01 10:32:09 UTC MAIN commitmail json YAML

Correct the date of PT_GETDBREGS and PT_SETDBREGS introduction

Feb 28th -> Feb 23rd

Sponsored by <The NetBSD Foundation>

(kamil)

2017-03-01 10:28:47 UTC MAIN commitmail json YAML

Document PT_GETDBREGS, PT_SETDBREGS, TRAP_SCE and TRAP_SCX in CHANGES

Added entries:
      ptrace(2): Add new API replacing PT_WATCHPOINT for Debug Registers:
              PT_GETDBREGS and PT_SETDBREGS
      siginfo(2): Add new si_code values for SIGTRAP: TRAP_SCE and TRAP_SCX

Sponsored by <The NetBSD Foundation>

(kamil)

2017-03-01 09:09:37 UTC MAIN commitmail json YAML

Make IPv6 multicast MP-safe partially

To complete the task, we need to make users of IPv6 multicast MP-safe, for
example socket/PCB and CARP.

(ozaki-r)

2017-03-01 08:56:33 UTC MAIN commitmail json YAML

refactor: functionalize ITR/EITR writing processing.

tested I354 and 82545(VMware e1000).

(knakahara)

2017-03-01 08:54:12 UTC MAIN commitmail json YAML

Provide in6_multi_group

Use it when checking if we belong to the group, instead of in6_lookup_multi.

No functional change.

(ozaki-r)

2017-03-01 08:31:06 UTC MAIN commitmail json YAML

divide ITR/EITR value from wm_softc to wm_queue as EITR register is bound to each H/W queue.

(knakahara)

2017-03-01 08:05:15 UTC MAIN commitmail json YAML

Mark syscall1 broken in t_ptrace_wait*

Mark this test broken with kern/52012 as the tracee does not stop on syscall
entry. Check for siginfo(2) in syscall1 and unveil two new bugs.

PR kern/52012: PT_SYSCALL does not stop on syscall entry
PR kern/52018: ptrace(2) PT_SYSCALL generates SIGTRAP without si_code
PR kern/52019: ptrace(2) PT_SYSCALL generate SIGTRAP to the parent but
              returns SIGSTOP in PT_GET_SIGINFO

Sponsored by <The NetBSD Foundation>

(kamil)

2017-03-01 03:02:48 UTC MAIN commitmail json YAML

tzdata2017a: new timezone America/Punta_Arenas

(kre)

2017-03-01 03:02:35 UTC MAIN commitmail json YAML

Restore/add some softnet_lock for nd6_rt_flush and defrouter_addreq

May help PR kern/52015

(ozaki-r)

2017-03-01 00:41:40 UTC MAIN commitmail json YAML

Note update to tzdata2017a

(kre)

2017-03-01 00:38:15 UTC MAIN commitmail json YAML

2017-03-01 00:19:23 UTC MAIN commitmail json YAML

Add new SIGTRAP types: TRAP_SCE and TRAP_SCX

New entries:
- TRAP_SCE        7      /* Process syscall entry trap          */
- TRAP_SCX        8      /* Process syscall exit trap            */

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-28 20:55:09 UTC MAIN commitmail json YAML

change DIOCCACHESYNC to not issue the FLUSH command at all when the controller
has no volatile write cache

(jdolecek)

2017-02-28 20:53:50 UTC MAIN commitmail json YAML

2017-02-28 17:35:29 UTC MAIN commitmail json YAML

in cpu_switchto() and the fast-softint context switch code,
put back the stwcx. instruction to clear the reservation.
we used to have this in the old cpu_switch() until it was
if-0'd in 2003 and removed completely in 2007.
this fixes hangs I've seen where a softint thread is
blocked waiting for a mutex that is not held.
this should also fix PR 44387.

(chs)

2017-02-28 15:00:32 UTC MAIN commitmail json YAML

2017-02-28 13:29:52 UTC MAIN commitmail json YAML

Mark resume1 and syscallemu1 tests broken in t_ptrace_wait*

resume1:
    PR kern/51995 ptrace(2) PT_RESUME is not reliable

syscallemu1:
    PR kern/52012 PT_SYSCALL does not stop on syscall entry

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-28 13:19:50 UTC MAIN commitmail json YAML

Add new test syscallemu1 in t_ptrace_wait*

syscallemu1:
    Verify that exit(2) can be intercepted with PT_SYSCALLEMU

This test is failing as PT_SYSCALL does not stop the process on syscall
entry. This renders PT_SYSCALL broken on NetBSD.

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-28 13:10:54 UTC MAIN commitmail json YAML

Sync TODO.ptrace with reality

Remove entries:
- add new ptrace(2) calls to lock (suspend) and unlock LWP within a process
- switch PT_WATCHPOINT* to PT_*ETDBREGS and document it, add ATF tests
- add ATF tests for PT_SYSCALL and PT_SYSCALLEMU

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-28 09:55:47 UTC MAIN commitmail json YAML

fix EITR setting.

    + 82574
      - add EITR setting, that is MSI-X mode interrupt interval
    + 82575
      - fix EITR value. 82575's EITR usage is the same as legacy (not NEWQUEUE)
        controllers
      - apply workaround which 82575's EITR does not have CNT_INGR bit
    + other NEWQUEUE controllers
      - fix interrupt interval field. NEWQUEUE (include 82575) controllers'
        interrupt interval field is 2:14
      - use CNT_INGR bit which avoid to overwrite counter

tested 82574, 82575 and I354.
ok by msaitoh@n.o.

(knakahara)

2017-02-28 09:23:23 UTC MAIN commitmail json YAML

Add tests that destroy an interface while the mcast program is running

(ozaki-r)

2017-02-28 04:47:41 UTC MAIN commitmail json YAML

remove unnecessary substitution. no functional changes.

(rin)

2017-02-28 04:46:02 UTC MAIN commitmail json YAML

determine the buffer size by roundup(9)

(rin)

2017-02-28 04:39:58 UTC MAIN commitmail json YAML

Remove PARANOID macro; we should always update secsize if necessary.

(rin)

2017-02-28 04:07:11 UTC MAIN commitmail json YAML

Separate the code of joining multicast groups

No functional change.

(ozaki-r)

2017-02-28 03:32:11 UTC MAIN commitmail json YAML

2017-02-28 02:56:49 UTC MAIN commitmail json YAML

Prevent ia6 from being freed in in6_ifinit

It fixes a panic (diagnostic assertion "entry->ple_prevp != NULL" failed)
on:
  ifconfig lo1 create
  ifconfig lo1 127.0.0.2
reported by ryo@

(ozaki-r)

2017-02-28 00:33:36 UTC MAIN commitmail json YAML

pi_bsize must be at least pi_secsize

Allows block device accesses to 4KiB logical sector disks to function on the
vast majority of ports with 2KiB BLKDEV_IOSIZE.

(jakllsch)

2017-02-27 23:52:06 UTC MAIN commitmail json YAML

2017-02-27 23:31:00 UTC MAIN commitmail json YAML

minor clean ups:
- mark a bunch of local things static
- export an explicit set of functions for audiobell, instead of hooking
  directly into the device callbacks, and avoid non-shared headers for
  the same prototypes
- s/audioprobe/audiomatch/
- use __func__

(mrg)

2017-02-27 21:48:34 UTC MAIN commitmail json YAML

remote extra pasted line

(jdolecek)

2017-02-27 21:33:47 UTC MAIN commitmail json YAML

Welcome to 7.99.63 - struct ld_softc changes

(jdolecek)

2017-02-27 21:32:33 UTC MAIN commitmail json YAML

refactor the ld(4) DIOCCACHESYNC hook into general ioctl hook, so that attachments
would be able to implement arbitrary other ioctls

(jdolecek)

2017-02-27 21:27:07 UTC MAIN commitmail json YAML

pass also DIOCGCACHE to underlying device, so that upper layers would be able
to get the device cache properties without knowing the topology; while here also
pass down DIOCGSTRATEGY for neater dkctl(8) output

(jdolecek)

2017-02-27 21:25:46 UTC MAIN commitmail json YAML

pass also DIOCGCACHE to underlying device, so that upper layers would be able
to get device cache properties without knowing the topology

(jdolecek)

2017-02-27 20:29:00 UTC MAIN commitmail json YAML

2017-02-27 20:25:26 UTC MAIN commitmail json YAML

tag the powerpc hackish_return_address() as __noinline.

(chs)

2017-02-27 20:22:32 UTC MAIN commitmail json YAML

check the lower bits of the stack pointer,
not the lower bits of the upper half of the stack pointer.

(chs)

2017-02-27 18:30:42 UTC MAIN commitmail json YAML

Flesh out missing functions.  Get IO space and interrupts working.

Successfully tested with RTL8029 ne(4)@pci(4).

(jakllsch)

2017-02-27 18:28:40 UTC MAIN commitmail json YAML

2017-02-27 16:16:23 UTC MAIN commitmail json YAML

fix printf formats (clang build)

(christos)

2017-02-27 15:59:36 UTC MAIN commitmail json YAML

If lp->d_secsize is updated, we need to reallocate the buffer.
Thanks mlelstv for his comment on port-amiga.

(rin)

2017-02-27 14:13:57 UTC MAIN commitmail json YAML

2017-02-27 12:38:00 UTC MAIN commitmail json YAML

Attach the usb2 bus - missed in merge from nick-nhusb

(skrll)

2017-02-27 10:31:02 UTC MAIN commitmail json YAML

Audio passes the atf test again.

(nat)

2017-02-27 09:27:27 UTC MAIN commitmail json YAML

fix Tx queue assignment when the number of H/W queues is less than ncpu.

(knakahara)

2017-02-27 08:26:53 UTC MAIN commitmail json YAML

Make CARP on IPv6 work

It passes ATF tests but no more, no less.

(ozaki-r)

2017-02-27 07:25:59 UTC MAIN commitmail json YAML

Test handovers on interface down as well as server halt

(ozaki-r)

2017-02-27 07:24:26 UTC MAIN commitmail json YAML

Add a test case for CARP on IPv6

The test case fails expectedly because the implementation of CARP on IPv6
is incomplete yet.

(ozaki-r)

2017-02-27 07:11:06 UTC MAIN commitmail json YAML

add glint driver debuginfo file.

(chs)

2017-02-27 06:57:45 UTC MAIN commitmail json YAML

in mips_emul_fp(), clear all pending FP exceptions rather than
just a particular one, otherwise the kernel can take another
FPU trap when it writes back the new FCSR value.
discovered via the fesetround() bug that wrote garbage to the FCSR.

(chs)

2017-02-27 06:57:16 UTC MAIN commitmail json YAML

fix fesetround() to set the FPSR to the desired value rather than
a pointer to a local variable.  wrap the asm in inline functions so that
the compiler can do type checking for us.

(chs)

2017-02-27 06:56:33 UTC MAIN commitmail json YAML

the second operand to cfc1/ctc1 isn't an FPU data register
so don't make it look like one.

(chs)

2017-02-27 06:56:03 UTC MAIN commitmail json YAML

the FP_* rounding constants need to be different from the new FE_* constants
to preserve the ABI, so shift them as needed when using them.

(chs)

2017-02-27 06:55:26 UTC MAIN commitmail json YAML

2017-02-27 06:54:43 UTC MAIN commitmail json YAML

update the FE0/FE1 MSR bits as needed when changing the exception mask.

(chs)

2017-02-27 06:54:00 UTC MAIN commitmail json YAML

have fpsetmask() change the FE0/FE1 MSR bits to precise mode if any
FP exceptions are enabled.  fix the kernel emulation of mfmsr and mtmsr
to use the correct opcodes for these instructions.  ignore PSL_FE
(the FP enable bit) in the MSR that a user program tries to set,
since it will naturally be set for FP-using processes but
we can't let the user process manage that bit.

(chs)

2017-02-27 06:51:46 UTC MAIN commitmail json YAML

the FP_* exception constants need to be different from the new FE_* constants
to preserve the ABI, so shift them as needed when using them.

(chs)

2017-02-27 06:50:16 UTC MAIN commitmail json YAML

fix the build of this kernel config by adding the omapscm driver.
turn on options for dtrace, turn off USB debugging.

(chs)

2017-02-27 06:49:02 UTC MAIN commitmail json YAML

the MI lrint() code assumes that rounding is done in at most double precision
but m68k (68881) uses extended precision by default, so put the FPU in
double-precision mode temporarily here.

(chs)

2017-02-27 06:47:58 UTC MAIN commitmail json YAML

the FP_* constants need to be different from the new FE_* constants
to preserve the ABI, so shift them as needed when using them.

(chs)

2017-02-27 06:47:30 UTC MAIN commitmail json YAML

use FPCR instead of FPSR to manipulate the exception mask.

(chs)

2017-02-27 06:47:00 UTC MAIN commitmail json YAML

2017-02-27 05:41:37 UTC MAIN commitmail json YAML

Fix the default value of rltime

According to rtadvd.conf(5), the default value of rltime is 1800 seconds.

PR bin/51994

(ozaki-r)

2017-02-27 03:37:16 UTC MAIN commitmail json YAML

2017-02-27 01:33:21 UTC MAIN commitmail json YAML

Add some NVIDIA devices.

(msaitoh)

2017-02-26 23:30:14 UTC MAIN commitmail json YAML

got 'bad mbi comp_stat 5' during DIOCGCACHE under Parallels, according
to linux driver it's possible status when controller thinks the CCB is invalid;
handle same as BHA_MBI_ABORT/BHA_MBI_UNKNOWN i.e. just clear the CCB anyway

(jdolecek)

2017-02-26 23:06:36 UTC MAIN commitmail json YAML

mark local functions static, similar to other ld(4) attachments

(jdolecek)

2017-02-26 22:18:58 UTC MAIN commitmail json YAML

2017-02-26 19:58:38 UTC MAIN commitmail json YAML

shorten hardware address wording

(mbalmer)

2017-02-26 16:22:55 UTC MAIN commitmail json YAML

Paranoia: parenthesize macro operands.

Should be no functional change, based on how these macros are used in
this file.

(riastradh)

2017-02-26 15:44:16 UTC MAIN commitmail json YAML

Clarify that kauth_cred_get doesn't modify with reference count.

(riastradh)

2017-02-26 12:41:50 UTC MAIN commitmail json YAML

2017-02-26 12:21:15 UTC MAIN commitmail json YAML

2017-02-26 12:06:40 UTC MAIN commitmail json YAML

add DKWEDGE_METHOD_RDB

(rin)

2017-02-26 12:03:15 UTC MAIN commitmail json YAML

2017-02-26 11:56:49 UTC MAIN commitmail json YAML

Add DKWEDGE_METHOD_RDB option, which is Amiga Rigid Disk Block (RDB)
partitioning detection method for dk(4).

(rin)

2017-02-26 11:51:38 UTC MAIN commitmail json YAML

s/u_char/unsigned char/

(rin)

2017-02-26 11:48:55 UTC MAIN commitmail json YAML

Include <sys/types.h> and replace u_long with uint32_t in preparation to be
used from LP64 environments.

(rin)

2017-02-26 10:58:47 UTC MAIN commitmail json YAML

Add a DEBUG assert for the problem noted in PR kern/51731
of some drivers not sufficiently locking.

The relevant drivers might not work, but if someone gets around to them
then the problem could be visible.

sd doesn't trip the assert.

(maya)

2017-02-26 10:49:25 UTC MAIN commitmail json YAML

catch up with i386 rename of gdt to gdtstore
fixes i386 ALL kernel build (pnpbios is disabled in GENERIC)

(maya)

2017-02-26 10:26:19 UTC MAIN commitmail json YAML

Apply fix from natuve clock_nanosleep(2) to not copyout remaining time
struct if TIMER_ABSTIME flag is set.

(njoly)

2017-02-26 09:49:40 UTC MAIN commitmail json YAML

Disks without a disk label happen in normal operation (both as USB
stick or with GPT), so do not cause an error message when opening
them.

(martin)

2017-02-26 09:33:27 UTC MAIN commitmail json YAML

2017-02-26 09:29:08 UTC MAIN commitmail json YAML

Use PEX numbers consistently.  No functional change.

(skrll)

2017-02-26 05:41:48 UTC MAIN commitmail json YAML

- Fix the base power's value in the power budget capability.
- Fix typo (s/Maximun/Maximum/)

(msaitoh)

2017-02-25 22:45:59 UTC MAIN commitmail json YAML

multiply the missing factor to offset when sorting partitions
(harmless for ``normal'' disks although)

(rin)

2017-02-25 22:40:18 UTC MAIN commitmail json YAML

2017-02-25 21:16:50 UTC MAIN commitmail json YAML

2017-02-25 18:18:29 UTC MAIN commitmail json YAML

2017-02-25 16:48:03 UTC MAIN commitmail json YAML

2017-02-25 16:45:24 UTC MAIN commitmail json YAML

2017-02-25 15:55:46 UTC MAIN commitmail json YAML

Change reference from malloc(3) to jemalloc(3) as the MALLOC_OPTIONS variable
is actually described in jemalloc(3).

(abhinav)

2017-02-25 15:19:00 UTC MAIN commitmail json YAML

pacify disklabel validation message

(mlelstv)

2017-02-25 13:34:21 UTC MAIN commitmail json YAML

Garbage collect unneeded inclusion of <x86/dbregs.h> in <machine/proc.h>

This is left over after introduction of Debug Register accessors.
This interface replaced older watchpoint API.

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-25 12:03:57 UTC MAIN commitmail json YAML

2017-02-25 07:55:06 UTC MAIN commitmail json YAML

Add pci attachment for mvsata

(skrll)

2017-02-25 01:13:50 UTC MAIN commitmail json YAML

2017-02-25 01:11:55 UTC MAIN commitmail json YAML

genfb(4): Enabling/Disabling shadowfb can be controlled via prop.

(nonaka)

2017-02-24 17:19:14 UTC MAIN commitmail json YAML

2017-02-24 17:07:13 UTC MAIN commitmail json YAML

Typo in a model string

(skrll)

2017-02-24 16:53:24 UTC MAIN commitmail json YAML

Remove use of sc_intr_lock from audio_read.  Fixes LOCKDEBUG panics.

(nat)

2017-02-24 13:42:19 UTC MAIN commitmail json YAML

Only do DaD if the interface actually has the address.

(roy)

2017-02-24 13:04:23 UTC MAIN commitmail json YAML

Remove RSS's note in BUGS section because it's supported now.

(msaitoh)

2017-02-24 13:03:25 UTC MAIN commitmail json YAML

2017-02-24 12:24:25 UTC MAIN commitmail json YAML

efiboot: Don't access old stack after copying a kernel.

It's possible that the old stack is overwritten by the kernel.

(nonaka)

2017-02-24 10:09:21 UTC MAIN commitmail json YAML

apply 82574 RFCTL workaround the same as FreeBSD and linux.

In fact, this workaround reduces interrupt count.

(knakahara)

2017-02-24 10:07:33 UTC MAIN commitmail json YAML

82574 should follow MSI-X mode IMS manner.

Howerver some legacy interrupts occur as MSI-X other interrupt yet...

(knakahara)

2017-02-24 09:49:49 UTC MAIN commitmail json YAML

Simplify locking.  Hold intr lock only when dealing with sc_pr (mix ring)
or virtual channel 0 (hardware).

(nat)

2017-02-24 07:52:39 UTC MAIN commitmail json YAML

Fix a locking botch in previous

(skrll)

2017-02-24 06:39:54 UTC MAIN commitmail json YAML

Use macro. KNF. No functional change.

(msaitoh)

2017-02-24 06:17:48 UTC MAIN commitmail json YAML

Add new test syscall1 in t_ptrace_wait*

syscall1:
    Verify that getpid(2) can be traced with PT_SYSCALL

Enforce usage of syscall(2), it should prevent failing on any possible
optimizations in future as a libc can ship this information not through
syscall (shared struct with kernel or similar).

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-24 05:38:30 UTC MAIN commitmail json YAML

2017-02-24 05:04:46 UTC MAIN commitmail json YAML

2017-02-24 03:44:54 UTC MAIN commitmail json YAML

2017-02-24 01:27:14 UTC MAIN commitmail json YAML

Revert "Remove a useless loop around getpass()"

getpass(3) may return NULL upon failures on Linux, and netpgp should remain
portable to other systems.

(khorben)

2017-02-24 01:26:17 UTC MAIN commitmail json YAML

Revert "Remove a useless loop around getpass()"

getpass(3) may return NULL upon failures on Linux, and netpgp should remain
portable to other systems.

(khorben)

2017-02-23 23:19:04 UTC MAIN commitmail json YAML

Hold the intr_lock when broadcasting/waiting on sc_[rec]condvar.

(nat)

2017-02-23 23:13:27 UTC MAIN commitmail json YAML

Update pad due to changes in audio.  sc_bytes_count and BYTESTOSLEEP are
no longer required.

(nat)

2017-02-23 22:33:31 UTC MAIN commitmail json YAML

2017-02-23 19:51:47 UTC MAIN commitmail json YAML

add MIPS-specific clang header file

(macallan)

2017-02-23 18:56:12 UTC MAIN commitmail json YAML

2017-02-23 18:54:30 UTC MAIN commitmail json YAML

Provided sized definitions for ecoff 32 bit headers.

(christos)

2017-02-23 18:49:00 UTC MAIN commitmail json YAML

This only works with 32 bit Elf and COFF files, make it specific this way
and use sized types so that it works on 64 bit systems (so it can become
a tool).

(christos)

2017-02-23 18:43:02 UTC MAIN commitmail json YAML

revert rev 1.2 (disabling split wide types) because it's no longer necessary
after rev 1.6 of m68k.md (which itself reverted a local patch that hadn't
been necessary for over a decade... see gcc bugzilla 12792).
discussed with christos and confirmed no regressions with the atf tests.

(chs)

2017-02-23 15:18:37 UTC MAIN commitmail json YAML

2017-02-23 15:17:17 UTC MAIN commitmail json YAML

2017-02-23 14:09:11 UTC MAIN commitmail json YAML

Generate usage error for bad usage, before attempting any other operations.
This means that "mixerctl" (no args) will generate a usage msg, even when
/dev/mixer cannot be opened (or any other device given via -d or $MIXERDEVICE)

While here, get rid of "goto usage" replacing the usage: with a
static inline void __dead function...  The compiler ought to optimise
the calls into essentially the same code as existed with the goto version,
but this is much cleaner.

Also, mixerctl falls back on /dev/mixer0 if /dev/mixer cannot be opened.
(that is old code - probably from when /dev/mixer was first added)

It used to do that when called as mixerctl -d /dev/mixer or with
"MIXERDEVICE=/dev/mixer mixerctl...".  No longer.  Now the fallback (which
is probably obsolete now anyway) only happens when the user doesn't specify
any mixer device (by either method) and the default of /dev/mixer is used.
In other cases, only the device specified is tried.

(kre)

2017-02-23 14:01:37 UTC MAIN commitmail json YAML

Drop the test for QEMU and instead skip relevant tests when /dev/mixer
can't be opened (which more accurately reflects when mixerctl is going
to fail...)

Based upon an idea from Andreas Gustafsson (gson@) - except that using
/dev/audio0 for this purpose doesn't work, if the only audio device
configured is pad0 an open of audio fails with EIO (???)

While here, perpare for the updated mixerctl coming soon to a repository
near you...
Use correct usage in the test of a bogus -d arg (otherwise the
new mixerctl will complain about usage, and never even
attempt to open the bogus device)
Don't require /dev/mixer for the noargs -> generate usage msg
test ... this will now generate a failing test with the
old mixerctl if there is no working /dev/mixer, but
that mixerctl won't be around much longer.

(kre)

2017-02-23 13:22:53 UTC MAIN commitmail json YAML

Remove kLFT and kRIT from putty.
This allows left and right cursor key movement inside tmux on putty.
See https://github.com/tmux/tmux/issues/708.

(roy)

2017-02-23 12:17:36 UTC MAIN commitmail json YAML

Avoid panic when amd64 kernel is booted from 32bit UEFI.

(nonaka)

2017-02-23 12:16:30 UTC MAIN commitmail json YAML

reset ri->ri_hwbits too if RI_CFGDONE is set.

prevent ri->ri_hwbits from moving to center every time rasops_reconfig() is
called when RI_CENTER is set.

(nonaka)

2017-02-23 12:14:53 UTC MAIN commitmail json YAML

no need COUNT_KERNEL hack.

(nonaka)

2017-02-23 12:13:59 UTC MAIN commitmail json YAML

update marks[MARK_DATA] with COUNT_DATA.

(nonaka)

2017-02-23 12:13:05 UTC MAIN commitmail json YAML

fix CTF section symbol size was not counted with COUNT_KERNEL.

(nonaka)

2017-02-23 12:01:12 UTC MAIN commitmail json YAML

Make it compilable in non-diagnostic kernels

(martin)

2017-02-23 11:23:22 UTC MAIN commitmail json YAML

Test for fstrans support before trying to allocate per-thread info.

PR kern/51996 (kmem_alloc called from intr context in fstrans_get_lwp_info)

(hannken)

2017-02-23 08:22:20 UTC MAIN commitmail json YAML

Fixup the compile time decisions around PMAP_{INCLUDE,NEEDS}_PTE_SYNC and
fix the options for xscale boards which require the code in
pmap_l2ptp_ctor marked as #ifndef PMAP_INCLUDE_PTE_SYNC.

Fix the typo (pte -> opte) in this code block and consistently use opte
elsewhere.

PR/51990: Regression data_abort_handler: data_aborts fsr=0x406 far=0xbfffeff5  on copyout in init

(skrll)

2017-02-23 08:11:09 UTC MAIN commitmail json YAML

Formatting fix.

(wiz)

2017-02-23 07:57:10 UTC MAIN commitmail json YAML

Remove mkludge stuffs

For unknown reasons, IPv6 multicast addresses are linked to a first
IPv6 address assigned to an interface. Due to the design, when removing
a first address having multicast addresses, we need to save them to
somewhere and later restore them once a new IPv6 address is activated.
mkludge stuffs support the operations.

This change links multicast addresses to an interface directly and
throws the kludge away.

Note that as usual some obsolete member variables remain for kvm(3)
users. And also sysctl net.inet6.multicast_kludge remains to avoid
breaking old ifmcstat.

TODO: currently ifnet has a list of in6_multi but obviously the list
should be protocol independent. Provide a common structure (if_multi
or something) to handle in6_multi and in_multi together as well as
ifaddr does for in_ifaddr and in6_ifaddr.

(ozaki-r)

2017-02-23 05:48:14 UTC MAIN commitmail json YAML

Document PT_GETDBREGS and PT_SETDBRGS in ptrace(2)

Not this interface in MD part.
Explain design choices.

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-23 05:04:14 UTC MAIN commitmail json YAML

Add SSA to wtf(6)

SSA    static single assignment

Fix position of AMP.

(kamil)

2017-02-23 04:48:36 UTC MAIN commitmail json YAML

Fix build of ports without PT_STEP

Fallout after PT_*DBREGS introduction.

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-23 03:48:20 UTC MAIN commitmail json YAML

Welcome to 7.99.62!

New ptrace(2) operations:
- PT_RESUME
- PT_SUSPEND
- PT_SETDBREGS
- PT_GETDBREGS

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-23 03:34:23 UTC MAIN commitmail json YAML

Introduce PT_GETDBREGS and PT_SETDBREGS in ptrace(2) on i386 and amd64

This interface is modeled after FreeBSD API with the usage.

This replaced previous watchpoint API. The previous one was introduced
recently in NetBSD-current and remove its spurs without any
backward-compatibility.

Design choices for Debug Register accessors:
- exec() (TRAP_EXEC event) must remove debug registers from LWP
- debug registers are only per-LWP, not per-process globally
- debug registers must not be inherited after (v)forking a process
- debug registers must not be inherited after forking a thread
- a debugger is responsible to set global watchpoints/breakpoints with the
  debug registers, to achieve this PTRACE_LWP_CREATE/PTRACE_LWP_EXIT event
  monitoring function is designed to be used
- debug register traps must generate SIGTRAP with si_code TRAP_DBREG
- debugger is responsible to retrieve debug register state to distinguish
  the exact debug register trap (DR6 is Status Register on x86)
- kernel must not remove debug register traps after triggering a trap event
  a debugger is responsible to detach this trap with appropriate PT_SETDBREGS
  call (DR7 is Control Register on x86)
- debug registers must not be exposed in mcontext
- userland must not be allowed to set a trap on the kernel

Implementation notes on i386 and amd64:
- the initial state of debug register is retrieved on boot and this value is
  stored in a local copy (initdbregs), this value is used to initialize dbreg
  context after PT_GETDBREGS
- struct dbregs is stored in pcb as a pointer and by default not initialized
- reserved registers (DR4-DR5, DR9-DR15) are ignored

Further ideas:
- restrict this interface with securelevel

Tested on real hardware i386 (Intel Pentium IV) and amd64 (Intel i7).

This commit enables 390 debug register ATF tests in kernel/arch/x86.
All tests are passing.

This commit does not cover netbsd32 compat code. Currently other interface
PT_GET_SIGINFO/PT_SET_SIGINFO is required in netbsd32 compat code in order to
validate reliably PT_GETDBREGS/PT_SETDBREGS.

This implementation does not cover FreeBSD specific defines in their
<x86/reg.h>: DBREG_DR7_LOCAL_ENABLE, DBREG_DR7_GLOBAL_ENABLE, DBREG_DR7_LEN_1
etc. These values tend to be reinvented by each tracer on its own. GNU
Debugger (GDB) works with NetBSD debug registers after adding this patch:

--- gdb/amd64bsd-nat.c.orig 2016-02-10 03:19:39.000000000 +0000
+++ gdb/amd64bsd-nat.c
@@ -167,6 +167,10 @@ amd64bsd_target (void)

#ifdef HAVE_PT_GETDBREGS

+#ifndef DBREG_DRX
+#define DBREG_DRX(d,x) ((d)->dr[(x)])
+#endif
+
static unsigned long
amd64bsd_dr_get (ptid_t ptid, int regnum)
{

Another reason to stop introducing unpopular defines covering machine
specific register macros is that these value varies across generations of
the same CPU family.

GDB demo:
  (gdb) c
  Continuing.

  Watchpoint 2: traceme

  Old value = 0
  New value = 16
  main (argc=1, argv=0x7f7fff79fe30) at test.c:8
  8              printf("traceme=%d\n", traceme);

(Currently the GDB interface is not reliable due to NetBSD support bugs)

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-23 02:28:10 UTC MAIN commitmail json YAML

Limit previous to the i386 qemu kernels, the tests work on amd64 and sparc
(which have some audio configured.)

(kre)

2017-02-23 02:09:24 UTC MAIN commitmail json YAML

Skip most of the mixerctl tests when running under QEMU (assumed to be for ATF)
as the kernel that runs them has no audio (and no mixers) configured.

The usage message test might be returned some day if /usr/bin/mixerctl
gets modified so it doesn't attempt to open the device (and error out)
in cases where the device isn't actually going to be used (and -d wasn't
given to set the device name explicitly).

(kre)

2017-02-23 02:06:12 UTC MAIN commitmail json YAML

Add fenv for ia64, imported from FreeBSD, compile tested only.

(scole)

2017-02-23 02:05:30 UTC MAIN commitmail json YAML

Add fenv for ia64, imported from FreeBSD, compile tested only.

(scole)

2017-02-23 02:04:11 UTC MAIN commitmail json YAML

Add fenv.h for ia64, imported from FreeBSD, compile tested only.

(scole)