Commit Graph

246498 Commits

Author SHA1 Message Date
christos
2de9513676 switch mips64 to new binutils and gdb. 2016-12-03 02:18:38 +00:00
kamil
4b9f3a9f8a Define new tests for CPU Debug Registers in t_ptrace_wait{,3,4,6,id,pid}
Rename dbregs1 to dbregs_print
Rename dbregs[2345] to dbregs_preserve_dr[0123]

Add new tests dbregs_preserve_dr[0123]_yield.

dbregs_preserve_dr0_yield:
     Verify that setting DR0 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr1_yield:
     Verify that setting DR1 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr2_yield:
     Verify that setting DR2 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr3_yield:
     Verify that setting DR3 is preserved across ptrace(2) calls with
     scheduler yield

Add new tests dbregs_preserve_dr[0123]_continued.

dbregs_preserve_dr0_continued:
    Verify that setting DR0 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr1_continued:
    Verify that setting DR1 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr2_continued:
    Verify that setting DR2 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr3_continued:
    Verify that setting DR3 is preserved across ptrace(2) calls and with
    continued child

Use more meaningful names for these tests as they are MD specific and
testing precise functionality. Also there will be a growing number of
tests in this category and prefixing everything with plain dbregs and
trailing with a number cannot be verbose.

Sponsored by <The NetBSD Foundation>
2016-12-03 01:41:15 +00:00
christos
5b0871f5ea regen mips64 2016-12-03 00:40:47 +00:00
macallan
176218773a build pm3_exa 2016-12-02 22:59:17 +00:00
christos
5a6cfab10a provide a tree like display with -d, from FreeBSD 2016-12-02 21:59:03 +00:00
christos
d10d9a2322 fix test lib/librumphijack/t_sh/runscript
(handle F_DUPFD_CLOEXEC that the shell is now using)
2016-12-02 20:53:36 +00:00
christos
b293c8a9d7 Add unwind action type and constants 2016-12-02 19:25:19 +00:00
christos
0ab93415f3 switch m68k to new binutils and gdb 2016-12-02 17:54:35 +00:00
christos
787b0418af regen m68k 2016-12-02 17:51:07 +00:00
tsutsui
540167e84a Fix crashdump on machines with EXTENDED_MEMORY.
PR port-x68k/51663 from Rin Okuyama.
2016-12-02 12:43:07 +00:00
msaitoh
daab61de0e Update ixg(4) and ixv(4) up to FreeBSD r294578:
- Fixup SFP module insertion on the 82599 when insertion happens after
  the system is booted and running. Add PHY detection logic to
  ixgbe_handle_mod() and add locking to ixgbe_handle_msf() as well.
  FreeBSD r293334.
- Fix ix advertise value after media change. When ifconfig sets media then the
  values displayed by the advertise_speed value are invalidated.
  Fix this by setting the bits correctly including setting advertise to 0 for
  media = auto. FreeBSD r294578.
- Some others (e.g. LRO(not used by NetBSD)).
2016-12-02 12:14:37 +00:00
msaitoh
c0574abec5 Fix ix{gbe,v}_set_sysctlvalue(). 2016-12-02 11:56:55 +00:00
msaitoh
e339bcee96 Add ixgbe_osdep.c. 2016-12-02 10:48:11 +00:00
msaitoh
e8248b5bb6 - Add missing pmf_device_deregister() in ixgbe_detach()
- Remove extra newline from an sysctl description.
- Fix dmesg output when the number of PCIe lane can't get.
2016-12-02 10:46:58 +00:00
msaitoh
1160ab7951 Update ixg(4) and ixv(4) up to FreeBSD r292674:
- Add X552 SFP+ and X550T single port.
- Bug fixes.
2016-12-02 10:42:04 +00:00
msaitoh
0e1d573dba Update ixg(4) and ixv(4) up to FreeBSD r289238:
- Add support for sysctl knobs to live tune the per interrupt rx/tx packet
  processing limits in ixgbe(4)
- Some others (netmap, etc.)
2016-12-02 10:34:23 +00:00
msaitoh
f0e3127a11 Update ixg(4) and ixv(4) up to FreeBSD r285590:
- Fix igxbe SRIOV VF (if_ixv) initialization bugs.  The MAC address for
  an if_ixv instance can now set at creation time, and the receive ring
  tail pointer is correctly initialized (previously, things still worked
  because the receive ring tail pointer was being fixed up as a side
  effect of other activity).
2016-12-02 10:24:31 +00:00
msaitoh
001a98a41d Update ixg(4) and ixv(4) up to FreeBSD r283881:
- SRIOV support (not enabled because NetBSD doesn't support it).
2016-12-02 10:21:43 +00:00
kamil
0904a3bc79 Add new tests dbregs[2345] in MD arch/amd64/ t_ptrace_wait{,3,4,6,id,pid}
dbregs2:
    Verify that setting DR0 is preserved across ptrace(2) calls

dbregs3:
    Verify that setting DR1 is preserved across ptrace(2) calls

dbregs4:
    Verify that setting DR2 is preserved across ptrace(2) calls

dbregs5:
    Verify that setting DR3 is preserved across ptrace(2) calls

These tests are deliberately fine-grained as they are expected to penetrate
precisely each functional aspect of CPU Debug Registers on amd64 one after
another.

These tests (and MI ones) might be generated or merged with helper
functions, however in order to copy-and-paste them out of a test-suite and
quickly port to other platform (in order to compare results) it's useful to
keep them as stand-alone as they are.

Code from these tests might be shared with other ports in future, for the
same reason keep them currently as they are.

Sponsored by <The NetBSD Foundation>
2016-12-02 06:49:00 +00:00
knakahara
a3ee55e14c fix typo. ping6 deadline option is not "-w" but "-X". 2016-12-02 06:19:50 +00:00
kamil
96cf2030eb Refactor location of amd64-specific ATF tests to new dir kernel/arch/amd64
Rename
 - tests/kernel/t_ptrace_amd64_wait.c
to
 - tests/kernel/arch/amd64/t_ptrace_wait.c
and adapt appropriate files accordingly.

New directory will be used for more amd64-specific tests, verifying the
MD parts of the kernel.

Remove old entries from distrib/sets/lists as they were added a while ago.

Sponsored by <The NetBSD Foundation>
2016-12-02 05:54:14 +00:00
knakahara
5c3ea1ee6e fix accidentally if_pppoe atf failure depends on cpu workload. 2016-12-02 05:28:27 +00:00
riastradh
ad4751da4c Respect MKSHARE=no. 2016-12-02 02:41:54 +00:00
riastradh
73a060fc54 Mark lvm and npf shlibs as such. 2016-12-02 02:30:47 +00:00
riastradh
d5e595c687 cvslatest(1) is unconditional, doesn't use cvs(1). 2016-12-02 02:29:54 +00:00
riastradh
0ab10b7e19 print-ip6.c is needed even with MKINET6=no.
Provides print_ip6 used by various other objects, with different
definitions depending on #ifdef INET6.
2016-12-02 02:14:03 +00:00
knakahara
1d3a55e373 fix: ifp->if_obytes and ifp->if_omcasts are not counted up for packets which is sent later.
pointed out by ozaki-r@n.o, thanks.
2016-12-02 01:48:44 +00:00
kamil
e3626ca7dd Fix !amd64 sets
Sponsored by <The NetBS Foundation>
2016-12-02 00:50:09 +00:00
ozaki-r
3de81a8881 CID 1396598, CID 1396634: Fix null pointer dereferences 2016-12-02 00:19:54 +00:00
kamil
b08d15e04f Add t_ptrace_amd64_wait{,3,4,6,id,pid} tests
Sponsored by <The NetBSD Foundation>
2016-12-01 20:23:10 +00:00
kamil
6df343d465 Add new test file t_ptrace_amd64_wait.c and refactor t_ptrace_*wait* tests
Clone t_ptrace_wait.c to t_ptrace_amd64_wait.c and put common parts to
t_ptrace_wait.h.

The t_ptrace_amd64_wait.c file is dedicated to hold amd64-specific tests
for the ptrace(2) interface.

Add new basic test dbreg1 in t_ptrace_amd64_wait{,3,4,6,id,pid}:
    Verify plain PT_GETDBREGS with printing Debug Registers

Fix evbarm64-aarch64 issue pointed by <christos>, kill1 and kill2 tests
must be defined without PT_STEP guards.

Sponsored by <The NetBSD Foundation>
2016-12-01 20:11:17 +00:00
christos
c8c18415f0 n dl_iterate_phdr return the path not the name. 2016-12-01 18:21:39 +00:00
christos
811931c076 on NetBSD we don't have llvm_symbolizer, so try addr2line... 2016-12-01 18:20:25 +00:00
christos
0833d377e3 use the right sysctl to find the main binary name. We don't really need
this since our dl_iterate_phdr DTRT's for objmain, but...
2016-12-01 18:19:19 +00:00
mlelstv
dbf589355f CID 1396620: Null pointer dereferences 2016-12-01 15:39:02 +00:00
hannken
f3e32599e8 - Change vcache_reclaim() to always call VOP_INACTIVE() before VOP_RECLAIM().
When called from vrecycle() or vgone() there is a window where the refcount
  is greater than zero and another thread could get and release a reference
  that would miss VOP_INACTIVE() as the refcount doesn't drop to zero.

  Adjust test fs/puffs/t_basic:  test VOP_INACTIVE count being greater zero.

- Make vrecycle() more robust by checking v_usecount first and preventing
  further references across vn_lock().  Fixes a deadlock where one thread
  starts unmount, second thread locks a directory and allocates a vnode
  and first thread tries to vrecycle() the directory.
  First thread holds vfs_busy and wants vnode, second thread holds vnode
  and wants vfs_busy.

- With these fixes in place change cleanvnode() to use vget()/vrecycle()
  to reclaim the vnode.
2016-12-01 14:49:03 +00:00
christos
f9f702d000 Instead of using a function to resolve symbols that should be supplied by
the dynamic linker itself, use a version script that exposes them. From joerg@
2016-12-01 14:29:15 +00:00
msaitoh
3f12fe0f1b Regen. 2016-12-01 09:04:37 +00:00
msaitoh
aa1a3ef53c - Add more Intel 10G devices
- indent
2016-12-01 09:04:03 +00:00
msaitoh
432089def2 Add forgotten ixgbe_x550.c and ixgbe_x550.h. 2016-12-01 07:44:58 +00:00
msaitoh
1f093dd9c9 Update ixg(4) and ixv(4) up to FreeBSD r282299:
- Add support for X55x.
- ADD EEE support (not tested).
- Add WOL support (not tested).
- Add suspend/resume support (not testd).
- Add LPLU support (not tested).
- Add DMA Coalescing (note verified).
- Not tested well for sysctls.
- Fix ixgbe_set_advertise() a bit. At least, FreeBSD r294578 is required
  to work hw.ixg0.advertise_speed sysctl correctly.
2016-12-01 06:56:28 +00:00
msaitoh
593c7bbe7f ixv.h is no more. 2016-12-01 06:29:39 +00:00
msaitoh
d241219ae5 Update ixg(4) and ixv(4) up to FreeBSD r280197:
- Add support for 82599_QSFP_SF_QP and X540T1.
- Add partial support for X55x. It's required to sync with FreeBSD r282299
  to support X55x.
- Bugfixes.
2016-12-01 06:27:18 +00:00
mrg
a2ea510932 s/netbds32_copyout_statvfs/netbsd32_copyout_statvfs/ 2016-12-01 05:07:27 +00:00
knakahara
87396c9972 support Tx multiqueue for 82574(aka e1000e for VMware and QEMU). 2016-12-01 02:36:50 +00:00
knakahara
4348961022 fix two races between set_ip_addrs and clear_ip_addrs race.
(1) if set_ip_addrs and clear_ip_addrs run parallel, they can parallel call
        IN_ADDRHASH_WRITER_REMOVE to the same ifa.
    (2) if set_ip_addrs's workqueue is separated from clear_ip_addrs's one,
        the workers can run in reverse order of enqueued.
2016-12-01 02:30:54 +00:00
knakahara
a98d843d1f fix CID 1396600: Null pointer dereferences 2016-12-01 02:15:20 +00:00
mrg
1e9cf43a79 extend the pmap_activate/pmap_deactivate UVMHIST logs to include the
pid, lid, and either l_name or p_comm.
2016-12-01 02:15:08 +00:00
mrg
a361e6a644 document new UVMHIST_MAPHIST_SIZE and UVMHIST_PDHIST_SIZE options. 2016-12-01 02:12:21 +00:00
mrg
07b8fffc31 allow the sizes of the maphist and pdhist to be set in the config
file via UVMHIST_MAPHIST_SIZE and UVMHIST_PDHIST_SIZE.
2016-12-01 02:09:03 +00:00