Commit Graph

249109 Commits

Author SHA1 Message Date
msaitoh
f71865e18b Add missing opt_net_mpsafe.h. 2017-03-03 06:27:20 +00:00
msaitoh
418e1bb3d4 Set PCI_INTR_MPSAFE, SOFTINT_MPSAFE, CALLOUT_MPSAFE and IFEF_START_MPSAFE
if NET_MPSAFE is defined.
2017-03-03 04:37:05 +00:00
knakahara
8f35265a4d IFEF_START_MPSAFE flag should be set only if WM_MPSAFE defined. some refactor.
pointed out and suggested by msaitoh@n.o, thanks.
2017-03-03 03:33:44 +00:00
mrg
29bcf0191f avoid using %s in UVMHIST. 2017-03-02 20:11:19 +00:00
christos
a262455532 remove debugging abort that makes tests fail. 2017-03-02 15:43:14 +00:00
kamil
e663963d4a 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
2017-03-02 14:25:41 +00:00
hannken
a57a3961af 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().
2017-03-02 10:41:27 +00:00
ozaki-r
f27f4e283c Plug a race condition on accessing i6mm_maddr 2017-03-02 09:48:20 +00:00
ozaki-r
362a23cbc0 Fix racy in6m_sol
Relook up the entry instead of reusing it, which makes locking simple.
2017-03-02 09:16:46 +00:00
msaitoh
c96e148c62 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.
2017-03-02 05:35:01 +00:00
ozaki-r
030b9751dc Protect ia_allhosts by in_ifaddr_lock 2017-03-02 05:31:04 +00:00
ozaki-r
d0c11d0872 Make sure imo_membership is protected by inp's lock (solock) 2017-03-02 05:29:31 +00:00
ozaki-r
549f799fbf Protect ia6_memberships by in6_ifaddr_lock 2017-03-02 05:27:39 +00:00
ozaki-r
3e6e186e8a Make sure im6o_memberships is protected by in6p's lock (solock) 2017-03-02 05:26:24 +00:00
ozaki-r
36ae5d22b0 Make usages of ifp MP-safe in some functions of IP multicast 2017-03-02 05:24:23 +00:00
msaitoh
3b94ce3722 Fix a bug that TSO doesn't work correctly. This bug was added in
ix_txrx.c rev. 1.17.
2017-03-02 04:33:56 +00:00
nonaka
f6bba051d1 drmkms_pci: Use MSI if available (Take 2)
tested by martin@ and yhardy@
2017-03-02 04:31:51 +00:00
snj
f90bed86ca CardBus capitalization police 2017-03-02 01:10:21 +00:00
ozaki-r
0b2f4040ea Use LIST_* macros
No functional change.
2017-03-02 01:05:02 +00:00
christos
e6016d46a9 ifdef reduction 2017-03-02 00:43:40 +00:00
hannken
08fe30ea3a Make compile again without "options WAPBL".
From John D. Baker via current-users@, slightly modified by me.
2017-03-01 21:55:07 +00:00
skrll
35c97a0f45 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
2017-03-01 16:44:54 +00:00
sjg
1b370898b9 loadfile: in the mmap case ensures that the buffer ends with \n
do the same for the non-mmap case - avoids core dump.
2017-03-01 16:39:49 +00:00
skrll
668e93fe49 Fix compile... is this right? 2017-03-01 16:27:25 +00:00
kre
6087ee4af9 Improve appearance (a little) when read with nroff, rather than troff 2017-03-01 13:05:11 +00:00
skrll
1036908cdb Can't profile ras_atomic_cas_noupdate 2017-03-01 11:54:53 +00:00
hannken
f36a76571a Protect genfs_getpages() against vnodes disappearing during a
forced mount update from read-write to read-only.
2017-03-01 10:47:26 +00:00
hannken
d7f9016c8c Bring back read-write to read-only mount update for ffs. 2017-03-01 10:46:43 +00:00
hannken
88ed6a1725 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.
2017-03-01 10:46:05 +00:00
hannken
b038eea5e1 Suspend the mounted file system while updating. 2017-03-01 10:45:24 +00:00
hannken
90ead62d2f 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
2017-03-01 10:44:47 +00:00
hannken
0d6fbaf0a0 Must always lock the parent -> lock the child -> unlock the parent. 2017-03-01 10:43:37 +00:00
hannken
61b2de1d70 Remove now redundant calls to fstrans_start()/fstrans_done(). 2017-03-01 10:41:28 +00:00
kamil
4923df94f7 Correct the date of PT_GETDBREGS and PT_SETDBREGS introduction
Feb 28th -> Feb 23rd

Sponsored by <The NetBSD Foundation>
2017-03-01 10:32:09 +00:00
kamil
ef5be0f326 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>
2017-03-01 10:28:47 +00:00
ozaki-r
73c95a6a4c 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.
2017-03-01 09:09:37 +00:00
knakahara
7cedcca506 refactor: functionalize ITR/EITR writing processing.
tested I354 and 82545(VMware e1000).
2017-03-01 08:56:33 +00:00
ozaki-r
ef30413ffd Provide in6_multi_group
Use it when checking if we belong to the group, instead of in6_lookup_multi.

No functional change.
2017-03-01 08:54:12 +00:00
knakahara
ec85308db3 divide ITR/EITR value from wm_softc to wm_queue as EITR register is bound to each H/W queue. 2017-03-01 08:31:06 +00:00
kamil
81ccb321cb 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>
2017-03-01 08:05:15 +00:00
kre
f1844639ad tzdata2017a: new timezone America/Punta_Arenas 2017-03-01 03:02:48 +00:00
ozaki-r
2496195667 Restore/add some softnet_lock for nd6_rt_flush and defrouter_addreq
May help PR kern/52015
2017-03-01 03:02:35 +00:00
kre
179eed9654 Note update to tzdata2017a 2017-03-01 00:41:39 +00:00
kre
d285228370 Merge tzdata2017a 2017-03-01 00:38:15 +00:00
kre
e52c3ca31d Import tzdata2017a from ftp://ftp.iana.org/tz/releases/tzdata2017a.tar.gz
Summary of changes in tzdata2017a (2017-02-28 00:05:36 -0800):

  Briefly: Southern Chile moves from -04/-03 to -03, and Mongolia
  discontinues DST.

  Changes to future time stamps

    Mongolia no longer observes DST.
    Chile's Region of Magallanes moves from -04/-03 to -03 year-round.

  Changes to past time stamps

    Fix many entries for historical time stamps for Europe/Madrid
    before 1979, to agree with tables compiled by Pere Planesas of the
    National Astronomical Observatory of Spain.  As a side effect,
    this changes some time stamps for Africa/Ceuta before 1929, which
    are probably guesswork anyway.

    Ecuador observed DST from 1992-11-28 to 1993-02-05.

    Asia/Atyrau and Asia/Oral were at +03 (not +04) before 1930-06-21.

  Changes to past and future time zone abbreviations

    Switch to numeric time zone abbreviations for South America, as
    part of the ongoing project of removing invented abbreviations.

    For Alaska time from 1900 through 1967, instead of "CAT" use the
    abbreviation "AST", the abbreviation commonly used at the time
    (Atlantic Standard Time had not been standardized yet).  Use "AWT"
    and "APT" instead of the invented abbreviations "CAWT" and "CAPT".

    Use "CST" and "CDT" instead of invented abbreviations for Macau
    before 1999 and Taiwan before 1938, and use "JST" instead of the
    invented abbreviation "JCST" for Japan and Korea before 1938.

  Change to database entry category

    Move the Pacific/Johnston link from 'australasia' to 'backward',
    since Johnston is now uninhabited.
2017-03-01 00:37:15 +00:00
kamil
19287bf7d5 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>
2017-03-01 00:19:22 +00:00
jdolecek
f0d48db4d2 change DIOCCACHESYNC to not issue the FLUSH command at all when the controller
has no volatile write cache
2017-02-28 20:55:09 +00:00
jdolecek
5df6875418 implement DIOCGCACHE 2017-02-28 20:53:50 +00:00
chs
7e5aef5d4f 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.
2017-02-28 17:35:29 +00:00
skrll
9f331673de typo 2017-02-28 15:00:32 +00:00