Commit Graph

246824 Commits

Author SHA1 Message Date
skrll
283b65ee1f +__KERNEL_RCSID 2016-11-25 12:53:45 +00:00
skrll
d5bd020c23 Don't always define UGENSA_DEBUG 2016-11-25 12:51:59 +00:00
skrll
45ee11117c Sort opt_* #includes 2016-11-25 12:50:13 +00:00
skrll
06e61e79f2 Remove UZCOM_DEBUG 2016-11-25 12:45:28 +00:00
maxv
415d831276 KNF a little 2016-11-25 12:20:03 +00:00
knakahara
04f2bb210b "#ifdef __HAVE_PCI_MSI_MSIX" workaround is not required any more.
see sys/dev/pci/pci_stub.c r1.6
2016-11-25 12:14:49 +00:00
knakahara
a35aea56c6 provide all PCI MSI/MSI-X manipulation stub functions.
"#ifdef __HAVE_PCI_MSI_MSIX" workaround such as nvme_pci(4) is not required
any more.
    http://mail-index.netbsd.org/source-changes/2016/09/17/msg077799.html
2016-11-25 12:10:59 +00:00
maxv
4798650788 Initialize the module map limits in amd64, not x86.
For the record: normally we could enable this code on Xen, since the
bootstrap layout is globally the same. But there appears to be an issue
in xen_locore, since any kenter in the area after kern_end triggers a
KASSERT because the va is already busy.
2016-11-25 11:57:36 +00:00
ozaki-r
5a83ceea44 Share rump_server start/stop and interface creation/destruction functions
The common functions store socks of rump_servers, interfaces of rump_servers
and buses that intefaces connect and allow to destroy them with common
functions without specifying which socks, interfaces and buses we should
destroy.

This change reduces lots of similar setup/cleanup codes.
2016-11-25 08:51:16 +00:00
ozaki-r
731c5c346e Add $DEBUG and remove a unused function 2016-11-25 08:10:50 +00:00
ozaki-r
732b7eb4c4 Add missing head functions 2016-11-25 08:10:12 +00:00
hikaru
f9f592bf04 Add missing bpf_mtap. 2016-11-25 06:48:37 +00:00
hikaru
63460b9d44 Sync code with FreeBSD to support RSS
- Use MSI/MSI-X if it is available.
- Support TSO.

co-authored by k-nakahara
2016-11-25 05:29:54 +00:00
hkenken
8b49887fa7 * Fix compile error.
* typo
2016-11-25 05:03:36 +00:00
knakahara
ca3627eb6c make workqueue sppp_{set,clear}_ip_addrs to be able to call pserialize_perform. 2016-11-25 05:03:12 +00:00
knakahara
cc9ef345db refactor sppp_{set,clear}_ip_addrs(). reduce iterating if_addr_pslist. 2016-11-25 05:00:29 +00:00
christos
cb663e7b10 fix register names 2016-11-25 02:27:43 +00:00
christos
5b538677ea Move the #endif down to include other kernel only routines. 2016-11-25 02:23:14 +00:00
christos
e63000b12b avoid macro confusion 2016-11-25 02:19:19 +00:00
kamil
fb0931daa7 Add fpregs[12] in t_ptrace_wait{,3,4,6,id,pid}
fpregs1:
    Verify plain PT_GETFPREGS call without further steps

fpregs2:
    Verify PT_GETFPREGS and PT_SETFPREGS calls without changing regs

Sponsored by <The NetBSD Foundation>
2016-11-24 22:52:03 +00:00
alnsn
e771598c7d Switch to CHECK_LIBC for writing. 2016-11-24 22:42:16 +00:00
joerg
4269461d42 Fix format strings. 2016-11-24 19:26:32 +00:00
christos
9896a45fe7 fix leak. 2016-11-24 17:12:23 +00:00
christos
ee97ae6abf off-by-one in memcpy. Found by ASAN (Carsten Kunze)
XXX: pullup 7.
2016-11-24 17:09:55 +00:00
christos
50c795e166 don't coredump if we call endwin when initscr fails. 2016-11-24 14:49:08 +00:00
wiz
97151ea665 New sentence, new line. Sort SEE ALSO. Fix typo. 2016-11-24 12:38:32 +00:00
hkenken
2439407e97 bus_dmamap_sync() is required for ICT table read/write.
Tested by arm platform.
2016-11-24 12:32:47 +00:00
wiz
fe65e38bd3 Bump date for previous. 2016-11-24 12:19:28 +00:00
wiz
9e3f1ccd88 Various fixes. 2016-11-24 12:18:02 +00:00
hkenken
5dbe7c6e5b Add support imx6 PCIe controller. 2016-11-24 12:06:43 +00:00
ozaki-r
713e0a32de Share httpd start/stop code 2016-11-24 11:54:57 +00:00
ozaki-r
58be5ec9a6 Add missing bus argument for extract_new_packets 2016-11-24 11:34:51 +00:00
ozaki-r
554c6ec338 Move get_macaddr to net_common.sh 2016-11-24 09:07:09 +00:00
ozaki-r
a97a8a65f3 Move get_lladdr to net_common.sh 2016-11-24 09:06:09 +00:00
ozaki-r
927b18c962 Move route check functions to net_common.sh 2016-11-24 09:05:16 +00:00
ozaki-r
5a2201ed49 Move HIJACKING definition to net_common.sh 2016-11-24 09:03:53 +00:00
ozaki-r
d64bc47ffa Reduce duplicate codes
Introduce net_common.sh that is to share common functions used in tests
for networking. This commit commonizes extract_new_packets. Other duplicate
codes will be moved to the file in further commits.
2016-11-24 08:52:19 +00:00
hkenken
ef60caf979 Move to common function.
sdhc_set_gpio_cd() -> imx6_set_gpio()
2016-11-24 08:41:20 +00:00
ozaki-r
17ee12d2df Make tests strict
Connected routes have 'C' flag.
2016-11-24 07:32:19 +00:00
ozaki-r
39b7e5ca2e Add missing $NetBSD$ tag 2016-11-24 07:31:14 +00:00
kre
e6f7463f19 Note update to tzdata2016j 2016-11-24 05:50:15 +00:00
kre
eb5267fa9a Added TZ zone files Europe/Saratov and Asia/Aqtau for tzdata2016j 2016-11-24 05:47:33 +00:00
kre
0c2eb47280 Merge tzdata2016j 2016-11-24 05:43:58 +00:00
kre
0045e2f1d7 Import tzdata2016j from ftp://ftp.iana.org/tz/releases/tzdata2016j.tar.gz
Summary of changes in tzdata2016j (2016-11-22 23:17:13 -0800):

    Saratov, Russia switches from +03 to +04 on 2016-12-04 at 02:00.
    This creates a new zone Europe/Saratov.

    New zone Asia/Atyrau for Atyrau Region, Kazakhstan, is like
    Asia/Aqtau except it switched from +04/+05 to +05/+06 in spring
    1999, not fall 1994.

    Asia/Gaza and Asia/Hebron now use "EEST", not "EET", to denote
    summer time before 1948.  The old use of "EET" was a typo.
2016-11-24 05:43:10 +00:00
kamil
d054022201 Purge dummy Makefiles 2016-11-24 04:20:10 +00:00
kamil
3bd0170534 Drop unwanted printf(3) call in regs5 in t_ptrace
This call is reserved for other test.

Sponsored by <The NetBSD Foundation>
2016-11-24 04:11:16 +00:00
kamil
07f3b8e854 Add regs[12345] in t_ptrace_wait{,3,4,6,id,pid}
Add new ATF tests for the general purpose register calls.

These tests require platforms to export all of the following macros:
 - PT_GETREGS
 - PT_SETREGS
 - PTRACE_REG_PC
 - PTRACE_REG_SET_PC
 - PTRACE_REG_SP
 - PTRACE_REG_INTRV

This has been done for the sake of C preprocessor magic simplicity.
There are ports without covering all of the above symbols -- skip them.

Added tests
===========

regs1:
    Verify plain PT_GETREGS call without further steps

regs2:
    Verify plain PT_GETREGS call and retrieve PC

regs3:
    Verify plain PT_GETREGS call and retrieve SP

regs4:
    Verify plain PT_GETREGS call and retrieve INTRV

regs5:
    Verify PT_GETREGS and PT_SETREGS calls without changing regs

Sponsored by <The NetBSD Foundation>
2016-11-24 04:08:37 +00:00
hkenken
72d7c6b3de Modified imx6_pll_power() arguments. 2016-11-24 03:59:36 +00:00
dholland
c0590f9e77 Turn off the PR 49140 logging, because it itself makes the test fail.
As usual, ATF is actively interfering with test debugging. Almost all
runs in the past few days have failed this test with "stdout not
empty". In one run it timed out:
http://releng.netbsd.org/b5reports/i386/build/2016.11.22.06.51.14/test.html
but in this case ATF helpfully suppressed the log data.

Maybe if someone can figure out how to make the test hang reliably
then they can turn the logging on again and run it outside of ATF to
see what's happening.

In the meantime this problem is not likely to get fixed until we have
a less obstructive testing framework.
2016-11-24 00:37:29 +00:00
kamil
eedb67d83d Remove duplicated PT_DUMPCORE description in machine-specific calls section
This function is part of the general ptrace(2) interface.

Sponsored by <The NetBSD Foundation>
2016-11-24 00:12:52 +00:00