Commit Graph

247032 Commits

Author SHA1 Message Date
kre 6fb7898b88 Sort the unsorted sets lists (they should all be correctly sorted now.) 2016-12-14 12:59:51 +00:00
knakahara 237f476937 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).
2016-12-14 11:19:15 +00:00
msaitoh 253a3c48a5 Fix ip[46]csum-tx doesn't work other than TCP and UDP. 2016-12-14 10:46:12 +00:00
ozaki-r df9d638687 Add tests for flushing prefix and default router entries 2016-12-14 07:37:26 +00:00
ozaki-r 8e7c1da780 Reduce return points
No functional change intended.
2016-12-14 06:33:01 +00:00
kamil 6d08a581a0 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>
2016-12-14 06:26:04 +00:00
kamil 15bac0f54a Define -D_KERNTYPES in CPPFLAGS unconditionally to fix MKRUMP=no build
Reported by Robert Swindells

Sponsored by <The NetBSD Foundation>
2016-12-14 06:19:59 +00:00
ozaki-r 0195cee9ea Use macro to iterate on the nd_prefix list 2016-12-14 04:13:50 +00:00
ozaki-r 9d79cf8c86 Make functions static 2016-12-14 04:05:11 +00:00
knakahara ff8a15d36e 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.
2016-12-14 03:30:30 +00:00
ozaki-r 031e076338 Rename dump because it's used in net_common.sh 2016-12-14 02:50:42 +00:00
pgoyette 47cc427df8 More changes for creds, mutex, etc. 2016-12-13 22:54:24 +00:00
pgoyette 0342d5080b Mostly mechanical updates for caddr_t, thread, mutex, and credentials 2016-12-13 22:52:46 +00:00
pgoyette 752640fd36 Disable duplicate typedef 2016-12-13 22:49:02 +00:00
pgoyette 88b1d6a671 More cleanup of #includes 2016-12-13 22:31:51 +00:00
pgoyette 3be2222bbe Adapt code for our location of the nfs headers, and some updates for
differences in kernel options(4) handling
2016-12-13 22:17:33 +00:00
pgoyette d687e96a02 Update for location of newnfs headers, clean up some other #include 2016-12-13 21:58:17 +00:00
pgoyette c10f8b5081 Update locations for new nfs header files.
XXX Some #includes are just disabled (via #if 0) and will need to be
XXX resolved before further progress can be made.
2016-12-13 21:50:32 +00:00
pgoyette c81f4ce3f4 One more option for the opt_ file. 2016-12-13 21:44:01 +00:00
christos f2b2fa048a fix format warning. 2016-12-13 20:50:13 +00:00
christos ef2deb33e0 wildcard speaker attachments, now that we can handle many of them. 2016-12-13 20:42:15 +00:00
christos 0b335da6c0 Restructure speaker devices so that there can be multiple of them, and have
proper softc's.
2016-12-13 20:20:34 +00:00
christos fca405013a back to passing device 2016-12-13 20:18:32 +00:00
christos b707f068cf back to passing device_t 2016-12-13 20:18:06 +00:00
roy 87cdadbd3f ping is not a reliable means of testing if connectivity to download sets
actually works, so remove it.
Hopefully fixes PR kern/51531.
2016-12-13 19:03:49 +00:00
kamil b8092d5dfa Add regs1 in arch/i386/t_ptrace_wait*
regs1:
    Call PT_GETREGS and iterate over General Purpose registers

Sponsored by <The NetBSD Foundation>
2016-12-13 18:00:10 +00:00
christos 9dcd653786 Add rescan for audio children. 2016-12-13 17:12:51 +00:00
kamil 9feae32a7c 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>
2016-12-13 13:09:00 +00:00
kamil 5f84086eb7 Add regs1 in arch/amd64/t_ptrace_wait*
regs1:
    Call PT_GETREGS and iterate over General Purpose registers

Sponsored by <The NetBSD Foundation>
2016-12-13 13:04:18 +00:00
kamil f9bea37eb4 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>
2016-12-13 12:59:46 +00:00
kamil 2826f37556 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>
2016-12-13 12:25:05 +00:00
kamil 1377ca283a options(4): Remove KSTACK_CHECK_DR0. 2016-12-13 11:01:10 +00:00
wiz c63070ac1f Bump date for previous. 2016-12-13 11:00:20 +00:00
kamil 35e94f32ac KSTACK_CHECK_DR0 is no longer available
It used to detect stackoverflow on the i386 port.

Sponsored by <The NetBSD Foundation>
2016-12-13 10:55:40 +00:00
kamil 192986ec23 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>
2016-12-13 10:54:27 +00:00
kamil 9b94e002e8 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>
2016-12-13 10:21:33 +00:00
msaitoh 32c8242f0c - 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.
2016-12-13 10:01:44 +00:00
rjs c324046c36 Add a bit for Mobile IPv6. 2016-12-13 09:51:34 +00:00
kamil 6c52405165 Add initial TODO list for the ptrace(2) (and procfs) interface.
Sponsored by <The NetBSD Foundation>
2016-12-13 09:44:35 +00:00
ozaki-r 44375ea93d Remove unnecessary inclusions of nd6.h 2016-12-13 08:29:03 +00:00
ozaki-r 81f2534aaa Constify ifp of if_is_deactivated 2016-12-13 02:05:48 +00:00
knakahara 22bec9c1a0 MP-safe pppoe(4).
Nearly all parts is implemented by Shoichi YAMAGUCHI<s-yamaguchi@IIJ>, thanks.
2016-12-13 00:35:11 +00:00
maya fc870ff150 Bump for drm2 da_fb_linebytes
Welcome to 7.99.47
2016-12-12 21:56:00 +00:00
riastradh efda97f48b wtf tfw
Courtesy of i3enedek.
2016-12-12 20:41:49 +00:00
christos 6721aabc1e Handle functions that use the offset from either kinfo_proc2/kinfo_lwp properly. 2016-12-12 20:35:36 +00:00
maya 8538f99c2c 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
2016-12-12 19:45:56 +00:00
mrg 899aca2e24 mknative, binutils 2.27, and ia64. 2016-12-12 19:15:15 +00:00
flxd 41d99bfb78 Clean-up (remove redundant declarations, concentrate checks). 2016-12-12 17:03:40 +00:00
bouyer a07ee70f52 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.
2016-12-12 16:47:06 +00:00
bouyer ed2d984226 Regen for USB_PRODUCT_WINCHIPHEAD2_CH341_2 2016-12-12 16:43:14 +00:00