Commit Graph

262002 Commits

Author SHA1 Message Date
jmcneill
66b571746b Dump memory map if EFI_MEMORY_DEBUG is defined 2018-09-02 23:54:25 +00:00
jmcneill
0677c7c8e9 Support loading kernels at PAs above 0x3fffffffff on arm64 2018-09-02 23:50:23 +00:00
maya
864097d489 Initialize if_stop so suspend won't jump to NULL. 2018-09-02 19:46:53 +00:00
wiz
0394df431b New sentence, new line. Use Fn for functions. 2018-09-02 18:03:23 +00:00
maxv
c09ea90fc6 Be clearer about the difference between static vs dynamic interface list,
and slightly improve wording.

My understanding is that when none of inet4/inet6/ifaddrs is passed, NPF
assumes ifaddrs.
2018-09-02 17:45:18 +00:00
riastradh
1537d232a4 Initialize and destroy dev_priv->drrs.mutex only once.
Not once per connector!

Candidate fix for:
https://mail-index.netbsd.org/current-users/2018/08/30/msg034155.html
2018-09-02 17:36:57 +00:00
maxv
b4c7496bd8 well well well it's September now 2018-09-02 17:21:28 +00:00
tsutsui
b27265d400 Use elf2ecoff(1) rather than objcopy(1) to generate ecoff kernel.
Reported by Naruaki Etomi in PR port-sgimips/53518.
Should be pulled up to netbsd-7 and netbsd-8.
2018-09-02 16:41:42 +00:00
tsutsui
d1fe799281 Fix wdsc(4) probe failure on HPC1.5 machines (Indigo R3k/R4k, IP6/IP10/IP12).
The alignment adjustment code was removed in rev 1.36 for common
mips bus_space changes, but the code was not bus_space related
but used for uint32_t register acccess during probe.

Reported and tested by Naruaki Etomi in PR port-sgimips/53522.
Should be pulled up to netbsd-8.
2018-09-02 16:18:50 +00:00
maxv
b05dff87b2 remove dead references to IPF; also remove references to netccitt/, it was
removed 12 years ago.
2018-09-02 16:13:42 +00:00
maxv
782aa42924 replace ipf->npf 2018-09-02 16:08:12 +00:00
maxv
82a03f15c4 remove reference to ipnat, and duplicate comments 2018-09-02 16:05:33 +00:00
maxv
dcebb1dcbd remove reference to ipnat 2018-09-02 16:02:18 +00:00
tsutsui
bf3cee05d2 Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.
objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:
 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9
but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).

Reported by Naruaki Etomi in PR port-sgimips/53519.
Should be pulled up to at least netbsd-8.
2018-09-02 12:06:16 +00:00
jmcneill
0ca3d100da Process assigned-clocks 2018-09-02 10:07:17 +00:00
tsutsui
b46ab89659 Fix build failure without options DDB and with pseudo-device ksyms.
There is a typo for ksyms (NKSYMS vs NKSYM).
Also use consistent "#if NKSYMS" rather than "#if NKSYMS > 0" etc.
and add comments after corresponding #endif for readability.

Fixes PR port-sgimips/53521 from Naruaki Etomi.
Should be pulled up to (at least) netbsd-8.
2018-09-02 09:57:33 +00:00
tsutsui
cac87836ca Disable misc options to shrink an INSTALL kernel for IP2x.
The ARC BIOS on Indy seems to have ~8MB limit.
Fixes PR port-sgimips/53378 from Naruaki Etomi.

Should be pulled up to netbsd-7 and netbsd-8.
2018-09-02 08:51:53 +00:00
jmcneill
5ce20f0c63 rkpmic(4): Add driver for Rockchip RK808 Power Management IC. 2018-09-02 01:18:22 +00:00
jmcneill
251a40e43d Add rkpmic 2018-09-02 01:17:23 +00:00
jmcneill
35517e5ce1 Add driver for Rockchip RK808 Power Management IC. 2018-09-02 01:16:58 +00:00
jmcneill
1445d404f1 Calculate i2c divisor based on sclk not pclk 2018-09-02 01:16:03 +00:00
jmcneill
9a6d6e42c7 Send an ACK after the last byte is received 2018-09-02 00:48:12 +00:00
jmcneill
af0c930185 Don't print an error message for shared opp tables 2018-09-01 23:41:16 +00:00
riastradh
977dae7e24 Allow fence_get(NULL).
This is kind of silly: if the caller has exclusive access to the
fence, they should be able to guarantee it's there, so this could
serve to suppress legitimate bugs.  But better to preserve Linux
semantics here than to be picky about API design.

Bug by me, fix from Tobias Ulmer in PR kern/53565.
2018-09-01 22:28:04 +00:00
riastradh
3ac319b184 bwfm has only one tx descriptor; limit mbuf chains to one segment.
PR kern/53287

Can't use m_defrag because it always yields two segments.

Discussion on tech-net:
https://mail-index.netbsd.org/tech-net/2018/09/01/msg007031.html

Diagnosed and tested by maya.
2018-09-01 22:01:03 +00:00
tnn
532ea03b1c fix non-DIAGNOSTIC build 2018-09-01 20:54:32 +00:00
jmcneill
bd8cd1136e Add support for opp-v2 tables and multiple instances of the cpufreqdt
driver.
2018-09-01 19:36:53 +00:00
jmcneill
eda2c26d1d Add support for RK3399 CPU clocks. 2018-09-01 19:35:53 +00:00
wiz
25be4c69af Remove superfluous Pp. 2018-09-01 19:26:46 +00:00
rmind
b5635267ab npf.conf(5): fix some of the previous incorrect or inaccurate changes.
The TCP flags option is not only for the stateful tracking.  Dynamic NAT
implies NAPT; algorithms, at least for now, are for static NAT mappings.
Mention that ALG ICMP is also for traceroute behind NAT; also mention
"MSS clamping" (some users might search for this term, so keeping the
terminology is helpful).
2018-09-01 16:28:57 +00:00
prlw1
30eeab08c0 typo 2018-09-01 11:46:52 +00:00
mlelstv
4e28deebe1 fix diagnostic build. 2018-09-01 09:57:12 +00:00
wiz
aa29c993fa Bump date for previous. 2018-09-01 07:26:56 +00:00
mlelstv
0b4ba8daf5 Wait in detach if the discovery thread is still running. Avoids crashes
when a device is attached/detached rapidly.
2018-09-01 07:20:29 +00:00
mlelstv
43a5ce6146 Make wdcdebug_atapi_mask configurable like the other debug variables. 2018-09-01 07:19:19 +00:00
mlelstv
c2909ab6c6 Make tape cache ioctls available to userland command. 2018-09-01 06:56:23 +00:00
riastradh
bc5c0321ab Destroy mutex before freeing memory. 2018-09-01 04:38:22 +00:00
riastradh
827cffa2d4 Delete backported files that were renamed upstream.
Not sure how these didn't get nixed in the import.
2018-09-01 04:35:03 +00:00
sevan
0c4575d687 Use the An macro in the AUTHORS section. 2018-08-31 19:36:28 +00:00
sevan
d0f2c75d59 Pp before Bl 2018-08-31 19:34:44 +00:00
jdolecek
d3cc8201fb one less 2018-08-31 18:44:04 +00:00
jdolecek
5705ba588f constify mvsata_pci_products[] 2018-08-31 18:43:29 +00:00
sevan
486b78bb06 New sentence, new line. 2018-08-31 18:27:47 +00:00
sevan
2b478831b9 Apply Tn macro to XTS 2018-08-31 18:20:10 +00:00
sevan
617ed4de4e Enable USB 2.0 support so installs go a little faster on systems which support
it.
Include support for USB Ethernet adapters and relevant PHY as a fallback if
onboard Ethernet port is unavailable for some reason.
2018-08-31 18:11:20 +00:00
wiz
1de883b4aa Remove superfluous Pp. 2018-08-31 17:35:06 +00:00
kre
24f342dfd6 PR standards/53563
POSIX requires that signed numbers (strings preceded by '+' or '-')
be allowed as inputs to all of the integer format conversions, including
those which treat the data as unsigned.

Hence we do not need a variant function whose only difference from its
companion is to reject strings starting with '-' - instead we use
the primary function (getintmax()) for everything and remove getuintmax().

Minor update to the man page to indicate that the arg to all of the
integer conversions (diouxX) must be an integer constant (with an
optional sign) and to make it blatantly clear that %o is octal and
%u is unsigned decimal (for some reason those weren't explicitly stated
unlike d i x and X).  Delete "respectively", it is not needed (and does
not really apply).

XXX pullup -8
2018-08-31 17:27:35 +00:00
sevan
277cc6c3c7 Add the correct PHY to SYNOPSIS
axe0 at uhub3 port 1
axe0: Apple Computer (0x5ac) Apple USB to Ethernet (0x1402), rev 2.00/0.01, addr 3
axe0: Ethernet address b8:8d:12:XX:XX:XX
ukphy0 at axe0 phy 16: OUI 0x007063, model 0x0006, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
2018-08-31 16:43:26 +00:00
maxv
e8e58773e9 Fix buffer overflow, detected by kASan.
ifconfig gif0 create
	ifconfig gif0 up

[   50.682919] kASan: Unauthorized Access In 0xffffffff80f22655: Addr 0xffffffff81b997a0 [8 bytes, read]
[   50.682919] #0 0xffffffff8021ce6a in kasan_memcpy <netbsd>
[   50.692999] #1 0xffffffff80f22655 in m_copyback_internal <netbsd>
[   50.692999] #2 0xffffffff80f22e81 in m_copyback <netbsd>
[   50.692999] #3 0xffffffff8103109a in rt_msg1 <netbsd>
[   50.692999] #4 0xffffffff8159109a in compat_70_rt_newaddrmsg1 <netbsd>
[   50.692999] #5 0xffffffff81031b0f in rt_newaddrmsg <netbsd>
[   50.692999] #6 0xffffffff8102c35e in rt_ifa_addlocal <netbsd>
[   50.692999] #7 0xffffffff80a5287c in in6_update_ifa1 <netbsd>
[   50.692999] #8 0xffffffff80a54149 in in6_update_ifa <netbsd>
[   50.692999] #9 0xffffffff80a59176 in in6_ifattach <netbsd>
[   50.692999] #10 0xffffffff80a56dd4 in in6_if_up <netbsd>
[   50.692999] #11 0xffffffff80fc5cb8 in if_up_locked <netbsd>
[   50.703622] #12 0xffffffff80fcc4c1 in ifioctl_common <netbsd>
[   50.703622] #13 0xffffffff80fde694 in gif_ioctl <netbsd>
[   50.703622] #14 0xffffffff80fcdb1f in doifioctl <netbsd>
2018-08-31 15:15:23 +00:00
maxv
10d6722b09 Introduce npf_set_mss(). When the MSS is not 16bit-aligned, it sets:
0      8           16          24    32
	+------+-----------+-----------+------+
	| data | MSS (low) | MSS (hig) | data |
	+------+-----------+-----------+------+
	^                  ^
	old[0]             old[1]

And sets new[0,1] accordingly with the new value. The MSS-clamping code
then adjusts twice the checksum on a 16bit boundary:

	from old[0] to new[0]
	from old[1] to new[1]

Fixes PR/53479, opened by myself. Tested with wireshark and kASan.
2018-08-31 14:16:06 +00:00