Commit Graph

271367 Commits

Author SHA1 Message Date
mrg 8f0a47505d dynamically calculate the list of usb hubs from drvctl if available. 2019-11-12 07:41:50 +00:00
mrg 41f22f4f02 match DIE_ID of 9 (SILERGY_DIE_ID_SYR83X), seen on some rockpro64s. 2019-11-12 07:40:04 +00:00
knakahara 52329830f1 Fix SA can be expaired wrongly when there are many SPs.
When key_timehandler_spd() spent over one second, the "now" argument of
key_timehandler_sad() could be older than sav->created. That caused SA
was expired immediately.
2019-11-12 05:13:29 +00:00
hkenken c372cef6d7 IPG clock is used instead of ENET_PLL clock to set MII Speed Control Register. 2019-11-12 05:09:29 +00:00
hkenken 535c3d00ab Add imxccm_clk_set_rate_div().
+ Fixed BUG in imxccm_clk_get_rate_div().
2019-11-12 04:32:36 +00:00
joerg 76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
chs 9be678b1cd revert rev 1.7 (which removed the fd_local field from frdest_t).
this structure is part of the kernel/user ABI and so we would need to
version the ioctl ABI again in order to remove this field.  but that's
a big pain so let's just leave the field there.  the problem that
was being fixed in FreeBSD related to this was a failure to locate
filter rules in certain situations, but having an unused always-zero
field there won't cause that problem.
2019-11-11 19:33:43 +00:00
scole cfc9dfaf24 ski should run on i386 and amd64 with patches from http://gnats.netbsd.org/54690 2019-11-11 18:06:47 +00:00
joerg 856452fc2a Spell the largest 32bit signed value as INT32_MAX. Explicitly cast to
float, because it is not precisely representable.
2019-11-11 15:40:42 +00:00
roy 8a7de48817 rtadvd: Add C flag to control the zeroing of the leaving configuration
This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).
2019-11-11 13:42:49 +00:00
wiz 5952ea0ef1 Make a sentence easier to read, and fix some nits. 2019-11-11 11:06:27 +00:00
wiz 899b15813c Fix a typo. Fix some xrefs, comment out references to non-existing man pages. 2019-11-11 11:04:15 +00:00
maxv 0cc65d2126 Remove lockless reads of 'xc_donep'. This is an uint64_t, and we cannot
expect the accesses to be MP-safe on 32bit arches.

Found by KCSAN.
2019-11-11 09:50:11 +00:00
tnn 6aff709faf silence sign-conversion warning from clang 2019-11-11 09:24:56 +00:00
msaitoh d80b6f6e68 Fix IP broadcast + checksum offload problem.
When a machine sends a IP broadcast packet to an Ethernet interface that the
checksum offload flags are set, the packet goes through ether_output() ->
looutput() and the offload flags is cleard without calculating the checksum.
And then, ip_input() calculate the packet's checksum because it's csum_flags is
zero. It regard as bad checksum and it's dropped because the packet's ifp
is s not lo0's. Fixes this bug by passing csum_flags as "calculated and good"
when IN_LOOPBACK_NEED_CHECKSUM() is false. Adviced by ryo@.

 This problem was seen when "routed -s" was used and the machine's interface's
offload flags were set. bad checksum field of "netstat -s" was increased every
30 minutes.
2019-11-11 08:12:35 +00:00
nonaka 11d4ba7451 nvme(4): Use the SET_FEATURES command to get the number of allocated queues. 2019-11-11 07:27:48 +00:00
pgoyette 834dafbf7a Add UPC - universal product code 2019-11-11 04:11:53 +00:00
msaitoh 18f068bbc4 Remove acorn26's upc(4) devices. 2019-11-11 04:04:29 +00:00
yamaguchi 0c3bbc580c atf: add test cases for MTU that is increased on SIOCSETVLAN
From t-kusaba@IIJ, thanks
2019-11-11 02:40:48 +00:00
yamaguchi 721fbb307c Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.

From t-kusaba@IIJ
2019-11-11 02:34:46 +00:00
joerg ffac73eb32 Ensure that the second LWP of a new process uses a free LWP ID.
Document overflow behavior.
2019-11-10 23:39:03 +00:00
gutteridge 2ce1a612c2 re.4: note additional cards supported, and tweak another detail
This driver also works as-is with a D-Link DGE-530T rev. D2 and a
TP-Link TG-3468 v3, as both match pre-existing PCI vendor and device ID
values. (It should also work with a TG-3468 v2, but would need another
vendor ID match added for that variant.) While here, also note it
supports UDP checksum offload, too.
2019-11-10 23:14:16 +00:00
sevan cacc7f27a4 https://twitter.com/sei6r/status/1182433546331279360 2019-11-10 22:42:21 +00:00
roy 2a93c54144 rtadvd: remove support for SIOCSIFINFO_IN6
It's been broken since we enabled dropping privs.
It's also probably the wrong place to do this, and support for
SIOCSIFINFO_IN6 will be in the next dhcpcd import.
2019-11-10 21:32:38 +00:00
chs d47bcd296c in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
2019-11-10 21:16:21 +00:00
roy cfe5ae87ad rtadvd: Fix reloading configuration killing interface timers 2019-11-10 21:07:39 +00:00
chs 14210daaf6 add ips driver. 2019-11-10 20:41:15 +00:00
chs 9ea67c54e5 in uvm_fault_lower_io(), fetch all the map entry values that we need
before we unlock everything.

Reported-by: syzbot+bb6f0092562222b489a3@syzkaller.appspotmail.com
2019-11-10 20:38:33 +00:00
christos 6fd58cbce2 Add __FPTRCAST 2019-11-10 18:47:13 +00:00
christos bfcdd97237 Document __FPTRCAST
XXX: more macros need documentation (__CAST etc.)
2019-11-10 18:45:09 +00:00
pgoyette 7384474702 Convert the coredump_vec modular function pointer to use the new
compat_hook mechanism.

XXX Should be pulled up to -9 despite the kernel <--> module ABI
XXX change.
2019-11-10 14:20:50 +00:00
msaitoh ac3281b18e Add missing initialization of sc_dev. 2019-11-10 13:34:52 +00:00
pgoyette 7b0f5c9e07 Convert the sendsig_sigcontext_16 function pointer to use the new
compat_hook mechanism.

XXX Despite being a kernel<-->module abi change, this should be
XXX pulled up to -9
2019-11-10 13:28:06 +00:00
jmcneill d5b364b035 Fix typo in phy config table 2019-11-10 12:07:50 +00:00
jmcneill ebd1df72ee Force DCLK_VOP0/1 dividers to 1 and select closest match when setting PLL
rates.
2019-11-10 11:43:04 +00:00
jmcneill 969a75239e Select the correct MPLL and PHY settings for the requested pixel clock 2019-11-10 10:36:01 +00:00
mrg 5052e4c83f update a bunch of reality. 2019-11-10 10:31:38 +00:00
mrg 0108eb486e add mpt(4) SCSI controller support (seen plugged into a rockpro64.) 2019-11-10 09:55:29 +00:00
mlelstv ab2ce32b2b Add functions to open devices by device number or path. 2019-11-10 06:47:30 +00:00
sevan 700433206f Definition of austerity by Alexei Sayle on Radio 4
https://web.archive.org/web/20190916192807/https://www.bbc.co.uk/sounds/play/m0008bbc
2019-11-10 00:54:57 +00:00
jdolecek d61dd23cbc regen 2019-11-09 23:45:07 +00:00
jdolecek 54412fca0b add dummy implementation of linux fallocate() which just returns EOPNOTSUPP;
this is needed so that glibc falls back to emulation and apps behaving
properly, since EOPNOTSUPP is a documented and expected return code, but
ENOSYS is not

right now there are no filesystems in NetBSD tree supporting the fallocate
VOP, so no point trying to map this to a native call

supposed to help with problem reported in
https://mail-index.netbsd.org/tech-kern/2019/11/03/msg025641.html
2019-11-09 23:44:31 +00:00
pgoyette a87c3088cd If we need to handle old-version signals, load the version-specific
"compat_16" module.  There is no longer a monolithic "compat" module!

XXX pullup-9 needed
2019-11-09 23:34:13 +00:00
jmcneill 0de0bae64e Add (commented out) Rockchip display support 2019-11-09 23:30:54 +00:00
jmcneill 49517fca6d WIP display driver for Rockchip RK3399 2019-11-09 23:30:14 +00:00
jmcneill 43077610c8 Add HDMI and VOP clocks 2019-11-09 23:29:48 +00:00
jmcneill 47f97eb335 Add fdtbus_clock_enable and fdtbus_clock_enable_index shortcuts 2019-11-09 23:28:26 +00:00
jmcneill 088b457010 Add support for internal DesignWare HDMI PHYs 2019-11-09 23:27:50 +00:00
jdolecek 1d1057a273 do not try to rm sysautoload when it's not actually used for given compat;
script tried to rm /dev/null which failed
2019-11-09 22:05:50 +00:00
jdolecek de940ab69b don't descend to sparc and sparc64, they don't have syscalls.master
so it just errors out
2019-11-09 22:02:45 +00:00